@plutonlabs/sdk 0.0.29-beta → 0.0.30-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/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +5 -0
- 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.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts +21 -21
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js +40 -40
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts +28 -28
- package/dist/modules/swap/domain/dto/swap_request.dto.js +36 -36
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts +22 -22
- package/dist/modules/swap/domain/dto/swap_response.dto.js +34 -34
- package/package.json +28 -28
@@ -6,5 +6,10 @@ export declare class QuoteBaseIntentRequestDto {
|
|
6
6
|
* @description Type of intent request
|
7
7
|
*/
|
8
8
|
intentType: IntentType;
|
9
|
+
/**
|
10
|
+
* @example '10000'
|
11
|
+
* @description Estimated gas used
|
12
|
+
*/
|
13
|
+
estimateGas: string;
|
9
14
|
}
|
10
15
|
//# sourceMappingURL=quote_base_intent_request.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,yBAAyB;gBACxB,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC;IAIvD;;;OAGG;IAEH,UAAU,EAAE,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"quote_base_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,yBAAyB;gBACxB,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC;IAIvD;;;OAGG;IAEH,UAAU,EAAE,UAAU,CAAC;IAEvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,kDAAmD;AAEnD,MAAa,yBAAyB;IACpC,YAAY,OAA2C;QACrD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;
|
1
|
+
{"version":3,"file":"quote_base_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,kDAAmD;AAEnD,MAAa,yBAAyB;IACpC,YAAY,OAA2C;QACrD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CAcF;AAjBD,8DAiBC;AAPC;IADC,IAAA,4BAAU,GAAE;;6DACU"}
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
import { QuoteEstimateBridgeIntentRequestDto } from './quote_estimate_bridge_intent_request.dto';
|
2
|
-
export declare class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends QuoteEstimateBridgeIntentRequestDto {
|
3
|
-
constructor(partial: Partial<QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto>);
|
4
|
-
/**
|
5
|
-
* @example 1
|
6
|
-
*/
|
7
|
-
sourceBaseTokenChainId: number;
|
8
|
-
/**
|
9
|
-
* @example 60
|
10
|
-
*/
|
11
|
-
sourceBaseTokenCoinType: number;
|
12
|
-
/**
|
13
|
-
* @example '0xb44146014eD5f7001Ec9b03153950f4129ec7296'
|
14
|
-
* @description address of token contract on source chain, empty if native token
|
15
|
-
*/
|
16
|
-
sourceBaseTokenAddress: string;
|
17
|
-
/**
|
18
|
-
* @example '1000'
|
19
|
-
*/
|
20
|
-
sourceBaseTokenAmount: string;
|
21
|
-
}
|
1
|
+
import { QuoteEstimateBridgeIntentRequestDto } from './quote_estimate_bridge_intent_request.dto';
|
2
|
+
export declare class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends QuoteEstimateBridgeIntentRequestDto {
|
3
|
+
constructor(partial: Partial<QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto>);
|
4
|
+
/**
|
5
|
+
* @example 1
|
6
|
+
*/
|
7
|
+
sourceBaseTokenChainId: number;
|
8
|
+
/**
|
9
|
+
* @example 60
|
10
|
+
*/
|
11
|
+
sourceBaseTokenCoinType: number;
|
12
|
+
/**
|
13
|
+
* @example '0xb44146014eD5f7001Ec9b03153950f4129ec7296'
|
14
|
+
* @description address of token contract on source chain, empty if native token
|
15
|
+
*/
|
16
|
+
sourceBaseTokenAddress: string;
|
17
|
+
/**
|
18
|
+
* @example '1000'
|
19
|
+
*/
|
20
|
+
sourceBaseTokenAmount: string;
|
21
|
+
}
|
22
22
|
//# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.d.ts.map
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js
CHANGED
@@ -1,41 +1,41 @@
|
|
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.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const quote_estimate_bridge_intent_request_dto_1 = require("./quote_estimate_bridge_intent_request.dto");
|
15
|
-
class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends quote_estimate_bridge_intent_request_dto_1.QuoteEstimateBridgeIntentRequestDto {
|
16
|
-
constructor(partial) {
|
17
|
-
super(partial);
|
18
|
-
Object.assign(this, partial);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto;
|
22
|
-
__decorate([
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
24
|
-
(0, class_validator_1.IsNumber)(),
|
25
|
-
__metadata("design:type", Number)
|
26
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenChainId", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
29
|
-
(0, class_validator_1.IsNumber)(),
|
30
|
-
__metadata("design:type", Number)
|
31
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenCoinType", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsString)(),
|
34
|
-
__metadata("design:type", String)
|
35
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAddress", void 0);
|
36
|
-
__decorate([
|
37
|
-
(0, class_validator_1.IsNotEmpty)(),
|
38
|
-
(0, class_validator_1.IsNumber)(),
|
39
|
-
__metadata("design:type", String)
|
40
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAmount", void 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.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const quote_estimate_bridge_intent_request_dto_1 = require("./quote_estimate_bridge_intent_request.dto");
|
15
|
+
class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends quote_estimate_bridge_intent_request_dto_1.QuoteEstimateBridgeIntentRequestDto {
|
16
|
+
constructor(partial) {
|
17
|
+
super(partial);
|
18
|
+
Object.assign(this, partial);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenChainId", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
30
|
+
__metadata("design:type", Number)
|
31
|
+
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenCoinType", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_validator_1.IsString)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAddress", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAmount", void 0);
|
41
41
|
//# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.js.map
|
@@ -1,29 +1,29 @@
|
|
1
|
-
import { CalcMode } from '../../../../common';
|
2
|
-
export declare class SwapBridgeTokenDto {
|
3
|
-
/**
|
4
|
-
* @description The type of coin for the swap
|
5
|
-
* @example 60
|
6
|
-
*/
|
7
|
-
coinType: number;
|
8
|
-
/**
|
9
|
-
* @description The ID of the chain where the swap occurs
|
10
|
-
* @example 1
|
11
|
-
*/
|
12
|
-
chainId: number;
|
13
|
-
/**
|
14
|
-
* @description The address of the contract for the swap
|
15
|
-
* @example '0x1234567890abcdef'
|
16
|
-
*/
|
17
|
-
address: string;
|
18
|
-
}
|
19
|
-
export declare class SwapBridgeEstimateRequestDto {
|
20
|
-
srcToken: SwapBridgeTokenDto;
|
21
|
-
dstToken: SwapBridgeTokenDto;
|
22
|
-
amount: string;
|
23
|
-
calcMode: CalcMode;
|
24
|
-
}
|
25
|
-
export declare class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
|
26
|
-
srcWalletAddress: string;
|
27
|
-
dstWalletAddress: string;
|
28
|
-
}
|
1
|
+
import { CalcMode } from '../../../../common';
|
2
|
+
export declare class SwapBridgeTokenDto {
|
3
|
+
/**
|
4
|
+
* @description The type of coin for the swap
|
5
|
+
* @example 60
|
6
|
+
*/
|
7
|
+
coinType: number;
|
8
|
+
/**
|
9
|
+
* @description The ID of the chain where the swap occurs
|
10
|
+
* @example 1
|
11
|
+
*/
|
12
|
+
chainId: number;
|
13
|
+
/**
|
14
|
+
* @description The address of the contract for the swap
|
15
|
+
* @example '0x1234567890abcdef'
|
16
|
+
*/
|
17
|
+
address: string;
|
18
|
+
}
|
19
|
+
export declare class SwapBridgeEstimateRequestDto {
|
20
|
+
srcToken: SwapBridgeTokenDto;
|
21
|
+
dstToken: SwapBridgeTokenDto;
|
22
|
+
amount: string;
|
23
|
+
calcMode: CalcMode;
|
24
|
+
}
|
25
|
+
export declare class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
|
26
|
+
srcWalletAddress: string;
|
27
|
+
dstWalletAddress: string;
|
28
|
+
}
|
29
29
|
//# sourceMappingURL=swap_request.dto.d.ts.map
|
@@ -1,37 +1,37 @@
|
|
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.SwapBridgeCalldataRequestDto = exports.SwapBridgeEstimateRequestDto = exports.SwapBridgeTokenDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
class SwapBridgeTokenDto {
|
15
|
-
}
|
16
|
-
exports.SwapBridgeTokenDto = SwapBridgeTokenDto;
|
17
|
-
__decorate([
|
18
|
-
(0, class_validator_1.IsNotEmpty)(),
|
19
|
-
(0, class_validator_1.IsNumber)(),
|
20
|
-
__metadata("design:type", Number)
|
21
|
-
], SwapBridgeTokenDto.prototype, "coinType", void 0);
|
22
|
-
__decorate([
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
24
|
-
(0, class_validator_1.IsNumber)(),
|
25
|
-
__metadata("design:type", Number)
|
26
|
-
], SwapBridgeTokenDto.prototype, "chainId", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsString)(),
|
29
|
-
__metadata("design:type", String)
|
30
|
-
], SwapBridgeTokenDto.prototype, "address", void 0);
|
31
|
-
class SwapBridgeEstimateRequestDto {
|
32
|
-
}
|
33
|
-
exports.SwapBridgeEstimateRequestDto = SwapBridgeEstimateRequestDto;
|
34
|
-
class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
|
35
|
-
}
|
36
|
-
exports.SwapBridgeCalldataRequestDto = SwapBridgeCalldataRequestDto;
|
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.SwapBridgeCalldataRequestDto = exports.SwapBridgeEstimateRequestDto = exports.SwapBridgeTokenDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SwapBridgeTokenDto {
|
15
|
+
}
|
16
|
+
exports.SwapBridgeTokenDto = SwapBridgeTokenDto;
|
17
|
+
__decorate([
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
20
|
+
__metadata("design:type", Number)
|
21
|
+
], SwapBridgeTokenDto.prototype, "coinType", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], SwapBridgeTokenDto.prototype, "chainId", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsString)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], SwapBridgeTokenDto.prototype, "address", void 0);
|
31
|
+
class SwapBridgeEstimateRequestDto {
|
32
|
+
}
|
33
|
+
exports.SwapBridgeEstimateRequestDto = SwapBridgeEstimateRequestDto;
|
34
|
+
class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
|
35
|
+
}
|
36
|
+
exports.SwapBridgeCalldataRequestDto = SwapBridgeCalldataRequestDto;
|
37
37
|
//# sourceMappingURL=swap_request.dto.js.map
|
@@ -1,23 +1,23 @@
|
|
1
|
-
export declare class SwapBridgeCalldataResponsetDto {
|
2
|
-
/**
|
3
|
-
* @description The transaction data for the token swap
|
4
|
-
* @example '0xabcdef...'
|
5
|
-
*/
|
6
|
-
transactionData: string;
|
7
|
-
/**
|
8
|
-
* @description The value of the transaction for the swap
|
9
|
-
* @example '1000'
|
10
|
-
*/
|
11
|
-
transactionValue: string;
|
12
|
-
/**
|
13
|
-
* @description The receiver of the transaction
|
14
|
-
* @example '0x1234567890abcdef'
|
15
|
-
*/
|
16
|
-
transactionReceiver: string;
|
17
|
-
}
|
18
|
-
export declare class SwapBridgeEstimateResponsetDto {
|
19
|
-
amount: string;
|
20
|
-
gasFee: string;
|
21
|
-
fee: string;
|
22
|
-
}
|
1
|
+
export declare class SwapBridgeCalldataResponsetDto {
|
2
|
+
/**
|
3
|
+
* @description The transaction data for the token swap
|
4
|
+
* @example '0xabcdef...'
|
5
|
+
*/
|
6
|
+
transactionData: string;
|
7
|
+
/**
|
8
|
+
* @description The value of the transaction for the swap
|
9
|
+
* @example '1000'
|
10
|
+
*/
|
11
|
+
transactionValue: string;
|
12
|
+
/**
|
13
|
+
* @description The receiver of the transaction
|
14
|
+
* @example '0x1234567890abcdef'
|
15
|
+
*/
|
16
|
+
transactionReceiver: string;
|
17
|
+
}
|
18
|
+
export declare class SwapBridgeEstimateResponsetDto {
|
19
|
+
amount: string;
|
20
|
+
gasFee: string;
|
21
|
+
fee: string;
|
22
|
+
}
|
23
23
|
//# sourceMappingURL=swap_response.dto.d.ts.map
|
@@ -1,35 +1,35 @@
|
|
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.SwapBridgeEstimateResponsetDto = exports.SwapBridgeCalldataResponsetDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
class SwapBridgeCalldataResponsetDto {
|
15
|
-
}
|
16
|
-
exports.SwapBridgeCalldataResponsetDto = SwapBridgeCalldataResponsetDto;
|
17
|
-
__decorate([
|
18
|
-
(0, class_validator_1.IsString)(),
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
20
|
-
__metadata("design:type", String)
|
21
|
-
], SwapBridgeCalldataResponsetDto.prototype, "transactionData", void 0);
|
22
|
-
__decorate([
|
23
|
-
(0, class_validator_1.IsString)(),
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
25
|
-
__metadata("design:type", String)
|
26
|
-
], SwapBridgeCalldataResponsetDto.prototype, "transactionValue", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsString)(),
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
30
|
-
__metadata("design:type", String)
|
31
|
-
], SwapBridgeCalldataResponsetDto.prototype, "transactionReceiver", void 0);
|
32
|
-
class SwapBridgeEstimateResponsetDto {
|
33
|
-
}
|
34
|
-
exports.SwapBridgeEstimateResponsetDto = SwapBridgeEstimateResponsetDto;
|
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.SwapBridgeEstimateResponsetDto = exports.SwapBridgeCalldataResponsetDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SwapBridgeCalldataResponsetDto {
|
15
|
+
}
|
16
|
+
exports.SwapBridgeCalldataResponsetDto = SwapBridgeCalldataResponsetDto;
|
17
|
+
__decorate([
|
18
|
+
(0, class_validator_1.IsString)(),
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
20
|
+
__metadata("design:type", String)
|
21
|
+
], SwapBridgeCalldataResponsetDto.prototype, "transactionData", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsString)(),
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], SwapBridgeCalldataResponsetDto.prototype, "transactionValue", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsString)(),
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], SwapBridgeCalldataResponsetDto.prototype, "transactionReceiver", void 0);
|
32
|
+
class SwapBridgeEstimateResponsetDto {
|
33
|
+
}
|
34
|
+
exports.SwapBridgeEstimateResponsetDto = SwapBridgeEstimateResponsetDto;
|
35
35
|
//# sourceMappingURL=swap_response.dto.js.map
|
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
|
-
"bignumber.js": "^9.1.2",
|
24
|
-
"class-transformer": "^0.5.1",
|
25
|
-
"class-validator": "^0.14.1",
|
26
|
-
"ethers": "^6.13.5"
|
27
|
-
}
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.30-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
|
+
"bignumber.js": "^9.1.2",
|
24
|
+
"class-transformer": "^0.5.1",
|
25
|
+
"class-validator": "^0.14.1",
|
26
|
+
"ethers": "^6.13.5"
|
27
|
+
}
|
28
|
+
}
|