@plutonlabs/sdk 0.0.17-beta → 0.0.18-beta

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.
@@ -0,0 +1,8 @@
1
+ import { CoinType } from './coin_type.enum';
2
+ export declare enum ChainType {
3
+ NONE = "none",
4
+ EVM_BASE = "evm_base",
5
+ TON_BASE = "ton_base"
6
+ }
7
+ export declare const coinTypeToChainType: (coinType: CoinType) => ChainType;
8
+ //# sourceMappingURL=chain_type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,mBAAmB,aAAc,QAAQ,cAarD,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.coinTypeToChainType = exports.ChainType = void 0;
4
+ var ChainType;
5
+ (function (ChainType) {
6
+ ChainType["NONE"] = "none";
7
+ ChainType["EVM_BASE"] = "evm_base";
8
+ ChainType["TON_BASE"] = "ton_base";
9
+ })(ChainType || (exports.ChainType = ChainType = {}));
10
+ const coinTypeToChainType = (coinType) => {
11
+ if (coinType == 60 ||
12
+ coinType == 8453 ||
13
+ coinType == 9001 ||
14
+ coinType == 5000) {
15
+ return ChainType.EVM_BASE;
16
+ }
17
+ else if (coinType == 607) {
18
+ return ChainType.TON_BASE;
19
+ }
20
+ else {
21
+ return ChainType.NONE;
22
+ }
23
+ };
24
+ exports.coinTypeToChainType = coinTypeToChainType;
25
+ //# sourceMappingURL=chain_type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_type.enum.js","sourceRoot":"","sources":["../../../src/common/enums/chain_type.enum.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAEM,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACxD,IACE,QAAQ,IAAI,EAAE;QACd,QAAQ,IAAI,IAAI;QAChB,QAAQ,IAAI,IAAI;QAChB,QAAQ,IAAI,IAAI,EAChB,CAAC;QACD,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;SAAM,IAAI,QAAQ,IAAI,GAAG,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,OAAO,SAAS,CAAC,IAAI,CAAC;IACxB,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,mBAAmB,uBAa9B"}
@@ -0,0 +1,8 @@
1
+ export declare enum CoinType {
2
+ ETHEREUM = 60,
3
+ TON = 607,
4
+ ARBITRUM = 9001,
5
+ BASE = 8453,
6
+ MANTLE = 5000
7
+ }
8
+ //# sourceMappingURL=coin_type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coin_type.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/coin_type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,QAAQ,KAAK;IACb,GAAG,MAAM;IACT,QAAQ,OAAO;IACf,IAAI,OAAO;IACX,MAAM,OAAO;CACd"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinType = void 0;
4
+ var CoinType;
5
+ (function (CoinType) {
6
+ CoinType[CoinType["ETHEREUM"] = 60] = "ETHEREUM";
7
+ CoinType[CoinType["TON"] = 607] = "TON";
8
+ CoinType[CoinType["ARBITRUM"] = 9001] = "ARBITRUM";
9
+ CoinType[CoinType["BASE"] = 8453] = "BASE";
10
+ CoinType[CoinType["MANTLE"] = 5000] = "MANTLE";
11
+ })(CoinType || (exports.CoinType = CoinType = {}));
12
+ //# sourceMappingURL=coin_type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coin_type.enum.js","sourceRoot":"","sources":["../../../src/common/enums/coin_type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,gDAAa,CAAA;IACb,uCAAS,CAAA;IACT,kDAAe,CAAA;IACf,0CAAW,CAAA;IACX,8CAAa,CAAA;AACf,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
@@ -1,3 +1,5 @@
1
1
  export * from './calc_mode.enum';
2
2
  export * from './intent_type.enum';
3
+ export * from './coin_type.enum';
4
+ export * from './chain_type.enum';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./calc_mode.enum"), exports);
18
18
  __exportStar(require("./intent_type.enum"), exports);
19
+ __exportStar(require("./coin_type.enum"), exports);
20
+ __exportStar(require("./chain_type.enum"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC"}
@@ -1,4 +1,2 @@
1
1
  export * from './provider_protocol_type.enum';
2
- export * from './coin_type.enum';
3
- export * from './chain_type.enum';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -15,6 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./provider_protocol_type.enum"), exports);
18
- __exportStar(require("./coin_type.enum"), exports);
19
- __exportStar(require("./chain_type.enum"), exports);
20
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,mDAAiC;AACjC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plutonlabs/sdk",
3
- "version": "0.0.17-beta",
3
+ "version": "0.0.18-beta",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [