Documentation
¶
Index ¶
- Constants
- Variables
- func DeployKIP17TokenContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *bind.BoundContract, error)
- func DeployMainContract(auth *bind.TransactOpts, backend bind.ContractBackend, ...) (common.Address, *types.Transaction, *bind.BoundContract, error)
- func Init(accs []*account.Account, endpoint string, gp *big.Int)
- func Run()
- func RunMintNFT()
Constants ¶
View Source
const ( Name = "internalTxTC" NameMintNFT = "mintNFTTC" )
Variables ¶
View Source
var ( KIP17Address common.Address KIP17Contract *bind.BoundContract )
Functions ¶
func DeployKIP17TokenContract ¶
func DeployKIP17TokenContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *bind.BoundContract, error)
DeployKIP17TokenContract deploys a new mainContract, binding an instance of DeployKIP17TokenContract to it.
func DeployMainContract ¶
func DeployMainContract(auth *bind.TransactOpts, backend bind.ContractBackend, addressToken common.Address) (common.Address, *types.Transaction, *bind.BoundContract, error)
DeployMainContract deploys a new mainContract, binding an instance of DeployMainContract to it.
func Run ¶
func Run()
Run transfers txs calling sendRewards function of mainContract. During the execution of the function, four internal transactions are triggered also: Mint KIP17 token, Transfer KIP17 token, send KLAY to inviteeAccount and hostAccount.
func RunMintNFT ¶
func RunMintNFT()
RunMintNFT transfers txs calling mintCard function of KIP17Contract. The function mints a KIP17 token, NFT, for the sender.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.