@aastar/dapp 0.16.7

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.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/dist/core/src/abis/BLSAggregator.json +686 -0
  3. package/dist/core/src/abis/BLSValidator.json +42 -0
  4. package/dist/core/src/abis/DVTValidator.json +368 -0
  5. package/dist/core/src/abis/EntryPoint.json +1382 -0
  6. package/dist/core/src/abis/GToken.json +513 -0
  7. package/dist/core/src/abis/GTokenStaking.json +949 -0
  8. package/dist/core/src/abis/MySBT.json +1518 -0
  9. package/dist/core/src/abis/Paymaster.json +1143 -0
  10. package/dist/core/src/abis/PaymasterFactory.json +640 -0
  11. package/dist/core/src/abis/Registry.json +1942 -0
  12. package/dist/core/src/abis/ReputationSystem.json +699 -0
  13. package/dist/core/src/abis/SimpleAccount.json +560 -0
  14. package/dist/core/src/abis/SimpleAccountFactory.json +111 -0
  15. package/dist/core/src/abis/SuperPaymaster.json +1781 -0
  16. package/dist/core/src/abis/index.d.ts +1126 -0
  17. package/dist/core/src/abis/index.js +91 -0
  18. package/dist/core/src/abis/xPNTsFactory.json +718 -0
  19. package/dist/core/src/abis/xPNTsToken.json +1280 -0
  20. package/dist/core/src/actions/StateValidator.d.ts +68 -0
  21. package/dist/core/src/actions/StateValidator.js +187 -0
  22. package/dist/core/src/actions/account.d.ts +55 -0
  23. package/dist/core/src/actions/account.js +133 -0
  24. package/dist/core/src/actions/aggregator.d.ts +17 -0
  25. package/dist/core/src/actions/aggregator.js +31 -0
  26. package/dist/core/src/actions/dvt.d.ts +30 -0
  27. package/dist/core/src/actions/dvt.js +41 -0
  28. package/dist/core/src/actions/entryPoint.d.ts +90 -0
  29. package/dist/core/src/actions/entryPoint.js +211 -0
  30. package/dist/core/src/actions/factory.d.ts +215 -0
  31. package/dist/core/src/actions/factory.js +442 -0
  32. package/dist/core/src/actions/faucet.d.ts +48 -0
  33. package/dist/core/src/actions/faucet.js +337 -0
  34. package/dist/core/src/actions/gtokenExtended.d.ts +39 -0
  35. package/dist/core/src/actions/gtokenExtended.js +115 -0
  36. package/dist/core/src/actions/index.d.ts +15 -0
  37. package/dist/core/src/actions/index.js +17 -0
  38. package/dist/core/src/actions/paymasterV4.d.ts +170 -0
  39. package/dist/core/src/actions/paymasterV4.js +334 -0
  40. package/dist/core/src/actions/registry.d.ts +246 -0
  41. package/dist/core/src/actions/registry.js +667 -0
  42. package/dist/core/src/actions/reputation.d.ts +129 -0
  43. package/dist/core/src/actions/reputation.js +281 -0
  44. package/dist/core/src/actions/sbt.d.ts +191 -0
  45. package/dist/core/src/actions/sbt.js +533 -0
  46. package/dist/core/src/actions/staking.d.ts +132 -0
  47. package/dist/core/src/actions/staking.js +330 -0
  48. package/dist/core/src/actions/superPaymaster.d.ts +237 -0
  49. package/dist/core/src/actions/superPaymaster.js +644 -0
  50. package/dist/core/src/actions/tokens.d.ts +229 -0
  51. package/dist/core/src/actions/tokens.js +415 -0
  52. package/dist/core/src/branding.d.ts +30 -0
  53. package/dist/core/src/branding.js +30 -0
  54. package/dist/core/src/clients/BaseClient.d.ts +25 -0
  55. package/dist/core/src/clients/BaseClient.js +66 -0
  56. package/dist/core/src/clients/types.d.ts +60 -0
  57. package/dist/core/src/clients/types.js +1 -0
  58. package/dist/core/src/clients.d.ts +5 -0
  59. package/dist/core/src/clients.js +11 -0
  60. package/dist/core/src/communities.d.ts +52 -0
  61. package/dist/core/src/communities.js +73 -0
  62. package/dist/core/src/config/ContractConfigManager.d.ts +20 -0
  63. package/dist/core/src/config/ContractConfigManager.js +48 -0
  64. package/dist/core/src/constants.d.ts +88 -0
  65. package/dist/core/src/constants.js +125 -0
  66. package/dist/core/src/contract-addresses.d.ts +110 -0
  67. package/dist/core/src/contract-addresses.js +99 -0
  68. package/dist/core/src/contracts.d.ts +424 -0
  69. package/dist/core/src/contracts.js +343 -0
  70. package/dist/core/src/crypto/blsSigner.d.ts +64 -0
  71. package/dist/core/src/crypto/blsSigner.js +98 -0
  72. package/dist/core/src/crypto/index.d.ts +1 -0
  73. package/dist/core/src/crypto/index.js +1 -0
  74. package/dist/core/src/index.d.ts +21 -0
  75. package/dist/core/src/index.js +21 -0
  76. package/dist/core/src/networks.d.ts +127 -0
  77. package/dist/core/src/networks.js +118 -0
  78. package/dist/core/src/requirementChecker.d.ts +38 -0
  79. package/dist/core/src/requirementChecker.js +139 -0
  80. package/dist/core/src/roles.d.ts +204 -0
  81. package/dist/core/src/roles.js +211 -0
  82. package/dist/core/src/utils/validation.d.ts +24 -0
  83. package/dist/core/src/utils/validation.js +56 -0
  84. package/dist/dapp/src/index.d.ts +3 -0
  85. package/dist/dapp/src/index.js +3 -0
  86. package/dist/dapp/src/ui/components/EvaluationPanel.d.ts +11 -0
  87. package/dist/dapp/src/ui/components/EvaluationPanel.js +37 -0
  88. package/dist/dapp/src/ui/hooks/useCreditScore.d.ts +13 -0
  89. package/dist/dapp/src/ui/hooks/useCreditScore.js +32 -0
  90. package/dist/dapp/src/ui/hooks/useSuperPaymaster.d.ts +8 -0
  91. package/dist/dapp/src/ui/hooks/useSuperPaymaster.js +23 -0
  92. package/dist/dapp/src/ui/index.d.ts +4 -0
  93. package/dist/dapp/src/ui/index.js +17 -0
  94. package/dist/paymaster/src/SuperPaymaster/index.d.ts +44 -0
  95. package/dist/paymaster/src/SuperPaymaster/index.js +133 -0
  96. package/dist/paymaster/src/V4/PaymasterClient.d.ts +79 -0
  97. package/dist/paymaster/src/V4/PaymasterClient.js +315 -0
  98. package/dist/paymaster/src/V4/PaymasterOperator.d.ts +41 -0
  99. package/dist/paymaster/src/V4/PaymasterOperator.js +241 -0
  100. package/dist/paymaster/src/V4/PaymasterUtils.d.ts +55 -0
  101. package/dist/paymaster/src/V4/PaymasterUtils.js +124 -0
  102. package/dist/paymaster/src/V4/SuperPaymasterClient.d.ts +21 -0
  103. package/dist/paymaster/src/V4/SuperPaymasterClient.js +73 -0
  104. package/dist/paymaster/src/V4/index.d.ts +4 -0
  105. package/dist/paymaster/src/V4/index.js +4 -0
  106. package/dist/paymaster/src/index.d.ts +2 -0
  107. package/dist/paymaster/src/index.js +4 -0
  108. package/package.json +31 -0
