Skip to content

Commit

Permalink
Merge branch 'release-packages' into 'dev'
Browse files Browse the repository at this point in the history
increase version for release

See merge request ergo/rosen-bridge/rosen-chains!122
  • Loading branch information
zargarzadehm committed Jul 24, 2024
2 parents a6e679e + 46ea3da commit 56f40f3
Show file tree
Hide file tree
Showing 33 changed files with 212 additions and 94 deletions.
File renamed without changes.
5 changes: 0 additions & 5 deletions .changeset/curvy-rings-move.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/honest-pigs-rhyme.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/ninety-bees-attend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-pandas-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/selfish-waves-argue.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/six-jobs-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/unlucky-socks-occur.md

This file was deleted.

54 changes: 27 additions & 27 deletions package-lock.json

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

11 changes: 11 additions & 0 deletions packages/abstract-chain/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @rosen-chains/abstract-chain

## 8.0.0

### Major Changes

- add abstract NATIVE_TOKEN_ID variable
- add RosenTokens to constructor arguments
- consider decimals drop
- every function of `AbstractChain` and `AbstractUtxoChain` gets and returns the wrapped values
- network functions (functions of `AbstractChainNetwork` and `AbstractUtxoChainNetwork`) should still return **the actual values**
- change `getBoxInfo` and `getCoveringBoxes` functions to protected

## 7.0.2

### Patch Changes
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": "7.0.2",
"version": "8.0.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
14 changes: 14 additions & 0 deletions packages/chains/bitcoin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @rosen-chains/bitcoin

## 4.0.0

### Major Changes

- consider decimals drop
- change `getBoxInfo` and `getCoveringBoxes` functions to protected

### Patch Changes

- export bitcoin native token id var
- add NATIVE_TOKEN_ID variable to BitcoinChain
- Updated dependencies
- @rosen-chains/abstract-chain@8.0.0

## 3.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chains/bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/bitcoin",
"version": "3.0.1",
"version": "4.0.0",
"description": "this project contains bitcoin chain for Rosen-bridge",
"repository": "https://github.com/rosen-bridge/rosen-chains",
"license": "GPL-3.0",
Expand Down Expand Up @@ -41,6 +41,6 @@
"bitcoinjs-lib": "^6.1.5"
},
"peerDependencies": {
"@rosen-chains/abstract-chain": "^7.0.2"
"@rosen-chains/abstract-chain": "^8.0.0"
}
}
13 changes: 13 additions & 0 deletions packages/chains/cardano/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @rosen-chains/cardano

## 8.0.0

### Major Changes

- consider decimals drop
- change `getBoxInfo` and `getCoveringBoxes` functions to protected

### Patch Changes

- add NATIVE_TOKEN_ID variable to CardanoChain
- Updated dependencies
- @rosen-chains/abstract-chain@8.0.0

## 7.0.2

### Patch Changes
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": "7.0.2",
"version": "8.0.0",
"description": "this project contains cardano chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down Expand Up @@ -44,7 +44,7 @@
"typescript": "^4.9.5"
},
"peerDependencies": {
"@rosen-chains/abstract-chain": "^7.0.2"
"@rosen-chains/abstract-chain": "^8.0.0"
},
"directories": {
"lib": "lib",
Expand Down
13 changes: 13 additions & 0 deletions packages/chains/ergo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @rosen-chains/ergo

## 8.0.0

### Major Changes

- consider decimals drop
- change `getBoxInfo` and `getCoveringBoxes` functions to protected

### Patch Changes

- add NATIVE_TOKEN_ID variable to ErgoChain
- Updated dependencies
- @rosen-chains/abstract-chain@8.0.0

## 7.0.2

### Patch Changes
Expand Down
8 changes: 7 additions & 1 deletion packages/chains/ergo/lib/ErgoChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,13 +1032,19 @@ class ErgoChain extends AbstractUtxoChain<wasm.Transaction, wasm.ErgoBox> {
if (addBox === false) continue;

const assets = ErgoUtils.getBoxAssets(output);
const wrappedAssets = ChainUtils.wrapAssetBalance(
assets,
this.tokenMap,
this.NATIVE_TOKEN_ID,
this.CHAIN
);
const r4Value = output.register_value(4)?.to_byte_array();

const payment: SinglePayment = {
address: wasm.Address.recreate_from_ergo_tree(
output.ergo_tree()
).to_base58(wasm.NetworkPrefix.Mainnet),
assets: assets,
assets: wrappedAssets,
};
if (r4Value !== undefined)
payment.extra = Buffer.from(r4Value).toString('hex');
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": "7.0.2",
"version": "8.0.0",
"description": "this project contains ergo chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down Expand Up @@ -42,7 +42,7 @@
"typescript": "^4.9.5"
},
"peerDependencies": {
"@rosen-chains/abstract-chain": "^7.0.2"
"@rosen-chains/abstract-chain": "^8.0.0"
},
"directories": {
"lib": "lib",
Expand Down
Loading

0 comments on commit 56f40f3

Please sign in to comment.