mint_tokens

An entrypoint for creating a transaction for minting a new QuipuSwap Governance tokens. Call of this entrypoint just generates mint QUIPU tokens transaction and sends it to the QUIPU token contract.

Call parameters

type mint_gov_tok_type  is [@layout:comb] record [
  receiver              : address;
  amount                : nat;
]

type mint_gov_toks_type is list(mint_gov_tok_type)
FieldTypeDescription

receiver

address

Receiver of minted tokens

amount

nat

Amount of tokens to be minted to a receiver

Usage

const proxyMinterAddress = "KT1...";
const receiver = "tz1.../KT1...";
const amount = 100;
const mintParams = [
    { receiver, amount },
    ...
];
const proxyMinter = await tezos.contract.at(proxyMinterAddress);
const operation = await proxyMinter.methods.mint_tokens(mintParams).send();

await operation.confirmation();

Errors

  • ProxyMinter/sender-is-not-a-minter - sender of the transaction is not registered by an administrator minter.

Last updated