-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* plug in keepers * add ibc precompile * remove redundant keepers
- Loading branch information
Showing
11 changed files
with
624 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
address constant IBC_PRECOMPILE_ADDRESS = 0x0000000000000000000000000000000000001009; | ||
|
||
IBC constant IBC_CONTRACT = IBC( | ||
IBC_PRECOMPILE_ADDRESS | ||
); | ||
|
||
interface IBC { | ||
// Transactions | ||
function transfer( | ||
string toAddress, | ||
string memory port, | ||
string memory channel, | ||
string memory denom, | ||
uint256 amount, | ||
uint64 revisionNumber, | ||
uint64 revisionHeight, | ||
uint64 timeoutTimestamp | ||
) external returns (bool success); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "toAddress", | ||
"type": "string" | ||
}, | ||
{ | ||
"internalType": "string", | ||
"name": "port", | ||
"type": "string" | ||
}, | ||
{ | ||
"internalType": "string", | ||
"name": "channel", | ||
"type": "string" | ||
}, | ||
{ | ||
"internalType": "string", | ||
"name": "denom", | ||
"type": "string" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint64", | ||
"name": "revisionNumber", | ||
"type": "uint64" | ||
}, | ||
{ | ||
"internalType": "uint64", | ||
"name": "revisionHeight", | ||
"type": "uint64" | ||
}, | ||
{ | ||
"internalType": "uint64", | ||
"name": "timeoutTimestamp", | ||
"type": "uint64" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "success", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.