internalTxTC

package
v1.9.0-tc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 Init

func Init(accs []*account.Account, endpoint string, gp *big.Int)

Init initializes cliPool and accGrp; and also deploys the smart contracts.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL