@sudophunk/rotojs
v1.0.0
Published
Roto.io smart contract interface.
Downloads
3
Readme
@rotoio/contracts
Roto.io smart contract interface.
yarn add @rotoio/contracts
Roto.io Contracts
Clients
All contracts are scoped under the contracts
object:
import { contracts } from "@rotoio/contracts"
const { CW20Base, RotoStaking, RotoSwapRoto, RotoSwapOthers } = contracts
Then each contract will have clients, for example for RotoStaking
:
const { RotoStakingClient, RotoStakingMessageComposer, RotoStakingQueryClient } =
RotoStaking
Queries
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