@sudophunk/rotojs

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sudophunk/rotojs

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

182 kB

Total Files

23

Last publish

Collaborators

  • sudophunk