1.0.0 ā¢ Published 5 months ago
@sudophunk/rotojs v1.0.0
@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
1.0.0
5 months ago