@plutonlabs/sdk 0.0.45-beta → 0.0.47-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.
- package/dist/common/enums/chain_type.enum.d.ts.map +1 -1
- package/dist/common/enums/chain_type.enum.js +3 -1
- package/dist/common/enums/chain_type.enum.js.map +1 -1
- package/dist/common/enums/coin_type.enum.d.ts +3 -1
- package/dist/common/enums/coin_type.enum.d.ts.map +1 -1
- package/dist/common/enums/coin_type.enum.js +2 -0
- package/dist/common/enums/coin_type.enum.js.map +1 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +0 -1
- package/dist/common/index.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/modules/network/domain/dto/index.d.ts +0 -2
- package/dist/modules/network/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/index.js +0 -2
- package/dist/modules/network/domain/dto/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto copy.d.ts +10 -10
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto copy.js +6 -6
- package/dist/modules/token/domain/dto/index.d.ts +0 -1
- package/dist/modules/token/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/index.js +0 -1
- package/dist/modules/token/domain/dto/index.js.map +1 -1
- package/package.json +27 -27
@@ -1 +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,
|
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,cAerD,CAAC"}
|
@@ -11,7 +11,9 @@ const coinTypeToChainType = (coinType) => {
|
|
11
11
|
if (coinType == 60 ||
|
12
12
|
coinType == 8453 ||
|
13
13
|
coinType == 9001 ||
|
14
|
-
coinType == 5000
|
14
|
+
coinType == 5000 ||
|
15
|
+
coinType == 714 ||
|
16
|
+
coinType == 10007) {
|
15
17
|
return ChainType.EVM_BASE;
|
16
18
|
}
|
17
19
|
else if (coinType == 607) {
|
@@ -1 +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,
|
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;QAChB,QAAQ,IAAI,GAAG;QACf,QAAQ,IAAI,KAAK,EACjB,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;AAfW,QAAA,mBAAmB,uBAe9B"}
|
@@ -1 +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"}
|
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;IACb,GAAG,MAAM;IACT,KAAK,QAAQ;CACd"}
|
@@ -8,5 +8,7 @@ var CoinType;
|
|
8
8
|
CoinType[CoinType["ARBITRUM"] = 9001] = "ARBITRUM";
|
9
9
|
CoinType[CoinType["BASE"] = 8453] = "BASE";
|
10
10
|
CoinType[CoinType["MANTLE"] = 5000] = "MANTLE";
|
11
|
+
CoinType[CoinType["BNB"] = 714] = "BNB";
|
12
|
+
CoinType[CoinType["SONIC"] = 10007] = "SONIC";
|
11
13
|
})(CoinType || (exports.CoinType = CoinType = {}));
|
12
14
|
//# sourceMappingURL=coin_type.enum.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coin_type.enum.js","sourceRoot":"","sources":["../../../src/common/enums/coin_type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
1
|
+
{"version":3,"file":"coin_type.enum.js","sourceRoot":"","sources":["../../../src/common/enums/coin_type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,gDAAa,CAAA;IACb,uCAAS,CAAA;IACT,kDAAe,CAAA;IACf,0CAAW,CAAA;IACX,8CAAa,CAAA;IACb,uCAAS,CAAA;IACT,6CAAa,CAAA;AACf,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB"}
|
package/dist/common/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/common/index.js
CHANGED
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./enums"), exports);
|
18
|
-
__exportStar(require("./enums"), exports);
|
19
18
|
__exportStar(require("./utils"), exports);
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
|
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,3 @@
|
|
1
1
|
export * from './common';
|
2
2
|
export * from './modules';
|
3
|
-
import NETWORKS from './seed/networks_seed.json';
|
4
|
-
import TOKENS from './seed/tokens_seed.json';
|
5
|
-
import PLUTON_CONTRACTS from './seed/pluton_contracts_seed.json';
|
6
|
-
export { NETWORKS, TOKENS, PLUTON_CONTRACTS };
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
@@ -13,17 +13,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
|
-
};
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.PLUTON_CONTRACTS = exports.TOKENS = exports.NETWORKS = void 0;
|
21
17
|
__exportStar(require("./common"), exports);
|
22
18
|
__exportStar(require("./modules"), exports);
|
23
|
-
const networks_seed_json_1 = __importDefault(require("./seed/networks_seed.json"));
|
24
|
-
exports.NETWORKS = networks_seed_json_1.default;
|
25
|
-
const tokens_seed_json_1 = __importDefault(require("./seed/tokens_seed.json"));
|
26
|
-
exports.TOKENS = tokens_seed_json_1.default;
|
27
|
-
const pluton_contracts_seed_json_1 = __importDefault(require("./seed/pluton_contracts_seed.json"));
|
28
|
-
exports.PLUTON_CONTRACTS = pluton_contracts_seed_json_1.default;
|
29
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
|
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./network.dto"), exports);
|
18
|
-
__exportStar(require("./network.update.dto"), exports);
|
19
18
|
__exportStar(require("./network_provider.dto"), exports);
|
20
|
-
__exportStar(require("./network_provider.update.dto"), exports);
|
21
19
|
__exportStar(require("./network_tokens_view.dto"), exports);
|
22
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yDAAuC;AACvC,4DAA0C"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { TransactionRequest } from 'ethers';
|
2
|
-
export declare class QuoteSelectedIntentsResponseDto {
|
3
|
-
/**
|
4
|
-
* @description Example description of the response data
|
5
|
-
* @example { "exampleKey": "exampleValue" }
|
6
|
-
*/
|
7
|
-
transaction: {
|
8
|
-
pluton: TransactionRequest;
|
9
|
-
};
|
10
|
-
}
|
1
|
+
import { TransactionRequest } from 'ethers';
|
2
|
+
export declare class QuoteSelectedIntentsResponseDto {
|
3
|
+
/**
|
4
|
+
* @description Example description of the response data
|
5
|
+
* @example { "exampleKey": "exampleValue" }
|
6
|
+
*/
|
7
|
+
transaction: {
|
8
|
+
pluton: TransactionRequest;
|
9
|
+
};
|
10
|
+
}
|
11
11
|
//# sourceMappingURL=quote_selected_intents_resposne.dto%20copy.d.ts.map
|
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.QuoteSelectedIntentsResponseDto = void 0;
|
4
|
-
class QuoteSelectedIntentsResponseDto {
|
5
|
-
}
|
6
|
-
exports.QuoteSelectedIntentsResponseDto = QuoteSelectedIntentsResponseDto;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuoteSelectedIntentsResponseDto = void 0;
|
4
|
+
class QuoteSelectedIntentsResponseDto {
|
5
|
+
}
|
6
|
+
exports.QuoteSelectedIntentsResponseDto = QuoteSelectedIntentsResponseDto;
|
7
7
|
//# sourceMappingURL=quote_selected_intents_resposne.dto%20copy.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./token.dto"), exports);
|
18
|
-
__exportStar(require("./token.update.dto"), exports);
|
19
18
|
__exportStar(require("./token.find.dto"), exports);
|
20
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC"}
|
package/package.json
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
{
|
2
|
-
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "dist/index.js",
|
5
|
-
"types": "dist/index.d.ts",
|
6
|
-
"files": [
|
7
|
-
"dist"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
-
"build": "tsc"
|
12
|
-
},
|
13
|
-
"keywords": [],
|
14
|
-
"author": "",
|
15
|
-
"license": "ISC",
|
16
|
-
"description": "",
|
17
|
-
"devDependencies": {
|
18
|
-
"eslint": "^8.57.1",
|
19
|
-
"prettier": "^3.5.0",
|
20
|
-
"typescript": "^5.7.3"
|
21
|
-
},
|
22
|
-
"dependencies": {
|
23
|
-
"class-transformer": "^0.5.1",
|
24
|
-
"class-validator": "^0.14.1",
|
25
|
-
"ethers": "^6.13.5"
|
26
|
-
}
|
27
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.47-beta",
|
4
|
+
"main": "dist/index.js",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"files": [
|
7
|
+
"dist"
|
8
|
+
],
|
9
|
+
"scripts": {
|
10
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
+
"build": "tsc"
|
12
|
+
},
|
13
|
+
"keywords": [],
|
14
|
+
"author": "",
|
15
|
+
"license": "ISC",
|
16
|
+
"description": "",
|
17
|
+
"devDependencies": {
|
18
|
+
"eslint": "^8.57.1",
|
19
|
+
"prettier": "^3.5.0",
|
20
|
+
"typescript": "^5.7.3"
|
21
|
+
},
|
22
|
+
"dependencies": {
|
23
|
+
"class-transformer": "^0.5.1",
|
24
|
+
"class-validator": "^0.14.1",
|
25
|
+
"ethers": "^6.13.5"
|
26
|
+
}
|
27
|
+
}
|