@gobob/bob-sdk 5.5.1 → 5.5.2
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/gateway/error/gateway-error.d.ts +6 -2
- package/dist/gateway/error/gateway-error.js +1 -0
- package/dist/gateway/error/gateway-error.js.map +1 -1
- package/dist/gateway/generated-client/models/GatewayErrorCodeV2Variants.d.ts +1 -0
- package/dist/gateway/generated-client/models/GatewayErrorCodeV2Variants.js +2 -1
- package/dist/gateway/generated-client/models/GatewayErrorCodeV2Variants.js.map +1 -1
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2.d.ts +10 -17
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2.js +64 -58
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2.js.map +1 -1
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2OneOf.d.ts +10 -0
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2OneOf.js +43 -0
- package/dist/gateway/generated-client/models/GatewayErrorDetailsV2OneOf.js.map +1 -0
- package/dist/gateway/generated-client/models/index.d.ts +1 -0
- package/dist/gateway/generated-client/models/index.js +1 -0
- package/dist/gateway/generated-client/models/index.js.map +1 -1
- package/dist/gateway/utils/common.d.ts +12 -12
- package/package.json +1 -1
|
@@ -3,19 +3,23 @@ import type { GatewayError as GatewayErrorInterface } from '../generated-client/
|
|
|
3
3
|
import { GatewayErrorCode } from '../generated-client/models/GatewayErrorCode';
|
|
4
4
|
export { GatewayErrorCode };
|
|
5
5
|
export type InsufficientAmountDetails = GatewayErrorDetailsOneOf;
|
|
6
|
+
export type InsufficientPaymentAmountDetails = GatewayErrorDetailsOneOf;
|
|
6
7
|
export type InsufficientSwapAmountDetails = GatewayErrorDetailsOneOf1;
|
|
7
8
|
export type UnableToCoverFeesDetails = GatewayErrorDetailsOneOf2;
|
|
8
9
|
export type SimulationFailedDetails = GatewayErrorDetailsOneOf3;
|
|
10
|
+
export type GasEstimateFailedDetails = GatewayErrorDetailsOneOf3;
|
|
9
11
|
export type NoRouteDetails = GatewayErrorDetailsOneOf4;
|
|
10
12
|
export type ExceededLimitDetails = GatewayErrorDetailsOneOf5;
|
|
13
|
+
export type InsufficientSolverBalanceDetails = GatewayErrorDetailsOneOf5;
|
|
11
14
|
export type QuoteAmountTooLowDetails = GatewayErrorDetailsOneOf6;
|
|
12
15
|
export type GatewayErrorDetailsMap = {
|
|
13
16
|
[GatewayErrorCode.InsufficientAmount]: InsufficientAmountDetails;
|
|
14
|
-
[GatewayErrorCode.
|
|
17
|
+
[GatewayErrorCode.InsufficientSolverBalance]: InsufficientSolverBalanceDetails;
|
|
18
|
+
[GatewayErrorCode.InsufficientPaymentAmount]: InsufficientPaymentAmountDetails;
|
|
15
19
|
[GatewayErrorCode.InsufficientSwapAmount]: InsufficientSwapAmountDetails;
|
|
16
20
|
[GatewayErrorCode.UnableToCoverFees]: UnableToCoverFeesDetails;
|
|
17
21
|
[GatewayErrorCode.SimulationFailed]: SimulationFailedDetails;
|
|
18
|
-
[GatewayErrorCode.GasEstimateFailed]:
|
|
22
|
+
[GatewayErrorCode.GasEstimateFailed]: GasEstimateFailedDetails;
|
|
19
23
|
[GatewayErrorCode.NoRoute]: NoRouteDetails;
|
|
20
24
|
[GatewayErrorCode.ExceededLimit]: ExceededLimitDetails;
|
|
21
25
|
[GatewayErrorCode.QuoteAmountTooLow]: QuoteAmountTooLowDetails;
|
|
@@ -72,6 +72,7 @@ function parseDetails(code, raw) {
|
|
|
72
72
|
dstChain: String(raw?.dst_chain ?? ''),
|
|
73
73
|
dstToken: String(raw?.dst_token ?? ''),
|
|
74
74
|
};
|
|
75
|
+
case GatewayErrorCode_1.GatewayErrorCode.InsufficientSolverBalance:
|
|
75
76
|
case GatewayErrorCode_1.GatewayErrorCode.ExceededLimit:
|
|
76
77
|
return {
|
|
77
78
|
limit: String(raw?.limit ?? ''),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway-error.js","sourceRoot":"","sources":["../../../src/gateway/error/gateway-error.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"gateway-error.js","sourceRoot":"","sources":["../../../src/gateway/error/gateway-error.ts"],"names":[],"mappings":";;;AAuMA,wCAEC;AA/LD,0EAAiF;AACjF,kFAA+E;AAEtE,iGAFA,mCAAgB,OAEA;AA4FzB,MAAa,YACT,SAAQ,KAAK;IAIJ,IAAI,CAAI;IAMR,KAAK,CAAS;IAOd,OAAO,CAAgB;IAEhC,YAAY,IAAO,EAAE,OAAe,EAAE,OAAsB,EAAE,OAAsB;QAChF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAYD,MAAM,CAAC,YAAY,CAAC,IAAoC;QACpD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpC,OAAO,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,IAAI,GAAG,IAA+B,CAAC;QAE7C,IAAI,CAAC,IAAA,qCAAsB,EAAC,IAAI,CAAC,EAAE,CAAC;YAChC,MAAM,OAAO,GACT,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC1B,CAAC,CAAC,IAAI,CAAC,KAAK;gBACZ,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;oBAChC,CAAC,CAAC,IAAI,CAAC,OAAO;oBACd,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACjC,OAAO,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM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
3
4
|
};
|
|
4
5
|
export type GatewayErrorCodeV2Variants = typeof GatewayErrorCodeV2Variants[keyof typeof GatewayErrorCodeV2Variants];
|
|
5
6
|
export declare function instanceOfGatewayErrorCodeV2Variants(value: any): boolean;
|
|
@@ -7,7 +7,8 @@ exports.GatewayErrorCodeV2VariantsFromJSONTyped = GatewayErrorCodeV2VariantsFrom
|
|
|
7
7
|
exports.GatewayErrorCodeV2VariantsToJSON = GatewayErrorCodeV2VariantsToJSON;
|
|
8
8
|
exports.GatewayErrorCodeV2VariantsToJSONTyped = GatewayErrorCodeV2VariantsToJSONTyped;
|
|
9
9
|
exports.GatewayErrorCodeV2Variants = {
|
|
10
|
-
InvalidCursor: 'INVALID_CURSOR'
|
|
10
|
+
InvalidCursor: 'INVALID_CURSOR',
|
|
11
|
+
InsufficientSolverBalance: 'INSUFFICIENT_SOLVER_BALANCE'
|
|
11
12
|
};
|
|
12
13
|
function instanceOfGatewayErrorCodeV2Variants(value) {
|
|
13
14
|
for (const key in exports.GatewayErrorCodeV2Variants) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayErrorCodeV2Variants.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/GatewayErrorCodeV2Variants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"GatewayErrorCodeV2Variants.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/GatewayErrorCodeV2Variants.ts"],"names":[],"mappings":";;;AA0BA,oFASC;AAED,gFAEC;AAED,0FAEC;AAED,4EAEC;AAED,sFAEC;AAhCY,QAAA,0BAA0B,GAAG;IACtC,aAAa,EAAE,gBAAgB;IAC/B,yBAAyB,EAAE,6BAA6B;CAClD,CAAC;AAIX,SAAgB,oCAAoC,CAAC,KAAU;IAC3D,KAAK,MAAM,GAAG,IAAI,kCAA0B,EAAE,CAAC;QAC3C,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,kCAA0B,EAAE,GAAG,CAAC,EAAE,CAAC;YACxE,IAAI,kCAA0B,CAAC,GAA8C,CAAC,KAAK,KAAK,EAAE,CAAC;gBACvF,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,OAAO,IAAkC,CAAC;AAC9C,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAyC;IACtF,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAU,EAAE,mBAA4B;IAC1F,OAAO,KAAmC,CAAC;AAC/C,CAAC"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
dstToken: string;
|
|
11
|
-
srcChain: string;
|
|
12
|
-
srcToken: string;
|
|
13
|
-
limit: string;
|
|
14
|
-
minimum: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function instanceOfGatewayErrorDetailsV2(value: object): value is GatewayErrorDetailsV2;
|
|
1
|
+
import type { GatewayErrorDetailsOneOf } from './GatewayErrorDetailsOneOf';
|
|
2
|
+
import type { GatewayErrorDetailsOneOf1 } from './GatewayErrorDetailsOneOf1';
|
|
3
|
+
import type { GatewayErrorDetailsOneOf2 } from './GatewayErrorDetailsOneOf2';
|
|
4
|
+
import type { GatewayErrorDetailsOneOf3 } from './GatewayErrorDetailsOneOf3';
|
|
5
|
+
import type { GatewayErrorDetailsOneOf4 } from './GatewayErrorDetailsOneOf4';
|
|
6
|
+
import type { GatewayErrorDetailsOneOf5 } from './GatewayErrorDetailsOneOf5';
|
|
7
|
+
import type { GatewayErrorDetailsOneOf6 } from './GatewayErrorDetailsOneOf6';
|
|
8
|
+
import type { GatewayErrorDetailsV2OneOf } from './GatewayErrorDetailsV2OneOf';
|
|
9
|
+
export type GatewayErrorDetailsV2 = GatewayErrorDetailsOneOf | GatewayErrorDetailsOneOf1 | GatewayErrorDetailsOneOf2 | GatewayErrorDetailsOneOf3 | GatewayErrorDetailsOneOf4 | GatewayErrorDetailsOneOf5 | GatewayErrorDetailsOneOf6 | GatewayErrorDetailsV2OneOf;
|
|
17
10
|
export declare function GatewayErrorDetailsV2FromJSON(json: any): GatewayErrorDetailsV2;
|
|
18
11
|
export declare function GatewayErrorDetailsV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayErrorDetailsV2;
|
|
19
|
-
export declare function GatewayErrorDetailsV2ToJSON(json: any):
|
|
12
|
+
export declare function GatewayErrorDetailsV2ToJSON(json: any): any;
|
|
20
13
|
export declare function GatewayErrorDetailsV2ToJSONTyped(value?: GatewayErrorDetailsV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.instanceOfGatewayErrorDetailsV2 = instanceOfGatewayErrorDetailsV2;
|
|
4
3
|
exports.GatewayErrorDetailsV2FromJSON = GatewayErrorDetailsV2FromJSON;
|
|
5
4
|
exports.GatewayErrorDetailsV2FromJSONTyped = GatewayErrorDetailsV2FromJSONTyped;
|
|
6
5
|
exports.GatewayErrorDetailsV2ToJSON = GatewayErrorDetailsV2ToJSON;
|
|
7
6
|
exports.GatewayErrorDetailsV2ToJSONTyped = GatewayErrorDetailsV2ToJSONTyped;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return false;
|
|
17
|
-
if (!('availableAmount' in value) || value['availableAmount'] === undefined)
|
|
18
|
-
return false;
|
|
19
|
-
if (!('totalFees' in value) || value['totalFees'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('dstChain' in value) || value['dstChain'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('dstToken' in value) || value['dstToken'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('srcChain' in value) || value['srcChain'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('srcToken' in value) || value['srcToken'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('limit' in value) || value['limit'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('minimum' in value) || value['minimum'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
7
|
+
const GatewayErrorDetailsOneOf_1 = require("./GatewayErrorDetailsOneOf");
|
|
8
|
+
const GatewayErrorDetailsOneOf1_1 = require("./GatewayErrorDetailsOneOf1");
|
|
9
|
+
const GatewayErrorDetailsOneOf2_1 = require("./GatewayErrorDetailsOneOf2");
|
|
10
|
+
const GatewayErrorDetailsOneOf3_1 = require("./GatewayErrorDetailsOneOf3");
|
|
11
|
+
const GatewayErrorDetailsOneOf4_1 = require("./GatewayErrorDetailsOneOf4");
|
|
12
|
+
const GatewayErrorDetailsOneOf5_1 = require("./GatewayErrorDetailsOneOf5");
|
|
13
|
+
const GatewayErrorDetailsOneOf6_1 = require("./GatewayErrorDetailsOneOf6");
|
|
14
|
+
const GatewayErrorDetailsV2OneOf_1 = require("./GatewayErrorDetailsV2OneOf");
|
|
35
15
|
function GatewayErrorDetailsV2FromJSON(json) {
|
|
36
16
|
return GatewayErrorDetailsV2FromJSONTyped(json, false);
|
|
37
17
|
}
|
|
@@ -39,21 +19,34 @@ function GatewayErrorDetailsV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
19
|
if (json == null) {
|
|
40
20
|
return json;
|
|
41
21
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
22
|
+
if (typeof json !== 'object') {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
if ((0, GatewayErrorDetailsOneOf_1.instanceOfGatewayErrorDetailsOneOf)(json)) {
|
|
26
|
+
return (0, GatewayErrorDetailsOneOf_1.GatewayErrorDetailsOneOfFromJSONTyped)(json, true);
|
|
27
|
+
}
|
|
28
|
+
if ((0, GatewayErrorDetailsOneOf1_1.instanceOfGatewayErrorDetailsOneOf1)(json)) {
|
|
29
|
+
return (0, GatewayErrorDetailsOneOf1_1.GatewayErrorDetailsOneOf1FromJSONTyped)(json, true);
|
|
30
|
+
}
|
|
31
|
+
if ((0, GatewayErrorDetailsOneOf2_1.instanceOfGatewayErrorDetailsOneOf2)(json)) {
|
|
32
|
+
return (0, GatewayErrorDetailsOneOf2_1.GatewayErrorDetailsOneOf2FromJSONTyped)(json, true);
|
|
33
|
+
}
|
|
34
|
+
if ((0, GatewayErrorDetailsOneOf3_1.instanceOfGatewayErrorDetailsOneOf3)(json)) {
|
|
35
|
+
return (0, GatewayErrorDetailsOneOf3_1.GatewayErrorDetailsOneOf3FromJSONTyped)(json, true);
|
|
36
|
+
}
|
|
37
|
+
if ((0, GatewayErrorDetailsOneOf4_1.instanceOfGatewayErrorDetailsOneOf4)(json)) {
|
|
38
|
+
return (0, GatewayErrorDetailsOneOf4_1.GatewayErrorDetailsOneOf4FromJSONTyped)(json, true);
|
|
39
|
+
}
|
|
40
|
+
if ((0, GatewayErrorDetailsOneOf5_1.instanceOfGatewayErrorDetailsOneOf5)(json)) {
|
|
41
|
+
return (0, GatewayErrorDetailsOneOf5_1.GatewayErrorDetailsOneOf5FromJSONTyped)(json, true);
|
|
42
|
+
}
|
|
43
|
+
if ((0, GatewayErrorDetailsOneOf6_1.instanceOfGatewayErrorDetailsOneOf6)(json)) {
|
|
44
|
+
return (0, GatewayErrorDetailsOneOf6_1.GatewayErrorDetailsOneOf6FromJSONTyped)(json, true);
|
|
45
|
+
}
|
|
46
|
+
if ((0, GatewayErrorDetailsV2OneOf_1.instanceOfGatewayErrorDetailsV2OneOf)(json)) {
|
|
47
|
+
return (0, GatewayErrorDetailsV2OneOf_1.GatewayErrorDetailsV2OneOfFromJSONTyped)(json, true);
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
57
50
|
}
|
|
58
51
|
function GatewayErrorDetailsV2ToJSON(json) {
|
|
59
52
|
return GatewayErrorDetailsV2ToJSONTyped(json, false);
|
|
@@ -62,20 +55,33 @@ function GatewayErrorDetailsV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
55
|
if (value == null) {
|
|
63
56
|
return value;
|
|
64
57
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
58
|
+
if (typeof value !== 'object') {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
if ((0, GatewayErrorDetailsOneOf_1.instanceOfGatewayErrorDetailsOneOf)(value)) {
|
|
62
|
+
return (0, GatewayErrorDetailsOneOf_1.GatewayErrorDetailsOneOfToJSON)(value);
|
|
63
|
+
}
|
|
64
|
+
if ((0, GatewayErrorDetailsOneOf1_1.instanceOfGatewayErrorDetailsOneOf1)(value)) {
|
|
65
|
+
return (0, GatewayErrorDetailsOneOf1_1.GatewayErrorDetailsOneOf1ToJSON)(value);
|
|
66
|
+
}
|
|
67
|
+
if ((0, GatewayErrorDetailsOneOf2_1.instanceOfGatewayErrorDetailsOneOf2)(value)) {
|
|
68
|
+
return (0, GatewayErrorDetailsOneOf2_1.GatewayErrorDetailsOneOf2ToJSON)(value);
|
|
69
|
+
}
|
|
70
|
+
if ((0, GatewayErrorDetailsOneOf3_1.instanceOfGatewayErrorDetailsOneOf3)(value)) {
|
|
71
|
+
return (0, GatewayErrorDetailsOneOf3_1.GatewayErrorDetailsOneOf3ToJSON)(value);
|
|
72
|
+
}
|
|
73
|
+
if ((0, GatewayErrorDetailsOneOf4_1.instanceOfGatewayErrorDetailsOneOf4)(value)) {
|
|
74
|
+
return (0, GatewayErrorDetailsOneOf4_1.GatewayErrorDetailsOneOf4ToJSON)(value);
|
|
75
|
+
}
|
|
76
|
+
if ((0, GatewayErrorDetailsOneOf5_1.instanceOfGatewayErrorDetailsOneOf5)(value)) {
|
|
77
|
+
return (0, GatewayErrorDetailsOneOf5_1.GatewayErrorDetailsOneOf5ToJSON)(value);
|
|
78
|
+
}
|
|
79
|
+
if ((0, GatewayErrorDetailsOneOf6_1.instanceOfGatewayErrorDetailsOneOf6)(value)) {
|
|
80
|
+
return (0, GatewayErrorDetailsOneOf6_1.GatewayErrorDetailsOneOf6ToJSON)(value);
|
|
81
|
+
}
|
|
82
|
+
if ((0, GatewayErrorDetailsV2OneOf_1.instanceOfGatewayErrorDetailsV2OneOf)(value)) {
|
|
83
|
+
return (0, GatewayErrorDetailsV2OneOf_1.GatewayErrorDetailsV2OneOfToJSON)(value);
|
|
84
|
+
}
|
|
85
|
+
return {};
|
|
80
86
|
}
|
|
81
87
|
//# sourceMappingURL=GatewayErrorDetailsV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayErrorDetailsV2.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/GatewayErrorDetailsV2.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"GatewayErrorDetailsV2.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/GatewayErrorDetailsV2.ts"],"names":[],"mappings":";;AAiFA,sEAEC;AAED,gFAgCC;AAED,kEAEC;AAED,4EAgCC;AA5ID,yEAKoC;AAEpC,2EAK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AC,EAAE,CAAC;QAC7C,OAAO,IAAA,2DAA+B,EAAC,KAAkC,CAAC,CAAC;IAC/E,CAAC;IACD,IAAI,IAAA,+DAAmC,EAAC,KAAK,CAAC,EAAE,CAAC;QAC7C,OAAO,IAAA,2DAA+B,EAAC,KAAkC,CAAC,CAAC;IAC/E,CAAC;IACD,IAAI,IAAA,iEAAoC,EAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,OAAO,IAAA,6DAAgC,EAAC,KAAmC,CAAC,CAAC;IACjF,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface GatewayErrorDetailsV2OneOf {
|
|
2
|
+
chainId: string;
|
|
3
|
+
limit: string;
|
|
4
|
+
token: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function instanceOfGatewayErrorDetailsV2OneOf(value: object): value is GatewayErrorDetailsV2OneOf;
|
|
7
|
+
export declare function GatewayErrorDetailsV2OneOfFromJSON(json: any): GatewayErrorDetailsV2OneOf;
|
|
8
|
+
export declare function GatewayErrorDetailsV2OneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewayErrorDetailsV2OneOf;
|
|
9
|
+
export declare function GatewayErrorDetailsV2OneOfToJSON(json: any): GatewayErrorDetailsV2OneOf;
|
|
10
|
+
export declare function GatewayErrorDetailsV2OneOfToJSONTyped(value?: GatewayErrorDetailsV2OneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.instanceOfGatewayErrorDetailsV2OneOf = instanceOfGatewayErrorDetailsV2OneOf;
|
|
4
|
+
exports.GatewayErrorDetailsV2OneOfFromJSON = GatewayErrorDetailsV2OneOfFromJSON;
|
|
5
|
+
exports.GatewayErrorDetailsV2OneOfFromJSONTyped = GatewayErrorDetailsV2OneOfFromJSONTyped;
|
|
6
|
+
exports.GatewayErrorDetailsV2OneOfToJSON = GatewayErrorDetailsV2OneOfToJSON;
|
|
7
|
+
exports.GatewayErrorDetailsV2OneOfToJSONTyped = GatewayErrorDetailsV2OneOfToJSONTyped;
|
|
8
|
+
function instanceOfGatewayErrorDetailsV2OneOf(value) {
|
|
9
|
+
if (!('chainId' in value) || value['chainId'] === undefined)
|
|
10
|
+
return false;
|
|
11
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
12
|
+
return false;
|
|
13
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
function GatewayErrorDetailsV2OneOfFromJSON(json) {
|
|
18
|
+
return GatewayErrorDetailsV2OneOfFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
function GatewayErrorDetailsV2OneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'chainId': json['chain_id'],
|
|
26
|
+
'limit': json['limit'],
|
|
27
|
+
'token': json['token'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function GatewayErrorDetailsV2OneOfToJSON(json) {
|
|
31
|
+
return GatewayErrorDetailsV2OneOfToJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GatewayErrorDetailsV2OneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'chain_id': value['chainId'],
|
|
39
|
+
'limit': value['limit'],
|
|
40
|
+
'token': value['token'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=GatewayErrorDetailsV2OneOf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayErrorDetailsV2OneOf.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/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CAAC;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"}
|
|
@@ -18,6 +18,7 @@ export * from './GatewayErrorDetailsOneOf4';
|
|
|
18
18
|
export * from './GatewayErrorDetailsOneOf5';
|
|
19
19
|
export * from './GatewayErrorDetailsOneOf6';
|
|
20
20
|
export * from './GatewayErrorDetailsV2';
|
|
21
|
+
export * from './GatewayErrorDetailsV2OneOf';
|
|
21
22
|
export * from './GatewayErrorV2';
|
|
22
23
|
export * from './GatewayLayerZeroQuote';
|
|
23
24
|
export * from './GatewayMaxSpendable';
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./GatewayErrorDetailsOneOf4"), exports);
|
|
|
34
34
|
__exportStar(require("./GatewayErrorDetailsOneOf5"), exports);
|
|
35
35
|
__exportStar(require("./GatewayErrorDetailsOneOf6"), exports);
|
|
36
36
|
__exportStar(require("./GatewayErrorDetailsV2"), exports);
|
|
37
|
+
__exportStar(require("./GatewayErrorDetailsV2OneOf"), exports);
|
|
37
38
|
__exportStar(require("./GatewayErrorV2"), exports);
|
|
38
39
|
__exportStar(require("./GatewayLayerZeroQuote"), exports);
|
|
39
40
|
__exportStar(require("./GatewayMaxSpendable"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,gDAA8B;AAC9B,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,6DAA2C;AAC3C,kEAAgD;AAChD,iDAA+B;AAC/B,qDAAmC;AACnC,uDAAqC;AACrC,+DAA6C;AAC7C,wDAAsC;AACtC,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,mDAAiC;AACjC,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,wDAAsC;AACtC,0DAAwC;AACxC,8DAA4C;AAC5C,uDAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,mEAAiD;AACjD,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,uEAAqD;AACrD,wEAAsD;AACtD,iDAA+B;AAC/B,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,4DAA0C;AAC1C,sDAAoC;AACpC,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,4DAA0C;AAC1C,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,2DAAyC;AACzC,iEAA+C;AAC/C,sDAAoC;AACpC,8CAA4B;AAC5B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/generated-client/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,gDAA8B;AAC9B,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,6DAA2C;AAC3C,kEAAgD;AAChD,iDAA+B;AAC/B,qDAAmC;AACnC,uDAAqC;AACrC,+DAA6C;AAC7C,wDAAsC;AACtC,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,mDAAiC;AACjC,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,wDAAsC;AACtC,0DAAwC;AACxC,8DAA4C;AAC5C,uDAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,mEAAiD;AACjD,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,uEAAqD;AACrD,wEAAsD;AACtD,iDAA+B;AAC/B,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,4DAA0C;AAC1C,sDAAoC;AACpC,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,4DAA0C;AAC1C,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,2DAAyC;AACzC,iEAA+C;AAC/C,sDAAoC;AACpC,8CAA4B;AAC5B,2CAAyB"}
|
|
@@ -70,6 +70,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
70
70
|
type: "legacy";
|
|
71
71
|
from: import("viem").Address;
|
|
72
72
|
to: import("viem").Address | null;
|
|
73
|
+
chainId?: number | undefined;
|
|
73
74
|
yParity?: undefined | undefined;
|
|
74
75
|
gas: bigint;
|
|
75
76
|
hash: import("viem").Hash;
|
|
@@ -82,7 +83,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
82
83
|
accessList?: undefined | undefined;
|
|
83
84
|
authorizationList?: undefined | undefined;
|
|
84
85
|
blobVersionedHashes?: undefined | undefined;
|
|
85
|
-
chainId?: number | undefined;
|
|
86
86
|
gasPrice: bigint;
|
|
87
87
|
maxFeePerBlobGas?: undefined | undefined;
|
|
88
88
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -95,6 +95,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
95
95
|
type: "eip2930";
|
|
96
96
|
from: import("viem").Address;
|
|
97
97
|
to: import("viem").Address | null;
|
|
98
|
+
chainId: number;
|
|
98
99
|
yParity: number;
|
|
99
100
|
gas: bigint;
|
|
100
101
|
hash: import("viem").Hash;
|
|
@@ -107,7 +108,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
107
108
|
accessList: import("viem").AccessList;
|
|
108
109
|
authorizationList?: undefined | undefined;
|
|
109
110
|
blobVersionedHashes?: undefined | undefined;
|
|
110
|
-
chainId: number;
|
|
111
111
|
gasPrice: bigint;
|
|
112
112
|
maxFeePerBlobGas?: undefined | undefined;
|
|
113
113
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -120,6 +120,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
120
120
|
type: "eip1559";
|
|
121
121
|
from: import("viem").Address;
|
|
122
122
|
to: import("viem").Address | null;
|
|
123
|
+
chainId: number;
|
|
123
124
|
yParity: number;
|
|
124
125
|
gas: bigint;
|
|
125
126
|
hash: import("viem").Hash;
|
|
@@ -132,7 +133,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
132
133
|
accessList: import("viem").AccessList;
|
|
133
134
|
authorizationList?: undefined | undefined;
|
|
134
135
|
blobVersionedHashes?: undefined | undefined;
|
|
135
|
-
chainId: number;
|
|
136
136
|
gasPrice?: undefined | undefined;
|
|
137
137
|
maxFeePerBlobGas?: undefined | undefined;
|
|
138
138
|
maxFeePerGas: bigint;
|
|
@@ -145,6 +145,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
145
145
|
type: "eip4844";
|
|
146
146
|
from: import("viem").Address;
|
|
147
147
|
to: import("viem").Address | null;
|
|
148
|
+
chainId: number;
|
|
148
149
|
yParity: number;
|
|
149
150
|
gas: bigint;
|
|
150
151
|
hash: import("viem").Hash;
|
|
@@ -157,7 +158,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
157
158
|
accessList: import("viem").AccessList;
|
|
158
159
|
authorizationList?: undefined | undefined;
|
|
159
160
|
blobVersionedHashes: readonly import("viem").Hex[];
|
|
160
|
-
chainId: number;
|
|
161
161
|
gasPrice?: undefined | undefined;
|
|
162
162
|
maxFeePerBlobGas: bigint;
|
|
163
163
|
maxFeePerGas: bigint;
|
|
@@ -170,6 +170,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
170
170
|
type: "eip7702";
|
|
171
171
|
from: import("viem").Address;
|
|
172
172
|
to: import("viem").Address | null;
|
|
173
|
+
chainId: number;
|
|
173
174
|
yParity: number;
|
|
174
175
|
gas: bigint;
|
|
175
176
|
hash: import("viem").Hash;
|
|
@@ -182,7 +183,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
182
183
|
accessList: import("viem").AccessList;
|
|
183
184
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
184
185
|
blobVersionedHashes?: undefined | undefined;
|
|
185
|
-
chainId: number;
|
|
186
186
|
gasPrice?: undefined | undefined;
|
|
187
187
|
maxFeePerBlobGas?: undefined | undefined;
|
|
188
188
|
maxFeePerGas: bigint;
|
|
@@ -220,6 +220,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
220
220
|
type: "legacy";
|
|
221
221
|
from: import("viem").Address;
|
|
222
222
|
to: import("viem").Address | null;
|
|
223
|
+
chainId?: number | undefined;
|
|
223
224
|
yParity?: undefined | undefined;
|
|
224
225
|
gas: bigint;
|
|
225
226
|
hash: import("viem").Hash;
|
|
@@ -232,7 +233,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
232
233
|
accessList?: undefined | undefined;
|
|
233
234
|
authorizationList?: undefined | undefined;
|
|
234
235
|
blobVersionedHashes?: undefined | undefined;
|
|
235
|
-
chainId?: number | undefined;
|
|
236
236
|
gasPrice: bigint;
|
|
237
237
|
maxFeePerBlobGas?: undefined | undefined;
|
|
238
238
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -245,6 +245,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
245
245
|
type: "eip2930";
|
|
246
246
|
from: import("viem").Address;
|
|
247
247
|
to: import("viem").Address | null;
|
|
248
|
+
chainId: number;
|
|
248
249
|
yParity: number;
|
|
249
250
|
gas: bigint;
|
|
250
251
|
hash: import("viem").Hash;
|
|
@@ -257,7 +258,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
257
258
|
accessList: import("viem").AccessList;
|
|
258
259
|
authorizationList?: undefined | undefined;
|
|
259
260
|
blobVersionedHashes?: undefined | undefined;
|
|
260
|
-
chainId: number;
|
|
261
261
|
gasPrice: bigint;
|
|
262
262
|
maxFeePerBlobGas?: undefined | undefined;
|
|
263
263
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -270,6 +270,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
270
270
|
type: "eip1559";
|
|
271
271
|
from: import("viem").Address;
|
|
272
272
|
to: import("viem").Address | null;
|
|
273
|
+
chainId: number;
|
|
273
274
|
yParity: number;
|
|
274
275
|
gas: bigint;
|
|
275
276
|
hash: import("viem").Hash;
|
|
@@ -282,7 +283,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
282
283
|
accessList: import("viem").AccessList;
|
|
283
284
|
authorizationList?: undefined | undefined;
|
|
284
285
|
blobVersionedHashes?: undefined | undefined;
|
|
285
|
-
chainId: number;
|
|
286
286
|
gasPrice?: undefined | undefined;
|
|
287
287
|
maxFeePerBlobGas?: undefined | undefined;
|
|
288
288
|
maxFeePerGas: bigint;
|
|
@@ -295,6 +295,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
295
295
|
type: "eip4844";
|
|
296
296
|
from: import("viem").Address;
|
|
297
297
|
to: import("viem").Address | null;
|
|
298
|
+
chainId: number;
|
|
298
299
|
yParity: number;
|
|
299
300
|
gas: bigint;
|
|
300
301
|
hash: import("viem").Hash;
|
|
@@ -307,7 +308,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
307
308
|
accessList: import("viem").AccessList;
|
|
308
309
|
authorizationList?: undefined | undefined;
|
|
309
310
|
blobVersionedHashes: readonly import("viem").Hex[];
|
|
310
|
-
chainId: number;
|
|
311
311
|
gasPrice?: undefined | undefined;
|
|
312
312
|
maxFeePerBlobGas: bigint;
|
|
313
313
|
maxFeePerGas: bigint;
|
|
@@ -320,6 +320,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
320
320
|
type: "eip7702";
|
|
321
321
|
from: import("viem").Address;
|
|
322
322
|
to: import("viem").Address | null;
|
|
323
|
+
chainId: number;
|
|
323
324
|
yParity: number;
|
|
324
325
|
gas: bigint;
|
|
325
326
|
hash: import("viem").Hash;
|
|
@@ -332,7 +333,6 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
332
333
|
accessList: import("viem").AccessList;
|
|
333
334
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
334
335
|
blobVersionedHashes?: undefined | undefined;
|
|
335
|
-
chainId: number;
|
|
336
336
|
gasPrice?: undefined | undefined;
|
|
337
337
|
maxFeePerBlobGas?: undefined | undefined;
|
|
338
338
|
maxFeePerGas: bigint;
|
|
@@ -3597,7 +3597,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
3597
3597
|
authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
|
|
3598
3598
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
3599
3599
|
chainId?: number | undefined;
|
|
3600
|
-
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
3600
|
+
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<ViemChain, chainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<ViemChain, chainOverride> extends infer T_1 ? T_1 extends import("viem").DeriveChain<ViemChain, chainOverride> ? T_1 extends ViemChain ? {
|
|
3601
3601
|
chain: T_1;
|
|
3602
3602
|
} : {
|
|
3603
3603
|
chain?: undefined;
|
|
@@ -6849,7 +6849,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
6849
6849
|
authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
|
|
6850
6850
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
6851
6851
|
chainId?: number | undefined;
|
|
6852
|
-
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
6852
|
+
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
6853
6853
|
readContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "pure" | "view">, const args extends import("viem").ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: import("viem").ReadContractParameters<abi, functionName, args>) => Promise<import("viem").ReadContractReturnType<abi, functionName, args>>;
|
|
6854
6854
|
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
|
|
6855
6855
|
simulate: <const calls extends readonly unknown[]>(args: import("viem").SimulateBlocksParameters<calls>) => Promise<import("viem").SimulateBlocksReturnType<calls>>;
|