Exemplo n.º 1
0
        /// Performs a transaction opening a new ETP [mintCCC] as being
        /// associated with the address present inside the specified [wallet].
        /// Optionally [fee] and broadcasting [mode] parameters can be specified.
        public static async Task <TransactionResult> mintCCCSingle(mintCCC mintCCC, Wallet wallet, StdFee fee = null, BroadcastingMode mode = BroadcastingMode.SYNC)
        {
            MsgmintCCC msg = new MsgmintCCC(mintCCC: mintCCC);

            // Careful here, Eugene: we are passing a list of BaseType containing the derived MsgSetDidDocument msg
            return(await TxHelper.createSignAndSendTx(new List <StdMsg> {
                msg
            }, wallet, fee : fee, mode : mode));
        }
Exemplo n.º 2
0
        /// Opens a new ETP depositing the given Commercio Token [amount].
        /// Optionally [fee] and broadcasting [mode] parameters can be specified.
        public static async Task <TransactionResult> mintCCC(int amount, Wallet wallet, StdFee fee = null, BroadcastingMode mode = BroadcastingMode.SYNC)
        {
            List <StdCoin> depositAmount = new List <StdCoin> {
                new StdCoin("ucommercio", amount.ToString())
            };

            mintCCC mintCCC = mintCCCHelper.fromWallet(wallet, depositAmount);

            MsgmintCCC msg = new MsgmintCCC(mintCCC: mintCCC);

            // Careful here, Eugene: we are passing a list of BaseType containing the derived MsgSetDidDocument msg
            return(await TxHelper.createSignAndSendTx(new List <StdMsg> {
                msg
            }, wallet, fee : fee, mode : mode));
        }