@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.
@@ -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 SafeOperation from './SafeOperation';
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: SafeOperation;
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: SafeOperation;
121
+ safeOperation: EthSafeOperation;
157
122
  feeEstimator?: IFeeEstimator;
158
123
  };
159
124
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ethers } from 'ethers';
2
- import { UserOperation } from './types';
2
+ import { UserOperation } from '@safe-global/safe-core-sdk-types';
3
3
  /**
4
4
  * Gets the EIP-4337 bundler provider.
5
5
  *