@plutonlabs/sdk 0.0.12-beta → 0.0.13-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/consts/index.d.ts.map +1 -1
- package/dist/common/consts/index.js.map +1 -1
- package/dist/common/enums/index.d.ts +2 -2
- package/dist/common/index.d.ts +4 -4
- package/dist/common/interfaces/IChain.d.ts +1 -1
- package/dist/common/utils/index.d.ts +2 -2
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/network/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/index.js.map +1 -1
- package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts +19 -7
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js +4 -2
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +13 -13
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/index.d.ts +3 -3
- package/dist/modules/quote/domain/dto/quote/index.d.ts +15 -16
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +0 -1
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +1 -6
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +4 -8
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +18 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +44 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +1 -9
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +3 -3
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +0 -9
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +0 -57
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +6 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js +5 -6
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +2 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +5 -8
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +13 -0
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +13 -21
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +4 -7
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.d.ts +4 -4
- package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.js +2 -2
- package/dist/modules/quote/domain/dto/refund/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.d.ts → quote_refund_request.dto.d.ts} +3 -3
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.js → quote_refund_request.dto.js} +9 -7
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_response.dto.d.ts → quote_refund_response.dto.d.ts} +4 -4
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js +37 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +1 -1
- package/dist/modules/quote/domain/index.d.ts +2 -2
- package/dist/modules/swap/domain/dto/index.d.ts +3 -3
- package/dist/modules/swap/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/index.js +3 -3
- package/dist/modules/swap/domain/dto/index.js.map +1 -1
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.d.ts → swap_estimate_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.js → swap_estimate_response.dto.js} +5 -5
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.d.ts → swap_request.dto.d.ts} +3 -3
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.js → swap_request.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_request.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.d.ts → swap_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.js → swap_response.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -0
- package/dist/modules/swap/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/index.js +1 -1
- package/dist/modules/token/domain/dto/index.js.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.d.ts +15 -14
- package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.js +19 -10
- package/dist/modules/token/domain/dto/token.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token.find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token.find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/{network_contract_find_token.dto.js → token.find.dto.js} +9 -10
- package/dist/modules/token/domain/dto/token.find.dto.js.map +1 -0
- package/dist/modules/token/domain/dto/token.update.dto.d.ts +27 -23
- package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.update.dto.js +15 -17
- package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token_find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token_find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/token_find.dto.js +41 -0
- package/dist/modules/token/domain/dto/token_find.dto.js.map +1 -0
- package/dist/seed-data/index.d.ts +1 -0
- package/dist/seed-data/index.d.ts.map +1 -0
- package/dist/seed-data/index.js +2 -0
- package/dist/seed-data/index.js.map +1 -0
- package/dist/seed-data/networks_seed.json +47 -0
- package/dist/seed-data/pluton_contracts_seed.json +1312 -0
- package/dist/seed-data/tokens_seed.json +119 -0
- package/package.json +4 -1
- package/Readme.md +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts +0 -31
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js +0 -53
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +0 -7
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +0 -29
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +0 -1
@@ -0,0 +1,119 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "Ether",
|
4
|
+
"symbol": "ETH",
|
5
|
+
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
6
|
+
"decimals": 18,
|
7
|
+
"img": "https://cryptologos.cc/logos/ethereum-eth-logo.svg",
|
8
|
+
"coinType": 9001,
|
9
|
+
"chainId": 42161
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"name": "Tether USD",
|
13
|
+
"symbol": "USDT",
|
14
|
+
"address": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
15
|
+
"decimals": 6,
|
16
|
+
"img": "https://cryptologos.cc/logos/tether-usdt-logo.svg",
|
17
|
+
"coinType": 9001,
|
18
|
+
"chainId": 42161
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "US Dollor Coin",
|
22
|
+
"symbol": "USDC",
|
23
|
+
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
24
|
+
"decimals": 6,
|
25
|
+
"img": "https://cryptologos.cc/logos/usd-coin-usdc-logo.svg",
|
26
|
+
"coinType": 9001,
|
27
|
+
"chainId": 42161
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"name": "Wrapped BTC",
|
31
|
+
"symbol": "WBTC",
|
32
|
+
"address": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
33
|
+
"decimals": 8,
|
34
|
+
"img": "https://logotyp.us/file/wrapped-bitcoin.svg",
|
35
|
+
"coinType": 9001,
|
36
|
+
"chainId": 42161
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "Ether",
|
40
|
+
"symbol": "ETH",
|
41
|
+
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
42
|
+
"decimals": 18,
|
43
|
+
"img": "https://cryptologos.cc/logos/ethereum-eth-logo.svg",
|
44
|
+
"coinType": 8453,
|
45
|
+
"chainId": 8453
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "Bridged Tether USD",
|
49
|
+
"symbol": "USDT",
|
50
|
+
"address": "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
|
51
|
+
"decimals": 6,
|
52
|
+
"img": "https://cryptologos.cc/logos/tether-usdt-logo.svg",
|
53
|
+
"coinType": 8453,
|
54
|
+
"chainId": 8453
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"name": "US Dollor Coin",
|
58
|
+
"symbol": "USDC",
|
59
|
+
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
60
|
+
"decimals": 6,
|
61
|
+
"img": "https://cryptologos.cc/logos/usd-coin-usdc-logo.svg",
|
62
|
+
"coinType": 8453,
|
63
|
+
"chainId": 8453
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "Brett",
|
67
|
+
"symbol": "BRETT",
|
68
|
+
"address": "0x532f27101965dd16442E59d40670FaF5eBB142E4",
|
69
|
+
"decimals": 18,
|
70
|
+
"img": "https://cryptologos.cc/logos/based-brett-brett-logo.svg",
|
71
|
+
"coinType": 8453,
|
72
|
+
"chainId": 8453
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "Wrapped ETH",
|
76
|
+
"symbol": "WETH",
|
77
|
+
"address": "0x4200000000000000000000000000000000000006",
|
78
|
+
"decimals": 18,
|
79
|
+
"img": "https://zengo.com/wp-content/uploads/wETH_desktop.svg",
|
80
|
+
"coinType": 8453,
|
81
|
+
"chainId": 8453
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "Mantle",
|
85
|
+
"symbol": "MNT",
|
86
|
+
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
87
|
+
"decimals": 18,
|
88
|
+
"img": "https://cryptologos.cc/logos/ethereum-eth-logo.svg",
|
89
|
+
"coinType": 8453,
|
90
|
+
"chainId": 8453
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"name": "Tether USD",
|
94
|
+
"symbol": "USDT",
|
95
|
+
"address": "0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",
|
96
|
+
"decimals": 6,
|
97
|
+
"img": "https://cryptologos.cc/logos/tether-usdt-logo.svg",
|
98
|
+
"coinType": 5000,
|
99
|
+
"chainId": 5000
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"name": "US Dollor Coin",
|
103
|
+
"symbol": "USDC",
|
104
|
+
"address": "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
105
|
+
"decimals": 6,
|
106
|
+
"img": "https://cryptologos.cc/logos/usd-coin-usdc-logo.svg",
|
107
|
+
"coinType": 5000,
|
108
|
+
"chainId": 5000
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"name": "Wrapped Bridged ETH",
|
112
|
+
"symbol": "WETH",
|
113
|
+
"address": "0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111",
|
114
|
+
"decimals": 18,
|
115
|
+
"img": "https://zengo.com/wp-content/uploads/wETH_desktop.svg",
|
116
|
+
"coinType": 5000,
|
117
|
+
"chainId": 5000
|
118
|
+
}
|
119
|
+
]
|
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.13-beta",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"files": [
|
7
7
|
"dist"
|
8
8
|
],
|
9
9
|
"scripts": {
|
10
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
10
11
|
"build": "tsc"
|
11
12
|
},
|
12
13
|
"keywords": [],
|
@@ -14,6 +15,8 @@
|
|
14
15
|
"license": "ISC",
|
15
16
|
"description": "",
|
16
17
|
"devDependencies": {
|
18
|
+
"eslint": "^8.57.1",
|
19
|
+
"prettier": "^3.5.0",
|
17
20
|
"typescript": "^5.7.3"
|
18
21
|
},
|
19
22
|
"dependencies": {
|
package/Readme.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# pluton-sdk
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { QuoteResponseDto } from './quote_response.dto';
|
2
|
-
export declare class QuoteEstimateResponseDto {
|
3
|
-
/**
|
4
|
-
* @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
|
5
|
-
* @example {
|
6
|
-
* [
|
7
|
-
* {
|
8
|
-
* id: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6',
|
9
|
-
* solverId: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29',
|
10
|
-
* intentType: IntentType.BRIDGE,
|
11
|
-
* selectionStatus: 1,
|
12
|
-
* intentRequestId: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2',
|
13
|
-
* },
|
14
|
-
* {
|
15
|
-
* id: 'd30c9a60-9f72-42d3-b7ae-4a2fa05f5b8a',
|
16
|
-
* solverId: '14b8e6f8-6076-4ab9-93e8-dfe27d697f91',
|
17
|
-
* intentType: IntentType.BRIDGE_ESTIMATE,
|
18
|
-
* selectionStatus: 2,
|
19
|
-
* intentRequestId: 'b10c7b1d-59c4-4a99-8452-fb69d9e6da1b',
|
20
|
-
* }
|
21
|
-
* ]
|
22
|
-
* }
|
23
|
-
*/
|
24
|
-
quoteResponse: QuoteResponseDto;
|
25
|
-
/**
|
26
|
-
* @description The estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
27
|
-
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
28
|
-
*/
|
29
|
-
feeEstimate: string;
|
30
|
-
}
|
31
|
-
//# sourceMappingURL=quote_estimate_response.dto.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,qBAAa,wBAAwB;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,EAAE,gBAAgB,CAAC;IAGhC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.QuoteEstimateResponseDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const quote_response_dto_1 = require("./quote_response.dto");
|
15
|
-
class QuoteEstimateResponseDto {
|
16
|
-
}
|
17
|
-
exports.QuoteEstimateResponseDto = QuoteEstimateResponseDto;
|
18
|
-
__decorate([
|
19
|
-
(0, class_validator_1.IsNotEmpty)()
|
20
|
-
/**
|
21
|
-
* @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
|
22
|
-
* @example {
|
23
|
-
* [
|
24
|
-
* {
|
25
|
-
* id: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6',
|
26
|
-
* solverId: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29',
|
27
|
-
* intentType: IntentType.BRIDGE,
|
28
|
-
* selectionStatus: 1,
|
29
|
-
* intentRequestId: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2',
|
30
|
-
* },
|
31
|
-
* {
|
32
|
-
* id: 'd30c9a60-9f72-42d3-b7ae-4a2fa05f5b8a',
|
33
|
-
* solverId: '14b8e6f8-6076-4ab9-93e8-dfe27d697f91',
|
34
|
-
* intentType: IntentType.BRIDGE_ESTIMATE,
|
35
|
-
* selectionStatus: 2,
|
36
|
-
* intentRequestId: 'b10c7b1d-59c4-4a99-8452-fb69d9e6da1b',
|
37
|
-
* }
|
38
|
-
* ]
|
39
|
-
* }
|
40
|
-
*/
|
41
|
-
,
|
42
|
-
__metadata("design:type", quote_response_dto_1.QuoteResponseDto)
|
43
|
-
], QuoteEstimateResponseDto.prototype, "quoteResponse", void 0);
|
44
|
-
__decorate([
|
45
|
-
(0, class_validator_1.IsNotEmpty)()
|
46
|
-
/**
|
47
|
-
* @description The estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
48
|
-
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
49
|
-
*/
|
50
|
-
,
|
51
|
-
__metadata("design:type", String)
|
52
|
-
], QuoteEstimateResponseDto.prototype, "feeEstimate", void 0);
|
53
|
-
//# sourceMappingURL=quote_estimate_response.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,6DAAwD;AAExD,MAAa,wBAAwB;CA+BpC;AA/BD,4DA+BC;AARC;IAtBC,IAAA,4BAAU,GAAE;IACb;;;;;;;;;;;;;;;;;;;;OAoBG;;8BACY,qCAAgB;+DAAC;AAOhC;IALC,IAAA,4BAAU,GAAE;IACb;;;OAGG;;;6DACiB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create_quote_refund_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/create_quote_refund_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,mCAAmC;IAC9C;;;OAGG;IAGH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create_quote_refund_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/create_quote_refund_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,mCAAmC;CAsB/C;AAtBD,kFAsBC;AAfC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iFACoB;AAO7B;IADC,IAAA,4BAAU,GAAE;;oEACG;AAOhB;IADC,IAAA,4BAAU,GAAE;;sEACK"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create_quote_refund_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/create_quote_refund_response.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,oCAAoC;IAC/C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateUserRefundSignatureResponseDto = void 0;
|
4
|
-
class CreateUserRefundSignatureResponseDto {
|
5
|
-
}
|
6
|
-
exports.CreateUserRefundSignatureResponseDto = CreateUserRefundSignatureResponseDto;
|
7
|
-
//# sourceMappingURL=create_quote_refund_response.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create_quote_refund_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/create_quote_refund_response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,oCAAoC;CAwBhD;AAxBD,oFAwBC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_output_estimate_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_output_estimate_response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,qBAAa,mCAAmC;IAC9C;;;OAGG;IAEH,MAAM,EAAE,SAAS,CAAC;CACnB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_output_estimate_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_output_estimate_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,qDAA6C;AAE7C,MAAa,mCAAmC;CAO/C;AAPD,kFAOC;AADC;IADC,IAAA,4BAAU,GAAE;8BACL,sBAAS;mEAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,mBAAmB;IAC9B;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,mBAAmB;CAuB/B;AAvBD,kDAuBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAOhB;IADC,IAAA,0BAAQ,GAAE;;qDACM"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAChC;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"token_swap_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/token_swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,qBAAqB;CAwBjC;AAxBD,sDAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACe"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
export declare class NetworkContractFindTokenDto {
|
2
|
-
constructor(partial: Partial<NetworkContractFindTokenDto>);
|
3
|
-
/**
|
4
|
-
* @description The type of coin for the network contract
|
5
|
-
* @example '0x1234567890abcdef1234567890abcdef12345678'
|
6
|
-
*/
|
7
|
-
contract: string;
|
8
|
-
/**
|
9
|
-
* @description The type of coin for the network contract
|
10
|
-
* @example 60
|
11
|
-
*/
|
12
|
-
coinType: number;
|
13
|
-
/**
|
14
|
-
* @description The ID of the chain for the network contract
|
15
|
-
* @example 1
|
16
|
-
*/
|
17
|
-
chainId: number;
|
18
|
-
static from<T extends {
|
19
|
-
coinType: number;
|
20
|
-
chainId: number;
|
21
|
-
contract: string;
|
22
|
-
}>(obj: T): NetworkContractFindTokenDto;
|
23
|
-
static listFrom<T extends {
|
24
|
-
coinType: number;
|
25
|
-
chainId: number;
|
26
|
-
contract: string;
|
27
|
-
}>(objs: T[]): NetworkContractFindTokenDto[];
|
28
|
-
}
|
29
|
-
//# sourceMappingURL=network_contract_find_token.dto.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"network_contract_find_token.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/network_contract_find_token.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,2BAA2B;gBAC1B,OAAO,EAAE,OAAO,CAAC,2BAA2B,CAAC;IAIzD;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAGjB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;WAEF,IAAI,CAChB,CAAC,SAAS;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,GAAG,EAAE,CAAC,GAAG,2BAA2B;IAKtC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,2BAA2B,EAAE;CAG5C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"network_contract_find_token.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/network_contract_find_token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,2BAA2B;IACtC,YAAY,OAA6C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IA2BM,MAAM,CAAC,IAAI,CAMhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,2BAA2B,CAAC,GAAG,CAAC,CAAC;QACjD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAMb,IAAS;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,2BAA2B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,CAAC;CACF;AAlDD,kEAkDC;AAvCC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACM;AASjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACK"}
|