@dynamic-labs/sdk-api-core 0.0.743 → 0.0.744
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/index.cjs +12 -0
- package/src/index.js +3 -1
- package/src/models/SignMessageWithWaasRequestContextUserOperation.cjs +18 -32
- package/src/models/SignMessageWithWaasRequestContextUserOperation.d.ts +19 -82
- package/src/models/SignMessageWithWaasRequestContextUserOperation.js +19 -33
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperation.cjs +64 -0
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperation.d.ts +118 -0
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperation.js +58 -0
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperationAuthorization.cjs +45 -0
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperationAuthorization.d.ts +63 -0
- package/src/models/SignMessageWithWaasRequestContextUserOperationOperationAuthorization.js +39 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -142,6 +142,7 @@ var ScanWebsiteUrlRequest = require('../models/ScanWebsiteUrlRequest.cjs');
|
|
|
142
142
|
var ScanWebsiteUrlResponse = require('../models/ScanWebsiteUrlResponse.cjs');
|
|
143
143
|
var SdkSettingsRequest = require('../models/SdkSettingsRequest.cjs');
|
|
144
144
|
var SignMessageWithWaasRequest = require('../models/SignMessageWithWaasRequest.cjs');
|
|
145
|
+
require('../models/SignMessageWithWaasRequestContextUserOperation.cjs');
|
|
145
146
|
var SimulateEVMTransactionRequest = require('../models/SimulateEVMTransactionRequest.cjs');
|
|
146
147
|
var SimulateSVMTransactionRequest = require('../models/SimulateSVMTransactionRequest.cjs');
|
|
147
148
|
var SimulateTransactionResponse = require('../models/SimulateTransactionResponse.cjs');
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -138,6 +138,7 @@ import { ScanWebsiteUrlRequestToJSON } from '../models/ScanWebsiteUrlRequest.js'
|
|
|
138
138
|
import { ScanWebsiteUrlResponseFromJSON } from '../models/ScanWebsiteUrlResponse.js';
|
|
139
139
|
import { SdkSettingsRequestToJSON } from '../models/SdkSettingsRequest.js';
|
|
140
140
|
import { SignMessageWithWaasRequestToJSON } from '../models/SignMessageWithWaasRequest.js';
|
|
141
|
+
import '../models/SignMessageWithWaasRequestContextUserOperation.js';
|
|
141
142
|
import { SimulateEVMTransactionRequestToJSON } from '../models/SimulateEVMTransactionRequest.js';
|
|
142
143
|
import { SimulateSVMTransactionRequestToJSON } from '../models/SimulateSVMTransactionRequest.js';
|
|
143
144
|
import { SimulateTransactionResponseFromJSON } from '../models/SimulateTransactionResponse.js';
|
package/src/index.cjs
CHANGED
|
@@ -260,6 +260,8 @@ var SignMessageWithWaasRequest = require('./models/SignMessageWithWaasRequest.cj
|
|
|
260
260
|
var SignMessageWithWaasRequestContext = require('./models/SignMessageWithWaasRequestContext.cjs');
|
|
261
261
|
var SignMessageWithWaasRequestContextTransaction = require('./models/SignMessageWithWaasRequestContextTransaction.cjs');
|
|
262
262
|
var SignMessageWithWaasRequestContextUserOperation = require('./models/SignMessageWithWaasRequestContextUserOperation.cjs');
|
|
263
|
+
var SignMessageWithWaasRequestContextUserOperationOperation = require('./models/SignMessageWithWaasRequestContextUserOperationOperation.cjs');
|
|
264
|
+
var SignMessageWithWaasRequestContextUserOperationOperationAuthorization = require('./models/SignMessageWithWaasRequestContextUserOperationOperationAuthorization.cjs');
|
|
263
265
|
var SignTransactionWithWaasRequest = require('./models/SignTransactionWithWaasRequest.cjs');
|
|
264
266
|
var SimulateEVMTransactionRequest = require('./models/SimulateEVMTransactionRequest.cjs');
|
|
265
267
|
var SimulateSVMTransactionRequest = require('./models/SimulateSVMTransactionRequest.cjs');
|
|
@@ -1294,6 +1296,16 @@ exports.SignMessageWithWaasRequestContextTransactionToJSON = SignMessageWithWaas
|
|
|
1294
1296
|
exports.SignMessageWithWaasRequestContextUserOperationFromJSON = SignMessageWithWaasRequestContextUserOperation.SignMessageWithWaasRequestContextUserOperationFromJSON;
|
|
1295
1297
|
exports.SignMessageWithWaasRequestContextUserOperationFromJSONTyped = SignMessageWithWaasRequestContextUserOperation.SignMessageWithWaasRequestContextUserOperationFromJSONTyped;
|
|
1296
1298
|
exports.SignMessageWithWaasRequestContextUserOperationToJSON = SignMessageWithWaasRequestContextUserOperation.SignMessageWithWaasRequestContextUserOperationToJSON;
|
|
1299
|
+
Object.defineProperty(exports, 'SignMessageWithWaasRequestContextUserOperationVersionEnum', {
|
|
1300
|
+
enumerable: true,
|
|
1301
|
+
get: function () { return SignMessageWithWaasRequestContextUserOperation.SignMessageWithWaasRequestContextUserOperationVersionEnum; }
|
|
1302
|
+
});
|
|
1303
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationFromJSON = SignMessageWithWaasRequestContextUserOperationOperation.SignMessageWithWaasRequestContextUserOperationOperationFromJSON;
|
|
1304
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped = SignMessageWithWaasRequestContextUserOperationOperation.SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped;
|
|
1305
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationToJSON = SignMessageWithWaasRequestContextUserOperationOperation.SignMessageWithWaasRequestContextUserOperationOperationToJSON;
|
|
1306
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON = SignMessageWithWaasRequestContextUserOperationOperationAuthorization.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON;
|
|
1307
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped = SignMessageWithWaasRequestContextUserOperationOperationAuthorization.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped;
|
|
1308
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON = SignMessageWithWaasRequestContextUserOperationOperationAuthorization.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON;
|
|
1297
1309
|
exports.SignTransactionWithWaasRequestFromJSON = SignTransactionWithWaasRequest.SignTransactionWithWaasRequestFromJSON;
|
|
1298
1310
|
exports.SignTransactionWithWaasRequestFromJSONTyped = SignTransactionWithWaasRequest.SignTransactionWithWaasRequestFromJSONTyped;
|
|
1299
1311
|
exports.SignTransactionWithWaasRequestToJSON = SignTransactionWithWaasRequest.SignTransactionWithWaasRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -255,7 +255,9 @@ export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJ
|
|
|
255
255
|
export { SignMessageWithWaasRequestFromJSON, SignMessageWithWaasRequestFromJSONTyped, SignMessageWithWaasRequestToJSON } from './models/SignMessageWithWaasRequest.js';
|
|
256
256
|
export { SignMessageWithWaasRequestContextFromJSON, SignMessageWithWaasRequestContextFromJSONTyped, SignMessageWithWaasRequestContextToJSON } from './models/SignMessageWithWaasRequestContext.js';
|
|
257
257
|
export { SignMessageWithWaasRequestContextTransactionFromJSON, SignMessageWithWaasRequestContextTransactionFromJSONTyped, SignMessageWithWaasRequestContextTransactionToJSON } from './models/SignMessageWithWaasRequestContextTransaction.js';
|
|
258
|
-
export { SignMessageWithWaasRequestContextUserOperationFromJSON, SignMessageWithWaasRequestContextUserOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationToJSON } from './models/SignMessageWithWaasRequestContextUserOperation.js';
|
|
258
|
+
export { SignMessageWithWaasRequestContextUserOperationFromJSON, SignMessageWithWaasRequestContextUserOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationToJSON, SignMessageWithWaasRequestContextUserOperationVersionEnum } from './models/SignMessageWithWaasRequestContextUserOperation.js';
|
|
259
|
+
export { SignMessageWithWaasRequestContextUserOperationOperationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationOperationToJSON } from './models/SignMessageWithWaasRequestContextUserOperationOperation.js';
|
|
260
|
+
export { SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON } from './models/SignMessageWithWaasRequestContextUserOperationOperationAuthorization.js';
|
|
259
261
|
export { SignTransactionWithWaasRequestFromJSON, SignTransactionWithWaasRequestFromJSONTyped, SignTransactionWithWaasRequestToJSON } from './models/SignTransactionWithWaasRequest.js';
|
|
260
262
|
export { SimulateEVMTransactionRequestFromJSON, SimulateEVMTransactionRequestFromJSONTyped, SimulateEVMTransactionRequestToJSON } from './models/SimulateEVMTransactionRequest.js';
|
|
261
263
|
export { SimulateSVMTransactionRequestFromJSON, SimulateSVMTransactionRequestFromJSONTyped, SimulateSVMTransactionRequestToJSON } from './models/SimulateSVMTransactionRequest.js';
|
|
@@ -3,8 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var SignMessageWithWaasRequestContextUserOperationOperation = require('./SignMessageWithWaasRequestContextUserOperationOperation.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
9
|
+
/**
|
|
10
|
+
* @export
|
|
11
|
+
* @enum {string}
|
|
12
|
+
*/
|
|
13
|
+
exports.SignMessageWithWaasRequestContextUserOperationVersionEnum = void 0;
|
|
14
|
+
(function (SignMessageWithWaasRequestContextUserOperationVersionEnum) {
|
|
15
|
+
SignMessageWithWaasRequestContextUserOperationVersionEnum["_6"] = "0.6";
|
|
16
|
+
SignMessageWithWaasRequestContextUserOperationVersionEnum["_7"] = "0.7";
|
|
17
|
+
})(exports.SignMessageWithWaasRequestContextUserOperationVersionEnum || (exports.SignMessageWithWaasRequestContextUserOperationVersionEnum = {}));
|
|
8
18
|
function SignMessageWithWaasRequestContextUserOperationFromJSON(json) {
|
|
9
19
|
return SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json);
|
|
10
20
|
}
|
|
@@ -13,22 +23,10 @@ function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json, ignor
|
|
|
13
23
|
return json;
|
|
14
24
|
}
|
|
15
25
|
return {
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'factoryData': !runtime.exists(json, 'factoryData') ? undefined : json['factoryData'],
|
|
21
|
-
'maxFeePerGas': !runtime.exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
22
|
-
'maxPriorityFeePerGas': !runtime.exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
23
|
-
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
24
|
-
'paymaster': !runtime.exists(json, 'paymaster') ? undefined : json['paymaster'],
|
|
25
|
-
'paymasterData': !runtime.exists(json, 'paymasterData') ? undefined : json['paymasterData'],
|
|
26
|
-
'paymasterPostOpGasLimit': !runtime.exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
|
|
27
|
-
'paymasterVerificationGasLimit': !runtime.exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
|
|
28
|
-
'preVerificationGas': !runtime.exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
|
|
29
|
-
'sender': !runtime.exists(json, 'sender') ? undefined : json['sender'],
|
|
30
|
-
'signature': !runtime.exists(json, 'signature') ? undefined : json['signature'],
|
|
31
|
-
'verificationGasLimit': !runtime.exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
|
|
26
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
27
|
+
'entryPoint': !runtime.exists(json, 'entryPoint') ? undefined : json['entryPoint'],
|
|
28
|
+
'version': !runtime.exists(json, 'version') ? undefined : json['version'],
|
|
29
|
+
'operation': !runtime.exists(json, 'operation') ? undefined : SignMessageWithWaasRequestContextUserOperationOperation.SignMessageWithWaasRequestContextUserOperationOperationFromJSON(json['operation']),
|
|
32
30
|
};
|
|
33
31
|
}
|
|
34
32
|
function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
|
|
@@ -39,22 +37,10 @@ function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
|
|
|
39
37
|
return null;
|
|
40
38
|
}
|
|
41
39
|
return {
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'factoryData': value.factoryData,
|
|
47
|
-
'maxFeePerGas': value.maxFeePerGas,
|
|
48
|
-
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
49
|
-
'nonce': value.nonce,
|
|
50
|
-
'paymaster': value.paymaster,
|
|
51
|
-
'paymasterData': value.paymasterData,
|
|
52
|
-
'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
|
|
53
|
-
'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
|
|
54
|
-
'preVerificationGas': value.preVerificationGas,
|
|
55
|
-
'sender': value.sender,
|
|
56
|
-
'signature': value.signature,
|
|
57
|
-
'verificationGasLimit': value.verificationGasLimit,
|
|
40
|
+
'chainId': value.chainId,
|
|
41
|
+
'entryPoint': value.entryPoint,
|
|
42
|
+
'version': value.version,
|
|
43
|
+
'operation': SignMessageWithWaasRequestContextUserOperationOperation.SignMessageWithWaasRequestContextUserOperationOperationToJSON(value.operation),
|
|
58
44
|
};
|
|
59
45
|
}
|
|
60
46
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { SignMessageWithWaasRequestContextUserOperationOperation } from './SignMessageWithWaasRequestContextUserOperationOperation';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -16,101 +17,37 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface SignMessageWithWaasRequestContextUserOperation {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
21
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
22
|
-
*/
|
|
23
|
-
authorization?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The data to pass to the sender during the main execution call
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
28
|
-
*/
|
|
29
|
-
callData?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The amount of gas to allocate the main execution call
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
34
|
-
*/
|
|
35
|
-
callGasLimit?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Account factory address (optional, only for new accounts)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
40
|
-
*/
|
|
41
|
-
factory?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Data for account factory (optional)
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
46
|
-
*/
|
|
47
|
-
factoryData?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Maximum fee per gas
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
52
|
-
*/
|
|
53
|
-
maxFeePerGas?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Maximum priority fee per gas
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
58
|
-
*/
|
|
59
|
-
maxPriorityFeePerGas?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Anti-replay parameter
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
64
|
-
*/
|
|
65
|
-
nonce?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Address of paymaster contract (optional)
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
70
|
-
*/
|
|
71
|
-
paymaster?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Data for paymaster (optional)
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
76
|
-
*/
|
|
77
|
-
paymasterData?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The amount of gas to allocate for the paymaster post-operation code (optional)
|
|
80
|
-
* @type {string}
|
|
20
|
+
* Chain identifier needed for user operation hash calculation
|
|
21
|
+
* @type {number}
|
|
81
22
|
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
82
23
|
*/
|
|
83
|
-
|
|
24
|
+
chainId?: number;
|
|
84
25
|
/**
|
|
85
|
-
*
|
|
26
|
+
* Address of the entry point contract
|
|
86
27
|
* @type {string}
|
|
87
28
|
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
88
29
|
*/
|
|
89
|
-
|
|
30
|
+
entryPoint?: string;
|
|
90
31
|
/**
|
|
91
|
-
*
|
|
32
|
+
* User operation version (e.g., '0.6', '0.7')
|
|
92
33
|
* @type {string}
|
|
93
34
|
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
94
35
|
*/
|
|
95
|
-
|
|
36
|
+
version?: SignMessageWithWaasRequestContextUserOperationVersionEnum;
|
|
96
37
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {
|
|
99
|
-
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
100
|
-
*/
|
|
101
|
-
sender?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Data passed into the account to verify authorization
|
|
104
|
-
* @type {string}
|
|
38
|
+
*
|
|
39
|
+
* @type {SignMessageWithWaasRequestContextUserOperationOperation}
|
|
105
40
|
* @memberof SignMessageWithWaasRequestContextUserOperation
|
|
106
41
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
42
|
+
operation?: SignMessageWithWaasRequestContextUserOperationOperation;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
* @enum {string}
|
|
47
|
+
*/
|
|
48
|
+
export declare enum SignMessageWithWaasRequestContextUserOperationVersionEnum {
|
|
49
|
+
_6 = "0.6",
|
|
50
|
+
_7 = "0.7"
|
|
114
51
|
}
|
|
115
52
|
export declare function SignMessageWithWaasRequestContextUserOperationFromJSON(json: any): SignMessageWithWaasRequestContextUserOperation;
|
|
116
53
|
export declare function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequestContextUserOperation;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { SignMessageWithWaasRequestContextUserOperationOperationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationToJSON } from './SignMessageWithWaasRequestContextUserOperationOperation.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var SignMessageWithWaasRequestContextUserOperationVersionEnum;
|
|
10
|
+
(function (SignMessageWithWaasRequestContextUserOperationVersionEnum) {
|
|
11
|
+
SignMessageWithWaasRequestContextUserOperationVersionEnum["_6"] = "0.6";
|
|
12
|
+
SignMessageWithWaasRequestContextUserOperationVersionEnum["_7"] = "0.7";
|
|
13
|
+
})(SignMessageWithWaasRequestContextUserOperationVersionEnum || (SignMessageWithWaasRequestContextUserOperationVersionEnum = {}));
|
|
4
14
|
function SignMessageWithWaasRequestContextUserOperationFromJSON(json) {
|
|
5
15
|
return SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json);
|
|
6
16
|
}
|
|
@@ -9,22 +19,10 @@ function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json, ignor
|
|
|
9
19
|
return json;
|
|
10
20
|
}
|
|
11
21
|
return {
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'factoryData': !exists(json, 'factoryData') ? undefined : json['factoryData'],
|
|
17
|
-
'maxFeePerGas': !exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
18
|
-
'maxPriorityFeePerGas': !exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
19
|
-
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
20
|
-
'paymaster': !exists(json, 'paymaster') ? undefined : json['paymaster'],
|
|
21
|
-
'paymasterData': !exists(json, 'paymasterData') ? undefined : json['paymasterData'],
|
|
22
|
-
'paymasterPostOpGasLimit': !exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
|
|
23
|
-
'paymasterVerificationGasLimit': !exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
|
|
24
|
-
'preVerificationGas': !exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
|
|
25
|
-
'sender': !exists(json, 'sender') ? undefined : json['sender'],
|
|
26
|
-
'signature': !exists(json, 'signature') ? undefined : json['signature'],
|
|
27
|
-
'verificationGasLimit': !exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
|
|
22
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
23
|
+
'entryPoint': !exists(json, 'entryPoint') ? undefined : json['entryPoint'],
|
|
24
|
+
'version': !exists(json, 'version') ? undefined : json['version'],
|
|
25
|
+
'operation': !exists(json, 'operation') ? undefined : SignMessageWithWaasRequestContextUserOperationOperationFromJSON(json['operation']),
|
|
28
26
|
};
|
|
29
27
|
}
|
|
30
28
|
function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
|
|
@@ -35,23 +33,11 @@ function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
|
|
|
35
33
|
return null;
|
|
36
34
|
}
|
|
37
35
|
return {
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'factoryData': value.factoryData,
|
|
43
|
-
'maxFeePerGas': value.maxFeePerGas,
|
|
44
|
-
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
45
|
-
'nonce': value.nonce,
|
|
46
|
-
'paymaster': value.paymaster,
|
|
47
|
-
'paymasterData': value.paymasterData,
|
|
48
|
-
'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
|
|
49
|
-
'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
|
|
50
|
-
'preVerificationGas': value.preVerificationGas,
|
|
51
|
-
'sender': value.sender,
|
|
52
|
-
'signature': value.signature,
|
|
53
|
-
'verificationGasLimit': value.verificationGasLimit,
|
|
36
|
+
'chainId': value.chainId,
|
|
37
|
+
'entryPoint': value.entryPoint,
|
|
38
|
+
'version': value.version,
|
|
39
|
+
'operation': SignMessageWithWaasRequestContextUserOperationOperationToJSON(value.operation),
|
|
54
40
|
};
|
|
55
41
|
}
|
|
56
42
|
|
|
57
|
-
export { SignMessageWithWaasRequestContextUserOperationFromJSON, SignMessageWithWaasRequestContextUserOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationToJSON };
|
|
43
|
+
export { SignMessageWithWaasRequestContextUserOperationFromJSON, SignMessageWithWaasRequestContextUserOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationToJSON, SignMessageWithWaasRequestContextUserOperationVersionEnum };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var SignMessageWithWaasRequestContextUserOperationOperationAuthorization = require('./SignMessageWithWaasRequestContextUserOperationOperationAuthorization.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function SignMessageWithWaasRequestContextUserOperationOperationFromJSON(json) {
|
|
10
|
+
return SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'authorization': !runtime.exists(json, 'authorization') ? undefined : SignMessageWithWaasRequestContextUserOperationOperationAuthorization.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON(json['authorization']),
|
|
18
|
+
'callData': !runtime.exists(json, 'callData') ? undefined : json['callData'],
|
|
19
|
+
'callGasLimit': !runtime.exists(json, 'callGasLimit') ? undefined : json['callGasLimit'],
|
|
20
|
+
'factory': !runtime.exists(json, 'factory') ? undefined : json['factory'],
|
|
21
|
+
'factoryData': !runtime.exists(json, 'factoryData') ? undefined : json['factoryData'],
|
|
22
|
+
'maxFeePerGas': !runtime.exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
23
|
+
'maxPriorityFeePerGas': !runtime.exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
24
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
25
|
+
'paymaster': !runtime.exists(json, 'paymaster') ? undefined : json['paymaster'],
|
|
26
|
+
'paymasterData': !runtime.exists(json, 'paymasterData') ? undefined : json['paymasterData'],
|
|
27
|
+
'paymasterPostOpGasLimit': !runtime.exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
|
|
28
|
+
'paymasterVerificationGasLimit': !runtime.exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
|
|
29
|
+
'preVerificationGas': !runtime.exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
|
|
30
|
+
'sender': !runtime.exists(json, 'sender') ? undefined : json['sender'],
|
|
31
|
+
'signature': !runtime.exists(json, 'signature') ? undefined : json['signature'],
|
|
32
|
+
'verificationGasLimit': !runtime.exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function SignMessageWithWaasRequestContextUserOperationOperationToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'authorization': SignMessageWithWaasRequestContextUserOperationOperationAuthorization.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON(value.authorization),
|
|
44
|
+
'callData': value.callData,
|
|
45
|
+
'callGasLimit': value.callGasLimit,
|
|
46
|
+
'factory': value.factory,
|
|
47
|
+
'factoryData': value.factoryData,
|
|
48
|
+
'maxFeePerGas': value.maxFeePerGas,
|
|
49
|
+
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
50
|
+
'nonce': value.nonce,
|
|
51
|
+
'paymaster': value.paymaster,
|
|
52
|
+
'paymasterData': value.paymasterData,
|
|
53
|
+
'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
|
|
54
|
+
'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
|
|
55
|
+
'preVerificationGas': value.preVerificationGas,
|
|
56
|
+
'sender': value.sender,
|
|
57
|
+
'signature': value.signature,
|
|
58
|
+
'verificationGasLimit': value.verificationGasLimit,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationFromJSON = SignMessageWithWaasRequestContextUserOperationOperationFromJSON;
|
|
63
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped = SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped;
|
|
64
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationToJSON = SignMessageWithWaasRequestContextUserOperationOperationToJSON;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { SignMessageWithWaasRequestContextUserOperationOperationAuthorization } from './SignMessageWithWaasRequestContextUserOperationOperationAuthorization';
|
|
13
|
+
/**
|
|
14
|
+
* The actual user operation data
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SignMessageWithWaasRequestContextUserOperationOperation
|
|
17
|
+
*/
|
|
18
|
+
export interface SignMessageWithWaasRequestContextUserOperationOperation {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SignMessageWithWaasRequestContextUserOperationOperationAuthorization}
|
|
22
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
23
|
+
*/
|
|
24
|
+
authorization?: SignMessageWithWaasRequestContextUserOperationOperationAuthorization;
|
|
25
|
+
/**
|
|
26
|
+
* The data to pass to the sender during the main execution call
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
29
|
+
*/
|
|
30
|
+
callData?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The amount of gas to allocate the main execution call
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
35
|
+
*/
|
|
36
|
+
callGasLimit?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Account factory address (optional, only for new accounts)
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
41
|
+
*/
|
|
42
|
+
factory?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Data for account factory (optional)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
47
|
+
*/
|
|
48
|
+
factoryData?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum fee per gas
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
53
|
+
*/
|
|
54
|
+
maxFeePerGas?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Maximum priority fee per gas
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
59
|
+
*/
|
|
60
|
+
maxPriorityFeePerGas?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Anti-replay parameter
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
65
|
+
*/
|
|
66
|
+
nonce?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Address of paymaster contract (optional)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
71
|
+
*/
|
|
72
|
+
paymaster?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Data for paymaster (optional)
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
77
|
+
*/
|
|
78
|
+
paymasterData?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The amount of gas to allocate for the paymaster post-operation code (optional)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
83
|
+
*/
|
|
84
|
+
paymasterPostOpGasLimit?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The amount of gas to allocate for the paymaster validation code (optional)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
89
|
+
*/
|
|
90
|
+
paymasterVerificationGasLimit?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Extra gas to pay the Bundler
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
95
|
+
*/
|
|
96
|
+
preVerificationGas?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The account making the operation
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
101
|
+
*/
|
|
102
|
+
sender?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Data passed into the account to verify authorization
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
107
|
+
*/
|
|
108
|
+
signature?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The amount of gas to allocate for the verification step
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperation
|
|
113
|
+
*/
|
|
114
|
+
verificationGasLimit?: string;
|
|
115
|
+
}
|
|
116
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationFromJSON(json: any): SignMessageWithWaasRequestContextUserOperationOperation;
|
|
117
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequestContextUserOperationOperation;
|
|
118
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationToJSON(value?: SignMessageWithWaasRequestContextUserOperationOperation | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON } from './SignMessageWithWaasRequestContextUserOperationOperationAuthorization.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function SignMessageWithWaasRequestContextUserOperationOperationFromJSON(json) {
|
|
6
|
+
return SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'authorization': !exists(json, 'authorization') ? undefined : SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON(json['authorization']),
|
|
14
|
+
'callData': !exists(json, 'callData') ? undefined : json['callData'],
|
|
15
|
+
'callGasLimit': !exists(json, 'callGasLimit') ? undefined : json['callGasLimit'],
|
|
16
|
+
'factory': !exists(json, 'factory') ? undefined : json['factory'],
|
|
17
|
+
'factoryData': !exists(json, 'factoryData') ? undefined : json['factoryData'],
|
|
18
|
+
'maxFeePerGas': !exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
19
|
+
'maxPriorityFeePerGas': !exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
20
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
21
|
+
'paymaster': !exists(json, 'paymaster') ? undefined : json['paymaster'],
|
|
22
|
+
'paymasterData': !exists(json, 'paymasterData') ? undefined : json['paymasterData'],
|
|
23
|
+
'paymasterPostOpGasLimit': !exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
|
|
24
|
+
'paymasterVerificationGasLimit': !exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
|
|
25
|
+
'preVerificationGas': !exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
|
|
26
|
+
'sender': !exists(json, 'sender') ? undefined : json['sender'],
|
|
27
|
+
'signature': !exists(json, 'signature') ? undefined : json['signature'],
|
|
28
|
+
'verificationGasLimit': !exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function SignMessageWithWaasRequestContextUserOperationOperationToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'authorization': SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON(value.authorization),
|
|
40
|
+
'callData': value.callData,
|
|
41
|
+
'callGasLimit': value.callGasLimit,
|
|
42
|
+
'factory': value.factory,
|
|
43
|
+
'factoryData': value.factoryData,
|
|
44
|
+
'maxFeePerGas': value.maxFeePerGas,
|
|
45
|
+
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
46
|
+
'nonce': value.nonce,
|
|
47
|
+
'paymaster': value.paymaster,
|
|
48
|
+
'paymasterData': value.paymasterData,
|
|
49
|
+
'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
|
|
50
|
+
'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
|
|
51
|
+
'preVerificationGas': value.preVerificationGas,
|
|
52
|
+
'sender': value.sender,
|
|
53
|
+
'signature': value.signature,
|
|
54
|
+
'verificationGasLimit': value.verificationGasLimit,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { SignMessageWithWaasRequestContextUserOperationOperationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationOperationToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON(json) {
|
|
9
|
+
return SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'address': !runtime.exists(json, 'address') ? undefined : json['address'],
|
|
17
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
18
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
19
|
+
'r': !runtime.exists(json, 'r') ? undefined : json['r'],
|
|
20
|
+
's': !runtime.exists(json, 's') ? undefined : json['s'],
|
|
21
|
+
'v': !runtime.exists(json, 'v') ? undefined : json['v'],
|
|
22
|
+
'yParity': !runtime.exists(json, 'yParity') ? undefined : json['yParity'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'address': value.address,
|
|
34
|
+
'chainId': value.chainId,
|
|
35
|
+
'nonce': value.nonce,
|
|
36
|
+
'r': value.r,
|
|
37
|
+
's': value.s,
|
|
38
|
+
'v': value.v,
|
|
39
|
+
'yParity': value.yParity,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON = SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON;
|
|
44
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped = SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped;
|
|
45
|
+
exports.SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON = SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Authorization signature data (optional)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
16
|
+
*/
|
|
17
|
+
export interface SignMessageWithWaasRequestContextUserOperationOperationAuthorization {
|
|
18
|
+
/**
|
|
19
|
+
* Address that signed the authorization
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
22
|
+
*/
|
|
23
|
+
address?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Chain ID for the authorization signature
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
28
|
+
*/
|
|
29
|
+
chainId?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Nonce used in the authorization signature
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
34
|
+
*/
|
|
35
|
+
nonce?: number;
|
|
36
|
+
/**
|
|
37
|
+
* R component of the ECDSA signature
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
40
|
+
*/
|
|
41
|
+
r?: string;
|
|
42
|
+
/**
|
|
43
|
+
* S component of the ECDSA signature
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
46
|
+
*/
|
|
47
|
+
s?: string;
|
|
48
|
+
/**
|
|
49
|
+
* V component of the ECDSA signature
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
52
|
+
*/
|
|
53
|
+
v?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Y parity of the signature (0 or 1)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SignMessageWithWaasRequestContextUserOperationOperationAuthorization
|
|
58
|
+
*/
|
|
59
|
+
yParity?: number;
|
|
60
|
+
}
|
|
61
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON(json: any): SignMessageWithWaasRequestContextUserOperationOperationAuthorization;
|
|
62
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequestContextUserOperationOperationAuthorization;
|
|
63
|
+
export declare function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON(value?: SignMessageWithWaasRequestContextUserOperationOperationAuthorization | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON(json) {
|
|
5
|
+
return SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'address': !exists(json, 'address') ? undefined : json['address'],
|
|
13
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
14
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
15
|
+
'r': !exists(json, 'r') ? undefined : json['r'],
|
|
16
|
+
's': !exists(json, 's') ? undefined : json['s'],
|
|
17
|
+
'v': !exists(json, 'v') ? undefined : json['v'],
|
|
18
|
+
'yParity': !exists(json, 'yParity') ? undefined : json['yParity'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'address': value.address,
|
|
30
|
+
'chainId': value.chainId,
|
|
31
|
+
'nonce': value.nonce,
|
|
32
|
+
'r': value.r,
|
|
33
|
+
's': value.s,
|
|
34
|
+
'v': value.v,
|
|
35
|
+
'yParity': value.yParity,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSON, SignMessageWithWaasRequestContextUserOperationOperationAuthorizationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationOperationAuthorizationToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -254,6 +254,8 @@ export * from './SignMessageWithWaasRequest';
|
|
|
254
254
|
export * from './SignMessageWithWaasRequestContext';
|
|
255
255
|
export * from './SignMessageWithWaasRequestContextTransaction';
|
|
256
256
|
export * from './SignMessageWithWaasRequestContextUserOperation';
|
|
257
|
+
export * from './SignMessageWithWaasRequestContextUserOperationOperation';
|
|
258
|
+
export * from './SignMessageWithWaasRequestContextUserOperationOperationAuthorization';
|
|
257
259
|
export * from './SignTransactionWithWaasRequest';
|
|
258
260
|
export * from './SimulateEVMTransactionRequest';
|
|
259
261
|
export * from './SimulateSVMTransactionRequest';
|