Skip to content

Commit

Permalink
imp: change counterpartyInfo to channel (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: srdtrk <[email protected]>
Co-authored-by: srdtrk <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent 169400e commit ee8cdff
Show file tree
Hide file tree
Showing 21 changed files with 670 additions and 243 deletions.
13 changes: 13 additions & 0 deletions abi/ICS26Router.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ICS04_CHANNEL",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IICS04Channel"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ackPacket",
Expand Down
320 changes: 320 additions & 0 deletions abi/ICSCore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,320 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "owner_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "addChannel",
"inputs": [
{
"name": "clientType",
"type": "string",
"internalType": "string"
},
{
"name": "channel",
"type": "tuple",
"internalType": "struct IICS04ChannelMsgs.Channel",
"components": [
{
"name": "counterpartyId",
"type": "string",
"internalType": "string"
},
{
"name": "merklePrefix",
"type": "bytes[]",
"internalType": "bytes[]"
}
]
},
{
"name": "client",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getChannel",
"inputs": [
{
"name": "channelId",
"type": "string",
"internalType": "string"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct IICS04ChannelMsgs.Channel",
"components": [
{
"name": "counterpartyId",
"type": "string",
"internalType": "string"
},
{
"name": "merklePrefix",
"type": "bytes[]",
"internalType": "bytes[]"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getClient",
"inputs": [
{
"name": "clientId",
"type": "string",
"internalType": "string"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ILightClient"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "migrateClient",
"inputs": [
{
"name": "subjectClientId",
"type": "string",
"internalType": "string"
},
{
"name": "substituteClientId",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "submitMisbehaviour",
"inputs": [
{
"name": "clientId",
"type": "string",
"internalType": "string"
},
{
"name": "misbehaviourMsg",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateClient",
"inputs": [
{
"name": "clientId",
"type": "string",
"internalType": "string"
},
{
"name": "updateMsg",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "enum ILightClientMsgs.UpdateResult"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "upgradeClient",
"inputs": [
{
"name": "clientId",
"type": "string",
"internalType": "string"
},
{
"name": "upgradeMsg",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "ICS04ChannelAdded",
"inputs": [
{
"name": "channelId",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "channel",
"type": "tuple",
"indexed": false,
"internalType": "struct IICS04ChannelMsgs.Channel",
"components": [
{
"name": "counterpartyId",
"type": "string",
"internalType": "string"
},
{
"name": "merklePrefix",
"type": "bytes[]",
"internalType": "bytes[]"
}
]
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "IBCClientNotFound",
"inputs": [
{
"name": "clientId",
"type": "string",
"internalType": "string"
}
]
},
{
"type": "error",
"name": "IBCCounterpartyClientNotFound",
"inputs": [
{
"name": "counterpartyClientId",
"type": "string",
"internalType": "string"
}
]
},
{
"type": "error",
"name": "IBCInvalidClientType",
"inputs": [
{
"name": "clientType",
"type": "string",
"internalType": "string"
}
]
},
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
}
]
Loading

0 comments on commit ee8cdff

Please sign in to comment.