@@ -0,0 +1,330 @@
1
+ import { GTokenStakingABI } from '../abis/index.js';
2
+ export const stakingActions = (address) => (client) => ({
3
+ // Staking Operations
4
+ /**
5
+ * @internal
6
+ * @warning This is a low-level internal API. Use high-level clients instead.
7
+ */
8
+ async lockStake({ user, roleId, stakeAmount, entryBurn, payer, account }) {
9
+ return client.writeContract({
10
+ address,
11
+ abi: GTokenStakingABI,
12
+ functionName: 'lockStake',
13
+ args: [user, roleId, stakeAmount, entryBurn, payer],
14
+ account: account,
15
+ chain: client.chain
16
+ });
17
+ },
18
+ async unlockStake({ user, roleId, account }) {
19
+ return client.writeContract({
20
+ address,
21
+ abi: GTokenStakingABI,
22
+ functionName: 'unlockAndTransfer',
23
+ args: [user, roleId],
24
+ account: account,
25
+ chain: client.chain
26
+ });
27
+ },
28
+ async unlockAndTransfer({ user, roleId, account }) {
29
+ return client.writeContract({
30
+ address,
31
+ abi: GTokenStakingABI,
32
+ functionName: 'unlockAndTransfer',
33
+ args: [user, roleId],
34
+ account: account,
35
+ chain: client.chain
36
+ });
37
+ },
38
+ async stake({ amount, account }) {
39
+ return client.writeContract({
40
+ address,
41
+ abi: GTokenStakingABI,
42
+ functionName: 'stake',
43
+ args: [amount],
44
+ account: account,
45
+ chain: client.chain
46
+ });
47
+ },
48
+ async topUpStake({ amount, account }) {
49
+ // topUpStake typically calls stake internally or is a distinct function. Assuming distinct based on request.
50
+ return client.writeContract({
51
+ address,
52
+ abi: GTokenStakingABI,
53
+ functionName: 'topUpStake',
54
+ args: [amount],
55
+ account: account,
56
+ chain: client.chain
57
+ });
58
+ },
59
+ async unstake({ amount, account }) {
60
+ return client.writeContract({
61
+ address,
62
+ abi: GTokenStakingABI,
63
+ functionName: 'unstake',
64
+ args: [amount],
65
+ account: account,
66
+ chain: client.chain
67
+ });
68
+ },
69
+ // Slashing
70
+ async slash({ user, roleId, amount, reason, account }) {
71
+ return client.writeContract({
72
+ address,
73
+ abi: GTokenStakingABI,
74
+ functionName: 'slash',
75
+ args: [user, roleId, amount, reason],
76
+ account: account,
77
+ chain: client.chain
78
+ });
79
+ },
80
+ async slashByDVT({ user, roleId, amount, reason, account }) {
81
+ return client.writeContract({
82
+ address,
83
+ abi: GTokenStakingABI,
84
+ functionName: 'slashByDVT',
85
+ args: [user, roleId, amount, reason],
86
+ account: account,
87
+ chain: client.chain
88
+ });
89
+ },
90
+ async setAuthorizedSlasher({ slasher, authorized, account }) {
91
+ return client.writeContract({
92
+ address,
93
+ abi: GTokenStakingABI,
94
+ functionName: 'setAuthorizedSlasher',
95
+ args: [slasher, authorized],
96
+ account: account,
97
+ chain: client.chain
98
+ });
99
+ },
100
+ // Query Functions
101
+ async getStakeInfo({ operator, roleId }) {
102
+ return client.readContract({
103
+ address,
104
+ abi: GTokenStakingABI,
105
+ functionName: 'stakes',
106
+ args: [operator]
107
+ });
108
+ },
109
+ async getStakingBalance({ user }) {
110
+ return client.readContract({
111
+ address,
112
+ abi: GTokenStakingABI,
113
+ functionName: 'balanceOf',
114
+ args: [user]
115
+ });
116
+ },
117
+ async getLockedStake({ user, roleId }) {
118
+ return client.readContract({
119
+ address,
120
+ abi: GTokenStakingABI,
121
+ functionName: 'getLockedStake',
122
+ args: [user, roleId]
123
+ });
124
+ },
125
+ async getUserRoleLocks({ user }) {
126
+ return client.readContract({
127
+ address,
128
+ abi: GTokenStakingABI,
129
+ functionName: 'getUserRoleLocks',
130
+ args: [user]
131
+ });
132
+ },
133
+ async hasRoleLock({ user, roleId }) {
134
+ return client.readContract({
135
+ address,
136
+ abi: GTokenStakingABI,
137
+ functionName: 'hasRoleLock',
138
+ args: [user, roleId]
139
+ });
140
+ },
141
+ async availableBalance({ user }) {
142
+ return client.readContract({
143
+ address,
144
+ abi: GTokenStakingABI,
145
+ functionName: 'availableBalance',
146
+ args: [user]
147
+ });
148
+ },
149
+ async previewExitFee({ user, roleId }) {
150
+ return client.readContract({
151
+ address,
152
+ abi: GTokenStakingABI,
153
+ functionName: 'previewExitFee',
154
+ args: [user, roleId]
155
+ });
156
+ },
157
+ // Admin Functions
158
+ async setRegistry({ registry, account }) {
159
+ return client.writeContract({
160
+ address,
161
+ abi: GTokenStakingABI,
162
+ functionName: 'setRegistry',
163
+ args: [registry],
164
+ account: account,
165
+ chain: client.chain
166
+ });
167
+ },
168
+ async transferOwnership({ newOwner, account }) {
169
+ return client.writeContract({
170
+ address,
171
+ abi: GTokenStakingABI,
172
+ functionName: 'transferOwnership',
173
+ args: [newOwner],
174
+ account: account,
175
+ chain: client.chain
176
+ });
177
+ },
178
+ async setRoleExitFee({ roleId, feePercent, account }) {
179
+ return client.writeContract({
180
+ address,
181
+ abi: GTokenStakingABI,
182
+ functionName: 'setRoleExitFee',
183
+ args: [roleId, feePercent],
184
+ account: account,
185
+ chain: client.chain
186
+ });
187
+ },
188
+ async setTreasury({ treasury, account }) {
189
+ return client.writeContract({
190
+ address,
191
+ abi: GTokenStakingABI,
192
+ functionName: 'setTreasury',
193
+ args: [treasury],
194
+ account: account,
195
+ chain: client.chain
196
+ });
197
+ },
198
+ // View Functions
199
+ async stakes({ user }) {
200
+ return client.readContract({
201
+ address,
202
+ abi: GTokenStakingABI,
203
+ functionName: 'stakes',
204
+ args: [user]
205
+ });
206
+ },
207
+ async roleLocks({ user, roleId }) {
208
+ return client.readContract({
209
+ address,
210
+ abi: GTokenStakingABI,
211
+ functionName: 'roleLocks',
212
+ args: [user, roleId]
213
+ });
214
+ },
215
+ async roleExitConfigs({ roleId }) {
216
+ return client.readContract({
217
+ address,
218
+ abi: GTokenStakingABI,
219
+ functionName: 'roleExitConfigs',
220
+ args: [roleId]
221
+ });
222
+ },
223
+ async userActiveRoles({ user, index }) {
224
+ return client.readContract({
225
+ address,
226
+ abi: GTokenStakingABI,
227
+ functionName: 'userActiveRoles',
228
+ args: [user, index]
229
+ });
230
+ },
231
+ async authorizedSlashers({ slasher }) {
232
+ return client.readContract({
233
+ address,
234
+ abi: GTokenStakingABI,
235
+ functionName: 'authorizedSlashers',
236
+ args: [slasher]
237
+ });
238
+ },
239
+ async getStake({ account }) {
240
+ return client.readContract({
241
+ address,
242
+ abi: GTokenStakingABI,
243
+ functionName: 'getStake',
244
+ args: [account]
245
+ });
246
+ },
247
+ async balanceOf({ account }) {
248
+ // GTokenStaking might implement balanceOf if it's an ERC20-like or just tracking stakes
249
+ return client.readContract({
250
+ address,
251
+ abi: GTokenStakingABI,
252
+ functionName: 'balanceOf',
253
+ args: [account]
254
+ });
255
+ },
256
+ async totalStaked() {
257
+ return client.readContract({
258
+ address,
259
+ abi: GTokenStakingABI,
260
+ functionName: 'totalStaked',
261
+ args: []
262
+ });
263
+ },
264
+ async getTotalStaked() {
265
+ return this.totalStaked();
266
+ },
267
+ async treasury() {
268
+ return client.readContract({
269
+ address,
270
+ abi: GTokenStakingABI,
271
+ functionName: 'treasury',
272
+ args: []
273
+ });
274
+ },
275
+ async owner() {
276
+ return client.readContract({
277
+ address,
278
+ abi: GTokenStakingABI,
279
+ functionName: 'owner',
280
+ args: []
281
+ });
282
+ },
283
+ // Ownership
284
+ async transferStakingOwnership({ newOwner, account }) {
285
+ return client.writeContract({
286
+ address,
287
+ abi: GTokenStakingABI,
288
+ functionName: 'transferOwnership',
289
+ args: [newOwner],
290
+ account: account,
291
+ chain: client.chain
292
+ });
293
+ },
294
+ async renounceOwnership({ account }) {
295
+ return client.writeContract({
296
+ address,
297
+ abi: GTokenStakingABI,
298
+ functionName: 'renounceOwnership',
299
+ args: [],
300
+ account: account,
301
+ chain: client.chain
302
+ });
303
+ },
304
+ // Version
305
+ async version() {
306
+ return client.readContract({
307
+ address,
308
+ abi: GTokenStakingABI,
309
+ functionName: 'version',
310
+ args: []
311
+ });
312
+ },
313
+ // Constants
314
+ async REGISTRY() {
315
+ return client.readContract({
316
+ address,
317
+ abi: GTokenStakingABI,
318
+ functionName: 'REGISTRY',
319
+ args: []
320
+ });
321
+ },
322
+ async GTOKEN() {
323
+ return client.readContract({
324
+ address,
325
+ abi: GTokenStakingABI,
326
+ functionName: 'GTOKEN',
327
+ args: []
328
+ });
329
+ }
330
+ });
@@ -0,0 +1,237 @@
1
+ import { type Address, type PublicClient, type WalletClient, type Hex, type Hash, type Account } from 'viem';
2
+ export type SuperPaymasterActions = {
3
+ superPaymasterDeposit: (args: {
4
+ amount: bigint;
5
+ account?: Account | Address;
6
+ }) => Promise<Hash>;
7
+ /** @deprecated Use superPaymasterDeposit for clarity */
8
+ superPaymasterDepositAPNTs: (args: {
9
+ amount: bigint;
10
+ account?: Account | Address;
11
+ }) => Promise<Hash>;
12
+ superPaymasterDepositETH: (args: {
13
+ value: bigint;
14
+ account?: Account | Address;
15
+ }) => Promise<Hash>;
16
+ superPaymasterDepositFor: (args: {
17
+ operator: Address;
18
+ amount: bigint;
19
+ account?: Account | Address;
20
+ }) => Promise<Hash>;
21
+ superPaymasterWithdrawTo: (args: {
22
+ to: Address;
23
+ amount: bigint;
24
+ account?: Account | Address;
25
+ }) => Promise<Hash>;
26
+ superPaymasterAddSuperStake: (args: {
27
+ amount: bigint;
28
+ account?: Account | Address;
29
+ }) => Promise<Hash>;
30
+ superPaymasterUnlockSuperStake: (args: {
31
+ account?: Account | Address;
32
+ }) => Promise<Hash>;
33
+ superPaymasterWithdrawStake: (args: {
34
+ to: Address;
35
+ account?: Account | Address;
36
+ }) => Promise<Hash>;
37
+ superPaymasterConfigureOperator: (args: {
38
+ xPNTsToken: Address;
39
+ treasury: Address;
40
+ exchangeRate: bigint;
41
+ account?: Account | Address;
42
+ }) => Promise<Hash>;
43
+ superPaymasterSetOperatorPaused: (args: {
44
+ operator: Address;
45
+ paused: boolean;
46
+ account?: Account | Address;
47
+ }) => Promise<Hash>;
48
+ superPaymasterSetOperatorLimits: (args: {
49
+ operator: Address;
50
+ limits: any;
51
+ account?: Account | Address;
52
+ }) => Promise<Hash>;
53
+ superPaymasterUpdateReputation: (args: {
54
+ operator: Address;
55
+ newReputation: bigint;
56
+ account?: Account | Address;
57
+ }) => Promise<Hash>;
58
+ superPaymasterExecuteSlashWithBLS: (args: {
59
+ operator: Address;
60
+ roleId: Hex;
61
+ amount: bigint;
62
+ reason: string;
63
+ blsSignature: Hex;
64
+ account?: Account | Address;
65
+ }) => Promise<Hash>;
66
+ superPaymasterSlashOperator: (args: {
67
+ operator: Address;
68
+ amount: bigint;
69
+ reason: string;
70
+ account?: Account | Address;
71
+ }) => Promise<Hash>;
72
+ superPaymasterSetAPNTsPrice: (args: {
73
+ priceUSD: bigint;
74
+ account?: Account | Address;
75
+ }) => Promise<Hash>;
76
+ superPaymasterSetCachedPrice: (args: {
77
+ price: bigint;
78
+ account?: Account | Address;
79
+ }) => Promise<Hash>;
80
+ superPaymasterSetProtocolFee: (args: {
81
+ feeRecipient: Address;
82
+ feeBps: bigint;
83
+ account?: Account | Address;
84
+ }) => Promise<Hash>;
85
+ superPaymasterBlockUser: (args: {
86
+ user: Address;
87
+ blocked: boolean;
88
+ account?: Account | Address;
89
+ }) => Promise<Hash>;
90
+ superPaymasterUpdateBlockedStatus: (args: {
91
+ user: Address;
92
+ blocked: boolean;
93
+ account?: Account | Address;
94
+ }) => Promise<Hash>;
95
+ superPaymasterValidatePaymasterUserOp: (args: {
96
+ userOp: any;
97
+ userOpHash: Hex;
98
+ maxCost: bigint;
99
+ }) => Promise<any>;
100
+ superPaymasterPostOp: (args: {
101
+ mode: number;
102
+ context: Hex;
103
+ actualGasCost: bigint;
104
+ actualUserOpFeePerGas: bigint;
105
+ }) => Promise<void>;
106
+ superPaymasterOperators: (args: {
107
+ operator: Address;
108
+ }) => Promise<any>;
109
+ superPaymasterGetDeposit: () => Promise<bigint>;
110
+ superPaymasterGetAvailableCredit: (args: {
111
+ operator: Address;
112
+ user: Address;
113
+ }) => Promise<bigint>;
114
+ superPaymasterBlockedUsers: (args: {
115
+ user: Address;
116
+ }) => Promise<boolean>;
117
+ superPaymasterBalanceOfOperator: (args: {
118
+ operator: Address;
119
+ }) => Promise<bigint>;
120
+ superPaymasterAPNTsPriceUSD: () => Promise<bigint>;
121
+ superPaymasterCachedPrice: () => Promise<any>;
122
+ superPaymasterProtocolFee: () => Promise<any>;
123
+ superPaymasterProtocolFeeBPS: () => Promise<bigint>;
124
+ superPaymasterProtocolRevenue: () => Promise<bigint>;
125
+ superPaymasterTreasury: () => Promise<Address>;
126
+ superPaymasterXpntsFactory: () => Promise<Address>;
127
+ superPaymasterEntryPoint: () => Promise<Address>;
128
+ superPaymasterTotalTrackedBalance: () => Promise<bigint>;
129
+ superPaymasterLastUserOpTimestamp: (args: {
130
+ user: Address;
131
+ }) => Promise<bigint>;
132
+ superPaymasterGetSlashHistory: (args: {
133
+ operator: Address;
134
+ }) => Promise<any[]>;
135
+ superPaymasterGetSlashCount: (args: {
136
+ operator: Address;
137
+ }) => Promise<bigint>;
138
+ superPaymasterGetLatestSlash: (args: {
139
+ operator: Address;
140
+ }) => Promise<any>;
141
+ superPaymasterSlashHistory: (args: {
142
+ operator: Address;
143
+ index: bigint;
144
+ }) => Promise<any>;
145
+ superPaymasterUpdatePrice: (args: {
146
+ account?: Account | Address;
147
+ }) => Promise<Hash>;
148
+ superPaymasterUpdatePriceDVT: (args: {
149
+ price: bigint;
150
+ proof: Hex;
151
+ account?: Account | Address;
152
+ }) => Promise<Hash>;
153
+ superPaymasterSetTreasury: (args: {
154
+ treasury: Address;
155
+ account?: Account | Address;
156
+ }) => Promise<Hash>;
157
+ superPaymasterWithdrawProtocolRevenue: (args: {
158
+ to: Address;
159
+ account?: Account | Address;
160
+ }) => Promise<Hash>;
161
+ superPaymasterSetXPNTsFactory: (args: {
162
+ factory: Address;
163
+ account?: Account | Address;
164
+ }) => Promise<Hash>;
165
+ superPaymasterSetAPNTsToken: (args: {
166
+ token: Address;
167
+ account?: Account | Address;
168
+ }) => Promise<Hash>;
169
+ superPaymasterSetBLSAggregator: (args: {
170
+ aggregator: Address;
171
+ account?: Account | Address;
172
+ }) => Promise<Hash>;
173
+ superPaymasterOnTransferReceived: (args: {
174
+ from: Address;
175
+ amount: bigint;
176
+ data: Hex;
177
+ }) => Promise<any>;
178
+ superPaymasterWithdrawAPNTs: (args: {
179
+ amount: bigint;
180
+ account?: Account | Address;
181
+ }) => Promise<Hash>;
182
+ superPaymasterAPNTS_TOKEN: () => Promise<Address>;
183
+ superPaymasterREGISTRY: () => Promise<Address>;
184
+ superPaymasterBLS_AGGREGATOR: () => Promise<Address>;
185
+ superPaymasterETH_USD_PRICE_FEED: () => Promise<Address>;
186
+ superPaymasterPAYMASTER_DATA_OFFSET: () => Promise<bigint>;
187
+ superPaymasterRATE_OFFSET: () => Promise<bigint>;
188
+ superPaymasterBPS_DENOMINATOR: () => Promise<bigint>;
189
+ superPaymasterPRICE_CACHE_DURATION: () => Promise<bigint>;
190
+ superPaymasterPRICE_STALENESS_THRESHOLD: () => Promise<bigint>;
191
+ superPaymasterMAX_ETH_USD_PRICE: () => Promise<bigint>;
192
+ superPaymasterMIN_ETH_USD_PRICE: () => Promise<bigint>;
193
+ transferSuperPaymasterOwnership: (args: {
194
+ newOwner: Address;
195
+ account?: Account | Address;
196
+ }) => Promise<Hash>;
197
+ superPaymasterOwner: () => Promise<Address>;
198
+ renounceSuperPaymasterOwnership: (args: {
199
+ account?: Account | Address;
200
+ }) => Promise<Hash>;
201
+ superPaymasterAddStake: (args: {
202
+ amount: bigint;
203
+ account?: Account | Address;
204
+ }) => Promise<Hash>;
205
+ superPaymasterDepositForAlias: (args: {
206
+ operator: Address;
207
+ amount: bigint;
208
+ account?: Account | Address;
209
+ }) => Promise<Hash>;
210
+ superPaymasterUnlockStake: (args: {
211
+ account?: Account | Address;
212
+ }) => Promise<Hash>;
213
+ superPaymasterWithdraw: (args: {
214
+ amount: bigint;
215
+ account?: Account | Address;
216
+ }) => Promise<Hash>;
217
+ superPaymasterWithdrawAlias: (args: {
218
+ amount: bigint;
219
+ account?: Account | Address;
220
+ }) => Promise<Hash>;
221
+ superPaymasterMAX_PROTOCOL_FEE: () => Promise<bigint>;
222
+ superPaymasterVALIDATION_BUFFER_BPS: () => Promise<bigint>;
223
+ superPaymasterPriceStalenessThreshold: () => Promise<bigint>;
224
+ superPaymasterSbtHolders: (args: {
225
+ user: Address;
226
+ }) => Promise<boolean>;
227
+ superPaymasterUserOpState: (args: {
228
+ userOpHash: Hex;
229
+ }) => Promise<any>;
230
+ superPaymasterUpdateSBTStatus: (args: {
231
+ user: Address;
232
+ hasSBT: boolean;
233
+ account?: Account | Address;
234
+ }) => Promise<Hash>;
235
+ superPaymasterVersion: () => Promise<string>;
236
+ };
237
+ export declare const superPaymasterActions: (address: Address) => (client: PublicClient | WalletClient) => SuperPaymasterActions;