Skip to content

Commit

Permalink
Merge branch 'add-fraud-address' into 'dev'
Browse files Browse the repository at this point in the history
add fraud address to ChainConfigs.addresses

See merge request ergo/rosen-bridge/rosen-chains!68
  • Loading branch information
zargarzadehm committed Oct 7, 2023
2 parents 77363ab + ceb4d60 commit d7da780
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 28 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/abstract-chain/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface AddressConfigs {
lock: string;
cold: string;
permit: string;
fraud: string;
}
interface ChainConfigs {
fee: bigint;
Expand Down
2 changes: 1 addition & 1 deletion packages/abstract-chain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/abstract-chain",
"version": "2.1.0",
"version": "2.2.0",
"description": "this project contains abstract classes to implement any chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/abstract-chain/tests/AbstractChain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('AbstractChain', () => {
lock: 'lock_addr',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: 'rwt',
};
Expand Down
1 change: 1 addition & 0 deletions packages/abstract-chain/tests/AbstractUtxoChain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('AbstractUtxoChain', () => {
lock: 'lock_addr',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: 'rwt',
};
Expand Down
4 changes: 2 additions & 2 deletions packages/chains/cardano/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/cardano",
"version": "2.1.0",
"version": "2.2.0",
"description": "this project contains cardano chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"@rosen-bridge/logger-interface": "^0.1.0",
"@rosen-bridge/rosen-extractor": "^1.0.0",
"@rosen-bridge/json-bigint": "^0.1.0",
"@rosen-chains/abstract-chain": "^2.1.0",
"@rosen-chains/abstract-chain": "^2.2.0",
"bech32": "^2.0.0",
"blake2b": "^2.1.3"
},
Expand Down
1 change: 1 addition & 0 deletions packages/chains/cardano/tests/CardanoChain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('CardanoChain', () => {
lock: 'addr1qxwkc9uhw02wvkgw9qkrw2twescuc2ss53t5yaedl0zcyen2a0y7redvgjx0t0al56q9dkyzw095eh8jw7luan2kh38qpw3xgs',
cold: 'cold',
permit: 'permit',
fraud: 'fraud',
},
rwtId: rwtId,
confirmations: {
Expand Down
4 changes: 2 additions & 2 deletions packages/chains/ergo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/ergo",
"version": "2.2.0",
"version": "2.3.0",
"description": "this project contains ergo chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -23,7 +23,7 @@
"@rosen-bridge/json-bigint": "^0.1.0",
"@rosen-bridge/minimum-fee": "^0.1.13",
"@rosen-bridge/rosen-extractor": "^1.0.0",
"@rosen-chains/abstract-chain": "^2.1.0",
"@rosen-chains/abstract-chain": "^2.2.0",
"blakejs": "^1.2.1",
"ergo-lib-wasm-nodejs": "^0.24.1"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/chains/ergo/tests/ErgoChain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ describe('ErgoChain', () => {
lock: 'lock_addr',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwt,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -154,6 +155,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 300000n,
Expand Down Expand Up @@ -286,6 +288,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 300000n,
Expand Down Expand Up @@ -390,6 +393,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 300000n,
Expand Down Expand Up @@ -514,6 +518,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 300000n,
Expand Down Expand Up @@ -634,6 +639,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -695,6 +701,7 @@ describe('ErgoChain', () => {
lock: 'lock_addr',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -752,6 +759,7 @@ describe('ErgoChain', () => {
lock: 'lock_addr',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -1337,6 +1345,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -1389,6 +1398,7 @@ describe('ErgoChain', () => {
lock: '9i1rTxaZpLprUkVHpY4YNyooksLuouiKqZ2v1J5nf8xFTXBCVcB',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -1441,6 +1451,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LG4ydEj62n9aymRyPCEbkBdzaubgvCWDH2oxHxFBfAUy9GhWDvteDbbUh5qhXxnW8R46qmEiZfkej8gt4kZYvbeobZJADMrWXwFJTsZ17euEcoAp3KDk31Q26okFpgK9SKdi4',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud_addr',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down Expand Up @@ -2459,6 +2470,7 @@ describe('ErgoChain', () => {
lock: 'nB3L2PD3LBtiNhDYK7XhZ8nVt6uekBXN7RcPUKgdKLXFcrJiSPxmQsUKuUkTRQ1hbvDrxEQAKYurGFbaGD1RPxU7XqQimD78j23HHMQKL1boUGsnNhCxaVNAYMcFbQNo355Af8cWkhAN6',
cold: 'cold_addr',
permit: 'permit_addr',
fraud: 'fraud',
},
rwtId: rwtId,
minBoxValue: 1000000n,
Expand Down
6 changes: 3 additions & 3 deletions packages/networks/cardano-koios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/cardano-koios-network",
"version": "2.1.0",
"version": "2.2.0",
"description": "cardano koios network package for rosen cardano chain",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -25,8 +25,8 @@
"@rosen-bridge/logger-interface": "^0.1.0",
"@rosen-bridge/rosen-extractor": "^1.0.0",
"@rosen-bridge/tokens": "^1.0.0",
"@rosen-chains/abstract-chain": "^2.1.0",
"@rosen-chains/cardano": "^2.1.0",
"@rosen-chains/abstract-chain": "^2.2.0",
"@rosen-chains/cardano": "^2.2.0",
"@rosen-clients/cardano-koios": "^1.0.3"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/networks/ergo-explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/ergo-explorer-network",
"version": "2.2.0",
"version": "2.3.0",
"description": "ergo explorer network package for rosen ergo chain",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -24,8 +24,8 @@
"@rosen-bridge/logger-interface": "^0.1.0",
"@rosen-bridge/rosen-extractor": "^1.0.0",
"@rosen-bridge/tokens": "^1.0.0",
"@rosen-chains/abstract-chain": "^2.1.0",
"@rosen-chains/ergo": "^2.2.0",
"@rosen-chains/abstract-chain": "^2.2.0",
"@rosen-chains/ergo": "^2.3.0",
"@rosen-clients/ergo-explorer": "^1.0.2",
"ergo-lib-wasm-nodejs": "^0.24.1",
"it-all": "^3.0.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/networks/ergo-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/ergo-node-network",
"version": "2.2.0",
"version": "2.3.0",
"description": "ergo node network package for rosen ergo chain",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -24,8 +24,8 @@
"@rosen-bridge/logger-interface": "^0.1.0",
"@rosen-bridge/rosen-extractor": "^1.0.0",
"@rosen-bridge/tokens": "^1.0.0",
"@rosen-chains/abstract-chain": "^2.1.0",
"@rosen-chains/ergo": "^2.2.0",
"@rosen-chains/abstract-chain": "^2.2.0",
"@rosen-chains/ergo": "^2.3.0",
"@rosen-clients/ergo-node": "^1.0.3",
"ergo-lib-wasm-nodejs": "^0.24.1",
"it-all": "^3.0.1"
Expand Down

0 comments on commit d7da780

Please sign in to comment.