@cryptorubic/core 0.5.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.5.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];
@@ -148,7 +148,8 @@ const BLOCKCHAINS_MAPPING = {
148
148
  [blockchain_name_1.BLOCKCHAIN_NAME.BAHAMUT]: 'bahamut',
149
149
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: 'bitlayer',
150
150
  [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: 'gravity',
151
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 'unichain-sepolia-testnet'
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
155
  ...BLOCKCHAINS_MAPPING
@@ -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,
@@ -83,5 +84,5 @@ exports.blockchainId = {
83
84
  // Non EVN blockchains
84
85
  [blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN]: 5555,
85
86
  [blockchain_name_1.BLOCKCHAIN_NAME.FILECOIN]: 314,
86
- [blockchain_name_1.BLOCKCHAIN_NAME.SOLANA]: 7565164
87
+ [blockchain_name_1.BLOCKCHAIN_NAME.SOLANA]: 7565164,
87
88
  };
@@ -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";
@@ -73,7 +73,8 @@ exports.EVM_BLOCKCHAIN_NAME = {
73
73
  CORE: 'CORE',
74
74
  BAHAMUT: 'BAHAMUT',
75
75
  BITLAYER: 'BITLAYER',
76
- GRAVITY: 'GRAVITY'
76
+ GRAVITY: 'GRAVITY',
77
+ FRAXTAL: 'FRAXTAL',
77
78
  };
78
79
  exports.NON_NATIVE_BLOCKCHAIN_NAME = {
79
80
  BITCOIN_CASH: 'BITCOIN_CASH',
@@ -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',
@@ -65,5 +66,5 @@ exports.wrappedAddress = {
65
66
  [blockchain_name_1.BLOCKCHAIN_NAME.BERACHAIN]: '0x7507c1dc16935B82698e4C63f2746A2fCf994dF8',
66
67
  [blockchain_name_1.BLOCKCHAIN_NAME.BLAST_TESTNET]: '0x4200000000000000000000000000000000000023',
67
68
  [blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: '',
68
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0x4200000000000000000000000000000000000006'
69
+ [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0x4200000000000000000000000000000000000006',
69
70
  };