@stargaze-zone/contracts
v0.14.2
Published
Stargaze contracts
Downloads
33
Readme
@stargaze-zone/contracts
Stargaze smart contract bindings
npm install @stargaze-zone/contracts
Stargaze contracts
clients
All contracts are scoped under the contracts
object:
import { contracts } from '@stargaze-zone/contracts';
const {
SG721Base,
VendingFactory,
VendingMinter,
Whitelist
} = contracts;
Then each contract will have clients, for example for Whitelist
:
const {
WhitelistClient,
WhitelistMessageComposer,
WhitelistQueryClient
} = Whitelist;
Queries
const queryClient = new WhitelistQueryClient(wasmClient, contractAddress);
const hasStarted = await queryClient.hasStarted()
const members = await queryClient.members({limit: 10})
Mutations
const client = new WhitelistClient(signingWasmClient, sender, contractAddress);
await client.addMembers({
toAdd: ['name1', 'name2']
})
Credits
🛠 Built by Cosmology — if you like our tools, please consider delegating to our validator ⚛️
Code built with the help of these related projects:
- @cosmwasm/ts-codegen for generated CosmWasm contract Typescript classes