0.14.2 • Published 1 month ago
@stargaze-zone/contracts v0.14.2
@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
0.14.2
1 month ago
0.14.1
4 months ago
0.14.0
12 months ago
0.11.0
1 year ago
0.13.0
1 year ago
0.10.0
1 year ago
0.9.0
1 year ago
0.8.0
2 years ago
0.7.0
2 years ago
0.6.0
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.7
2 years ago
0.5.0
2 years ago
0.1.4
2 years ago
0.4.0
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.2
2 years ago
0.1.3
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago