@plutonlabs/sdk 0.0.18-beta → 0.0.20-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/modules/swap/domain/dto/swap_response.dto.d.ts +2 -0
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -1
- package/dist/seed/tokens_seed.json +2 -2
- package/package.json +28 -28
- package/README.md +0 -1
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts +0 -9
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts.map +0 -1
- package/dist/modules/network/domain/enums/chain_type.enum.js +0 -25
- package/dist/modules/network/domain/enums/chain_type.enum.js.map +0 -1
- package/dist/modules/network/domain/enums/coin_type.enum.d.ts +0 -8
- package/dist/modules/network/domain/enums/coin_type.enum.d.ts.map +0 -1
- package/dist/modules/network/domain/enums/coin_type.enum.js +0 -12
- package/dist/modules/network/domain/enums/coin_type.enum.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,iCAAiC;IAC5C;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,8BAA8B;IACzC,MAAM,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,iCAAiC;IAC5C;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,8BAA8B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,iCAAiC;CAwB7C;AAxBD,8EAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2EACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACe;AAG9B,MAAa,8BAA8B;
|
1
|
+
{"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,iCAAiC;CAwB7C;AAxBD,8EAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2EACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACe;AAG9B,MAAa,8BAA8B;CAI1C;AAJD,wEAIC"}
|
@@ -104,8 +104,8 @@
|
|
104
104
|
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
105
105
|
"decimals": 18,
|
106
106
|
"img": "https://cryptologos.cc/logos/ethereum-eth-logo.svg",
|
107
|
-
"coinType":
|
108
|
-
"chainId":
|
107
|
+
"coinType": 5000,
|
108
|
+
"chainId": 5000,
|
109
109
|
"isNative": true,
|
110
110
|
"isBase": false
|
111
111
|
},
|
package/package.json
CHANGED
@@ -1,28 +1,28 @@
|
|
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
|
-
"@plutonlabs/sdk": "^0.0.3-beta",
|
24
|
-
"bignumber.js": "^9.1.2",
|
25
|
-
"class-transformer": "^0.5.1",
|
26
|
-
"class-validator": "^0.14.1"
|
27
|
-
}
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.20-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
|
+
"@plutonlabs/sdk": "^0.0.3-beta",
|
24
|
+
"bignumber.js": "^9.1.2",
|
25
|
+
"class-transformer": "^0.5.1",
|
26
|
+
"class-validator": "^0.14.1"
|
27
|
+
}
|
28
|
+
}
|
package/README.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# pluton-sdk
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { CoinType } from './coin_type.enum';
|
2
|
-
declare enum ChainType {
|
3
|
-
NONE = "none",
|
4
|
-
EVM_BASE = "evm_base",
|
5
|
-
TON_BASE = "ton_base"
|
6
|
-
}
|
7
|
-
declare const coinTypeToChainType: (coinType: CoinType) => ChainType;
|
8
|
-
export { ChainType, coinTypeToChainType };
|
9
|
-
//# sourceMappingURL=chain_type.enum.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,aAAK,SAAS;IACZ,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,QAAA,MAAM,mBAAmB,aAAc,QAAQ,cAa9C,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"chain_type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":";;;AAEA,IAAK,SAIJ;AAJD,WAAK,SAAS;IACZ,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAJI,SAAS,yBAAT,SAAS,QAIb;AAED,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACjD,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;AAEkB,kDAAmB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"coin_type.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/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,12 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"coin_type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/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"}
|