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