@stargaze-zone/contracts
TypeScript icon, indicating that this package has built-in type declarations

0.14.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @stargaze-zone/contracts

Weekly Downloads

0

Version

0.14.2

License

SEE LICENSE IN LICENSE

Unpacked Size

470 kB

Total Files

103

Last publish

Collaborators

  • zetazz
  • luca608
  • shanev
  • pyramation