@compass-labs/api-sdk 2.1.21-rc.0 → 2.1.22-rc.0
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/commonjs/models/components/aavelooprequest.d.ts +5 -0
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.js +2 -0
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.d.ts +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.js +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.js.map +1 -1
- package/dist/esm/models/components/aavelooprequest.d.ts +5 -0
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/aavelooprequest.js +2 -0
- package/dist/esm/models/components/aavelooprequest.js.map +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.d.ts +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.d.ts.map +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.js +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.js.map +1 -1
- package/docs/models/components/aavelooprequest.md +15 -14
- package/docs/models/operations/responsev1transactionbundleraaveloop.md +11 -3
- package/package.json +1 -1
- package/src/models/components/aavelooprequest.ts +7 -0
- package/src/models/operations/v1transactionbundleraaveloop.ts +3 -3
|
@@ -72,6 +72,10 @@ export type AaveLoopRequest = {
|
|
|
72
72
|
* Whether to use account abstraction for the transaction.
|
|
73
73
|
*/
|
|
74
74
|
isAccountAbstraction?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call.
|
|
77
|
+
*/
|
|
78
|
+
accountOwner?: string | null | undefined;
|
|
75
79
|
};
|
|
76
80
|
/** @internal */
|
|
77
81
|
export declare const AaveLoopRequestChain$outboundSchema: z.ZodNativeEnum<typeof AaveLoopRequestChain>;
|
|
@@ -109,6 +113,7 @@ export type AaveLoopRequest$Outbound = {
|
|
|
109
113
|
loan_to_value: number | string;
|
|
110
114
|
emode_category?: number | null | undefined;
|
|
111
115
|
is_account_abstraction?: boolean | undefined;
|
|
116
|
+
account_owner?: string | null | undefined;
|
|
112
117
|
};
|
|
113
118
|
/** @internal */
|
|
114
119
|
export declare const AaveLoopRequest$outboundSchema: z.ZodType<AaveLoopRequest$Outbound, z.ZodTypeDef, AaveLoopRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7D;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,uBAAuB,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,KAA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AG,SAAS,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CA6Bf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -87,6 +87,7 @@ exports.AaveLoopRequest$outboundSchema = z.object({
|
|
|
87
87
|
loanToValue: z.union([z.number(), z.string()]),
|
|
88
88
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
89
89
|
isAccountAbstraction: z.boolean().optional(),
|
|
90
|
+
accountOwner: z.nullable(z.string()).optional(),
|
|
90
91
|
}).transform((v) => {
|
|
91
92
|
return (0, primitives_js_1.remap)(v, {
|
|
92
93
|
estimateGas: "estimate_gas",
|
|
@@ -98,6 +99,7 @@ exports.AaveLoopRequest$outboundSchema = z.object({
|
|
|
98
99
|
loanToValue: "loan_to_value",
|
|
99
100
|
emodeCategory: "emode_category",
|
|
100
101
|
isAccountAbstraction: "is_account_abstraction",
|
|
102
|
+
accountOwner: "account_owner",
|
|
101
103
|
});
|
|
102
104
|
});
|
|
103
105
|
function aaveLoopRequestToJSON(aaveLoopRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"aavelooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,sEAMC;AAYD,4CAEC;AAYD,4DAMC;AAYD,8CAEC;AAsDD,sDAIC;AA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D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,mBAAmB,EAAE,sBAAsB;QAC3C,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,uBAAuB,EAAE,2BAA2B;QACpD,kBAAkB,EAAE,sBAAsB;QAC1C,WAAW,EAAE,eAAe;QAC5B,aAAa,EAAE,gBAAgB;QAC/B,oBAAoB,EAAE,wBAAwB;QAC9C,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Successful Response
|
|
7
7
|
*/
|
|
8
|
-
export type ResponseV1TransactionBundlerAaveLoop = components.
|
|
8
|
+
export type ResponseV1TransactionBundlerAaveLoop = components.UnsignedTransaction | components.BundlerTransactionResponse;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<ResponseV1TransactionBundlerAaveLoop, z.ZodTypeDef, unknown>;
|
|
11
11
|
export declare function responseV1TransactionBundlerAaveLoopFromJSON(jsonString: string): SafeParseResult<ResponseV1TransactionBundlerAaveLoop, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,0BAA0B,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -43,8 +43,8 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
43
43
|
const components = __importStar(require("../components/index.js"));
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ResponseV1TransactionBundlerAaveLoop$inboundSchema = z.union([
|
|
46
|
+
components.UnsignedTransaction$inboundSchema,
|
|
46
47
|
components.BundlerTransactionResponse$inboundSchema,
|
|
47
|
-
components.BatchedUserOperationsResponse$inboundSchema,
|
|
48
48
|
]);
|
|
49
49
|
function responseV1TransactionBundlerAaveLoopFromJSON(jsonString) {
|
|
50
50
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseV1TransactionBundlerAaveLoop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseV1TransactionBundlerAaveLoop' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,oGASC;AAhCD,0CAA4B;AAC5B,qDAAiD;AAEjD,mEAAqD;AAUrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,oGASC;AAhCD,0CAA4B;AAC5B,qDAAiD;AAEjD,mEAAqD;AAUrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,wCAAwC;CACpD,CAAC,CAAC;AAEH,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -72,6 +72,10 @@ export type AaveLoopRequest = {
|
|
|
72
72
|
* Whether to use account abstraction for the transaction.
|
|
73
73
|
*/
|
|
74
74
|
isAccountAbstraction?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call.
|
|
77
|
+
*/
|
|
78
|
+
accountOwner?: string | null | undefined;
|
|
75
79
|
};
|
|
76
80
|
/** @internal */
|
|
77
81
|
export declare const AaveLoopRequestChain$outboundSchema: z.ZodNativeEnum<typeof AaveLoopRequestChain>;
|
|
@@ -109,6 +113,7 @@ export type AaveLoopRequest$Outbound = {
|
|
|
109
113
|
loan_to_value: number | string;
|
|
110
114
|
emode_category?: number | null | undefined;
|
|
111
115
|
is_account_abstraction?: boolean | undefined;
|
|
116
|
+
account_owner?: string | null | undefined;
|
|
112
117
|
};
|
|
113
118
|
/** @internal */
|
|
114
119
|
export declare const AaveLoopRequest$outboundSchema: z.ZodType<AaveLoopRequest$Outbound, z.ZodTypeDef, AaveLoopRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7D;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,uBAAuB,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"aavelooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAA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AsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CA6Bf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -46,6 +46,7 @@ export const AaveLoopRequest$outboundSchema = z.object({
|
|
|
46
46
|
loanToValue: z.union([z.number(), z.string()]),
|
|
47
47
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
48
48
|
isAccountAbstraction: z.boolean().optional(),
|
|
49
|
+
accountOwner: z.nullable(z.string()).optional(),
|
|
49
50
|
}).transform((v) => {
|
|
50
51
|
return remap$(v, {
|
|
51
52
|
estimateGas: "estimate_gas",
|
|
@@ -57,6 +58,7 @@ export const AaveLoopRequest$outboundSchema = z.object({
|
|
|
57
58
|
loanToValue: "loan_to_value",
|
|
58
59
|
emodeCategory: "emode_category",
|
|
59
60
|
isAccountAbstraction: "is_account_abstraction",
|
|
61
|
+
accountOwner: "account_owner",
|
|
60
62
|
});
|
|
61
63
|
});
|
|
62
64
|
export function aaveLoopRequestToJSON(aaveLoopRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aavelooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/aavelooprequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;I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,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,mBAAmB,EAAE,sBAAsB;QAC3C,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,uBAAuB,EAAE,2BAA2B;QACpD,kBAAkB,EAAE,sBAAsB;QAC1C,WAAW,EAAE,eAAe;QAC5B,aAAa,EAAE,gBAAgB;QAC/B,oBAAoB,EAAE,wBAAwB;QAC9C,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Successful Response
|
|
7
7
|
*/
|
|
8
|
-
export type ResponseV1TransactionBundlerAaveLoop = components.
|
|
8
|
+
export type ResponseV1TransactionBundlerAaveLoop = components.UnsignedTransaction | components.BundlerTransactionResponse;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<ResponseV1TransactionBundlerAaveLoop, z.ZodTypeDef, unknown>;
|
|
11
11
|
export declare function responseV1TransactionBundlerAaveLoopFromJSON(jsonString: string): SafeParseResult<ResponseV1TransactionBundlerAaveLoop, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,0BAA0B,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -6,8 +6,8 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
6
6
|
import * as components from "../components/index.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const ResponseV1TransactionBundlerAaveLoop$inboundSchema = z.union([
|
|
9
|
+
components.UnsignedTransaction$inboundSchema,
|
|
9
10
|
components.BundlerTransactionResponse$inboundSchema,
|
|
10
|
-
components.BatchedUserOperationsResponse$inboundSchema,
|
|
11
11
|
]);
|
|
12
12
|
export function responseV1TransactionBundlerAaveLoopFromJSON(jsonString) {
|
|
13
13
|
return safeParse(jsonString, (x) => ResponseV1TransactionBundlerAaveLoop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseV1TransactionBundlerAaveLoop' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,wCAAwC;CACpD,CAAC,CAAC;AAEH,MAAM,UAAU,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kDAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -31,17 +31,18 @@ let value: AaveLoopRequest = {
|
|
|
31
31
|
|
|
32
32
|
## Fields
|
|
33
33
|
|
|
34
|
-
| Field
|
|
35
|
-
|
|
|
36
|
-
| `chain`
|
|
37
|
-
| `sender`
|
|
38
|
-
| `estimateGas`
|
|
39
|
-
| `signedAuthorization`
|
|
40
|
-
| `collateralToken`
|
|
41
|
-
| `borrowToken`
|
|
42
|
-
| `initialCollateralAmount`
|
|
43
|
-
| `multiplier`
|
|
44
|
-
| `maxSlippagePercent`
|
|
45
|
-
| `loanToValue`
|
|
46
|
-
| `emodeCategory`
|
|
47
|
-
| `isAccountAbstraction`
|
|
34
|
+
| Field | Type | Required | Description | Example |
|
|
35
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
|
+
| `chain` | [components.AaveLoopRequestChain](../../models/components/aavelooprequestchain.md) | :heavy_check_mark: | N/A | |
|
|
37
|
+
| `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | |
|
|
38
|
+
| `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
|
|
39
|
+
| `signedAuthorization` | [components.SignedAuthorization](../../models/components/signedauthorization.md) | :heavy_minus_sign: | EIP-7702 authorization. Required when `is_account_abstraction` is False. | |
|
|
40
|
+
| `collateralToken` | *string* | :heavy_check_mark: | Symbol or address of token to supply to Aave.. | |
|
|
41
|
+
| `borrowToken` | *string* | :heavy_check_mark: | Symbol or address of token to borrow from Aave.. | |
|
|
42
|
+
| `initialCollateralAmount` | *components.InitialCollateralAmount* | :heavy_check_mark: | Amount of collateral token to supply to Aave | |
|
|
43
|
+
| `multiplier` | *components.Multiplier* | :heavy_check_mark: | Leverage multiplier. Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount` | |
|
|
44
|
+
| `maxSlippagePercent` | *components.MaxSlippagePercent* | :heavy_check_mark: | Maximum allowed slippage for token swaps in percentage | |
|
|
45
|
+
| `loanToValue` | *components.LoanToValue* | :heavy_check_mark: | Loan To Value percentage of the loop | |
|
|
46
|
+
| `emodeCategory` | *number* | :heavy_minus_sign: | Aave E-Mode category ID to set before executing the loop. If not provided, E-Mode will not be changed. | |
|
|
47
|
+
| `isAccountAbstraction` | *boolean* | :heavy_minus_sign: | Whether to use account abstraction for the transaction. | false |
|
|
48
|
+
| `accountOwner` | *string* | :heavy_minus_sign: | The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call. | |
|
|
@@ -24,11 +24,19 @@ const value: components.BundlerTransactionResponse = {
|
|
|
24
24
|
};
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
### `components.
|
|
27
|
+
### `components.UnsignedTransaction`
|
|
28
28
|
|
|
29
29
|
```typescript
|
|
30
|
-
const value: components.
|
|
31
|
-
|
|
30
|
+
const value: components.UnsignedTransaction = {
|
|
31
|
+
chainId: "<id>",
|
|
32
|
+
data: "<value>",
|
|
33
|
+
from: "<value>",
|
|
34
|
+
gas: null,
|
|
35
|
+
to: "<value>",
|
|
36
|
+
value: "<value>",
|
|
37
|
+
nonce: "<value>",
|
|
38
|
+
maxFeePerGas: "<value>",
|
|
39
|
+
maxPriorityFeePerGas: "<value>",
|
|
32
40
|
};
|
|
33
41
|
```
|
|
34
42
|
|
package/package.json
CHANGED
|
@@ -87,6 +87,10 @@ export type AaveLoopRequest = {
|
|
|
87
87
|
* Whether to use account abstraction for the transaction.
|
|
88
88
|
*/
|
|
89
89
|
isAccountAbstraction?: boolean | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call.
|
|
92
|
+
*/
|
|
93
|
+
accountOwner?: string | null | undefined;
|
|
90
94
|
};
|
|
91
95
|
|
|
92
96
|
/** @internal */
|
|
@@ -172,6 +176,7 @@ export type AaveLoopRequest$Outbound = {
|
|
|
172
176
|
loan_to_value: number | string;
|
|
173
177
|
emode_category?: number | null | undefined;
|
|
174
178
|
is_account_abstraction?: boolean | undefined;
|
|
179
|
+
account_owner?: string | null | undefined;
|
|
175
180
|
};
|
|
176
181
|
|
|
177
182
|
/** @internal */
|
|
@@ -193,6 +198,7 @@ export const AaveLoopRequest$outboundSchema: z.ZodType<
|
|
|
193
198
|
loanToValue: z.union([z.number(), z.string()]),
|
|
194
199
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
195
200
|
isAccountAbstraction: z.boolean().optional(),
|
|
201
|
+
accountOwner: z.nullable(z.string()).optional(),
|
|
196
202
|
}).transform((v) => {
|
|
197
203
|
return remap$(v, {
|
|
198
204
|
estimateGas: "estimate_gas",
|
|
@@ -204,6 +210,7 @@ export const AaveLoopRequest$outboundSchema: z.ZodType<
|
|
|
204
210
|
loanToValue: "loan_to_value",
|
|
205
211
|
emodeCategory: "emode_category",
|
|
206
212
|
isAccountAbstraction: "is_account_abstraction",
|
|
213
|
+
accountOwner: "account_owner",
|
|
207
214
|
});
|
|
208
215
|
});
|
|
209
216
|
|
|
@@ -12,8 +12,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
* Successful Response
|
|
13
13
|
*/
|
|
14
14
|
export type ResponseV1TransactionBundlerAaveLoop =
|
|
15
|
-
| components.
|
|
16
|
-
| components.
|
|
15
|
+
| components.UnsignedTransaction
|
|
16
|
+
| components.BundlerTransactionResponse;
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
19
19
|
export const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<
|
|
@@ -21,8 +21,8 @@ export const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.union([
|
|
24
|
+
components.UnsignedTransaction$inboundSchema,
|
|
24
25
|
components.BundlerTransactionResponse$inboundSchema,
|
|
25
|
-
components.BatchedUserOperationsResponse$inboundSchema,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
28
|
export function responseV1TransactionBundlerAaveLoopFromJSON(
|