@functionx_io/contracts
Version:
Smart Contract library for Solidity
400 lines (399 loc) • 8.76 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ICrosschain",
"sourceName": "contracts/interfaces/ICrosschain.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_refund",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_txOrigin",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_eventNonce",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "_dstChain",
"type": "string"
},
{
"indexed": false,
"internalType": "address[]",
"name": "_tokens",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "_amounts",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_quoteId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_gasLimit",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "_memo",
"type": "bytes"
}
],
"name": "BridgeCallEvent",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "denom",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "receipt",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "target",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "memo",
"type": "string"
}
],
"name": "CrossChain",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_eventNonce",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "_chain",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "_errReason",
"type": "string"
}
],
"name": "ExecuteClaimEvent",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "_dstChain",
"type": "string"
},
{
"internalType": "address",
"name": "_refund",
"type": "address"
},
{
"internalType": "address[]",
"name": "_tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_amounts",
"type": "uint256[]"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "_quoteId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_gasLimit",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_memo",
"type": "bytes"
}
],
"name": "bridgeCall",
"outputs": [
{
"internalType": "uint256",
"name": "_eventNonce",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_target",
"type": "bytes32"
}
],
"name": "bridgeCoinAmount",
"outputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "string",
"name": "_receipt",
"type": "string"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_fee",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "_target",
"type": "bytes32"
},
{
"internalType": "string",
"name": "_memo",
"type": "string"
}
],
"name": "crossChain",
"outputs": [
{
"internalType": "bool",
"name": "_result",
"type": "bool"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_chain",
"type": "string"
},
{
"internalType": "uint256",
"name": "_eventNonce",
"type": "uint256"
}
],
"name": "executeClaim",
"outputs": [
{
"internalType": "bool",
"name": "_result",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_denom",
"type": "bytes32"
}
],
"name": "getERC20Token",
"outputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "bool",
"name": "_enable",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chain",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_externalAddress",
"type": "address"
}
],
"name": "hasOracle",
"outputs": [
{
"internalType": "bool",
"name": "_result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chain",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_externalAddress",
"type": "address"
}
],
"name": "isOracleOnline",
"outputs": [
{
"internalType": "bool",
"name": "_result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}