@luxfi/core 10.0.2 → 10.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ export { type default as DepositAddress } from './deposit-address';
4
4
  export { type default as Exchange } from './exchange';
5
5
  export { type default as NetworkType } from './network-type';
6
6
  export { type default as Network } from './network';
7
+ export { NetworkTypes } from './network-type';
7
8
  export { TransactionType } from './transaction-type';
8
9
  export { SwapStatus, swapStatusByIndex, UtilaTransactionStatus, utilaTransactionStatusByIndex } from './swap-status';
9
10
  export type { UTILA_NETWORK, UTILA_TRANSACTION_CREATED, UTILA_TRANSACTION_STATE_UPDATED } from './utila';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/C,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,WAAW,EAAC,MAAO,gBAAgB,CAAA;AAC5D,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAC,MAAO,WAAW,CAAA;AACnD,OAAO,EAAE,eAAe,EAAC,MAAO,oBAAoB,CAAA;AACpD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,eAAe,CAAA;AAEtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/C,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,WAAW,EAAE,MAAO,gBAAgB,CAAA;AAC7D,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,MAAO,WAAW,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAO,oBAAoB,CAAA;AACrD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,eAAe,CAAA;AAEtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,SAAS,CAAA"}
package/dist/cjs/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.utilaTransactionStatusByIndex = exports.UtilaTransactionStatus = exports.swapStatusByIndex = exports.SwapStatus = exports.TransactionType = void 0;
3
+ exports.utilaTransactionStatusByIndex = exports.UtilaTransactionStatus = exports.swapStatusByIndex = exports.SwapStatus = exports.TransactionType = exports.NetworkTypes = void 0;
4
+ var network_type_1 = require("./network-type");
5
+ Object.defineProperty(exports, "NetworkTypes", { enumerable: true, get: function () { return network_type_1.NetworkTypes; } });
4
6
  var transaction_type_1 = require("./transaction-type");
5
7
  Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return transaction_type_1.TransactionType; } });
6
8
  var swap_status_1 = require("./swap-status");
@@ -1,3 +1,14 @@
1
1
  type NetworkType = "evm" | "starknet" | "solana" | "cosmos" | "stark_ex" | "zk_sync_lite" | "ton" | "btc" | "cardano";
2
+ export declare enum NetworkTypes {
3
+ EVM = "evm",
4
+ Starknet = "starknet",
5
+ Solana = "solana",
6
+ Cosmos = "cosmos",
7
+ StarkEx = "stark_ex",
8
+ ZkSyncLite = "zk_sync_lite",
9
+ TON = "ton",
10
+ Bitocoin = "btc",
11
+ Cardano = "cardano"
12
+ }
2
13
  export { type NetworkType as default };
3
14
  //# sourceMappingURL=network-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"network-type.d.ts","sourceRoot":"","sources":["../../types/network-type.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GACd,KAAK,GACH,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,KAAK,GACL,KAAK,GACL,SAAS,CAAA;AAGb,OAAO,EACL,KAAK,WAAW,IAAI,OAAO,EAC5B,CAAA"}
