-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from initia-labs/feat/store-events
Use DB to support ordered channel, ICA and packet fee
- Loading branch information
Showing
56 changed files
with
11,049 additions
and
3,157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,8 @@ | |
node_modules/ | ||
|
||
config.json | ||
/.idea | ||
/.idea | ||
|
||
/.db | ||
|
||
/test_db |
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,5 @@ | ||
# Changelog | ||
|
||
## v0.0.1 - 2024-11-11 | ||
|
||
Initial release |
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 |
---|---|---|
@@ -1,37 +1,56 @@ | ||
{ | ||
"port": 3000, | ||
"$schema": "./config.schema.json", | ||
"port": 7010, | ||
"metricPort": 70001, | ||
"logLevel": "info", | ||
"pairs": [ | ||
"chains": [ | ||
{ | ||
"name": "chainA - chainB", | ||
"chainA": { | ||
"bech32Prefix": "init", | ||
"chainId": "chain-1", | ||
"gasPrice": "0.2uinit", | ||
"lcdUri": "http://rest.chain-1.com", | ||
"rpcUri": "http://rpc.chain-1.com", | ||
"key": { | ||
"type": "raw", | ||
"privateKey": "12af.." | ||
"bech32Prefix": "init", | ||
"chainId": "chain-1", | ||
"gasPrice": "0.15gas", | ||
"restUri": "https://rest.chain-1.com", | ||
"rpcUri": "https://rpc.chain-1.com", | ||
"wallets": [ | ||
{ | ||
"key": { | ||
"type": "raw", | ||
"privateKey": "123..." | ||
}, | ||
"maxHandlePacket": 10, | ||
"startHeight": 0 // if empty start from the latest height | ||
}, | ||
"connectionId": "connection-1", | ||
"syncInfo": { | ||
"height": 12345, | ||
"txIndex": 30 | ||
{ | ||
"key": { | ||
"type": "mnemonic", | ||
"privateKey": "repair family apology column ..." | ||
}, | ||
"maxHandlePacket": 10, | ||
"packetFilter": { | ||
"connections": [{ "connectionId": "conneciton-1" }] | ||
} | ||
} | ||
}, | ||
"chainB": { | ||
"bech32Prefix": "init", | ||
"chainId": "chain-2", | ||
"gasPrice": "0umin", | ||
"lcdUri": "http://rest.chain-2.com", | ||
"rpcUri": "http://rpc.chain-2.com", | ||
"key": { | ||
"type": "mnemonic", | ||
"privateKey": "bus ..." | ||
}, | ||
"connectionId": "connection-0" | ||
], | ||
"feeFilter": { | ||
"recvFee": [{ "denom": "gas", "amount": 100 }], | ||
"timeoutFee": [{ "denom": "gas", "amount": 200 }], | ||
"ackFee": [{ "denom": "gas", "amount": 300 }] | ||
} | ||
}, | ||
{ | ||
"bech32Prefix": "init", | ||
"chainId": "chain-2", | ||
"gasPrice": "0umin", | ||
"restUri": "https://rest.chain-2.com", | ||
"rpcUri": "https://rpc.chain-2.com", | ||
"wallets": [ | ||
{ | ||
"key": { | ||
"type": "raw", | ||
"privateKey": "123..." | ||
}, | ||
"maxHandlePacket": 10 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,145 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"title": "Rapid Relayer Config", | ||
"description": "Rapid Relayer config schema", | ||
"type": "object", | ||
"required": ["port", "metricPort", "logLevel", "chains"], | ||
"properties": { | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"port": { | ||
"type": "number" | ||
}, | ||
"dbPath": { | ||
"type": "string" | ||
}, | ||
"metricPort": { | ||
"type": "number" | ||
}, | ||
"logLevel": { | ||
"type": "string" | ||
}, | ||
"chains": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/chain" | ||
}, | ||
"minContains": 2 | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"$defs": { | ||
"chain": { | ||
"type": "object", | ||
"required": [ | ||
"bech32Prefix", | ||
"chainId", | ||
"gasPrice", | ||
"restUri", | ||
"rpcUri", | ||
"wallets" | ||
], | ||
"properties": { | ||
"bech32Prefix": { | ||
"type": "string", | ||
"description": "bech32 prefix of chain" | ||
}, | ||
"chainId": { | ||
"type": "string", | ||
"description": "chain id" | ||
}, | ||
"gasPrice": { | ||
"type": "string", | ||
"description": "gas price in format 0.1denom" | ||
}, | ||
"restUri": { | ||
"type": "string", | ||
"description": "cosmos rest api uri" | ||
}, | ||
"rpcUri": { | ||
"type": "string", | ||
"description": "cosmos rest rpc uri" | ||
}, | ||
"wallets": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/wallet" | ||
}, | ||
"minContains": "1" | ||
}, | ||
"feeFilter": { | ||
"type": "object", | ||
"properties": { | ||
"recvFee": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/coin" | ||
}, | ||
"minContains": "1" | ||
}, | ||
"ackFee": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/coin" | ||
}, | ||
"minContains": "1" | ||
}, | ||
"timeoutFee": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/coin" | ||
}, | ||
"minContains": "1" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"wallet": { | ||
"type": "object", | ||
"required": ["key"], | ||
"properties": { | ||
"key": { | ||
"type": "object", | ||
"required": ["type", "privateKey"], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": ["raw", "mnemonic", "env_raw", "env_mnemonic"] | ||
}, | ||
"privateKey": { | ||
"type": "string" | ||
}, | ||
"options": { | ||
"type": "object", | ||
"properties": { | ||
"account": { | ||
"type": "number" | ||
}, | ||
"index": { | ||
"type": "number" | ||
}, | ||
"coinType": { | ||
"type": "number" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"coin": { | ||
"type": "object", | ||
"required": ["denom", "amount"], | ||
"properties": { | ||
"denom": { | ||
"type": "string" | ||
}, | ||
"amount": { | ||
"type": "number" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.