doAddToken

Updated : 2024.05.23

CURIO (DB) -> pERDL (Contract) 으둜 λ³€κ²½ν•˜λŠ” μ—­ν•  [Only Relay Admin]

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

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.05.23

Last updated