1
+ {"version":3,"file":"network-type.d.ts","sourceRoot":"","sources":["../../types/network-type.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GACd,KAAK,GACH,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,KAAK,GACL,KAAK,GACL,SAAS,CAAA;AAEb,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,UAAU,iBAAiB;IAC3B,GAAG,QAAQ;IACX,QAAQ,QAAQ;IAChB,OAAO,YAAY;CACpB;AAED,OAAO,EACL,KAAK,WAAW,IAAI,OAAO,EAC5B,CAAA"}
@@ -1,2 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NetworkTypes = void 0;
4
+ var NetworkTypes;
5
+ (function (NetworkTypes) {
6
+ NetworkTypes["EVM"] = "evm";
7
+ NetworkTypes["Starknet"] = "starknet";
8
+ NetworkTypes["Solana"] = "solana";
9
+ NetworkTypes["Cosmos"] = "cosmos";
10
+ NetworkTypes["StarkEx"] = "stark_ex";
11
+ NetworkTypes["ZkSyncLite"] = "zk_sync_lite";
12
+ NetworkTypes["TON"] = "ton";
13
+ NetworkTypes["Bitocoin"] = "btc";
14
+ NetworkTypes["Cardano"] = "cardano";
15
+ })(NetworkTypes || (exports.NetworkTypes = NetworkTypes = {}));
@@ -4,6 +4,7 @@ export { type default as DepositAddress } from './deposit-address';
4
4
  export { type default as Exchange } from './exchange';
5
5
  export { type default as NetworkType } from './network-type';
6
6
  export { type default as Network } from './network';
7
+ export { NetworkTypes } from './network-type';
7
8
  export { TransactionType } from './transaction-type';
8
9
  export { SwapStatus, swapStatusByIndex, UtilaTransactionStatus, utilaTransactionStatusByIndex } from './swap-status';
9
10
  export type { UTILA_NETWORK, UTILA_TRANSACTION_CREATED, UTILA_TRANSACTION_STATE_UPDATED } from './utila';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/C,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,WAAW,EAAC,MAAO,gBAAgB,CAAA;AAC5D,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAC,MAAO,WAAW,CAAA;AACnD,OAAO,EAAE,eAAe,EAAC,MAAO,oBAAoB,CAAA;AACpD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,eAAe,CAAA;AAEtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/C,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,KAAK,OAAO,IAAI,WAAW,EAAE,MAAO,gBAAgB,CAAA;AAC7D,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,MAAO,WAAW,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAO,oBAAoB,CAAA;AACrD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,eAAe,CAAA;AAEtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,SAAS,CAAA"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ export { NetworkTypes } from './network-type';
1
2
  export { TransactionType } from './transaction-type';
2
3
  export { SwapStatus, swapStatusByIndex, UtilaTransactionStatus, utilaTransactionStatusByIndex } from './swap-status';
@@ -1,3 +1,14 @@
1
1
  type NetworkType = "evm" | "starknet" | "solana" | "cosmos" | "stark_ex" | "zk_sync_lite" | "ton" | "btc" | "cardano";
2
+ export declare enum NetworkTypes {
3
+ EVM = "evm",
4
+ Starknet = "starknet",
5
+ Solana = "solana",
6
+ Cosmos = "cosmos",
7
+ StarkEx = "stark_ex",
8
+ ZkSyncLite = "zk_sync_lite",
9
+ TON = "ton",
10
+ Bitocoin = "btc",
11
+ Cardano = "cardano"
12
+ }
2
13
  export { type NetworkType as default };
3
14
  //# sourceMappingURL=network-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"network-type.d.ts","sourceRoot":"","sources":["../../types/network-type.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GACd,KAAK,GACH,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,KAAK,GACL,KAAK,GACL,SAAS,CAAA;AAGb,OAAO,EACL,KAAK,WAAW,IAAI,OAAO,EAC5B,CAAA"}
1
+ {"version":3,"file":"network-type.d.ts","sourceRoot":"","sources":["../../types/network-type.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GACd,KAAK,GACH,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,KAAK,GACL,KAAK,GACL,SAAS,CAAA;AAEb,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,UAAU,iBAAiB;IAC3B,GAAG,QAAQ;IACX,QAAQ,QAAQ;IAChB,OAAO,YAAY;CACpB;AAED,OAAO,EACL,KAAK,WAAW,IAAI,OAAO,EAC5B,CAAA"}
@@ -1 +1,12 @@
1
- export {};
1
+ export var NetworkTypes;
2
+ (function (NetworkTypes) {
3
+ NetworkTypes["EVM"] = "evm";
4
+ NetworkTypes["Starknet"] = "starknet";
5
+ NetworkTypes["Solana"] = "solana";
6
+ NetworkTypes["Cosmos"] = "cosmos";
7
+ NetworkTypes["StarkEx"] = "stark_ex";
8
+ NetworkTypes["ZkSyncLite"] = "zk_sync_lite";
9
+ NetworkTypes["TON"] = "ton";
10
+ NetworkTypes["Bitocoin"] = "btc";
11
+ NetworkTypes["Cardano"] = "cardano";
12
+ })(NetworkTypes || (NetworkTypes = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/core",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "description": "Core types and shared utilities related to blockchain",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
package/types/index.ts CHANGED
@@ -3,9 +3,10 @@ export { type default as Asset } from './asset'
3
3
  export type { Contract, Contracts } from './contract'
4
4
  export { type default as DepositAddress} from './deposit-address'
5
5
  export { type default as Exchange } from './exchange'
6
- export { type default as NetworkType} from './network-type'
7
- export { type default as Network} from './network'
8
- export { TransactionType} from './transaction-type'
6
+ export { type default as NetworkType } from './network-type'
7
+ export { type default as Network } from './network'
8
+ export { NetworkTypes } from './network-type'
9
+ export { TransactionType } from './transaction-type'
9
10
  export {
10
11
  SwapStatus,
11
12
  swapStatusByIndex,
@@ -8,7 +8,18 @@ type NetworkType =
8
8
  | "ton"
9
9
  | "btc"
10
10
  | "cardano"
11
-
11
+
12
+ export enum NetworkTypes {
13
+ EVM = "evm",
14
+ Starknet = "starknet",
15
+ Solana = "solana",
16
+ Cosmos = "cosmos",
17
+ StarkEx = "stark_ex",
18
+ ZkSyncLite = "zk_sync_lite",
19
+ TON = "ton",
20
+ Bitocoin = "btc",
21
+ Cardano = "cardano",
22
+ }
12
23
 
13
24
  export {
14
25
  type NetworkType as default