0.0.15 • Published 1 year ago

nestquant-vault-sdk v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

NestQuant Vault

Cross-chain Deposit Flow

Cross-chain Withdraw Flow

EVM user

Installation

  1. Run yarn to install all dependencies
    yarn
    yarn install v1.22.21
    [1/4] 🔍  Resolving packages...
    [2/4] 🚚  Fetching packages...
    [3/4] 🔗  Linking dependencies...
    [4/4] 🔨  Building fresh packages...
    ✨  Done in 12.74s.
  1. Create .env file with same structure like .env.example

  2. Run yarn compile to compile all evm smart contracts

    yarn compile
    yarn run v1.22.21
    $ npx hardhat compile
    Generating typings for: 54 artifacts in dir...
    Successfully generated 174 typings!
    Compiled 43 Solidity files successfully (evm target: paris).
    ✨  Done in 3.56s.
  1. Run yarn wasm-build to build wasm contract files
    sudo yarn wasm-build 
    yarn run v1.22.21
    $ cwtools build orai-gateway --output wasm-build --optimize
    Building contract in ...
    Optimizing ...
    328 kB ...
    ✨ all done in 7139 ms!
    ✨  Done in 7.91s.
  1. Run yarn schema-gen to gen schemas
    sudo yarn schema-gen
    yarn run v1.22.21
    $ cwtools build -s orai-gateway
    ...
    ✨ all done in 2382 ms!
    ✨  Done in 3.11s.
  1. Run yarn gents to gen all clients and types of wasm smart contracts
    sudo yarn gents     
    yarn run v1.22.21
    $ cwtools gents orai-gateway --output wasm-ts
    ✨ all done in 214 ms!
    ✨  Done in 1.07s.
  1. Run yarn test to run all test
    ...
    69 passing (10s)
    ✨  Done in 12.49s.