0.0.3 • Published 6 months ago

@water-cooler-studios/ike-sdk v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

@water-cooler-studios/ike-sdk

Typescript wrapper for interacting with Ike Contracts, specifically Vault. Example usage can be found in the examples directory

Usage

pnpm install @water-cooler-studios/ike-sdk

All tx/query methods return the params needed to perform contract calls using the Polkadot SDK or related frameworks.

import { Vault } from "@water-cooler-studios/ike-sdk";

const vault = new Vault();
await vault.init(api, "alephzero-testnet");

const amount = "1";
const stake = await vault.stakeTx(amount);

// Example usage with inkathon
await contractTxWithToast(
  api,
  activeAccount.address,
  stake.contract,
  stake.method,
  stake.options,
  stake.args
);