0.1.4 ā€¢ Published 1 year ago

@hopersio/contracts v0.1.4

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 year ago

@hopersio/contracts

Hopers.io smart contract interface.

yarn add @hopersio/contracts

Hopers.io Contracts

Clients

All contracts are scoped under the contracts object:

import { contracts } from "@hopersio/contracts"
const { CW20Base, HopersStaking, HopersSwapHopers, HopersSwapOthers } = contracts

Then each contract will have clients, for example for HopersStaking:

const { HopersStakingClient, HopersStakingMessageComposer, HopersStakingQueryClient } =
	HopersStaking

Queries

const queryClient = new HopersStakingQueryClient(wasmClient, contractAddress)

Mutations

const client = new HopersStaking(signingWasmClient, sender, contractAddress)
await client.stake(msg)

Credits

šŸ›  Built by Digital Kitchen, based on Cosmology āš›ļø goodness!

Using CosmWasm TS Codegen: