Skip to content

Commit

Permalink
Merge branch 'release-packages' into 'dev'
Browse files Browse the repository at this point in the history
export ethereum constants

See merge request ergo/rosen-bridge/rosen-chains!131
  • Loading branch information
zargarzadehm committed Aug 7, 2024
2 parents 2ab4efe + 7ae88df commit 0fc8876
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 30 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions .changeset/pink-sheep-work.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/tame-pumpkins-work.md

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions packages/chains/bitcoin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run build && npm publish --access public",
"release": "npm run test -- --run && npm run build && npm publish --access public",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"type-check": "tsc --noEmit"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/chains/ethereum/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @rosen-chains/ethereum

## 0.1.1

### Patch Changes

- export ethereum chain and native token constants
13 changes: 4 additions & 9 deletions packages/chains/ethereum/lib/EthereumChain.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { RosenTokens } from '@rosen-bridge/tokens';
import {
AbstractEvmNetwork,
EvmChain,
EvmConfigs,
TssSignFunction,
} from '@rosen-chains/evm';
import { EvmChain } from '@rosen-chains/evm';
import { ETH, ETHEREUM_CHAIN } from './constants';

class EthereumChain extends EvmChain {
CHAIN = 'ethereum';
NATIVE_TOKEN_ID = 'eth';
CHAIN = ETHEREUM_CHAIN;
NATIVE_TOKEN_ID = ETH;
CHAIN_ID = 1n;
}

Expand Down
2 changes: 2 additions & 0 deletions packages/chains/ethereum/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const ETHEREUM_CHAIN = 'ethereum';
export const ETH = 'eth';
1 change: 1 addition & 0 deletions packages/chains/ethereum/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './EthereumChain';
export * from './constants';
2 changes: 1 addition & 1 deletion packages/chains/ethereum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/ethereum",
"version": "0.1.0",
"version": "0.1.1",
"description": "this project contains ethereum chain for Rosen-bridge",
"repository": "https://github.com/rosen-bridge/rosen-chains",
"license": "GPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/chains/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run test -- --run && npm run build && npm publish --access public",
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/bitcoin-esplora/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run build && npm publish --access public",
"release": "npm run test -- --run && npm run build && npm publish --access public",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"type-check": "tsc --noEmit"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/cardano-blockfrost/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run build && npm publish --access public",
"release": "npm run test -- --run && npm run build && npm publish --access public",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"type-check": "tsc --noEmit"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/cardano-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run build && npm publish --access public",
"release": "npm run test -- --run && npm run build && npm publish --access public",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"type-check": "tsc --noEmit",
"generate": "graphql-codegen"
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/ergo-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"build": "tsc --build tsconfig.build.json",
"type-check": "tsc --noEmit",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"coverage": "npm run test -- --coverage",
"release": "npm run test && npm run build && npm publish --access public"
"coverage": "npm run test -- --run --coverage",
"release": "npm run test -- --run && npm run build && npm publish --access public"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/ergo-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"build": "tsc --build tsconfig.build.json",
"type-check": "tsc --noEmit",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"coverage": "npm run test -- --coverage",
"release": "npm run test && npm run build && npm publish --access public"
"coverage": "npm run test -- --run --coverage",
"release": "npm run test -- --run && npm run build && npm publish --access public"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/evm-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"coverage": "npm run test -- --coverage",
"coverage": "npm run test -- --run --coverage",
"lint": "eslint --fix . && npm run prettify",
"prettify": "prettier --write . --ignore-path ./.gitignore",
"release": "npm run build && npm publish --access public",
"release": "npm run test -- --run && npm run build && npm publish --access public",
"test": "NODE_OPTIONS=--loader=extensionless vitest",
"type-check": "tsc --noEmit"
},
Expand Down

0 comments on commit 0fc8876

Please sign in to comment.