Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions contracts/xcm-utils-abi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
export default [
{
inputs: [
{
components: [
{
internalType: 'uint8',
name: 'parents',
type: 'uint8',
},
{
internalType: 'bytes[]',
name: 'interior',
type: 'bytes[]',
},
],
internalType: 'struct XcmUtils.Multilocation',
name: 'multilocation',
type: 'tuple',
},
],
name: 'getUnitsPerSecond',
outputs: [
{
internalType: 'uint256',
name: 'unitsPerSecond',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint8',
name: 'parents',
type: 'uint8',
},
{
internalType: 'bytes[]',
name: 'interior',
type: 'bytes[]',
},
],
internalType: 'struct XcmUtils.Multilocation',
name: 'multilocation',
type: 'tuple',
},
],
name: 'multilocationToAddress',
outputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'message',
type: 'bytes',
},
],
name: 'weightMessage',
outputs: [
{
internalType: 'uint64',
name: 'weight',
type: 'uint64',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'message',
type: 'bytes',
},
{
internalType: 'uint64',
name: 'maxWeight',
type: 'uint64',
},
],
name: 'xcmExecute',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'uint8',
name: 'parents',
type: 'uint8',
},
{
internalType: 'bytes[]',
name: 'interior',
type: 'bytes[]',
},
],
internalType: 'struct XcmUtils.Multilocation',
name: 'dest',
type: 'tuple',
},
{
internalType: 'bytes',
name: 'message',
type: 'bytes',
},
],
name: 'xcmSend',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];
133 changes: 133 additions & 0 deletions contracts/xcm-utils-abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"abi": [
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "parents",
"type": "uint8"
},
{
"internalType": "bytes[]",
"name": "interior",
"type": "bytes[]"
}
],
"internalType": "struct XcmUtils.Multilocation",
"name": "multilocation",
"type": "tuple"
}
],
"name": "getUnitsPerSecond",
"outputs": [
{
"internalType": "uint256",
"name": "unitsPerSecond",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "parents",
"type": "uint8"
},
{
"internalType": "bytes[]",
"name": "interior",
"type": "bytes[]"
}
],
"internalType": "struct XcmUtils.Multilocation",
"name": "multilocation",
"type": "tuple"
}
],
"name": "multilocationToAddress",
"outputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "message",
"type": "bytes"
}
],
"name": "weightMessage",
"outputs": [
{
"internalType": "uint64",
"name": "weight",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "message",
"type": "bytes"
},
{
"internalType": "uint64",
"name": "maxWeight",
"type": "uint64"
}
],
"name": "xcmExecute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "parents",
"type": "uint8"
},
{
"internalType": "bytes[]",
"name": "interior",
"type": "bytes[]"
}
],
"internalType": "struct XcmUtils.Multilocation",
"name": "dest",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "message",
"type": "bytes"
}
],
"name": "xcmSend",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
Loading