@azeth/common 0.2.0
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 +21 -0
- package/README.md +65 -0
- package/dist/abis/AzethAccount.d.ts +585 -0
- package/dist/abis/AzethAccount.d.ts.map +1 -0
- package/dist/abis/AzethAccount.js +760 -0
- package/dist/abis/AzethAccount.js.map +1 -0
- package/dist/abis/AzethFactory.d.ts +579 -0
- package/dist/abis/AzethFactory.d.ts.map +1 -0
- package/dist/abis/AzethFactory.js +747 -0
- package/dist/abis/AzethFactory.js.map +1 -0
- package/dist/abis/AzethOracle.d.ts +495 -0
- package/dist/abis/AzethOracle.d.ts.map +1 -0
- package/dist/abis/AzethOracle.js +643 -0
- package/dist/abis/AzethOracle.js.map +1 -0
- package/dist/abis/ERC8004ReputationRegistry.d.ts +319 -0
- package/dist/abis/ERC8004ReputationRegistry.d.ts.map +1 -0
- package/dist/abis/ERC8004ReputationRegistry.js +405 -0
- package/dist/abis/ERC8004ReputationRegistry.js.map +1 -0
- package/dist/abis/GuardianModule.d.ts +825 -0
- package/dist/abis/GuardianModule.d.ts.map +1 -0
- package/dist/abis/GuardianModule.js +1067 -0
- package/dist/abis/GuardianModule.js.map +1 -0
- package/dist/abis/PaymentAgreementModule.d.ts +716 -0
- package/dist/abis/PaymentAgreementModule.d.ts.map +1 -0
- package/dist/abis/PaymentAgreementModule.js +915 -0
- package/dist/abis/PaymentAgreementModule.js.map +1 -0
- package/dist/abis/ReputationModule.d.ts +837 -0
- package/dist/abis/ReputationModule.d.ts.map +1 -0
- package/dist/abis/ReputationModule.js +1080 -0
- package/dist/abis/ReputationModule.js.map +1 -0
- package/dist/abis/TrustRegistryModule.d.ts +238 -0
- package/dist/abis/TrustRegistryModule.d.ts.map +1 -0
- package/dist/abis/TrustRegistryModule.js +311 -0
- package/dist/abis/TrustRegistryModule.js.map +1 -0
- package/dist/abis/index.d.ts +9 -0
- package/dist/abis/index.d.ts.map +1 -0
- package/dist/abis/index.js +9 -0
- package/dist/abis/index.js.map +1 -0
- package/dist/constants/addresses.d.ts +52 -0
- package/dist/constants/addresses.d.ts.map +1 -0
- package/dist/constants/addresses.js +56 -0
- package/dist/constants/addresses.js.map +1 -0
- package/dist/constants/chains.d.ts +73 -0
- package/dist/constants/chains.d.ts.map +1 -0
- package/dist/constants/chains.js +66 -0
- package/dist/constants/chains.js.map +1 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +4 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/tokens.d.ts +19 -0
- package/dist/constants/tokens.d.ts.map +1 -0
- package/dist/constants/tokens.js +19 -0
- package/dist/constants/tokens.js.map +1 -0
- package/dist/errors.d.ts +7 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +11 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/types/contracts.d.ts +34 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/dist/types/contracts.js +2 -0
- package/dist/types/contracts.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/messaging.d.ts +215 -0
- package/dist/types/messaging.d.ts.map +1 -0
- package/dist/types/messaging.js +3 -0
- package/dist/types/messaging.js.map +1 -0
- package/dist/types/participant.d.ts +23 -0
- package/dist/types/participant.d.ts.map +1 -0
- package/dist/types/participant.js +2 -0
- package/dist/types/participant.js.map +1 -0
- package/dist/types/payments.d.ts +35 -0
- package/dist/types/payments.d.ts.map +1 -0
- package/dist/types/payments.js +2 -0
- package/dist/types/payments.js.map +1 -0
- package/dist/types/registry.d.ts +84 -0
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/types/registry.js +2 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/reputation.d.ts +91 -0
- package/dist/types/reputation.d.ts.map +1 -0
- package/dist/types/reputation.js +2 -0
- package/dist/types/reputation.js.map +1 -0
- package/dist/utils/chains.d.ts +9 -0
- package/dist/utils/chains.d.ts.map +1 -0
- package/dist/utils/chains.js +19 -0
- package/dist/utils/chains.js.map +1 -0
- package/dist/utils/formatting.d.ts +11 -0
- package/dist/utils/formatting.d.ts.map +1 -0
- package/dist/utils/formatting.js +69 -0
- package/dist/utils/formatting.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.d.ts +32 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +100 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Azeth.ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# @azeth/common
|
|
2
|
+
|
|
3
|
+
Shared types, constants, ABIs, and errors for the [Azeth](https://azeth.ai) trust infrastructure.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @azeth/common
|
|
9
|
+
# or
|
|
10
|
+
pnpm add @azeth/common
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What's Included
|
|
14
|
+
|
|
15
|
+
### Types
|
|
16
|
+
|
|
17
|
+
- **Account** -- `ParticipantIdentity`, `Guardrails`, `AzethContractAddresses`
|
|
18
|
+
- **Payments** -- `X402PaymentRequirement`, `PaymentAgreement`
|
|
19
|
+
- **Reputation** -- `OnChainOpinion`, `WeightedReputation`, `PaymentDelta`
|
|
20
|
+
- **Registry** -- `RegistryEntry`, `DiscoveryParams`, `CatalogEntry`
|
|
21
|
+
- **Messaging** -- `XMTPMessage`, `StructuredMessage`, `MessageRouterOptions`
|
|
22
|
+
- **Balances** -- `TokenBalanceUSD`, `AccountBalanceUSD`, `AggregatedBalanceResult`
|
|
23
|
+
|
|
24
|
+
### Constants
|
|
25
|
+
|
|
26
|
+
- `AZETH_CONTRACTS` -- deployed contract addresses per chain
|
|
27
|
+
- `ERC8004_REGISTRY` / `ERC8004_REPUTATION_REGISTRY` -- external registry addresses
|
|
28
|
+
- `ENTRYPOINT_V07` -- ERC-4337 EntryPoint v0.7
|
|
29
|
+
- `SUPPORTED_CHAINS` -- Base, Base Sepolia, Ethereum, Ethereum Sepolia
|
|
30
|
+
- `TOKENS` -- USDC and WETH addresses per chain
|
|
31
|
+
- `getBundlerUrl()`, `getPaymasterUrl()` -- chain-aware URL helpers
|
|
32
|
+
|
|
33
|
+
### ABIs
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import { AzethFactoryABI, GuardianModuleABI } from '@azeth/common/abis';
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Errors
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { AzethError } from '@azeth/common';
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
// ...
|
|
46
|
+
} catch (err) {
|
|
47
|
+
if (err instanceof AzethError) {
|
|
48
|
+
console.error(err.code, err.message);
|
|
49
|
+
// codes: BUDGET_EXCEEDED, GUARDIAN_REJECTED, INSUFFICIENT_BALANCE, ...
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Validation Utilities
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { validateAddress, validateChainName, isValidUrl } from '@azeth/common';
|
|
58
|
+
|
|
59
|
+
validateAddress('0x...'); // throws AzethError on invalid
|
|
60
|
+
validateChainName('base'); // resolves aliases like 'base-sepolia' -> 'baseSepolia'
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
MIT
|
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
export declare const AzethAccountAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly stateMutability: "nonpayable";
|
|
5
|
+
}, {
|
|
6
|
+
readonly type: "receive";
|
|
7
|
+
readonly stateMutability: "payable";
|
|
8
|
+
}, {
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
readonly name: "ENTRYPOINT";
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly name: "";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
}, {
|
|
19
|
+
readonly type: "function";
|
|
20
|
+
readonly name: "MAX_HOOKS";
|
|
21
|
+
readonly inputs: readonly [];
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly name: "";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
}, {
|
|
29
|
+
readonly type: "function";
|
|
30
|
+
readonly name: "accountId";
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly outputs: readonly [{
|
|
33
|
+
readonly name: "";
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly internalType: "string";
|
|
36
|
+
}];
|
|
37
|
+
readonly stateMutability: "pure";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
readonly name: "execute";
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly name: "mode";
|
|
43
|
+
readonly type: "bytes32";
|
|
44
|
+
readonly internalType: "ModeCode";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "executionCalldata";
|
|
47
|
+
readonly type: "bytes";
|
|
48
|
+
readonly internalType: "bytes";
|
|
49
|
+
}];
|
|
50
|
+
readonly outputs: readonly [];
|
|
51
|
+
readonly stateMutability: "payable";
|
|
52
|
+
}, {
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
readonly name: "executeFromExecutor";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "mode";
|
|
57
|
+
readonly type: "bytes32";
|
|
58
|
+
readonly internalType: "ModeCode";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "executionCalldata";
|
|
61
|
+
readonly type: "bytes";
|
|
62
|
+
readonly internalType: "bytes";
|
|
63
|
+
}];
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly name: "returnData";
|
|
66
|
+
readonly type: "bytes[]";
|
|
67
|
+
readonly internalType: "bytes[]";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "payable";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly name: "executeUserOp";
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "userOp";
|
|
75
|
+
readonly type: "tuple";
|
|
76
|
+
readonly internalType: "struct PackedUserOperation";
|
|
77
|
+
readonly components: readonly [{
|
|
78
|
+
readonly name: "sender";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "nonce";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "initCode";
|
|
87
|
+
readonly type: "bytes";
|
|
88
|
+
readonly internalType: "bytes";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "callData";
|
|
91
|
+
readonly type: "bytes";
|
|
92
|
+
readonly internalType: "bytes";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "accountGasLimits";
|
|
95
|
+
readonly type: "bytes32";
|
|
96
|
+
readonly internalType: "bytes32";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "preVerificationGas";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "gasFees";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
readonly internalType: "bytes32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "paymasterAndData";
|
|
107
|
+
readonly type: "bytes";
|
|
108
|
+
readonly internalType: "bytes";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "signature";
|
|
111
|
+
readonly type: "bytes";
|
|
112
|
+
readonly internalType: "bytes";
|
|
113
|
+
}];
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "bytes32";
|
|
117
|
+
readonly internalType: "bytes32";
|
|
118
|
+
}];
|
|
119
|
+
readonly outputs: readonly [];
|
|
120
|
+
readonly stateMutability: "payable";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "factoryInstallModules";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "moduleTypeIds";
|
|
126
|
+
readonly type: "uint256[]";
|
|
127
|
+
readonly internalType: "uint256[]";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "modules";
|
|
130
|
+
readonly type: "address[]";
|
|
131
|
+
readonly internalType: "address[]";
|
|
132
|
+
}];
|
|
133
|
+
readonly outputs: readonly [];
|
|
134
|
+
readonly stateMutability: "nonpayable";
|
|
135
|
+
}, {
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
readonly name: "getFactory";
|
|
138
|
+
readonly inputs: readonly [];
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly name: "";
|
|
141
|
+
readonly type: "address";
|
|
142
|
+
readonly internalType: "address";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "function";
|
|
147
|
+
readonly name: "getOwner";
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly name: "initialize";
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly name: "_owner";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [];
|
|
164
|
+
readonly stateMutability: "payable";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly name: "installModule";
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly name: "moduleTypeId";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "module";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "initData";
|
|
178
|
+
readonly type: "bytes";
|
|
179
|
+
readonly internalType: "bytes";
|
|
180
|
+
}];
|
|
181
|
+
readonly outputs: readonly [];
|
|
182
|
+
readonly stateMutability: "payable";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
readonly name: "isModuleInstalled";
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly name: "moduleTypeId";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "module";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "";
|
|
196
|
+
readonly type: "bytes";
|
|
197
|
+
readonly internalType: "bytes";
|
|
198
|
+
}];
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly name: "";
|
|
201
|
+
readonly type: "bool";
|
|
202
|
+
readonly internalType: "bool";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "view";
|
|
205
|
+
}, {
|
|
206
|
+
readonly type: "function";
|
|
207
|
+
readonly name: "isValidSignature";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "hash";
|
|
210
|
+
readonly type: "bytes32";
|
|
211
|
+
readonly internalType: "bytes32";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "signature";
|
|
214
|
+
readonly type: "bytes";
|
|
215
|
+
readonly internalType: "bytes";
|
|
216
|
+
}];
|
|
217
|
+
readonly outputs: readonly [{
|
|
218
|
+
readonly name: "";
|
|
219
|
+
readonly type: "bytes4";
|
|
220
|
+
readonly internalType: "bytes4";
|
|
221
|
+
}];
|
|
222
|
+
readonly stateMutability: "view";
|
|
223
|
+
}, {
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
readonly name: "onERC1155BatchReceived";
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly name: "";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "";
|
|
236
|
+
readonly type: "uint256[]";
|
|
237
|
+
readonly internalType: "uint256[]";
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "uint256[]";
|
|
241
|
+
readonly internalType: "uint256[]";
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "bytes";
|
|
245
|
+
readonly internalType: "bytes";
|
|
246
|
+
}];
|
|
247
|
+
readonly outputs: readonly [{
|
|
248
|
+
readonly name: "";
|
|
249
|
+
readonly type: "bytes4";
|
|
250
|
+
readonly internalType: "bytes4";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "pure";
|
|
253
|
+
}, {
|
|
254
|
+
readonly type: "function";
|
|
255
|
+
readonly name: "onERC1155Received";
|
|
256
|
+
readonly inputs: readonly [{
|
|
257
|
+
readonly name: "";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
readonly internalType: "address";
|
|
260
|
+
}, {
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "address";
|
|
263
|
+
readonly internalType: "address";
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "uint256";
|
|
267
|
+
readonly internalType: "uint256";
|
|
268
|
+
}, {
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly internalType: "uint256";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "";
|
|
274
|
+
readonly type: "bytes";
|
|
275
|
+
readonly internalType: "bytes";
|
|
276
|
+
}];
|
|
277
|
+
readonly outputs: readonly [{
|
|
278
|
+
readonly name: "";
|
|
279
|
+
readonly type: "bytes4";
|
|
280
|
+
readonly internalType: "bytes4";
|
|
281
|
+
}];
|
|
282
|
+
readonly stateMutability: "pure";
|
|
283
|
+
}, {
|
|
284
|
+
readonly type: "function";
|
|
285
|
+
readonly name: "onERC721Received";
|
|
286
|
+
readonly inputs: readonly [{
|
|
287
|
+
readonly name: "";
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
readonly internalType: "address";
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "address";
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "";
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
readonly internalType: "uint256";
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "";
|
|
300
|
+
readonly type: "bytes";
|
|
301
|
+
readonly internalType: "bytes";
|
|
302
|
+
}];
|
|
303
|
+
readonly outputs: readonly [{
|
|
304
|
+
readonly name: "";
|
|
305
|
+
readonly type: "bytes4";
|
|
306
|
+
readonly internalType: "bytes4";
|
|
307
|
+
}];
|
|
308
|
+
readonly stateMutability: "pure";
|
|
309
|
+
}, {
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
readonly name: "revokeFactory";
|
|
312
|
+
readonly inputs: readonly [];
|
|
313
|
+
readonly outputs: readonly [];
|
|
314
|
+
readonly stateMutability: "nonpayable";
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "function";
|
|
317
|
+
readonly name: "supportsExecutionMode";
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly name: "mode";
|
|
320
|
+
readonly type: "bytes32";
|
|
321
|
+
readonly internalType: "ModeCode";
|
|
322
|
+
}];
|
|
323
|
+
readonly outputs: readonly [{
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "bool";
|
|
326
|
+
readonly internalType: "bool";
|
|
327
|
+
}];
|
|
328
|
+
readonly stateMutability: "pure";
|
|
329
|
+
}, {
|
|
330
|
+
readonly type: "function";
|
|
331
|
+
readonly name: "supportsInterface";
|
|
332
|
+
readonly inputs: readonly [{
|
|
333
|
+
readonly name: "interfaceId";
|
|
334
|
+
readonly type: "bytes4";
|
|
335
|
+
readonly internalType: "bytes4";
|
|
336
|
+
}];
|
|
337
|
+
readonly outputs: readonly [{
|
|
338
|
+
readonly name: "";
|
|
339
|
+
readonly type: "bool";
|
|
340
|
+
readonly internalType: "bool";
|
|
341
|
+
}];
|
|
342
|
+
readonly stateMutability: "pure";
|
|
343
|
+
}, {
|
|
344
|
+
readonly type: "function";
|
|
345
|
+
readonly name: "supportsModule";
|
|
346
|
+
readonly inputs: readonly [{
|
|
347
|
+
readonly name: "moduleTypeId";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly outputs: readonly [{
|
|
352
|
+
readonly name: "";
|
|
353
|
+
readonly type: "bool";
|
|
354
|
+
readonly internalType: "bool";
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "pure";
|
|
357
|
+
}, {
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
readonly name: "uninstallModule";
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly name: "moduleTypeId";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
readonly internalType: "uint256";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "module";
|
|
366
|
+
readonly type: "address";
|
|
367
|
+
readonly internalType: "address";
|
|
368
|
+
}, {
|
|
369
|
+
readonly name: "deInitData";
|
|
370
|
+
readonly type: "bytes";
|
|
371
|
+
readonly internalType: "bytes";
|
|
372
|
+
}];
|
|
373
|
+
readonly outputs: readonly [];
|
|
374
|
+
readonly stateMutability: "payable";
|
|
375
|
+
}, {
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
readonly name: "validateUserOp";
|
|
378
|
+
readonly inputs: readonly [{
|
|
379
|
+
readonly name: "userOp";
|
|
380
|
+
readonly type: "tuple";
|
|
381
|
+
readonly internalType: "struct PackedUserOperation";
|
|
382
|
+
readonly components: readonly [{
|
|
383
|
+
readonly name: "sender";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
readonly internalType: "address";
|
|
386
|
+
}, {
|
|
387
|
+
readonly name: "nonce";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
readonly internalType: "uint256";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "initCode";
|
|
392
|
+
readonly type: "bytes";
|
|
393
|
+
readonly internalType: "bytes";
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "callData";
|
|
396
|
+
readonly type: "bytes";
|
|
397
|
+
readonly internalType: "bytes";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "accountGasLimits";
|
|
400
|
+
readonly type: "bytes32";
|
|
401
|
+
readonly internalType: "bytes32";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "preVerificationGas";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
readonly internalType: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "gasFees";
|
|
408
|
+
readonly type: "bytes32";
|
|
409
|
+
readonly internalType: "bytes32";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "paymasterAndData";
|
|
412
|
+
readonly type: "bytes";
|
|
413
|
+
readonly internalType: "bytes";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "signature";
|
|
416
|
+
readonly type: "bytes";
|
|
417
|
+
readonly internalType: "bytes";
|
|
418
|
+
}];
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "userOpHash";
|
|
421
|
+
readonly type: "bytes32";
|
|
422
|
+
readonly internalType: "bytes32";
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "missingAccountFunds";
|
|
425
|
+
readonly type: "uint256";
|
|
426
|
+
readonly internalType: "uint256";
|
|
427
|
+
}];
|
|
428
|
+
readonly outputs: readonly [{
|
|
429
|
+
readonly name: "validationData";
|
|
430
|
+
readonly type: "uint256";
|
|
431
|
+
readonly internalType: "uint256";
|
|
432
|
+
}];
|
|
433
|
+
readonly stateMutability: "nonpayable";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "event";
|
|
436
|
+
readonly name: "FactoryRevoked";
|
|
437
|
+
readonly inputs: readonly [];
|
|
438
|
+
readonly anonymous: false;
|
|
439
|
+
}, {
|
|
440
|
+
readonly type: "event";
|
|
441
|
+
readonly name: "Initialized";
|
|
442
|
+
readonly inputs: readonly [{
|
|
443
|
+
readonly name: "owner";
|
|
444
|
+
readonly type: "address";
|
|
445
|
+
readonly indexed: true;
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "factory";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
readonly indexed: true;
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
}];
|
|
453
|
+
readonly anonymous: false;
|
|
454
|
+
}, {
|
|
455
|
+
readonly type: "event";
|
|
456
|
+
readonly name: "ModuleInstalled";
|
|
457
|
+
readonly inputs: readonly [{
|
|
458
|
+
readonly name: "moduleTypeId";
|
|
459
|
+
readonly type: "uint256";
|
|
460
|
+
readonly indexed: true;
|
|
461
|
+
readonly internalType: "uint256";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "module";
|
|
464
|
+
readonly type: "address";
|
|
465
|
+
readonly indexed: true;
|
|
466
|
+
readonly internalType: "address";
|
|
467
|
+
}];
|
|
468
|
+
readonly anonymous: false;
|
|
469
|
+
}, {
|
|
470
|
+
readonly type: "event";
|
|
471
|
+
readonly name: "ModuleUninstalled";
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly name: "moduleTypeId";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
readonly indexed: true;
|
|
476
|
+
readonly internalType: "uint256";
|
|
477
|
+
}, {
|
|
478
|
+
readonly name: "module";
|
|
479
|
+
readonly type: "address";
|
|
480
|
+
readonly indexed: true;
|
|
481
|
+
readonly internalType: "address";
|
|
482
|
+
}];
|
|
483
|
+
readonly anonymous: false;
|
|
484
|
+
}, {
|
|
485
|
+
readonly type: "error";
|
|
486
|
+
readonly name: "AlreadyInitialized";
|
|
487
|
+
readonly inputs: readonly [];
|
|
488
|
+
}, {
|
|
489
|
+
readonly type: "error";
|
|
490
|
+
readonly name: "BatchLengthMismatch";
|
|
491
|
+
readonly inputs: readonly [];
|
|
492
|
+
}, {
|
|
493
|
+
readonly type: "error";
|
|
494
|
+
readonly name: "ExecutionFailed";
|
|
495
|
+
readonly inputs: readonly [];
|
|
496
|
+
}, {
|
|
497
|
+
readonly type: "error";
|
|
498
|
+
readonly name: "InvalidAddress";
|
|
499
|
+
readonly inputs: readonly [];
|
|
500
|
+
}, {
|
|
501
|
+
readonly type: "error";
|
|
502
|
+
readonly name: "InvalidOwner";
|
|
503
|
+
readonly inputs: readonly [];
|
|
504
|
+
}, {
|
|
505
|
+
readonly type: "error";
|
|
506
|
+
readonly name: "MaxHooksReached";
|
|
507
|
+
readonly inputs: readonly [];
|
|
508
|
+
}, {
|
|
509
|
+
readonly type: "error";
|
|
510
|
+
readonly name: "MismatchModuleTypeId";
|
|
511
|
+
readonly inputs: readonly [{
|
|
512
|
+
readonly name: "moduleTypeId";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
readonly internalType: "uint256";
|
|
515
|
+
}];
|
|
516
|
+
}, {
|
|
517
|
+
readonly type: "error";
|
|
518
|
+
readonly name: "ModuleAlreadyInstalled";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly name: "moduleTypeId";
|
|
521
|
+
readonly type: "uint256";
|
|
522
|
+
readonly internalType: "uint256";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "module";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
readonly internalType: "address";
|
|
527
|
+
}];
|
|
528
|
+
}, {
|
|
529
|
+
readonly type: "error";
|
|
530
|
+
readonly name: "ModuleNotInstalled";
|
|
531
|
+
readonly inputs: readonly [{
|
|
532
|
+
readonly name: "moduleTypeId";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
readonly internalType: "uint256";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "module";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
}];
|
|
540
|
+
}, {
|
|
541
|
+
readonly type: "error";
|
|
542
|
+
readonly name: "NotAuthorized";
|
|
543
|
+
readonly inputs: readonly [];
|
|
544
|
+
}, {
|
|
545
|
+
readonly type: "error";
|
|
546
|
+
readonly name: "OnlyEntryPoint";
|
|
547
|
+
readonly inputs: readonly [];
|
|
548
|
+
}, {
|
|
549
|
+
readonly type: "error";
|
|
550
|
+
readonly name: "OnlyExecutor";
|
|
551
|
+
readonly inputs: readonly [];
|
|
552
|
+
}, {
|
|
553
|
+
readonly type: "error";
|
|
554
|
+
readonly name: "OnlyFactory";
|
|
555
|
+
readonly inputs: readonly [];
|
|
556
|
+
}, {
|
|
557
|
+
readonly type: "error";
|
|
558
|
+
readonly name: "OnlyOwner";
|
|
559
|
+
readonly inputs: readonly [];
|
|
560
|
+
}, {
|
|
561
|
+
readonly type: "error";
|
|
562
|
+
readonly name: "UnsupportedCallType";
|
|
563
|
+
readonly inputs: readonly [{
|
|
564
|
+
readonly name: "callType";
|
|
565
|
+
readonly type: "bytes1";
|
|
566
|
+
readonly internalType: "CallType";
|
|
567
|
+
}];
|
|
568
|
+
}, {
|
|
569
|
+
readonly type: "error";
|
|
570
|
+
readonly name: "UnsupportedExecType";
|
|
571
|
+
readonly inputs: readonly [{
|
|
572
|
+
readonly name: "execType";
|
|
573
|
+
readonly type: "bytes1";
|
|
574
|
+
readonly internalType: "ExecType";
|
|
575
|
+
}];
|
|
576
|
+
}, {
|
|
577
|
+
readonly type: "error";
|
|
578
|
+
readonly name: "UnsupportedModuleType";
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly name: "moduleTypeId";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
}];
|
|
584
|
+
}];
|
|
585
|
+
//# sourceMappingURL=AzethAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AzethAccount.d.ts","sourceRoot":"","sources":["../../src/abis/AzethAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsvBlB,CAAC"}
|