# Technical Documentation

## 1.0 Smart Contract Deployment

WSHIDO Contract

Mainnet Deployed Address -> [0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7](https://shidoscan.com/contract/0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7)

1. Contract from github repository: <https://github.com/ShidoGlobal/wSHIDO>

2. Contract name: WSHIDO.sol

3. Deployment Tool: Hardhat

4. Deployment Script: <https://github.com/ShidoGlobal/wSHIDO/blob/main/scripts/deploy-mainnet.js>

5. Deploying contract with the account: [0x15b0BCAF0C63539438b2AD4d631682857176088f](https://shidoscan.com/address/0x15b0BCAF0C63539438b2AD4d631682857176088f)

6. Parameters:

   1. name: Wrapped Shido

   2. symbol: WSHIDO

   3. decimals: 18

   4. owner: 0x883433e911a045A5e67984c93961A495E48997D5

   5. Deployment Settings:

      1. {

         &#x20;   version: "0.8.23",

         &#x20;   settings: {

         &#x20;     viaIR: true,

         &#x20;     optimizer: {

         &#x20;       enabled: true,

         &#x20;       runs: 200,

         &#x20;       details: {

         &#x20;         yulDetails: {

         &#x20;           optimizerSteps: "u",

         &#x20;          },

         &#x20;       },

         &#x20;     },

         &#x20;   },

         &#x20; }

      ### Core Contracts:

      // Mainnet Core contract address details

      WSHIDO\_ADDRESS= "0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7"

      FACTORY\_ADDRESS= "0xA17f1D96379d53B235587136F86880932c2b605F"

      NFT\_DESCRIPTOR\_ADDRESS= "0x800B929A78EF2e037b6C81a5CF8e6447EAA2D41e"

      POSITION\_DESCRIPTOR\_ADDRESS= "0xC3f4cAb9c4C453244E252b4D2a23E271eD778354"

      POSITION\_MANAGER\_ADDRESS= "0xEdCf5C38BEc4EA10fb2d67d3Da03dd1f4086866F"

      QUOTER\_V2\_ADDRESS= "0xFcCBDe0ffbaba6533787d1b930a06d1aca9e9727"

      MULTI\_CALL= "0xeD4c58BAEF3dd056345aF4affA05b085B50a8f67"

      SWAP\_ROUTER\_V2= "0x1c5316BA88a99a5c35389053D987aFfa502bfa8f"

      TICK\_LENS= "0x5445bC8c3810c699048315085397cd0065c7fe41"

   6. USDC\_ADDRESS= "0x80b5a32E4F032B2a058b4F29EC95EEfEEB87aDcd"

7. Contract from github repository: <https://github.com/ShidoGlobal/shido-liquidity-pool>

8. Deployment Tool: Hardhat

9. Deployment Script: <https://github.com/ShidoGlobal/shido-liquidity-pool/blob/master/scripts/deploy/coreContracts.js>

10. Deploying contract with the account: [0x15b0BCAF0C63539438b2AD4d631682857176088f](https://shidoscan.com/address/0x15b0BCAF0C63539438b2AD4d631682857176088f)

11. Parameters:
    1. owner: 0x883433e911a045A5e67984c93961A495E48997D5

12. Deployment Settings:

    {

    &#x20; version: "0.8.23",

    &#x20; settings: {

    &#x20;   optimizer: {

    &#x20;     enabled: true,

    &#x20;     runs: 2\_000,

    &#x20;   },

    &#x20;   metadata: {

    &#x20;     bytecodeHash: "none",

    &#x20;   },

    &#x20;   outputSelection: {

    &#x20;     "\*": {

    &#x20;       "\*": \[

    &#x20;         "abi",

    &#x20;         "evm.bytecode",&#x20;

    &#x20;         "evm.deployedBytecode",

    &#x20;         "evm.methodIdentifiers",

    &#x20;         "metadata",

    &#x20;       ],

    &#x20;       "": \["ast"],

    &#x20;     },

    &#x20;   },

    &#x20; },

    };

Logs

Execution 1:

npx hardhat run scripts/deploy-mainnet.js --network shido

Deploying contract with the account  : 0x15b0BCAF0C63539438b2AD4d631682857176088f

Network name                         : shido

Network chain id                     : 9008n

WSHIDO Token Deployed : 0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7<br>

Execution 2:

npx hardhat run --network shido scripts/deploy/coreContracts.js

Deploying contract with the account  : 0x15b0BCAF0C63539438b2AD4d631682857176088f

Network name                         : unknown

Network chain id                     : 9008

Initial Balance before deployment    : 9843.81990974674237294 SHIDO

\####

Factory Deployed

0xA17f1D96379d53B235587136F86880932c2b605F

&#x20;No args

Updated to ENV :true (FACTORY\_ADDRESS,0xA17f1D96379d53B235587136F86880932c2b605F)

\####

NFTDescriptor Deployed

0x800B929A78EF2e037b6C81a5CF8e6447EAA2D41e

&#x20;No args

Updated to ENV :true (NFT\_DESCRIPTOR\_ADDRESS,0x800B929A78EF2e037b6C81a5CF8e6447EAA2D41e)

\####

nonfungibleTokenPositionDescriptor Deployed

0xC3f4cAb9c4C453244E252b4D2a23E271eD778354

&#x20;0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7,0x57534849444f0000000000000000000000000000000000000000000000000000

Updated to ENV :true (POSITION\_DESCRIPTOR\_ADDRESS,0xC3f4cAb9c4C453244E252b4D2a23E271eD778354)

\####

nonfungiblePositionManager Deployed

0xEdCf5C38BEc4EA10fb2d67d3Da03dd1f4086866F

&#x20;0xA17f1D96379d53B235587136F86880932c2b605F,0x8cbafFD9b658997E7bf87E98FEbF6EA6917166F7, 0xC3f4cAb9c4C453244E252b4D2a23E271eD778354

Updated to ENV :true (POSITION\_MANAGER\_ADDRESS,0xEdCf5C38BEc4EA10fb2d67d3Da03dd1f4086866F)

\#### QuoterV2 Deployed

0xFcCBDe0ffbaba6533787d1b930a06d1aca9e9727

Updated to ENV :true (QUOTER\_V2\_ADDRESS,0xFcCBDe0ffbaba6533787d1b930a06d1aca9e9727)

\#### UniswapInterfaceMulticall Deployed

0xeD4c58BAEF3dd056345aF4affA05b085B50a8f67

Updated to ENV :true (MULTI\_CALL,0xeD4c58BAEF3dd056345aF4affA05b085B50a8f67)

\#### TickLens Deployed

0x5445bC8c3810c699048315085397cd0065c7fe41

## **2.0 SDK Deployment**

Published SDK details:

* @shidoglobal/sdk-core\@1.0.0
* @shidoglobal/smart-order-router\@1.0.1

NPM Account: @shidoglobal

Github repository: <https://github.com/ShidoGlobal/shido-liquidity-pool-core>

Reference .MD files from here for deployment: <https://github.com/ShidoGlobal/shido-liquidity-pool-core/sdk>&#x20;

Key Notes:

1. Included support for both Mainnet and Testnet
2. Mainnet can be accessed with ChainId.SHIDO
3. Testnet can be accessed with ChainId.SHIDO\_TESTNET

## 3.0 Subgraph Deployment

This tracks all the blockchain events of DEX contracts and provides for the frontend through Subgraph Graphql Endpoints.

### 3.1 Running Graph Node from Server

* Github repository: <https://github.com/graphprotocol/graph-node>
* Deployment Server: <https://app.cleavr.io/sites?server=001e70f5-a9ec-46db-8bdd-82dc311b5e2d>
* Deployment IP for Mainnet: 34.224.3.104
* Refer this doc for script: <https://github.com/ShidoGlobal/shido-liquidity-pool-core/subgraph/subgraph-node-setup/README.MD>

### 3.2 Subgraph Deployment

* Github repository: <https://github.com/ShidoGlobal/shido-liquidity-pool-core/subgraph>
* Running or doing the deployment refer this: <https://github.com/ShidoGlobal/shido-liquidity-pool-core/subgraph/v3-subgraph/README.md>
* Subgraph Deployed for Mainnet : <https://ljd1t705przomdjt11587.cleavr.xyz/subgraphs/name/shido/mainnet>

\ <br>

\
\
\
\ <br>

\ <br>

<br>

\ <br>
