@safe-global/relay-kit 3.0.0-alpha.0 → 3.0.1
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/LICENSE.md +1 -1
- package/README.md +19 -4
- package/dist/src/deprecated.d.ts +13 -0
- package/dist/src/deprecated.js +3 -0
- package/dist/src/deprecated.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/packs/safe-4337/Safe4337Pack.d.ts +12 -12
- package/dist/src/packs/safe-4337/Safe4337Pack.js +9 -10
- package/dist/src/packs/safe-4337/Safe4337Pack.js.map +1 -1
- package/dist/src/packs/safe-4337/Safe4337Pack.test.js +4 -4
- package/dist/src/packs/safe-4337/Safe4337Pack.test.js.map +1 -1
- package/dist/src/packs/safe-4337/SafeOperation.d.ts +3 -4
- package/dist/src/packs/safe-4337/SafeOperation.js +2 -2
- package/dist/src/packs/safe-4337/SafeOperation.js.map +1 -1
- package/dist/src/packs/safe-4337/SafeOperation.test.js.map +1 -1
- package/dist/src/packs/safe-4337/estimators/PimlicoFeeEstimator.d.ts +2 -1
- package/dist/src/packs/safe-4337/testing-utils/fixtures.d.ts +2 -1
- package/dist/src/packs/safe-4337/testing-utils/fixtures.js +3 -2
- package/dist/src/packs/safe-4337/testing-utils/fixtures.js.map +1 -1
- package/dist/src/packs/safe-4337/testing-utils/helpers.js +6 -0
- package/dist/src/packs/safe-4337/testing-utils/helpers.js.map +1 -1
- package/dist/src/packs/safe-4337/types.d.ts +4 -39
- package/dist/src/packs/safe-4337/utils.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Safe, { SafeProviderConfig } from '@safe-global/protocol-kit';
|
|
2
|
-
import { MetaTransactionData, SafeVersion } from '@safe-global/safe-core-sdk-types';
|
|
2
|
+
import { EstimateGasData, MetaTransactionData, SafeVersion, UserOperation } from '@safe-global/safe-core-sdk-types';
|
|
3
3
|
import { ethers } from 'ethers';
|
|
4
|
-
import
|
|
4
|
+
import EthSafeOperation from './SafeOperation';
|
|
5
5
|
type ExistingSafeOptions = {
|
|
6
6
|
safeAddress: string;
|
|
7
7
|
};
|
|
@@ -52,42 +52,7 @@ export type Safe4337CreateTransactionProps = {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
export type Safe4337ExecutableProps = {
|
|
55
|
-
executable:
|
|
56
|
-
};
|
|
57
|
-
export type SafeUserOperation = {
|
|
58
|
-
safe: string;
|
|
59
|
-
nonce: bigint;
|
|
60
|
-
initCode: string;
|
|
61
|
-
callData: string;
|
|
62
|
-
callGasLimit: bigint;
|
|
63
|
-
verificationGasLimit: bigint;
|
|
64
|
-
preVerificationGas: bigint;
|
|
65
|
-
maxFeePerGas: bigint;
|
|
66
|
-
maxPriorityFeePerGas: bigint;
|
|
67
|
-
paymasterAndData: string;
|
|
68
|
-
validAfter: number;
|
|
69
|
-
validUntil: number;
|
|
70
|
-
entryPoint: string;
|
|
71
|
-
};
|
|
72
|
-
export type UserOperation = {
|
|
73
|
-
sender: string;
|
|
74
|
-
nonce: string;
|
|
75
|
-
initCode: string;
|
|
76
|
-
callData: string;
|
|
77
|
-
callGasLimit: bigint;
|
|
78
|
-
verificationGasLimit: bigint;
|
|
79
|
-
preVerificationGas: bigint;
|
|
80
|
-
maxFeePerGas: bigint;
|
|
81
|
-
maxPriorityFeePerGas: bigint;
|
|
82
|
-
paymasterAndData: string;
|
|
83
|
-
signature: string;
|
|
84
|
-
};
|
|
85
|
-
export type EstimateGasData = {
|
|
86
|
-
maxFeePerGas?: bigint;
|
|
87
|
-
maxPriorityFeePerGas?: bigint;
|
|
88
|
-
preVerificationGas?: bigint;
|
|
89
|
-
verificationGasLimit?: bigint;
|
|
90
|
-
callGasLimit?: bigint;
|
|
55
|
+
executable: EthSafeOperation;
|
|
91
56
|
};
|
|
92
57
|
export type EstimateSponsoredGasData = {
|
|
93
58
|
paymasterAndData: string;
|
|
@@ -153,7 +118,7 @@ export interface IFeeEstimator {
|
|
|
153
118
|
getPaymasterEstimation?: EstimateSponsoredFeeFunction;
|
|
154
119
|
}
|
|
155
120
|
export type EstimateFeeProps = {
|
|
156
|
-
safeOperation:
|
|
121
|
+
safeOperation: EthSafeOperation;
|
|
157
122
|
feeEstimator?: IFeeEstimator;
|
|
158
123
|
};
|
|
159
124
|
export {};
|