@aastar/dapp 0.16.8 → 0.16.11
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 +5 -8
- package/dist/core/src/abis/index.d.ts +0 -1126
- package/dist/core/src/abis/index.js +0 -91
- package/dist/core/src/actions/StateValidator.d.ts +0 -68
- package/dist/core/src/actions/StateValidator.js +0 -187
- package/dist/core/src/actions/account.d.ts +0 -55
- package/dist/core/src/actions/account.js +0 -133
- package/dist/core/src/actions/aggregator.d.ts +0 -17
- package/dist/core/src/actions/aggregator.js +0 -31
- package/dist/core/src/actions/dvt.d.ts +0 -30
- package/dist/core/src/actions/dvt.js +0 -41
- package/dist/core/src/actions/entryPoint.d.ts +0 -90
- package/dist/core/src/actions/entryPoint.js +0 -211
- package/dist/core/src/actions/factory.d.ts +0 -215
- package/dist/core/src/actions/factory.js +0 -442
- package/dist/core/src/actions/faucet.d.ts +0 -48
- package/dist/core/src/actions/faucet.js +0 -337
- package/dist/core/src/actions/gtokenExtended.d.ts +0 -39
- package/dist/core/src/actions/gtokenExtended.js +0 -115
- package/dist/core/src/actions/index.d.ts +0 -15
- package/dist/core/src/actions/index.js +0 -17
- package/dist/core/src/actions/paymasterV4.d.ts +0 -170
- package/dist/core/src/actions/paymasterV4.js +0 -334
- package/dist/core/src/actions/registry.d.ts +0 -246
- package/dist/core/src/actions/registry.js +0 -667
- package/dist/core/src/actions/reputation.d.ts +0 -129
- package/dist/core/src/actions/reputation.js +0 -281
- package/dist/core/src/actions/sbt.d.ts +0 -191
- package/dist/core/src/actions/sbt.js +0 -533
- package/dist/core/src/actions/staking.d.ts +0 -132
- package/dist/core/src/actions/staking.js +0 -330
- package/dist/core/src/actions/superPaymaster.d.ts +0 -237
- package/dist/core/src/actions/superPaymaster.js +0 -644
- package/dist/core/src/actions/tokens.d.ts +0 -229
- package/dist/core/src/actions/tokens.js +0 -415
- package/dist/core/src/branding.d.ts +0 -30
- package/dist/core/src/branding.js +0 -30
- package/dist/core/src/clients/BaseClient.d.ts +0 -25
- package/dist/core/src/clients/BaseClient.js +0 -66
- package/dist/core/src/clients/types.d.ts +0 -60
- package/dist/core/src/clients/types.js +0 -1
- package/dist/core/src/clients.d.ts +0 -5
- package/dist/core/src/clients.js +0 -11
- package/dist/core/src/communities.d.ts +0 -52
- package/dist/core/src/communities.js +0 -73
- package/dist/core/src/config/ContractConfigManager.d.ts +0 -20
- package/dist/core/src/config/ContractConfigManager.js +0 -48
- package/dist/core/src/constants.d.ts +0 -88
- package/dist/core/src/constants.js +0 -125
- package/dist/core/src/contract-addresses.d.ts +0 -110
- package/dist/core/src/contract-addresses.js +0 -99
- package/dist/core/src/contracts.d.ts +0 -424
- package/dist/core/src/contracts.js +0 -343
- package/dist/core/src/crypto/blsSigner.d.ts +0 -64
- package/dist/core/src/crypto/blsSigner.js +0 -98
- package/dist/core/src/crypto/index.d.ts +0 -1
- package/dist/core/src/crypto/index.js +0 -1
- package/dist/core/src/index.d.ts +0 -21
- package/dist/core/src/index.js +0 -21
- package/dist/core/src/networks.d.ts +0 -127
- package/dist/core/src/networks.js +0 -118
- package/dist/core/src/requirementChecker.d.ts +0 -38
- package/dist/core/src/requirementChecker.js +0 -139
- package/dist/core/src/roles.d.ts +0 -204
- package/dist/core/src/roles.js +0 -211
- package/dist/core/src/utils/validation.d.ts +0 -24
- package/dist/core/src/utils/validation.js +0 -56
- package/dist/paymaster/src/SuperPaymaster/index.d.ts +0 -44
- package/dist/paymaster/src/SuperPaymaster/index.js +0 -133
- package/dist/paymaster/src/V4/PaymasterClient.d.ts +0 -79
- package/dist/paymaster/src/V4/PaymasterClient.js +0 -315
- package/dist/paymaster/src/V4/PaymasterOperator.d.ts +0 -41
- package/dist/paymaster/src/V4/PaymasterOperator.js +0 -241
- package/dist/paymaster/src/V4/PaymasterUtils.d.ts +0 -55
- package/dist/paymaster/src/V4/PaymasterUtils.js +0 -124
- package/dist/paymaster/src/V4/SuperPaymasterClient.d.ts +0 -21
- package/dist/paymaster/src/V4/SuperPaymasterClient.js +0 -73
- package/dist/paymaster/src/V4/index.d.ts +0 -4
- package/dist/paymaster/src/V4/index.js +0 -4
- package/dist/paymaster/src/index.d.ts +0 -2
- package/dist/paymaster/src/index.js +0 -4
- /package/dist/{dapp/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{dapp/src/index.js → index.js} +0 -0
- /package/dist/{dapp/src/ui → ui}/components/EvaluationPanel.d.ts +0 -0
- /package/dist/{dapp/src/ui → ui}/components/EvaluationPanel.js +0 -0
- /package/dist/{dapp/src/ui → ui}/hooks/useCreditScore.d.ts +0 -0
- /package/dist/{dapp/src/ui → ui}/hooks/useCreditScore.js +0 -0
- /package/dist/{dapp/src/ui → ui}/hooks/useSuperPaymaster.d.ts +0 -0
- /package/dist/{dapp/src/ui → ui}/hooks/useSuperPaymaster.js +0 -0
- /package/dist/{dapp/src/ui → ui}/index.d.ts +0 -0
- /package/dist/{dapp/src/ui → ui}/index.js +0 -0
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { type Address, type PublicClient, type WalletClient, type Hex, type Hash, type Account } from 'viem';
|
|
2
|
-
export declare enum EntryPointVersion {
|
|
3
|
-
V06 = "0.6",
|
|
4
|
-
V07 = "0.7"
|
|
5
|
-
}
|
|
6
|
-
export type EntryPointActions = {
|
|
7
|
-
balanceOf: (args: {
|
|
8
|
-
account: Address;
|
|
9
|
-
}) => Promise<bigint>;
|
|
10
|
-
depositTo: (args: {
|
|
11
|
-
account: Address;
|
|
12
|
-
amount: bigint;
|
|
13
|
-
txAccount?: Account | Address;
|
|
14
|
-
}) => Promise<Hash>;
|
|
15
|
-
getNonce: (args: {
|
|
16
|
-
sender: Address;
|
|
17
|
-
key: bigint;
|
|
18
|
-
}) => Promise<bigint>;
|
|
19
|
-
getDepositInfo: (args: {
|
|
20
|
-
account: Address;
|
|
21
|
-
}) => Promise<{
|
|
22
|
-
deposit: bigint;
|
|
23
|
-
staked: boolean;
|
|
24
|
-
stake: bigint;
|
|
25
|
-
unstakeDelaySec: number;
|
|
26
|
-
withdrawTime: number;
|
|
27
|
-
}>;
|
|
28
|
-
addStake: (args: {
|
|
29
|
-
unstakeDelaySec: number;
|
|
30
|
-
amount: bigint;
|
|
31
|
-
account?: Account | Address;
|
|
32
|
-
}) => Promise<Hash>;
|
|
33
|
-
unlockStake: (args: {
|
|
34
|
-
account?: Account | Address;
|
|
35
|
-
}) => Promise<Hash>;
|
|
36
|
-
withdrawStake: (args: {
|
|
37
|
-
withdrawAddress: Address;
|
|
38
|
-
account?: Account | Address;
|
|
39
|
-
}) => Promise<Hash>;
|
|
40
|
-
withdrawTo: (args: {
|
|
41
|
-
withdrawAddress: Address;
|
|
42
|
-
amount: bigint;
|
|
43
|
-
account?: Account | Address;
|
|
44
|
-
}) => Promise<Hash>;
|
|
45
|
-
handleOps: (args: {
|
|
46
|
-
ops: any[];
|
|
47
|
-
beneficiary: Address;
|
|
48
|
-
account?: Account | Address;
|
|
49
|
-
}) => Promise<Hash>;
|
|
50
|
-
handleAggregatedOps: (args: {
|
|
51
|
-
opsPerAggregator: any[];
|
|
52
|
-
beneficiary: Address;
|
|
53
|
-
account?: Account | Address;
|
|
54
|
-
}) => Promise<Hash>;
|
|
55
|
-
innerHandleOp: (args: {
|
|
56
|
-
callData: Hex;
|
|
57
|
-
opInfo: any;
|
|
58
|
-
context: Hex;
|
|
59
|
-
account?: Account | Address;
|
|
60
|
-
}) => Promise<Hash>;
|
|
61
|
-
delegateAndRevert: (args: {
|
|
62
|
-
target: Address;
|
|
63
|
-
data: Hex;
|
|
64
|
-
account?: Account | Address;
|
|
65
|
-
}) => Promise<void>;
|
|
66
|
-
getUserOpHash: (args: {
|
|
67
|
-
op: any;
|
|
68
|
-
}) => Promise<Hash>;
|
|
69
|
-
getSenderAddress: (args: {
|
|
70
|
-
initCode: Hex;
|
|
71
|
-
}) => Promise<Address>;
|
|
72
|
-
senderCreator: () => Promise<Address>;
|
|
73
|
-
incrementNonce: (args: {
|
|
74
|
-
key: bigint;
|
|
75
|
-
account?: Account | Address;
|
|
76
|
-
}) => Promise<Hash>;
|
|
77
|
-
nonceSequenceNumber: (args: {
|
|
78
|
-
sender: Address;
|
|
79
|
-
key: bigint;
|
|
80
|
-
}) => Promise<bigint>;
|
|
81
|
-
supportsInterface: (args: {
|
|
82
|
-
interfaceId: Hex;
|
|
83
|
-
}) => Promise<boolean>;
|
|
84
|
-
eip712Domain: () => Promise<any>;
|
|
85
|
-
getCurrentUserOpHash: () => Promise<Hash>;
|
|
86
|
-
getDomainSeparatorV4: () => Promise<Hex>;
|
|
87
|
-
getPackedUserOpTypeHash: () => Promise<Hex>;
|
|
88
|
-
version: EntryPointVersion;
|
|
89
|
-
};
|
|
90
|
-
export declare const entryPointActions: (address: Address, version?: EntryPointVersion) => (client: PublicClient | WalletClient) => EntryPointActions;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { EntryPointABI } from '../abis/index.js';
|
|
2
|
-
export var EntryPointVersion;
|
|
3
|
-
(function (EntryPointVersion) {
|
|
4
|
-
EntryPointVersion["V06"] = "0.6";
|
|
5
|
-
EntryPointVersion["V07"] = "0.7";
|
|
6
|
-
})(EntryPointVersion || (EntryPointVersion = {}));
|
|
7
|
-
export const entryPointActions = (address, version = EntryPointVersion.V07) => (client) => ({
|
|
8
|
-
version,
|
|
9
|
-
async balanceOf({ account }) {
|
|
10
|
-
// v0.6 and v0.7 both use balanceOf(address)
|
|
11
|
-
return client.readContract({
|
|
12
|
-
address,
|
|
13
|
-
abi: [{ name: 'balanceOf', inputs: [{ type: 'address' }], outputs: [{ type: 'uint256' }], type: 'function', stateMutability: 'view' }],
|
|
14
|
-
functionName: 'balanceOf',
|
|
15
|
-
args: [account]
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
async depositTo({ account, amount, txAccount }) {
|
|
19
|
-
// v0.6 and v0.7 both use depositTo(address)
|
|
20
|
-
return client.writeContract({
|
|
21
|
-
address,
|
|
22
|
-
abi: [{ name: 'depositTo', type: 'function', inputs: [{ type: 'address' }], outputs: [], stateMutability: 'payable' }],
|
|
23
|
-
functionName: 'depositTo',
|
|
24
|
-
args: [account],
|
|
25
|
-
value: amount,
|
|
26
|
-
account: txAccount,
|
|
27
|
-
chain: client.chain
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
async getNonce({ sender, key }) {
|
|
31
|
-
if (version === EntryPointVersion.V06) {
|
|
32
|
-
// v0.6: getNonce(address, uint192)
|
|
33
|
-
return client.readContract({
|
|
34
|
-
address,
|
|
35
|
-
abi: [{ name: 'getNonce', type: 'function', inputs: [{ type: 'address', name: 'sender' }, { type: 'uint256', name: 'key' }], outputs: [{ type: 'uint256' }], stateMutability: 'view' }],
|
|
36
|
-
functionName: 'getNonce',
|
|
37
|
-
args: [sender, key]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
// v0.7: getNonce(address, uint192) - Note: v0.7 actually uses 192 bit key but in ABI it's uint192
|
|
42
|
-
return client.readContract({
|
|
43
|
-
address,
|
|
44
|
-
abi: [{ name: 'getNonce', type: 'function', inputs: [{ type: 'address', name: 'sender' }, { type: 'uint192', name: 'key' }], outputs: [{ type: 'uint256' }], stateMutability: 'view' }],
|
|
45
|
-
functionName: 'getNonce',
|
|
46
|
-
args: [sender, key]
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
async getDepositInfo({ account }) {
|
|
51
|
-
const result = await client.readContract({
|
|
52
|
-
address,
|
|
53
|
-
abi: [{
|
|
54
|
-
name: 'getDepositInfo',
|
|
55
|
-
type: 'function',
|
|
56
|
-
inputs: [{ type: 'address', name: 'account' }],
|
|
57
|
-
outputs: [
|
|
58
|
-
{ type: 'uint112', name: 'deposit' },
|
|
59
|
-
{ type: 'bool', name: 'staked' },
|
|
60
|
-
{ type: 'uint112', name: 'stake' },
|
|
61
|
-
{ type: 'uint32', name: 'unstakeDelaySec' },
|
|
62
|
-
{ type: 'uint48', name: 'withdrawTime' }
|
|
63
|
-
],
|
|
64
|
-
stateMutability: 'view'
|
|
65
|
-
}],
|
|
66
|
-
functionName: 'getDepositInfo',
|
|
67
|
-
args: [account]
|
|
68
|
-
});
|
|
69
|
-
return {
|
|
70
|
-
deposit: result[0],
|
|
71
|
-
staked: result[1],
|
|
72
|
-
stake: result[2],
|
|
73
|
-
unstakeDelaySec: result[3],
|
|
74
|
-
withdrawTime: result[4]
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
async addStake({ unstakeDelaySec, amount, account }) {
|
|
78
|
-
return client.writeContract({
|
|
79
|
-
address,
|
|
80
|
-
abi: EntryPointABI,
|
|
81
|
-
functionName: 'addStake',
|
|
82
|
-
args: [unstakeDelaySec],
|
|
83
|
-
value: amount,
|
|
84
|
-
account: account,
|
|
85
|
-
chain: client.chain
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
async unlockStake({ account }) {
|
|
89
|
-
return client.writeContract({
|
|
90
|
-
address,
|
|
91
|
-
abi: EntryPointABI,
|
|
92
|
-
functionName: 'unlockStake',
|
|
93
|
-
args: [],
|
|
94
|
-
account: account,
|
|
95
|
-
chain: client.chain
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
async withdrawStake({ withdrawAddress, account }) {
|
|
99
|
-
return client.writeContract({
|
|
100
|
-
address,
|
|
101
|
-
abi: EntryPointABI,
|
|
102
|
-
functionName: 'withdrawStake',
|
|
103
|
-
args: [withdrawAddress],
|
|
104
|
-
account: account,
|
|
105
|
-
chain: client.chain
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
async withdrawTo({ withdrawAddress, amount, account }) {
|
|
109
|
-
return client.writeContract({
|
|
110
|
-
address,
|
|
111
|
-
abi: EntryPointABI,
|
|
112
|
-
functionName: 'withdrawTo',
|
|
113
|
-
args: [withdrawAddress, amount],
|
|
114
|
-
account: account,
|
|
115
|
-
chain: client.chain
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
async handleOps({ ops, beneficiary, account }) {
|
|
119
|
-
return client.writeContract({
|
|
120
|
-
address,
|
|
121
|
-
abi: EntryPointABI,
|
|
122
|
-
functionName: 'handleOps',
|
|
123
|
-
args: [ops, beneficiary],
|
|
124
|
-
account: account,
|
|
125
|
-
chain: client.chain
|
|
126
|
-
});
|
|
127
|
-
},
|
|
128
|
-
async handleAggregatedOps({ opsPerAggregator, beneficiary, account }) {
|
|
129
|
-
return client.writeContract({
|
|
130
|
-
address,
|
|
131
|
-
abi: EntryPointABI,
|
|
132
|
-
functionName: 'handleAggregatedOps',
|
|
133
|
-
args: [opsPerAggregator, beneficiary],
|
|
134
|
-
account: account,
|
|
135
|
-
chain: client.chain
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
async innerHandleOp({ callData, opInfo, context, account }) {
|
|
139
|
-
return client.writeContract({
|
|
140
|
-
address,
|
|
141
|
-
abi: EntryPointABI,
|
|
142
|
-
functionName: 'innerHandleOp',
|
|
143
|
-
args: [callData, opInfo, context],
|
|
144
|
-
account: account,
|
|
145
|
-
chain: client.chain
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
async delegateAndRevert({ target, data, account }) {
|
|
149
|
-
// This typically reverts, but we act as a writer
|
|
150
|
-
return client.writeContract({
|
|
151
|
-
address,
|
|
152
|
-
abi: EntryPointABI,
|
|
153
|
-
functionName: 'delegateAndRevert',
|
|
154
|
-
args: [target, data],
|
|
155
|
-
account: account,
|
|
156
|
-
chain: client.chain
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
async getUserOpHash({ op }) {
|
|
160
|
-
return client.readContract({
|
|
161
|
-
address,
|
|
162
|
-
abi: EntryPointABI,
|
|
163
|
-
functionName: 'getUserOpHash',
|
|
164
|
-
args: [op]
|
|
165
|
-
});
|
|
166
|
-
},
|
|
167
|
-
async getSenderAddress({ initCode }) {
|
|
168
|
-
// getSenderAddress usually reverts with the address. Viem might throw.
|
|
169
|
-
// But let's assume standard call first.
|
|
170
|
-
// Actually in EP v0.7 it might return if called off-chain or revert.
|
|
171
|
-
// We will try readContract.
|
|
172
|
-
try {
|
|
173
|
-
return await client.readContract({
|
|
174
|
-
address,
|
|
175
|
-
abi: EntryPointABI,
|
|
176
|
-
functionName: 'getSenderAddress',
|
|
177
|
-
args: [initCode]
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
catch (e) {
|
|
181
|
-
// Extract address from error if needed, but for now just implementing the method call.
|
|
182
|
-
// Usually this method reverts with SenderAddressResult(address)
|
|
183
|
-
throw e;
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
async senderCreator() {
|
|
187
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'senderCreator', args: [] });
|
|
188
|
-
},
|
|
189
|
-
async incrementNonce({ key, account }) {
|
|
190
|
-
return client.writeContract({ address, abi: EntryPointABI, functionName: 'incrementNonce', args: [key], account: account, chain: client.chain });
|
|
191
|
-
},
|
|
192
|
-
async nonceSequenceNumber({ sender, key }) {
|
|
193
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'nonceSequenceNumber', args: [sender, key] });
|
|
194
|
-
},
|
|
195
|
-
async supportsInterface({ interfaceId }) {
|
|
196
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'supportsInterface', args: [interfaceId] });
|
|
197
|
-
},
|
|
198
|
-
async eip712Domain() {
|
|
199
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'eip712Domain', args: [] });
|
|
200
|
-
},
|
|
201
|
-
async getCurrentUserOpHash() {
|
|
202
|
-
// View that returns 'bytes32'
|
|
203
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'getCurrentUserOpHash', args: [] });
|
|
204
|
-
},
|
|
205
|
-
async getDomainSeparatorV4() {
|
|
206
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'getDomainSeparatorV4', args: [] });
|
|
207
|
-
},
|
|
208
|
-
async getPackedUserOpTypeHash() {
|
|
209
|
-
return client.readContract({ address, abi: EntryPointABI, functionName: 'getPackedUserOpTypeHash', args: [] });
|
|
210
|
-
}
|
|
211
|
-
});
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { type Address, type PublicClient, type WalletClient, type Hex, type Hash, type Account } from 'viem';
|
|
2
|
-
export type XPNTsFactoryActions = {
|
|
3
|
-
createToken: (args: {
|
|
4
|
-
name: string;
|
|
5
|
-
symbol: string;
|
|
6
|
-
community: Address;
|
|
7
|
-
account?: Account | Address;
|
|
8
|
-
}) => Promise<Hash>;
|
|
9
|
-
deployForCommunity: (args: {
|
|
10
|
-
community: Address;
|
|
11
|
-
account?: Account | Address;
|
|
12
|
-
}) => Promise<Hash>;
|
|
13
|
-
getTokenAddress: (args: {
|
|
14
|
-
community: Address;
|
|
15
|
-
}) => Promise<Address>;
|
|
16
|
-
predictAddress: (args: {
|
|
17
|
-
community: Address;
|
|
18
|
-
salt?: bigint;
|
|
19
|
-
}) => Promise<Address>;
|
|
20
|
-
isTokenDeployed: (args: {
|
|
21
|
-
community: Address;
|
|
22
|
-
}) => Promise<boolean>;
|
|
23
|
-
getCommunityByToken: (args: {
|
|
24
|
-
token: Address;
|
|
25
|
-
}) => Promise<Address>;
|
|
26
|
-
getAllTokens: () => Promise<Address[]>;
|
|
27
|
-
getTokenCount: () => Promise<bigint>;
|
|
28
|
-
deployedTokens: (args: {
|
|
29
|
-
index: bigint;
|
|
30
|
-
}) => Promise<Address>;
|
|
31
|
-
communityToToken: (args: {
|
|
32
|
-
community: Address;
|
|
33
|
-
}) => Promise<Address>;
|
|
34
|
-
setRegistry: (args: {
|
|
35
|
-
registry: Address;
|
|
36
|
-
account?: Account | Address;
|
|
37
|
-
}) => Promise<Hash>;
|
|
38
|
-
setSuperPaymaster: (args: {
|
|
39
|
-
paymaster: Address;
|
|
40
|
-
account?: Account | Address;
|
|
41
|
-
}) => Promise<Hash>;
|
|
42
|
-
setImplementation: (args: {
|
|
43
|
-
impl: Address;
|
|
44
|
-
account?: Account | Address;
|
|
45
|
-
}) => Promise<Hash>;
|
|
46
|
-
getImplementation: () => Promise<Address>;
|
|
47
|
-
REGISTRY: () => Promise<Address>;
|
|
48
|
-
SUPER_PAYMASTER: () => Promise<Address>;
|
|
49
|
-
tokenImplementation: () => Promise<Address>;
|
|
50
|
-
xPNTsFactoryOwner: () => Promise<Address>;
|
|
51
|
-
transferXPNTsFactoryOwnership: (args: {
|
|
52
|
-
newOwner: Address;
|
|
53
|
-
account?: Account | Address;
|
|
54
|
-
}) => Promise<Hash>;
|
|
55
|
-
renounceXPNTsFactoryOwnership: (args: {
|
|
56
|
-
account?: Account | Address;
|
|
57
|
-
}) => Promise<Hash>;
|
|
58
|
-
deployxPNTsToken: (args: {
|
|
59
|
-
name: string;
|
|
60
|
-
symbol: string;
|
|
61
|
-
community: Address;
|
|
62
|
-
account?: Account | Address;
|
|
63
|
-
}) => Promise<Hash>;
|
|
64
|
-
predictDepositAmount: (args: {
|
|
65
|
-
community: Address;
|
|
66
|
-
userCount: bigint;
|
|
67
|
-
}) => Promise<bigint>;
|
|
68
|
-
getPredictionParams: (args: {
|
|
69
|
-
community: Address;
|
|
70
|
-
}) => Promise<any>;
|
|
71
|
-
getDepositBreakdown: (args: {
|
|
72
|
-
community: Address;
|
|
73
|
-
}) => Promise<any>;
|
|
74
|
-
getAPNTsPrice: () => Promise<bigint>;
|
|
75
|
-
aPNTsPriceUSD: () => Promise<bigint>;
|
|
76
|
-
setIndustryMultiplier: (args: {
|
|
77
|
-
industry: string;
|
|
78
|
-
multiplier: bigint;
|
|
79
|
-
account?: Account | Address;
|
|
80
|
-
}) => Promise<Hash>;
|
|
81
|
-
setSuperPaymasterAddress: (args: {
|
|
82
|
-
paymaster: Address;
|
|
83
|
-
account?: Account | Address;
|
|
84
|
-
}) => Promise<Hash>;
|
|
85
|
-
updateAPNTsPrice: (args: {
|
|
86
|
-
newPrice: bigint;
|
|
87
|
-
account?: Account | Address;
|
|
88
|
-
}) => Promise<Hash>;
|
|
89
|
-
updatePrediction: (args: {
|
|
90
|
-
community: Address;
|
|
91
|
-
userCount: bigint;
|
|
92
|
-
account?: Account | Address;
|
|
93
|
-
}) => Promise<Hash>;
|
|
94
|
-
updatePredictionCustom: (args: {
|
|
95
|
-
community: Address;
|
|
96
|
-
params: any;
|
|
97
|
-
account?: Account | Address;
|
|
98
|
-
}) => Promise<Hash>;
|
|
99
|
-
hasToken: (args: {
|
|
100
|
-
token: Address;
|
|
101
|
-
}) => Promise<boolean>;
|
|
102
|
-
getDeployedCount: () => Promise<bigint>;
|
|
103
|
-
industryMultipliers: (args: {
|
|
104
|
-
industry: string;
|
|
105
|
-
}) => Promise<bigint>;
|
|
106
|
-
getIndustryMultiplier: (args: {
|
|
107
|
-
industry: string;
|
|
108
|
-
}) => Promise<bigint>;
|
|
109
|
-
predictions: (args: {
|
|
110
|
-
community: Address;
|
|
111
|
-
}) => Promise<any>;
|
|
112
|
-
MIN_SUGGESTED_AMOUNT: () => Promise<bigint>;
|
|
113
|
-
DEFAULT_SAFETY_FACTOR: () => Promise<bigint>;
|
|
114
|
-
SUPERPAYMASTER: () => Promise<Address>;
|
|
115
|
-
xPNTsFactoryVersion: () => Promise<string>;
|
|
116
|
-
};
|
|
117
|
-
export type PaymasterFactoryActions = {
|
|
118
|
-
deployPaymaster: (args: {
|
|
119
|
-
owner: Address;
|
|
120
|
-
version?: string;
|
|
121
|
-
initData?: Hex;
|
|
122
|
-
account?: Account | Address;
|
|
123
|
-
}) => Promise<Hash>;
|
|
124
|
-
deployPaymasterDeterministic: (args: {
|
|
125
|
-
owner: Address;
|
|
126
|
-
version?: string;
|
|
127
|
-
initData?: Hex;
|
|
128
|
-
salt: Hex;
|
|
129
|
-
account?: Account | Address;
|
|
130
|
-
}) => Promise<Hash>;
|
|
131
|
-
predictPaymasterAddress: (args: {
|
|
132
|
-
owner: Address;
|
|
133
|
-
salt: Hex;
|
|
134
|
-
}) => Promise<Address>;
|
|
135
|
-
calculateAddress: (args: {
|
|
136
|
-
owner: Address;
|
|
137
|
-
}) => Promise<Address>;
|
|
138
|
-
getPaymaster: (args: {
|
|
139
|
-
owner: Address;
|
|
140
|
-
}) => Promise<Address>;
|
|
141
|
-
getPaymasterCount: () => Promise<bigint>;
|
|
142
|
-
getAllPaymasters: () => Promise<Address[]>;
|
|
143
|
-
isPaymasterDeployed: (args: {
|
|
144
|
-
owner: Address;
|
|
145
|
-
}) => Promise<boolean>;
|
|
146
|
-
hasPaymaster: (args: {
|
|
147
|
-
owner: Address;
|
|
148
|
-
}) => Promise<boolean>;
|
|
149
|
-
getPaymasterList: (args: {
|
|
150
|
-
offset: bigint;
|
|
151
|
-
limit: bigint;
|
|
152
|
-
}) => Promise<Address[]>;
|
|
153
|
-
paymasterList: (args: {
|
|
154
|
-
index: bigint;
|
|
155
|
-
}) => Promise<Address>;
|
|
156
|
-
totalDeployed: () => Promise<bigint>;
|
|
157
|
-
getOperatorByPaymaster: (args: {
|
|
158
|
-
paymaster: Address;
|
|
159
|
-
}) => Promise<Address>;
|
|
160
|
-
operatorByPaymaster: (args: {
|
|
161
|
-
paymaster: Address;
|
|
162
|
-
}) => Promise<Address>;
|
|
163
|
-
getPaymasterByOperator: (args: {
|
|
164
|
-
operator: Address;
|
|
165
|
-
}) => Promise<Address>;
|
|
166
|
-
paymasterByOperator: (args: {
|
|
167
|
-
operator: Address;
|
|
168
|
-
}) => Promise<Address>;
|
|
169
|
-
getPaymasterInfo: (args: {
|
|
170
|
-
paymaster: Address;
|
|
171
|
-
}) => Promise<any>;
|
|
172
|
-
hasImplementation: (args: {
|
|
173
|
-
version: string;
|
|
174
|
-
}) => Promise<boolean>;
|
|
175
|
-
implementations: (args: {
|
|
176
|
-
version: string;
|
|
177
|
-
}) => Promise<Address>;
|
|
178
|
-
setImplementationV4: (args: {
|
|
179
|
-
impl: Address;
|
|
180
|
-
account?: Account | Address;
|
|
181
|
-
}) => Promise<Hash>;
|
|
182
|
-
getImplementationV4: () => Promise<Address>;
|
|
183
|
-
setRegistry: (args: {
|
|
184
|
-
registry: Address;
|
|
185
|
-
account?: Account | Address;
|
|
186
|
-
}) => Promise<Hash>;
|
|
187
|
-
addImplementation: (args: {
|
|
188
|
-
version: string;
|
|
189
|
-
implementation: Address;
|
|
190
|
-
account?: Account | Address;
|
|
191
|
-
}) => Promise<Hash>;
|
|
192
|
-
upgradeImplementation: (args: {
|
|
193
|
-
version: string;
|
|
194
|
-
newImplementation: Address;
|
|
195
|
-
account?: Account | Address;
|
|
196
|
-
}) => Promise<Hash>;
|
|
197
|
-
setDefaultVersion: (args: {
|
|
198
|
-
version: string;
|
|
199
|
-
account?: Account | Address;
|
|
200
|
-
}) => Promise<Hash>;
|
|
201
|
-
REGISTRY: () => Promise<Address>;
|
|
202
|
-
ENTRY_POINT: () => Promise<Address>;
|
|
203
|
-
paymasterFactoryOwner: () => Promise<Address>;
|
|
204
|
-
transferPaymasterFactoryOwnership: (args: {
|
|
205
|
-
newOwner: Address;
|
|
206
|
-
account?: Account | Address;
|
|
207
|
-
}) => Promise<Hash>;
|
|
208
|
-
renouncePaymasterFactoryOwnership: (args: {
|
|
209
|
-
account?: Account | Address;
|
|
210
|
-
}) => Promise<Hash>;
|
|
211
|
-
defaultVersion: () => Promise<string>;
|
|
212
|
-
paymasterFactoryVersion: () => Promise<string>;
|
|
213
|
-
};
|
|
214
|
-
export declare const xPNTsFactoryActions: (address: Address) => (client: PublicClient | WalletClient) => XPNTsFactoryActions;
|
|
215
|
-
export declare const paymasterFactoryActions: (address: Address) => (client: PublicClient | WalletClient) => PaymasterFactoryActions;
|