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

187 lines
3.5 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": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "assetName",
"type": "string"
}
],
"name": "TransferCompleted",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_transferId",
"type": "uint256"
}
],
"name": "completeTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getUserTransfers",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "string",
"name": "assetName",
"type": "string"
},
{
"internalType": "bool",
"name": "completed",
"type": "bool"
}
],
"internalType": "struct CrossChainTransfer.Transfer[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "string",
"name": "_assetName",
"type": "string"
}
],
"name": "initiateTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "transfers",
"outputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "string",
"name": "assetName",
"type": "string"
},
{
"internalType": "bool",
"name": "completed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/CrossChainTransfer.sol": "CrossChainTransfer"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/CrossChainTransfer.sol": {
"keccak256": "0x90ae2e097f681de88732a128f3d760113fe0fc213159858ff178a097ce2f05f9",
"license": "MIT",
"urls": [
"bzz-raw://94ae0537b28368a0e6cdb1f4e44e88ed2a122be207b2f8be085a859446f4bf11",
"dweb:/ipfs/QmaXUgha2uZxsPVNEaR8cEGUyTXgUwHsSfoorDgrUjB8SJ"
]
}
},
"version": 1
}