-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add relay service listeners and handlers #56
Conversation
packages/relayer/README.md
Outdated
|
||
### Redis | ||
|
||
We use redis two track two things |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use redis two track two things | |
We use redis to track two things |
packages/relayer/src/evm.ts
Outdated
contractInstance: any; | ||
validatorAddress: string; | ||
bridgeAddress: string = Config.address; | ||
bridgeHash: string = Config.brigdgeHash; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling error in bridgeHash
packages/relayer/start.ts
Outdated
|
||
const startQueue = async () => { | ||
const qname = Config.address; | ||
console.log("This is the quee", qname); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log("This is the quee", qname); | |
console.log("This is the queue", qname); |
Functionality to listen for events and relay them across chains | ||
|
||
### Redis | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add instructions on Redis version to use, as well as configuration like the port here.
Add instructions on what version of TS node to use.
A longer description of the Relayer service is missing here, all instructions on how to run the service should be able to be found in this file.
Provide clear instructions on how to provide the Bridge Address.
Does not use current childchain start script
|
i've executed all steps as described above. I see the script producing transactions:
but console.log is never triggered:
|
getting negative block numbers suddenly. stopped everything and did a redeployment, still same.
|
Negative block numbers is because we don't reset the redis db when service stops Forked out the bug since its taking long #59 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good. events forked out and need to be solved.
How to test
ts-node deploy.ts
. Copy value of address from address.json to key address in config.jsonts-node start.ts
.ts-node /src/utils/transaction.ts
. Will create 3 separate burn events that should be captured and recordedCloses #26 Closes #40