@cryptorubic/core 0.4.0 → 0.5.1-alpha-fraxtal.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/core",
3
- "version": "0.4.0",
3
+ "version": "0.5.1-alpha-fraxtal.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "bignumber.js": "9.1.2",
package/src/index.d.ts CHANGED
@@ -37,6 +37,7 @@ export * from './lib/models/api/ws-quote-request.interface';
37
37
  export * from './lib/models/api/ws-quote-response.interface';
38
38
  export * from './lib/models/api/celer-refund-request.interface';
39
39
  export * from './lib/providers/from-backend-cross-chain-providers';
40
+ export * from './lib/providers/backend-onchain-providers';
40
41
  export * from './lib/providers/cross-chain-trade-type';
41
42
  export * from './lib/providers/on-chain-trade-type';
42
43
  export * from './lib/providers/to-backend-cross-chain-providers';
package/src/index.js CHANGED
@@ -44,6 +44,7 @@ tslib_1.__exportStar(require("./lib/models/api/ws-quote-response.interface"), ex
44
44
  tslib_1.__exportStar(require("./lib/models/api/celer-refund-request.interface"), exports);
45
45
  // providers
46
46
  tslib_1.__exportStar(require("./lib/providers/from-backend-cross-chain-providers"), exports);
47
+ tslib_1.__exportStar(require("./lib/providers/backend-onchain-providers"), exports);
47
48
  tslib_1.__exportStar(require("./lib/providers/cross-chain-trade-type"), exports);
48
49
  tslib_1.__exportStar(require("./lib/providers/on-chain-trade-type"), exports);
49
50
  tslib_1.__exportStar(require("./lib/providers/to-backend-cross-chain-providers"), exports);
@@ -146,6 +146,7 @@ declare const BLOCKCHAINS_MAPPING: {
146
146
  readonly BITLAYER: "bitlayer";
147
147
  readonly GRAVITY: "gravity";
148
148
  readonly UNICHAIN_SEPOLIA_TESTNET: "unichain-sepolia-testnet";
149
+ readonly FRAXTAL: "fraxtal";
149
150
  };
150
151
  export declare const TO_BACKEND_BLOCKCHAINS: Record<BlockchainName, BackendBlockchain>;
151
152
  export type BackendBlockchain = (typeof BLOCKCHAINS_MAPPING)[keyof typeof BLOCKCHAINS_MAPPING];
@@ -149,11 +149,12 @@ const BLOCKCHAINS_MAPPING = {
149
149
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: 'bitlayer',
150
150
  [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: 'gravity',
151
151
  [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 'unichain-sepolia-testnet',
152
+ [blockchain_name_1.BLOCKCHAIN_NAME.FRAXTAL]: 'fraxtal',
152
153
  };
153
154
  exports.TO_BACKEND_BLOCKCHAINS = {
154
- ...BLOCKCHAINS_MAPPING,
155
+ ...BLOCKCHAINS_MAPPING
155
156
  };
156
157
  exports.FROM_BACKEND_BLOCKCHAINS = Object.keys(BLOCKCHAINS_MAPPING).reduce((acc, blockchain) => ({
157
158
  ...acc,
158
- [BLOCKCHAINS_MAPPING[blockchain]]: blockchain,
159
+ [BLOCKCHAINS_MAPPING[blockchain]]: blockchain
159
160
  }), {});
@@ -68,6 +68,7 @@ exports.blockchainId = {
68
68
  [blockchain_name_1.BLOCKCHAIN_NAME.BAHAMUT]: 5165,
69
69
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: 200901,
70
70
  [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: 1625,
71
+ [blockchain_name_1.BLOCKCHAIN_NAME.FRAXTAL]: 252,
71
72
  // Tesnents
72
73
  [blockchain_name_1.BLOCKCHAIN_NAME.GOERLI]: 5,
73
74
  [blockchain_name_1.BLOCKCHAIN_NAME.BINANCE_SMART_CHAIN_TESTNET]: 87,
@@ -70,6 +70,7 @@ export declare const EVM_BLOCKCHAIN_NAME: {
70
70
  readonly BAHAMUT: "BAHAMUT";
71
71
  readonly BITLAYER: "BITLAYER";
72
72
  readonly GRAVITY: "GRAVITY";
73
+ readonly FRAXTAL: "FRAXTAL";
73
74
  readonly MUMBAI: "MUMBAI";
74
75
  readonly BINANCE_SMART_CHAIN_TESTNET: "BSCT";
75
76
  readonly GOERLI: "GOERLI";
@@ -293,6 +294,7 @@ export declare const BLOCKCHAIN_NAME: {
293
294
  readonly BAHAMUT: "BAHAMUT";
294
295
  readonly BITLAYER: "BITLAYER";
295
296
  readonly GRAVITY: "GRAVITY";
297
+ readonly FRAXTAL: "FRAXTAL";
296
298
  readonly MUMBAI: "MUMBAI";
297
299
  readonly BINANCE_SMART_CHAIN_TESTNET: "BSCT";
298
300
  readonly GOERLI: "GOERLI";
@@ -12,7 +12,7 @@ exports.TEST_EVM_BLOCKCHAIN_NAME = {
12
12
  BERACHAIN: 'BERACHAIN',
13
13
  BLAST_TESTNET: 'BLAST_TESTNET',
14
14
  HOLESKY: 'HOLESKY',
15
- UNICHAIN_SEPOLIA_TESTNET: 'UNICHAIN_SEPOLIA_TESTNET',
15
+ UNICHAIN_SEPOLIA_TESTNET: 'UNICHAIN_SEPOLIA_TESTNET'
16
16
  };
17
17
  exports.EVM_BLOCKCHAIN_NAME = {
18
18
  ...exports.TEST_EVM_BLOCKCHAIN_NAME,
@@ -74,6 +74,7 @@ exports.EVM_BLOCKCHAIN_NAME = {
74
74
  BAHAMUT: 'BAHAMUT',
75
75
  BITLAYER: 'BITLAYER',
76
76
  GRAVITY: 'GRAVITY',
77
+ FRAXTAL: 'FRAXTAL',
77
78
  };
78
79
  exports.NON_NATIVE_BLOCKCHAIN_NAME = {
79
80
  BITCOIN_CASH: 'BITCOIN_CASH',
@@ -148,7 +149,7 @@ exports.NON_NATIVE_BLOCKCHAIN_NAME = {
148
149
  FILECOIN: 'FILECOIN',
149
150
  EOS: 'EOS',
150
151
  ONTOLOGY: 'ONTOLOGY',
151
- XDC: 'XDC',
152
+ XDC: 'XDC'
152
153
  };
153
154
  exports.BLOCKCHAIN_NAME = {
154
155
  ...exports.EVM_BLOCKCHAIN_NAME,
@@ -156,5 +157,5 @@ exports.BLOCKCHAIN_NAME = {
156
157
  TON: 'TON',
157
158
  SOLANA: 'SOLANA',
158
159
  BITCOIN: 'BITCOIN',
159
- TRON: 'TRON',
160
+ TRON: 'TRON'
160
161
  };
@@ -6,7 +6,7 @@ const chain_type_1 = require("./chain-type");
6
6
  exports.chainTypeStorage = {
7
7
  ...Object.values(blockchain_name_1.EVM_BLOCKCHAIN_NAME).reduce((acc, evmBlockchainName) => ({
8
8
  ...acc,
9
- [evmBlockchainName]: chain_type_1.CHAIN_TYPE.EVM,
9
+ [evmBlockchainName]: chain_type_1.CHAIN_TYPE.EVM
10
10
  }), {}),
11
11
  [blockchain_name_1.BLOCKCHAIN_NAME.SOLANA]: chain_type_1.CHAIN_TYPE.SOLANA,
12
12
  [blockchain_name_1.BLOCKCHAIN_NAME.TRON]: chain_type_1.CHAIN_TYPE.TRON,
@@ -85,5 +85,5 @@ exports.chainTypeStorage = {
85
85
  [blockchain_name_1.BLOCKCHAIN_NAME.ONTOLOGY]: chain_type_1.CHAIN_TYPE.ONTOLOGY,
86
86
  [blockchain_name_1.BLOCKCHAIN_NAME.EOS]: chain_type_1.CHAIN_TYPE.EOS,
87
87
  [blockchain_name_1.BLOCKCHAIN_NAME.FILECOIN]: chain_type_1.CHAIN_TYPE.FILECOIN,
88
- [blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN_CASH]: chain_type_1.CHAIN_TYPE.BITCOIN_CASH,
88
+ [blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN_CASH]: chain_type_1.CHAIN_TYPE.BITCOIN_CASH
89
89
  };
@@ -79,5 +79,5 @@ exports.CHAIN_TYPE = {
79
79
  ONTOLOGY: 'ONTOLOGY',
80
80
  EOS: 'EOS',
81
81
  FILECOIN: 'FILECOIN',
82
- BITCOIN_CASH: 'BITCOIN_CASH',
82
+ BITCOIN_CASH: 'BITCOIN_CASH'
83
83
  };
@@ -57,6 +57,7 @@ exports.wrappedAddress = {
57
57
  [blockchain_name_1.BLOCKCHAIN_NAME.FLARE]: '0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d',
58
58
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f',
59
59
  [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: '0xBB859E225ac8Fb6BE1C7e38D87b767e95Fef0EbD',
60
+ [blockchain_name_1.BLOCKCHAIN_NAME.FRAXTAL]: '0xfc00000000000000000000000000000000000006',
60
61
  // Testnet
61
62
  [blockchain_name_1.BLOCKCHAIN_NAME.GOERLI]: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
62
63
  [blockchain_name_1.BLOCKCHAIN_NAME.SCROLL_SEPOLIA]: '0x5300000000000000000000000000000000000004',