@sudophunk/rotojs
v1.0.0
Published
Roto.io smart contract interface.
Readme
@rotoio/contracts
Roto.io smart contract interface.
yarn add @rotoio/contractsRoto.io Contracts
Clients
All contracts are scoped under the contracts object:
import { contracts } from "@rotoio/contracts"
const { CW20Base, RotoStaking, RotoSwapRoto, RotoSwapOthers } = contractsThen each contract will have clients, for example for RotoStaking:
const { RotoStakingClient, RotoStakingMessageComposer, RotoStakingQueryClient } =
RotoStakingQueries
const queryClient = new RotoStakingQueryClient(wasmClient, contractAddress)Mutations
const client = new RotoStaking(signingWasmClient, sender, contractAddress)
await client.stake(msg)Credits
🛠 Built by Digital Kitchen, based on Cosmology ⚛️ goodness!
Using CosmWasm TS Codegen:
- @cosmwasm/ts-codegen for generated CosmWasm contract Typescript classes
