This repository has been archived by the owner on Jul 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf(proposal): update the genesis confirm part of proposal cmd * perf(util): clean util * perf(types): remove outdated types * refactor(listener): move listeners to one folder * chore(types): update receipt types * perf(proposal): fix the genesis lastconfirmed block * perf(listener): add tx type to the callback of ethereum listener * perf(eth): clean db files of ethereum listener * perf(cfg): merge configs * refactor(cmd): use run command for default command, remove proposal cmd * refactor(listener): invoke blockNumber into ethereum listener callback * feat(listener): complete listener queue * chore(api): unly delay exs * refactor(api): use array as tuple in redeem api * feat(redeem): complete redeem process * chore(static): update types.json of darwinia * perf(cmd): optimize the log of ethereum listener * chore(config): update the config of ethereum listener * perf(badge): add npm badge
- Loading branch information
Showing
35 changed files
with
519 additions
and
788 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,50 +1,49 @@ | ||
{ | ||
"private": false, | ||
"name": "@darwinia/dj", | ||
"version": "", | ||
"description": "Darwinia bridge relayer tool", | ||
"homepage": "https://github.com/darwinia-network/dj", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/darwinia-network/dj" | ||
}, | ||
"author": "darwinia-network <[email protected]>", | ||
"license": "GPL-3.0", | ||
"main": "lib/index.js", | ||
"bin": { | ||
"dj": "lib/index.js" | ||
}, | ||
"files": ["lib/**/*"], | ||
"dependencies": { | ||
"@polkadot/api": "1.30.0-beta.0", | ||
"@polkadot/keyring": "3.3.1", | ||
"@polkadot/util-crypto": "3.3.1", | ||
"axios": "^0.19.2", | ||
"ethereumjs-util": "^7.0.4", | ||
"got": "^11.5.2", | ||
"javascript-stringify": "^2.0.1", | ||
"progress": "^2.0.3", | ||
"prompts": "^2.3.2", | ||
"tar": "^6.0.5", | ||
"yargs": "^15.4.1", | ||
"web3": "^1.2.11", | ||
"config": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@polkadot/types": "1.30.0-beta.0", | ||
"@types/node": "^13.11.1", | ||
"@types/progress": "^2.0.3", | ||
"@types/prompts": "^2.0.8", | ||
"@types/tar": "^4.0.3", | ||
"@types/yargs": "^15.0.4", | ||
"husky": "^4.2.5", | ||
"tslint": "^6.1.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"scripts": { | ||
"build": "tsc --strict", | ||
"lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" | ||
} | ||
"private": false, | ||
"name": "@darwinia/dj", | ||
"version": "", | ||
"description": "Darwinia bridge relayer tool", | ||
"homepage": "https://github.com/darwinia-network/dj", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/darwinia-network/dj" | ||
}, | ||
"author": "darwinia-network <[email protected]>", | ||
"license": "GPL-3.0", | ||
"main": "lib/index.js", | ||
"bin": { | ||
"dj": "lib/index.js" | ||
}, | ||
"files": ["lib/**/*"], | ||
"dependencies": { | ||
"@polkadot/api": "1.30.0-beta.0", | ||
"@polkadot/keyring": "3.3.1", | ||
"@polkadot/util-crypto": "3.3.1", | ||
"axios": "^0.19.2", | ||
"got": "^11.5.2", | ||
"javascript-stringify": "^2.0.1", | ||
"progress": "^2.0.3", | ||
"prompts": "^2.3.2", | ||
"tar": "^6.0.5", | ||
"yargs": "^15.4.1", | ||
"web3": "^1.2.11", | ||
"config": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@polkadot/types": "1.30.0-beta.0", | ||
"@types/node": "^13.11.1", | ||
"@types/progress": "^2.0.3", | ||
"@types/prompts": "^2.0.8", | ||
"@types/tar": "^4.0.3", | ||
"@types/yargs": "^15.0.4", | ||
"husky": "^4.2.5", | ||
"tslint": "^6.1.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"scripts": { | ||
"build": "tsc --strict", | ||
"lint": "tsc --noEmit --strict && tslint --project ./tsconfig.json" | ||
} | ||
} |
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,25 @@ | ||
import { ethereum } from "../listener"; | ||
|
||
ethereum({ | ||
"RPC_SERVER": "https://ropsten.infura.io/v3/0bfb9acbb13c426097aabb1d81a9d016", | ||
"START_BLOCK_NUMBER": 8609800, | ||
"CONTRACT": { | ||
"RING": { | ||
"address": "0xb52FBE2B925ab79a821b261C82c5Ba0814AAA5e0", | ||
"burnAndRedeemTopics": "0xc9dcda609937876978d7e0aa29857cb187aea06ad9e843fd23fd32108da73f10" | ||
}, | ||
"KTON": { | ||
"address": "0x1994100c58753793D52c6f457f189aa3ce9cEe94", | ||
"burnAndRedeemTopics": "0xc9dcda609937876978d7e0aa29857cb187aea06ad9e843fd23fd32108da73f10" | ||
}, | ||
"BANK": { | ||
"address": "0x6EF538314829EfA8386Fc43386cB13B4e0A67D1e", | ||
"burnAndRedeemTopics": "0xe77bf2fa8a25e63c1e5e29e1b2fcb6586d673931e020c4e3ffede453b830fb12" | ||
}, | ||
"ISSUING": { | ||
"address": "0x49262B932E439271d05634c32978294C7Ea15d0C" | ||
} | ||
} | ||
}, (tx: any) => { | ||
console.log('test::callback:', tx) | ||
}); |
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,8 +1,11 @@ | ||
import { API, ExResult } from "./api"; | ||
import { autoAPI } from "./auto"; | ||
import { ShadowAPI } from "./shadow"; | ||
import { IEthereumHeaderThing, IEthereumHeaderThingWithProof } from "./types/block"; | ||
import { IEthereumHeaderThing, IEthereumHeaderThingWithProof } from "./types"; | ||
|
||
export { | ||
API, autoAPI, ExResult, ShadowAPI, IEthereumHeaderThing, IEthereumHeaderThingWithProof, | ||
API, autoAPI, | ||
ExResult, ShadowAPI, | ||
IEthereumHeaderThing, | ||
IEthereumHeaderThingWithProof, | ||
} |
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
Oops, something went wrong.