usdterc20-usdterc20转账需要收多少钱

2023-06-06 入门知识 0次阅读 admin
usdterc20.jpg

关于usdterc20的问题,我们总结了以下几点,给你解答:

usdterc20


usdterc20

.contracts.USDTERC20

import com.r3.corda.lib.tokens.contracts.states.FungibleToken
import com.r3.corda.lib.tokens.contracts.types.TokenType
import com.r3.corda.lib.tokens.contracts.utilities.heldBy
import com.r3.corda.lib.tokens.contracts.utilities.issuedBy
import com.r3.corda.lib.tokens.contracts.utilities.of
import com.r3.corda.lib.tokens.money.USD
import net.corda.core.contracts.Amount
import net.corda.core.contracts.CommandData
import net.corda.core.contracts.Contract
import net.corda.core.contracts.requireThat
import net.corda.core.transactions.LedgerTransaction

// ************
// * Contract *
// ************
class USDTERC20 : Contract {
companion object {
// Used to identify our contract when building a transaction.
const val ID = "com.template.USDTERC20"
}

// A transaction is valid if the verify() function of the contract of all the transaction's input and output states
// does not throw an exception.
override fun verify(tx: LedgerTransaction) {
val command = tx.commands.requireSingleCommand()
when (command.value) {
is Commands.Issue -> requireThat {
"No inputs should be consumed when issuing an USDTERC20 token." using (tx.inputs.isEmpty())
"Only one output state should be created when issuing an USDTERC20 token." using (tx.outputs.size == 1)
val output = tx.outputsOfType().single()
"A newly issued USDTERC20 token must have a quantity of 1." using (output.amount.quantity == 1L)
"The issuer must sign an USDTERC20 issue transaction." using (command.signers.contains(output.issuer.owningKey))
}
is Commands.Move -> requireThat {
"An USDTERC20 move transaction should only consume one input state." using (tx.inputs.size == 1)
"An USDTERC20 move transaction should only create one output state." using (tx.outputs.size == 1)
val input = tx.inputsOfType().single()
val output = tx.outputsOfType().single()
"Only USDTERC20 tokens should be moved." using (input.tokenType is USDTERC20)
"The USDTERC20 token must maintain the same issuer." using (input.issuer == output.issuer)
"The USDTERC20 token must maintain the same holder." using (input.holder == output.holder)
"The USDTERC20 token quantity must change in a move transaction." using (input.amount.quantity != output.amount.quantity)
"The USDTERC20 token move transaction must be signed by the holder." using (command.signers.contains(input.holder.owningKey))
}
is Commands.Redeem -> requireThat {
"An USDTERC20 redeem transaction should consume one input state." using (tx.inputs.size == 1)
"An USDTERC20 redeem transaction should not create any output states." using (tx.outputs.isEmpty())
val input = tx.inputsOfType().single()
"Only USDTERC20 tokens should be redeemed." using (input.tokenType is USDTERC20)
"The USDTERC20 token redeem transaction must be signed by the holder." using (command.signers.contains(input.holder.owningKey))
}
}
}

// Used to indicate the transaction's intent.
interface Commands : CommandData {
class Issue : Commands
class Move : Commands
class Redeem : Commands
}
}

// *********
// * State *
// *********
object USDTERC20 : TokenType("USDTERC20", 2) {
fun create(amount: Amount, issuer: Party, holder: Party) = FungibleToken(amount of USDTERC20 issuedBy issuer heldBy holder)
}

usdterc20钱包下载手机版


usdterc20钱包下载手机版

可以在官网下载的, 安猫钱包很不错,非常实用,是多币种钱包,目前的主流货币及ERC-20系列都支持,不需要下载很多个钱包了。还嵌入了鱼塘挖矿游戏,在看行情时缓解下无奈,娱乐炒币两不耽误。
进行数字货币投资的人们,为了时刻关注行情动态,手机中难免会出现一些数字钱包应用,数字货币和传统的电子钱包存在差异,数字货币的操控者只能是持有者,生产厂商是不具有资产操控权利的,数字钱包保障资产安全,帮助用户管理数字资产的私钥、地址等等,减少在交易中第三方参与的风险和不安全性。
数字钱包对于拥有数字资产的人来说是必不可少的,但是也存在很多的苦恼,数字货币需要在交易所和钱包之间来回的转换,之前屡次发生的交易所被盗事件,也让很多投资者产生害怕的心理,将资产放在交易所实在是不安全,而且来回提币的操作也非常的复杂。更多详情请点击

usdterc20转账需要收多少钱


usdterc20转账需要收多少钱

猜你感兴趣: usdterc20
usdterc20钱包下载手机版-ustd交易

usdterc20钱包下载手机版-ustd交易

usdterc20钱包下载手机版-ustd交易app下载..

2023-06-04 0次阅读