diff --git a/src/assets/config/contract-abi.json b/src/assets/config/contract-abi.json index 6e89a2b..5e22fc6 100644 --- a/src/assets/config/contract-abi.json +++ b/src/assets/config/contract-abi.json @@ -10407,6 +10407,668 @@ "type": "function" } ] + }, + { + "name": "XHedge", + "type": "xhedge", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sn", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "newAmount", + "type": "uint96" + } + ], + "name": "UpdateAmount", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sn", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "newValidator", + "type": "uint256" + } + ], + "name": "UpdateValidatorToVote", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sn", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "validator", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "incrVotes", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newAccumulatedVotes", + "type": "uint256" + } + ], + "name": "Vote", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sn", + "type": "uint256" + } + ], + "name": "burn", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sn", + "type": "uint256" + }, + { + "internalType": "uint96", + "name": "newAmount", + "type": "uint96" + } + ], + "name": "changeAmount", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "leverNFT", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "newValidator", + "type": "uint256" + } + ], + "name": "changeValidatorToVote", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "token", + "type": "uint256" + } + ], + "name": "closeout", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "initCollateralRatio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "minCollateralRatio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "closeoutPenalty", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "matureTime", + "type": "uint64" + }, + { + "internalType": "uint256", + "name": "validatorToVote", + "type": "uint256" + }, + { + "internalType": "uint96", + "name": "hedgeValue", + "type": "uint96" + }, + { + "internalType": "address", + "name": "oracle", + "type": "address" + } + ], + "name": "createVault", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "initCollateralRatio_minCollateralRatio_closeoutPenalty_matureTime", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validatorToVote", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "hedgeValue_oracle", + "type": "uint256" + } + ], + "name": "createVaultPacked", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "token", + "type": "uint256" + } + ], + "name": "liquidate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "valToVotes", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "validators", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sn", + "type": "uint256" + } + ], + "name": "vote", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sn", + "type": "uint256" + } + ], + "name": "loadVault", + "outputs": [ + { + "components": [ + { + "internalType": "uint64", + "name": "initCollateralRatio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "minCollateralRatio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "matureTime", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "lastVoteTime", + "type": "uint64" + }, + { + "internalType": "uint256", + "name": "validatorToVote", + "type": "uint256" + }, + { + "internalType": "uint96", + "name": "hedgeValue", + "type": "uint96" + }, + { + "internalType": "address", + "name": "oracle", + "type": "address" + }, + { + "internalType": "uint64", + "name": "closeoutPenalty", + "type": "uint64" + }, + { + "internalType": "uint96", + "name": "amount", + "type": "uint96" + } + ], + "internalType": "struct Vault", + "name": "vault", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + } + ] } - ] diff --git a/src/assets/config/contract.json b/src/assets/config/contract.json index 0b64f70..a7dc2ea 100644 --- a/src/assets/config/contract.json +++ b/src/assets/config/contract.json @@ -474,5 +474,12 @@ "type": "sep20", "name": "CST", "logo": true + }, + { + "address": "0x11e34Ee274929d607E06C5e49bB0dc26Ca920BF2", + "abiNames": ["xhedge"], + "type": "custom", + "name": "XHedge", + "logo": true } ] diff --git a/src/assets/images/tokens/0x11e34Ee274929d607E06C5e49bB0dc26Ca920BF2.png b/src/assets/images/tokens/0x11e34Ee274929d607E06C5e49bB0dc26Ca920BF2.png new file mode 100644 index 0000000..77b8879 Binary files /dev/null and b/src/assets/images/tokens/0x11e34Ee274929d607E06C5e49bB0dc26Ca920BF2.png differ