doAddToken

function doAddToken(
    AddAndRemoveTokenRequest[] memory _request,
) external onlyRelayAdmin

token add(on-mode)

Parameters

struct AddAndRemoveTokenRequest{
    address tokenContract;
    string messageId;
    uint256 amount;
    string ownerUid;
    uint256 txFee;
}
TypeValueDescription

AddAndRemoveTokenRequest

_request

request ๋ฐฐ์—ด

AddAndRemoveTokenRequest.address

tokenContract

ํ† ํฐ ์ปจํŠธ๋ž™ํŠธ ์ฃผ์†Œ

AddAndRemoveTokenRequest.string

messageId

๋ฉ”์‹œ์ง€ ๊ณ ์œ  ID

AddAndRemoveTokenRequest.uint256

amount

ํ† ํฐ ์ˆ˜๋Ÿ‰

AddAndRemoveTokenRequest.string

ownerUid

์‚ฌ์šฉ์ž uid

AddAndRemoveTokenRequest.uint256

txFee

tx ์ˆ˜์ˆ˜๋ฃŒ

Example

await manageTokenRouterContract.doAddToken(
        [{tokenContract:tokenContract.address,
        messageId:"1234", 
        ownerUid:uid1, 
        amount:ethers.utils.parseEther("100"),
        txFee:ethers.utils.parseEther("100")}]
);

2023.02.10

Last updated