1.0.0 ā€¢ Published 5 months ago

@sudophunk/rotojs v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

@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:

1.0.0

5 months ago