doOffGameToken

Celeb -> pFandom 으둜 λ³€κ²½ν•˜λŠ” 역할을 함 [Only Relay Admin]

function doOffGameToken(
    OffGameTokenRequest[] memory _request,
) external onlyRelayAdmin

Token Off mode

Parameters

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

OffGameTokenRequest

_request

request λ°°μ—΄

OffGameTokenRequest.address

tokenContract

토큰 μ»¨νŠΈλž™νŠΈ μ£Όμ†Œ

OffGameTokenRequest.string

messageId

λ©”μ‹œμ§€ 고유 ID

OffGameTokenRequest.uint256

amount

토큰 μˆ˜λŸ‰

OffGameTokenRequest.address

owner

μ‚¬μš©μž eoa

OffGameTokenRequest.string

ownerUid

μ‚¬μš©μž uid

OffGameTokenRequest.uint256

txFee

tx 수수료

Example

await manageTokenRouterContract.doOffGameToken(
            [{tokenContract:tokenContract.address,
            messageId:"1234", 
            amount:ethers.utils.parseEther("100"), 
            owner:accounts[0].address, 
            ownerUid:uid1, 
            txFee:ethers.utils.parseEther("10")}]
)

2023.02.10

Last updated