BitUnity/default_workspace 2/contracts/artifacts/ChainInteraction_metadata.json

229 lines
4.4 KiB
JSON

{
"compiler": {
"version": "0.8.22+commit.4fc1097e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "transferId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "fromChain",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "toChain",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "toUser",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "assetName",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "AssetTransferCompleted",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "assetTransfers",
"outputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "fromChain",
"type": "address"
},
{
"internalType": "address",
"name": "toChain",
"type": "address"
},
{
"internalType": "address",
"name": "toUser",
"type": "address"
},
{
"internalType": "string",
"name": "assetName",
"type": "string"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "completed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_transferId",
"type": "uint256"
}
],
"name": "completeAssetTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getUserAssetTransfers",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "fromChain",
"type": "address"
},
{
"internalType": "address",
"name": "toChain",
"type": "address"
},
{
"internalType": "address",
"name": "toUser",
"type": "address"
},
{
"internalType": "string",
"name": "assetName",
"type": "string"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "completed",
"type": "bool"
}
],
"internalType": "struct ChainInteraction.AssetTransfer[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_toChain",
"type": "address"
},
{
"internalType": "address",
"name": "_toUser",
"type": "address"
},
{
"internalType": "string",
"name": "_assetName",
"type": "string"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "initiateAssetTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/CrossChainInteraction.sol": "ChainInteraction"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/CrossChainInteraction.sol": {
"keccak256": "0xc85eb0fd80aa4ca66b85ea9260da6161e4f7d91ea81720d0dd5d67848dc5f262",
"license": "MIT",
"urls": [
"bzz-raw://44676d1367b8925c50266978450db7ec48939640b245a2bcb0b769af02fa97d5",
"dweb:/ipfs/QmccyV3YkLShdqUf98djqnGyL6EZGYJKbYxWZnPpkAGEJj"
]
}
},
"version": 1
}