TokenWrapper Contract¶
ATOM¶
This contract houses the logic for wrapping and unwrapping operation of pATOM. Token contract for Unstaked representative Tokens issued in Ethereum. The minting of pATOM can only be executed by bridge admin, which makes sure that the pATOM issuance can only be carried out by the pBridge, and that too automatedly in the background. The unwrapping of tokens is however, initiated by the user to convert their pATOM to native coins. Following are the contract functions and function signatures. Not all functions are meant to be called by users as some conform to admins (default admins, bridge admins, pauser admins).
Function Selector | Function Signature |
---|---|
cf756fdf | initialize(address,address,address,uint256) |
0b78f9c0 | setFees(uint256,uint256) |
ec1893b4 | getProps() |
51db00e7 | setMinimumValues(uint256,uint256) |
21bdf9e5 | setUTokensContract(address) |
8456cb59 | pause() |
3f4ba83a | unpause() |
22dd9bc3 | generateUTokens(address,uint256) |
e7fa0a32 | generateUTokensInBatch(address[],uint256[]) |
428bee9e | withdrawUTokens(address,uint256,string) |
XPRT¶
This contract houses the logic for wrapping and unwrapping operation of pXPRT. Token contract for Unstaked representative Tokens issued in Ethereum. The minting of pXPRT can only be executed by bridge admin, which makes sure that the pXPRT issuance can only be carried out by the pBridge, and that too automatedly in the background. The unwrapping of tokens is however, initiated by the user to convert their pXPRT to native coins. Following are the contract functions and function signatures. Not all functions are meant to be called by users as some conform to admins (default admins, bridge admins, pauser admins).
Function Selector | Function Signature |
---|---|
3e070d93 | initialize(address,address,address,uint256,string,string,uint256) |
0b78f9c0 | setFees(uint256,uint256) |
ec1893b4 | getProps() |
51db00e7 | setMinimumValues(uint256,uint256) |
21bdf9e5 | setUTokensContract(address) |
8456cb59 | pause() |
3f4ba83a | unpause() |
5105e860 | _generateUTokens(address,uint256) |
22dd9bc3 | generateUTokens(address[],uint256[]) |
e7fa0a32 | generateUTokensInBatch(address[],uint256[]) |
8f001d4e | isBech32Valid(string) |
428bee9e | withdrawUTokens(address,uint256,string) |