View Source Aptos.Contract.Coin (Aptos v0.2.4)
Functions for working with 0x1::coin
.
Implementations of this module also serve as examples for making use of this library when working with your own smart contracts.
Link to this section Summary
Link to this section Functions
@spec coin_balance(binary(), binary()) :: {:ok, non_neg_integer()} | Aptos.Client.Result.err() | {:error, any()}
@spec coin_info(binary(), String.t()) :: Aptos.Client.Result.from_tesla()
@spec coin_store(binary(), String.t()) :: Aptos.Client.Result.from_tesla()
@spec transfer(binary(), non_neg_integer(), String.t()) :: {Aptos.Tx.Payload.t(), BCS.DataType.Choice.t()}