@libid/contracts 0.1.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/README.md +96 -0
- package/dist/abis/adminFacet.d.ts +339 -0
- package/dist/abis/adminFacet.d.ts.map +1 -0
- package/dist/abis/adminFacet.js +442 -0
- package/dist/abis/adminFacet.js.map +1 -0
- package/dist/abis/bank.d.ts +916 -0
- package/dist/abis/bank.d.ts.map +1 -0
- package/dist/abis/bank.js +1184 -0
- package/dist/abis/bank.js.map +1 -0
- package/dist/abis/diamondLoupeFacet.d.ts +73 -0
- package/dist/abis/diamondLoupeFacet.d.ts.map +1 -0
- package/dist/abis/diamondLoupeFacet.js +100 -0
- package/dist/abis/diamondLoupeFacet.js.map +1 -0
- package/dist/abis/gitHubIdentityVerifier.d.ts +451 -0
- package/dist/abis/gitHubIdentityVerifier.d.ts.map +1 -0
- package/dist/abis/gitHubIdentityVerifier.js +586 -0
- package/dist/abis/gitHubIdentityVerifier.js.map +1 -0
- package/dist/abis/googleIdentityVerifier.d.ts +373 -0
- package/dist/abis/googleIdentityVerifier.d.ts.map +1 -0
- package/dist/abis/googleIdentityVerifier.js +485 -0
- package/dist/abis/googleIdentityVerifier.js.map +1 -0
- package/dist/abis/googleOidcVerifier.d.ts +743 -0
- package/dist/abis/googleOidcVerifier.d.ts.map +1 -0
- package/dist/abis/googleOidcVerifier.js +962 -0
- package/dist/abis/googleOidcVerifier.js.map +1 -0
- package/dist/abis/identityJwksRoots.d.ts +515 -0
- package/dist/abis/identityJwksRoots.d.ts.map +1 -0
- package/dist/abis/identityJwksRoots.js +669 -0
- package/dist/abis/identityJwksRoots.js.map +1 -0
- package/dist/abis/identityNames.d.ts +614 -0
- package/dist/abis/identityNames.d.ts.map +1 -0
- package/dist/abis/identityNames.js +798 -0
- package/dist/abis/identityNames.js.map +1 -0
- package/dist/abis/index.d.ts +19 -0
- package/dist/abis/index.d.ts.map +1 -0
- package/dist/abis/index.js +21 -0
- package/dist/abis/index.js.map +1 -0
- package/dist/abis/mockErc20.d.ts +262 -0
- package/dist/abis/mockErc20.d.ts.map +1 -0
- package/dist/abis/mockErc20.js +347 -0
- package/dist/abis/mockErc20.js.map +1 -0
- package/dist/abis/notaryRegistry.d.ts +272 -0
- package/dist/abis/notaryRegistry.d.ts.map +1 -0
- package/dist/abis/notaryRegistry.js +355 -0
- package/dist/abis/notaryRegistry.js.map +1 -0
- package/dist/abis/registry.d.ts +1166 -0
- package/dist/abis/registry.d.ts.map +1 -0
- package/dist/abis/registry.js +1506 -0
- package/dist/abis/registry.js.map +1 -0
- package/dist/abis/transferFacet.d.ts +814 -0
- package/dist/abis/transferFacet.d.ts.map +1 -0
- package/dist/abis/transferFacet.js +1035 -0
- package/dist/abis/transferFacet.js.map +1 -0
- package/dist/abis/vaultFacet.d.ts +306 -0
- package/dist/abis/vaultFacet.d.ts.map +1 -0
- package/dist/abis/vaultFacet.js +398 -0
- package/dist/abis/vaultFacet.js.map +1 -0
- package/dist/abis/walletFactory.d.ts +325 -0
- package/dist/abis/walletFactory.d.ts.map +1 -0
- package/dist/abis/walletFactory.js +424 -0
- package/dist/abis/walletFactory.js.map +1 -0
- package/dist/abis/webWallet.d.ts +523 -0
- package/dist/abis/webWallet.d.ts.map +1 -0
- package/dist/abis/webWallet.js +680 -0
- package/dist/abis/webWallet.js.map +1 -0
- package/dist/abis/wtia9.d.ts +233 -0
- package/dist/abis/wtia9.d.ts.map +1 -0
- package/dist/abis/wtia9.js +304 -0
- package/dist/abis/wtia9.js.map +1 -0
- package/dist/abis/xIdentityVerifier.d.ts +487 -0
- package/dist/abis/xIdentityVerifier.d.ts.map +1 -0
- package/dist/abis/xIdentityVerifier.js +631 -0
- package/dist/abis/xIdentityVerifier.js.map +1 -0
- package/dist/abis/xZkVerifier.d.ts +586 -0
- package/dist/abis/xZkVerifier.d.ts.map +1 -0
- package/dist/abis/xZkVerifier.js +760 -0
- package/dist/abis/xZkVerifier.js.map +1 -0
- package/dist/identity/bind.d.ts +60 -0
- package/dist/identity/bind.d.ts.map +1 -0
- package/dist/identity/bind.fixtures.d.ts +8 -0
- package/dist/identity/bind.fixtures.d.ts.map +1 -0
- package/dist/identity/bind.fixtures.js +57 -0
- package/dist/identity/bind.fixtures.js.map +1 -0
- package/dist/identity/bind.js +119 -0
- package/dist/identity/bind.js.map +1 -0
- package/dist/identity/handle.d.ts +22 -0
- package/dist/identity/handle.d.ts.map +1 -0
- package/dist/identity/handle.js +137 -0
- package/dist/identity/handle.js.map +1 -0
- package/dist/identity/handleVectors.d.ts +53 -0
- package/dist/identity/handleVectors.d.ts.map +1 -0
- package/dist/identity/handleVectors.js +99 -0
- package/dist/identity/handleVectors.js.map +1 -0
- package/dist/identity/index.d.ts +5 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +12 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/resolve.d.ts +16 -0
- package/dist/identity/resolve.d.ts.map +1 -0
- package/dist/identity/resolve.js +90 -0
- package/dist/identity/resolve.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -0
- package/src/abis/adminFacet.ts +444 -0
- package/src/abis/bank.ts +1186 -0
- package/src/abis/diamondLoupeFacet.ts +102 -0
- package/src/abis/gitHubIdentityVerifier.ts +588 -0
- package/src/abis/googleIdentityVerifier.ts +487 -0
- package/src/abis/googleOidcVerifier.ts +964 -0
- package/src/abis/identityJwksRoots.ts +671 -0
- package/src/abis/identityNames.ts +800 -0
- package/src/abis/index.ts +20 -0
- package/src/abis/mockErc20.ts +349 -0
- package/src/abis/notaryRegistry.ts +357 -0
- package/src/abis/registry.ts +1508 -0
- package/src/abis/transferFacet.ts +1037 -0
- package/src/abis/vaultFacet.ts +400 -0
- package/src/abis/walletFactory.ts +426 -0
- package/src/abis/webWallet.ts +682 -0
- package/src/abis/wtia9.ts +306 -0
- package/src/abis/xIdentityVerifier.ts +633 -0
- package/src/abis/xZkVerifier.ts +762 -0
- package/src/identity/bind.fixtures.ts +65 -0
- package/src/identity/bind.ts +209 -0
- package/src/identity/handle.ts +170 -0
- package/src/identity/handleVectors.ts +115 -0
- package/src/identity/index.ts +12 -0
- package/src/identity/resolve.ts +141 -0
- package/src/index.ts +6 -0
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# @libid/contracts
|
|
2
|
+
|
|
3
|
+
Typed, viem-ready ABIs for every libid contract, plus the identity helper
|
|
4
|
+
layer: handle normalization, proof encoding for `bind`, and name resolution.
|
|
5
|
+
|
|
6
|
+
The ABIs in `src/abis/` are generated from the forge artifacts
|
|
7
|
+
(`solidity/out`) by `scripts/codegen.mjs` and committed; each is exported
|
|
8
|
+
`as const satisfies Abi`, so viem infers argument and return types from them.
|
|
9
|
+
The handle vector table in `src/identity/handleVectors.ts` is generated from
|
|
10
|
+
`solidity/contracts/identity/handles.json` by
|
|
11
|
+
`scripts/regen-identity-handles.py`.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
pnpm add @libid/contracts viem
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Reading a contract with viem
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { createPublicClient, http } from 'viem'
|
|
21
|
+
import { registryAbi, bankAbi } from '@libid/contracts/abis'
|
|
22
|
+
|
|
23
|
+
const client = createPublicClient({ transport: http(RPC_URL) })
|
|
24
|
+
|
|
25
|
+
// Fully typed: viem infers the argument and return types from the ABI.
|
|
26
|
+
const wallet = await client.readContract({
|
|
27
|
+
address: REGISTRY,
|
|
28
|
+
abi: registryAbi,
|
|
29
|
+
functionName: 'walletOf',
|
|
30
|
+
args: ['github', '583231'],
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const tokens = await client.readContract({
|
|
34
|
+
address: BANK,
|
|
35
|
+
abi: bankAbi,
|
|
36
|
+
functionName: 'getRegisteredTokens',
|
|
37
|
+
})
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Resolving a name
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import {
|
|
44
|
+
platformId,
|
|
45
|
+
resolveHandle,
|
|
46
|
+
resolvePair,
|
|
47
|
+
primaryName,
|
|
48
|
+
PLATFORM_X_DOMAIN,
|
|
49
|
+
} from '@libid/contracts/identity'
|
|
50
|
+
|
|
51
|
+
const reader = { client, address: IDENTITY_NAMES }
|
|
52
|
+
const x = platformId(PLATFORM_X_DOMAIN)
|
|
53
|
+
|
|
54
|
+
// The wallet that last proved a handle, or null. Pass what the user typed —
|
|
55
|
+
// normalization happens on chain.
|
|
56
|
+
const owner = await resolveHandle(reader, x, '@Alice')
|
|
57
|
+
|
|
58
|
+
// Before sending funds: does the account id still agree with the handle?
|
|
59
|
+
const { wallet, idAgrees } = await resolvePair(reader, x, 'alice', '42')
|
|
60
|
+
|
|
61
|
+
// The display name for a wallet, forward-checked on chain.
|
|
62
|
+
const name = await primaryName(reader, wallet!, x)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Binding a name
|
|
66
|
+
|
|
67
|
+
`bindCall` builds calldata and nothing more — an EOA sends it directly, a
|
|
68
|
+
smart account wraps it in its own execute:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { bindCall, encodeGitHubProof, platformId, PLATFORM_GITHUB_DOMAIN } from '@libid/contracts/identity'
|
|
72
|
+
|
|
73
|
+
const proof = encodeGitHubProof(gitHubProof) // from the notarization flow
|
|
74
|
+
const call = bindCall(IDENTITY_NAMES, platformId(PLATFORM_GITHUB_DOMAIN), proof, true)
|
|
75
|
+
// call = { to, data } — sign and send from the address the proof names.
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Normalizing a handle locally
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { normalize, RULES_X, HandleError } from '@libid/contracts/identity'
|
|
82
|
+
|
|
83
|
+
normalize(' @Alice_1 ', RULES_X) // 'alice_1'
|
|
84
|
+
// Throws HandleError (with a kind matching the on-chain error) on refusal.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Development
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
cd solidity && forge build # codegen reads the artifacts
|
|
91
|
+
pnpm -C ts install
|
|
92
|
+
pnpm -C ts codegen # regenerate src/abis/ (codegen:check diffs)
|
|
93
|
+
pnpm -C ts build # tsc → dist/ (ESM + .d.ts)
|
|
94
|
+
pnpm -C ts test # vitest
|
|
95
|
+
pnpm -C ts lint && pnpm -C ts fmt:check
|
|
96
|
+
```
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
export declare const adminFacetAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "clearPlatformTemplates";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "platform";
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
readonly internalType: "string";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [];
|
|
10
|
+
readonly stateMutability: "nonpayable";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "getPlatformTemplate";
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "platform";
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly internalType: "string";
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "index";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly outputs: readonly [{
|
|
24
|
+
readonly name: "";
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly internalType: "string";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "view";
|
|
29
|
+
}, {
|
|
30
|
+
readonly type: "function";
|
|
31
|
+
readonly name: "getPlatformWebPrefix";
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly name: "platform";
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly internalType: "string";
|
|
36
|
+
}];
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly name: "";
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly internalType: "string";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "view";
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly name: "getRegisteredTokens";
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "address[]";
|
|
50
|
+
readonly internalType: "address[]";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly name: "getTemplateParts";
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly name: "platform";
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly internalType: "string";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "index";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly name: "prefix";
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly internalType: "string";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "afterRecipient";
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly internalType: "string";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "afterAmount";
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly internalType: "string";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "suffix";
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly internalType: "string";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly name: "pause";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly outputs: readonly [];
|
|
88
|
+
readonly stateMutability: "nonpayable";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly name: "paused";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly name: "";
|
|
95
|
+
readonly type: "bool";
|
|
96
|
+
readonly internalType: "bool";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "platformTemplateCount";
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly name: "platform";
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly internalType: "string";
|
|
106
|
+
}];
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly name: "";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
readonly internalType: "uint256";
|
|
111
|
+
}];
|
|
112
|
+
readonly stateMutability: "view";
|
|
113
|
+
}, {
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
readonly name: "registerToken";
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly name: "name";
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly internalType: "string";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "token";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
}];
|
|
125
|
+
readonly outputs: readonly [];
|
|
126
|
+
readonly stateMutability: "nonpayable";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "function";
|
|
129
|
+
readonly name: "registry";
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly name: "";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "resolveToken";
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "name";
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly internalType: "string";
|
|
144
|
+
}];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly name: "setPlatformTemplate";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "platform";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly internalType: "string";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "newTemplate";
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly internalType: "string";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [];
|
|
164
|
+
readonly stateMutability: "nonpayable";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly name: "setPlatformWebPrefix";
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly name: "platform";
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly internalType: "string";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "prefix";
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly internalType: "string";
|
|
176
|
+
}];
|
|
177
|
+
readonly outputs: readonly [];
|
|
178
|
+
readonly stateMutability: "nonpayable";
|
|
179
|
+
}, {
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
readonly name: "setRegistry";
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly name: "_registry";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
readonly internalType: "address";
|
|
186
|
+
}];
|
|
187
|
+
readonly outputs: readonly [];
|
|
188
|
+
readonly stateMutability: "nonpayable";
|
|
189
|
+
}, {
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
readonly name: "setResourceTypePrefix";
|
|
192
|
+
readonly inputs: readonly [{
|
|
193
|
+
readonly name: "resourceType";
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly internalType: "string";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "prefix";
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
readonly internalType: "string";
|
|
200
|
+
}];
|
|
201
|
+
readonly outputs: readonly [];
|
|
202
|
+
readonly stateMutability: "nonpayable";
|
|
203
|
+
}, {
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
readonly name: "tokenName";
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly name: "token";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
}];
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly internalType: "string";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly name: "unpause";
|
|
220
|
+
readonly inputs: readonly [];
|
|
221
|
+
readonly outputs: readonly [];
|
|
222
|
+
readonly stateMutability: "nonpayable";
|
|
223
|
+
}, {
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
readonly name: "unregisterToken";
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly name: "name";
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly internalType: "string";
|
|
230
|
+
}];
|
|
231
|
+
readonly outputs: readonly [];
|
|
232
|
+
readonly stateMutability: "nonpayable";
|
|
233
|
+
}, {
|
|
234
|
+
readonly type: "event";
|
|
235
|
+
readonly name: "Paused";
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly name: "account";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
readonly indexed: false;
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
}];
|
|
242
|
+
readonly anonymous: false;
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "event";
|
|
245
|
+
readonly name: "RegistrySet";
|
|
246
|
+
readonly inputs: readonly [{
|
|
247
|
+
readonly name: "oldRegistry";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
readonly indexed: true;
|
|
250
|
+
readonly internalType: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "newRegistry";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly indexed: true;
|
|
255
|
+
readonly internalType: "address";
|
|
256
|
+
}];
|
|
257
|
+
readonly anonymous: false;
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "event";
|
|
260
|
+
readonly name: "TokenRegistered";
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "name";
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly indexed: false;
|
|
265
|
+
readonly internalType: "string";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "token";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
readonly indexed: true;
|
|
270
|
+
readonly internalType: "address";
|
|
271
|
+
}];
|
|
272
|
+
readonly anonymous: false;
|
|
273
|
+
}, {
|
|
274
|
+
readonly type: "event";
|
|
275
|
+
readonly name: "TokenUnregistered";
|
|
276
|
+
readonly inputs: readonly [{
|
|
277
|
+
readonly name: "name";
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
readonly indexed: false;
|
|
280
|
+
readonly internalType: "string";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "token";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
readonly indexed: true;
|
|
285
|
+
readonly internalType: "address";
|
|
286
|
+
}];
|
|
287
|
+
readonly anonymous: false;
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "event";
|
|
290
|
+
readonly name: "Unpaused";
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly name: "account";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
readonly indexed: false;
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
}];
|
|
297
|
+
readonly anonymous: false;
|
|
298
|
+
}, {
|
|
299
|
+
readonly type: "error";
|
|
300
|
+
readonly name: "AlreadyRegistered";
|
|
301
|
+
readonly inputs: readonly [];
|
|
302
|
+
}, {
|
|
303
|
+
readonly type: "error";
|
|
304
|
+
readonly name: "EmptyName";
|
|
305
|
+
readonly inputs: readonly [];
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "error";
|
|
308
|
+
readonly name: "NotContractOwner";
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly name: "caller";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
readonly internalType: "address";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "owner";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
readonly internalType: "address";
|
|
317
|
+
}];
|
|
318
|
+
}, {
|
|
319
|
+
readonly type: "error";
|
|
320
|
+
readonly name: "NotRegistered";
|
|
321
|
+
readonly inputs: readonly [];
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "error";
|
|
324
|
+
readonly name: "TemplateMissingAmount";
|
|
325
|
+
readonly inputs: readonly [];
|
|
326
|
+
}, {
|
|
327
|
+
readonly type: "error";
|
|
328
|
+
readonly name: "TemplateMissingToken";
|
|
329
|
+
readonly inputs: readonly [];
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "error";
|
|
332
|
+
readonly name: "TemplateMissingTokenAfterRecipient";
|
|
333
|
+
readonly inputs: readonly [];
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "error";
|
|
336
|
+
readonly name: "ZeroAddress";
|
|
337
|
+
readonly inputs: readonly [];
|
|
338
|
+
}];
|
|
339
|
+
//# sourceMappingURL=adminFacet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adminFacet.d.ts","sourceRoot":"","sources":["../../src/abis/adminFacet.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsbF,CAAA"}
|