@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.
Files changed (132) hide show
  1. package/README.md +96 -0
  2. package/dist/abis/adminFacet.d.ts +339 -0
  3. package/dist/abis/adminFacet.d.ts.map +1 -0
  4. package/dist/abis/adminFacet.js +442 -0
  5. package/dist/abis/adminFacet.js.map +1 -0
  6. package/dist/abis/bank.d.ts +916 -0
  7. package/dist/abis/bank.d.ts.map +1 -0
  8. package/dist/abis/bank.js +1184 -0
  9. package/dist/abis/bank.js.map +1 -0
  10. package/dist/abis/diamondLoupeFacet.d.ts +73 -0
  11. package/dist/abis/diamondLoupeFacet.d.ts.map +1 -0
  12. package/dist/abis/diamondLoupeFacet.js +100 -0
  13. package/dist/abis/diamondLoupeFacet.js.map +1 -0
  14. package/dist/abis/gitHubIdentityVerifier.d.ts +451 -0
  15. package/dist/abis/gitHubIdentityVerifier.d.ts.map +1 -0
  16. package/dist/abis/gitHubIdentityVerifier.js +586 -0
  17. package/dist/abis/gitHubIdentityVerifier.js.map +1 -0
  18. package/dist/abis/googleIdentityVerifier.d.ts +373 -0
  19. package/dist/abis/googleIdentityVerifier.d.ts.map +1 -0
  20. package/dist/abis/googleIdentityVerifier.js +485 -0
  21. package/dist/abis/googleIdentityVerifier.js.map +1 -0
  22. package/dist/abis/googleOidcVerifier.d.ts +743 -0
  23. package/dist/abis/googleOidcVerifier.d.ts.map +1 -0
  24. package/dist/abis/googleOidcVerifier.js +962 -0
  25. package/dist/abis/googleOidcVerifier.js.map +1 -0
  26. package/dist/abis/identityJwksRoots.d.ts +515 -0
  27. package/dist/abis/identityJwksRoots.d.ts.map +1 -0
  28. package/dist/abis/identityJwksRoots.js +669 -0
  29. package/dist/abis/identityJwksRoots.js.map +1 -0
  30. package/dist/abis/identityNames.d.ts +614 -0
  31. package/dist/abis/identityNames.d.ts.map +1 -0
  32. package/dist/abis/identityNames.js +798 -0
  33. package/dist/abis/identityNames.js.map +1 -0
  34. package/dist/abis/index.d.ts +19 -0
  35. package/dist/abis/index.d.ts.map +1 -0
  36. package/dist/abis/index.js +21 -0
  37. package/dist/abis/index.js.map +1 -0
  38. package/dist/abis/mockErc20.d.ts +262 -0
  39. package/dist/abis/mockErc20.d.ts.map +1 -0
  40. package/dist/abis/mockErc20.js +347 -0
  41. package/dist/abis/mockErc20.js.map +1 -0
  42. package/dist/abis/notaryRegistry.d.ts +272 -0
  43. package/dist/abis/notaryRegistry.d.ts.map +1 -0
  44. package/dist/abis/notaryRegistry.js +355 -0
  45. package/dist/abis/notaryRegistry.js.map +1 -0
  46. package/dist/abis/registry.d.ts +1166 -0
  47. package/dist/abis/registry.d.ts.map +1 -0
  48. package/dist/abis/registry.js +1506 -0
  49. package/dist/abis/registry.js.map +1 -0
  50. package/dist/abis/transferFacet.d.ts +814 -0
  51. package/dist/abis/transferFacet.d.ts.map +1 -0
  52. package/dist/abis/transferFacet.js +1035 -0
  53. package/dist/abis/transferFacet.js.map +1 -0
  54. package/dist/abis/vaultFacet.d.ts +306 -0
  55. package/dist/abis/vaultFacet.d.ts.map +1 -0
  56. package/dist/abis/vaultFacet.js +398 -0
  57. package/dist/abis/vaultFacet.js.map +1 -0
  58. package/dist/abis/walletFactory.d.ts +325 -0
  59. package/dist/abis/walletFactory.d.ts.map +1 -0
  60. package/dist/abis/walletFactory.js +424 -0
  61. package/dist/abis/walletFactory.js.map +1 -0
  62. package/dist/abis/webWallet.d.ts +523 -0
  63. package/dist/abis/webWallet.d.ts.map +1 -0
  64. package/dist/abis/webWallet.js +680 -0
  65. package/dist/abis/webWallet.js.map +1 -0
  66. package/dist/abis/wtia9.d.ts +233 -0
  67. package/dist/abis/wtia9.d.ts.map +1 -0
  68. package/dist/abis/wtia9.js +304 -0
  69. package/dist/abis/wtia9.js.map +1 -0
  70. package/dist/abis/xIdentityVerifier.d.ts +487 -0
  71. package/dist/abis/xIdentityVerifier.d.ts.map +1 -0
  72. package/dist/abis/xIdentityVerifier.js +631 -0
  73. package/dist/abis/xIdentityVerifier.js.map +1 -0
  74. package/dist/abis/xZkVerifier.d.ts +586 -0
  75. package/dist/abis/xZkVerifier.d.ts.map +1 -0
  76. package/dist/abis/xZkVerifier.js +760 -0
  77. package/dist/abis/xZkVerifier.js.map +1 -0
  78. package/dist/identity/bind.d.ts +60 -0
  79. package/dist/identity/bind.d.ts.map +1 -0
  80. package/dist/identity/bind.fixtures.d.ts +8 -0
  81. package/dist/identity/bind.fixtures.d.ts.map +1 -0
  82. package/dist/identity/bind.fixtures.js +57 -0
  83. package/dist/identity/bind.fixtures.js.map +1 -0
  84. package/dist/identity/bind.js +119 -0
  85. package/dist/identity/bind.js.map +1 -0
  86. package/dist/identity/handle.d.ts +22 -0
  87. package/dist/identity/handle.d.ts.map +1 -0
  88. package/dist/identity/handle.js +137 -0
  89. package/dist/identity/handle.js.map +1 -0
  90. package/dist/identity/handleVectors.d.ts +53 -0
  91. package/dist/identity/handleVectors.d.ts.map +1 -0
  92. package/dist/identity/handleVectors.js +99 -0
  93. package/dist/identity/handleVectors.js.map +1 -0
  94. package/dist/identity/index.d.ts +5 -0
  95. package/dist/identity/index.d.ts.map +1 -0
  96. package/dist/identity/index.js +12 -0
  97. package/dist/identity/index.js.map +1 -0
  98. package/dist/identity/resolve.d.ts +16 -0
  99. package/dist/identity/resolve.d.ts.map +1 -0
  100. package/dist/identity/resolve.js +90 -0
  101. package/dist/identity/resolve.js.map +1 -0
  102. package/dist/index.d.ts +3 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +6 -0
  105. package/dist/index.js.map +1 -0
  106. package/package.json +53 -0
  107. package/src/abis/adminFacet.ts +444 -0
  108. package/src/abis/bank.ts +1186 -0
  109. package/src/abis/diamondLoupeFacet.ts +102 -0
  110. package/src/abis/gitHubIdentityVerifier.ts +588 -0
  111. package/src/abis/googleIdentityVerifier.ts +487 -0
  112. package/src/abis/googleOidcVerifier.ts +964 -0
  113. package/src/abis/identityJwksRoots.ts +671 -0
  114. package/src/abis/identityNames.ts +800 -0
  115. package/src/abis/index.ts +20 -0
  116. package/src/abis/mockErc20.ts +349 -0
  117. package/src/abis/notaryRegistry.ts +357 -0
  118. package/src/abis/registry.ts +1508 -0
  119. package/src/abis/transferFacet.ts +1037 -0
  120. package/src/abis/vaultFacet.ts +400 -0
  121. package/src/abis/walletFactory.ts +426 -0
  122. package/src/abis/webWallet.ts +682 -0
  123. package/src/abis/wtia9.ts +306 -0
  124. package/src/abis/xIdentityVerifier.ts +633 -0
  125. package/src/abis/xZkVerifier.ts +762 -0
  126. package/src/identity/bind.fixtures.ts +65 -0
  127. package/src/identity/bind.ts +209 -0
  128. package/src/identity/handle.ts +170 -0
  129. package/src/identity/handleVectors.ts +115 -0
  130. package/src/identity/index.ts +12 -0
  131. package/src/identity/resolve.ts +141 -0
  132. package/src/index.ts +6 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleVectors.js","sourceRoot":"","sources":["../../src/identity/handleVectors.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,mEAAmE;AAanE,mDAAmD;AACnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAA;AAC5D,mDAAmD;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACtE,mDAAmD;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AAEtE,qDAAqD;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAA;AAC9B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AACnC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAEnC,8BAA8B;AAC9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAA;AACtC,uDAAuD;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAA;AAC/B,iBAAiB;AACjB,MAAM,CAAC,M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,CAAC,EAAE;IAC9F,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;IACjF,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;IACxF,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;IAClF,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;IAC5E,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;IAC9F,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gEAAgE,EAAE,MAAM,EAAE,gEAAgE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE;IACvM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,iEAAiE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;CAC5I,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './bind.js';
2
+ export * from './handle.js';
3
+ export * from './handleVectors.js';
4
+ export * from './resolve.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,12 @@
1
+ /// The wallet-agnostic identity system, TypeScript half.
2
+ ///
3
+ /// Handle normalization mirrors the on-chain normalizer byte for byte, the
4
+ /// bind encoders produce exactly what the verifiers decode, and the resolvers
5
+ /// wrap the `IdentityNames` view calls. Everything on-chain-shaped comes from
6
+ /// the generated ABIs in `../abis`, so this layer and the contracts cannot
7
+ /// drift apart silently.
8
+ export * from './bind.js';
9
+ export * from './handle.js';
10
+ export * from './handleVectors.js';
11
+ export * from './resolve.js';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,GAAG;AACH,2EAA2E;AAC3E,8EAA8E;AAC9E,8EAA8E;AAC9E,2EAA2E;AAC3E,yBAAyB;AAEzB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { type Address, type PublicClient } from 'viem';
2
+ export declare function platformId(domain: string): `0x${string}`;
3
+ export interface NamesReader {
4
+ client: PublicClient;
5
+ address: Address;
6
+ }
7
+ export declare function resolveId(reader: NamesReader, platform: `0x${string}`, userId: string): Promise<Address | null>;
8
+ export declare function resolveHandle(reader: NamesReader, platform: `0x${string}`, handle: string): Promise<Address | null>;
9
+ export declare function reverseOf(reader: NamesReader, wallet: Address, platform: `0x${string}`): Promise<string | null>;
10
+ export declare function primaryName(reader: NamesReader, wallet: Address, platform: `0x${string}`): Promise<string | null>;
11
+ export interface PairResolution {
12
+ wallet: Address | null;
13
+ idAgrees: boolean;
14
+ }
15
+ export declare function resolvePair(reader: NamesReader, platform: `0x${string}`, handle: string, userId: string): Promise<PairResolution>;
16
+ //# sourceMappingURL=resolve.d.ts.map
@@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+1,90 @@
1
+ /// Reading names from the chain.
2
+ ///
3
+ /// Everything here is a view call. Binding a name needs a proof and a wallet;
4
+ /// reading one needs neither, which is the point — any product can resolve a
5
+ /// name without touching the login that created it.
6
+ ///
7
+ /// The client and the contract address are arguments rather than imports. This
8
+ /// package ships separately from the repository it currently lives in, so it
9
+ /// carries no configuration of its own and reaches for nothing outside itself.
10
+ import { keccak256, toHex, zeroAddress } from 'viem';
11
+ import { identityNamesAbi } from '../abis/identityNames.js';
12
+ /// A platform id is `keccak256` of its domain string. The domains are generated
13
+ /// from `handles.json`, so this and the contract agree by construction.
14
+ export function platformId(domain) {
15
+ return keccak256(toHex(domain));
16
+ }
17
+ /// One view call.
18
+ ///
19
+ /// Routed through a narrow cast for the same reason the wallet package does it:
20
+ /// viem's `PublicClient`, without its chain type parameters, types
21
+ /// `authorizationList` as required even for a read. The alternative is to
22
+ /// spread that noise across every call site here.
23
+ function read(reader, functionName, args) {
24
+ return reader.client.readContract({
25
+ authorizationList: undefined,
26
+ address: reader.address,
27
+ abi: identityNamesAbi,
28
+ functionName,
29
+ args,
30
+ });
31
+ }
32
+ /// The wallet that proved this account id, or `null`.
33
+ export async function resolveId(reader, platform, userId) {
34
+ const owner = await read(reader, 'resolveId', [platform, userId]);
35
+ return owner === zeroAddress ? null : owner;
36
+ }
37
+ /// The wallet that last proved this handle, or `null`.
38
+ ///
39
+ /// The handle is normalized on chain before it is looked up, so a caller may
40
+ /// pass what a user typed — including something that is not a handle at all.
41
+ /// The contract is total in the handle: a string no platform could hold answers
42
+ /// the zero address, which is the same answer as a handle nobody has proved,
43
+ /// and the one a search box wants.
44
+ ///
45
+ /// A revert propagates. `UnknownPlatform` in particular means the platform is
46
+ /// not configured, and answering "unowned" would bury a deployment mistake
47
+ /// under a plausible result.
48
+ export async function resolveHandle(reader, platform, handle) {
49
+ const owner = await read(reader, 'resolveHandle', [platform, handle]);
50
+ return owner === zeroAddress ? null : owner;
51
+ }
52
+ /// The handle a wallet published, exactly as stored.
53
+ ///
54
+ /// It may be stale: it says what the wallet proved once, not what the handle
55
+ /// resolves to now. Use `primaryName` to display one.
56
+ export async function reverseOf(reader, wallet, platform) {
57
+ const name = await read(reader, 'reverseOf', [wallet, platform]);
58
+ return name.length === 0 ? null : name;
59
+ }
60
+ /// The handle to show for a wallet, or `null`.
61
+ ///
62
+ /// Forward-checked on chain: empty once the stored handle resolves somewhere
63
+ /// else. ENS asks integrators to perform that check themselves and warns that
64
+ /// skipping it displays a name its holder no longer owns; here it cannot be
65
+ /// skipped, because the contract does it.
66
+ export async function primaryName(reader, wallet, platform) {
67
+ const name = await read(reader, 'primaryOf', [wallet, platform]);
68
+ return name.length === 0 ? null : name;
69
+ }
70
+ /// Resolve a handle and report whether an account id still agrees with it.
71
+ ///
72
+ /// **Read this before signing, and do not let it block a transfer.** A name
73
+ /// that will not route is not a name: sending to a handle means sending to
74
+ /// whoever proved it last, which is what the handle now means. What the flag is
75
+ /// for is telling a user that the account they think they are paying is not the
76
+ /// one that holds the name today — a decision they can only make beforehand.
77
+ ///
78
+ /// Both halves are needed. A handle on its own has nothing to disagree with.
79
+ ///
80
+ /// A handle the platform's rules reject resolves to `{wallet: null, idAgrees:
81
+ /// false}`, the same as one nobody has proved — see `resolveHandle`.
82
+ export async function resolvePair(reader, platform, handle, userId) {
83
+ const [wallet, idAgrees] = await read(reader, 'resolvePair', [
84
+ platform,
85
+ handle,
86
+ userId,
87
+ ]);
88
+ return { wallet: wallet === zeroAddress ? null : wallet, idAgrees };
89
+ }
90
+ //# sourceMappingURL=resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/identity/resolve.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,GAAG;AACH,8EAA8E;AAC9E,6EAA6E;AAC7E,oDAAoD;AACpD,GAAG;AACH,+EAA+E;AAC/E,6EAA6E;AAC7E,+EAA+E;AAE/E,OAAO,EAAgB,SAAS,EAAqB,KAAK,EAAE,WAAW,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AAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAA;AACrE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './abis/index.js';
2
+ export * from './identity/index.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ /// @libid/contracts — typed viem-ready ABIs for every contract, plus the
2
+ /// identity helper layer. Subpath imports work too: `@libid/contracts/abis`
3
+ /// and `@libid/contracts/identity`.
4
+ export * from './abis/index.js';
5
+ export * from './identity/index.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,4EAA4E;AAC5E,oCAAoC;AAEpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@libid/contracts",
3
+ "version": "0.1.0",
4
+ "description": "Typed viem-ready ABIs for the libid contracts, plus the identity helper layer (handle normalization, bind, resolve).",
5
+ "license": "(MIT OR Apache-2.0)",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/libid-org/libid-contracts.git",
9
+ "directory": "ts/packages/contracts"
10
+ },
11
+ "type": "module",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "!src/**/*.test.ts",
19
+ "!src/identity/fixtures"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./abis": {
27
+ "types": "./dist/abis/index.d.ts",
28
+ "default": "./dist/abis/index.js"
29
+ },
30
+ "./identity": {
31
+ "types": "./dist/identity/index.d.ts",
32
+ "default": "./dist/identity/index.js"
33
+ }
34
+ },
35
+ "peerDependencies": {
36
+ "viem": "^2.48.11"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^22.0.0",
40
+ "tsx": "^4.20.0",
41
+ "typescript": "^5.9.0",
42
+ "viem": "^2.48.11",
43
+ "vitest": "^3.2.0"
44
+ },
45
+ "scripts": {
46
+ "codegen": "node scripts/codegen.mjs",
47
+ "codegen:check": "node scripts/codegen.mjs --check",
48
+ "build": "tsc -p tsconfig.build.json",
49
+ "typecheck": "tsc --noEmit",
50
+ "test": "vitest run",
51
+ "regen:fixtures": "tsx src/identity/fixtures/regen.ts"
52
+ }
53
+ }
@@ -0,0 +1,444 @@
1
+ // Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
2
+ // Source artifact: solidity/out/AdminFacet.sol/AdminFacet.json
3
+
4
+ import type { Abi } from 'viem'
5
+
6
+ export const adminFacetAbi = [
7
+ {
8
+ "type": "function",
9
+ "name": "clearPlatformTemplates",
10
+ "inputs": [
11
+ {
12
+ "name": "platform",
13
+ "type": "string",
14
+ "internalType": "string"
15
+ }
16
+ ],
17
+ "outputs": [],
18
+ "stateMutability": "nonpayable"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "getPlatformTemplate",
23
+ "inputs": [
24
+ {
25
+ "name": "platform",
26
+ "type": "string",
27
+ "internalType": "string"
28
+ },
29
+ {
30
+ "name": "index",
31
+ "type": "uint256",
32
+ "internalType": "uint256"
33
+ }
34
+ ],
35
+ "outputs": [
36
+ {
37
+ "name": "",
38
+ "type": "string",
39
+ "internalType": "string"
40
+ }
41
+ ],
42
+ "stateMutability": "view"
43
+ },
44
+ {
45
+ "type": "function",
46
+ "name": "getPlatformWebPrefix",
47
+ "inputs": [
48
+ {
49
+ "name": "platform",
50
+ "type": "string",
51
+ "internalType": "string"
52
+ }
53
+ ],
54
+ "outputs": [
55
+ {
56
+ "name": "",
57
+ "type": "string",
58
+ "internalType": "string"
59
+ }
60
+ ],
61
+ "stateMutability": "view"
62
+ },
63
+ {
64
+ "type": "function",
65
+ "name": "getRegisteredTokens",
66
+ "inputs": [],
67
+ "outputs": [
68
+ {
69
+ "name": "",
70
+ "type": "address[]",
71
+ "internalType": "address[]"
72
+ }
73
+ ],
74
+ "stateMutability": "view"
75
+ },
76
+ {
77
+ "type": "function",
78
+ "name": "getTemplateParts",
79
+ "inputs": [
80
+ {
81
+ "name": "platform",
82
+ "type": "string",
83
+ "internalType": "string"
84
+ },
85
+ {
86
+ "name": "index",
87
+ "type": "uint256",
88
+ "internalType": "uint256"
89
+ }
90
+ ],
91
+ "outputs": [
92
+ {
93
+ "name": "prefix",
94
+ "type": "string",
95
+ "internalType": "string"
96
+ },
97
+ {
98
+ "name": "afterRecipient",
99
+ "type": "string",
100
+ "internalType": "string"
101
+ },
102
+ {
103
+ "name": "afterAmount",
104
+ "type": "string",
105
+ "internalType": "string"
106
+ },
107
+ {
108
+ "name": "suffix",
109
+ "type": "string",
110
+ "internalType": "string"
111
+ }
112
+ ],
113
+ "stateMutability": "view"
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "pause",
118
+ "inputs": [],
119
+ "outputs": [],
120
+ "stateMutability": "nonpayable"
121
+ },
122
+ {
123
+ "type": "function",
124
+ "name": "paused",
125
+ "inputs": [],
126
+ "outputs": [
127
+ {
128
+ "name": "",
129
+ "type": "bool",
130
+ "internalType": "bool"
131
+ }
132
+ ],
133
+ "stateMutability": "view"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "platformTemplateCount",
138
+ "inputs": [
139
+ {
140
+ "name": "platform",
141
+ "type": "string",
142
+ "internalType": "string"
143
+ }
144
+ ],
145
+ "outputs": [
146
+ {
147
+ "name": "",
148
+ "type": "uint256",
149
+ "internalType": "uint256"
150
+ }
151
+ ],
152
+ "stateMutability": "view"
153
+ },
154
+ {
155
+ "type": "function",
156
+ "name": "registerToken",
157
+ "inputs": [
158
+ {
159
+ "name": "name",
160
+ "type": "string",
161
+ "internalType": "string"
162
+ },
163
+ {
164
+ "name": "token",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ }
168
+ ],
169
+ "outputs": [],
170
+ "stateMutability": "nonpayable"
171
+ },
172
+ {
173
+ "type": "function",
174
+ "name": "registry",
175
+ "inputs": [],
176
+ "outputs": [
177
+ {
178
+ "name": "",
179
+ "type": "address",
180
+ "internalType": "address"
181
+ }
182
+ ],
183
+ "stateMutability": "view"
184
+ },
185
+ {
186
+ "type": "function",
187
+ "name": "resolveToken",
188
+ "inputs": [
189
+ {
190
+ "name": "name",
191
+ "type": "string",
192
+ "internalType": "string"
193
+ }
194
+ ],
195
+ "outputs": [
196
+ {
197
+ "name": "",
198
+ "type": "address",
199
+ "internalType": "address"
200
+ }
201
+ ],
202
+ "stateMutability": "view"
203
+ },
204
+ {
205
+ "type": "function",
206
+ "name": "setPlatformTemplate",
207
+ "inputs": [
208
+ {
209
+ "name": "platform",
210
+ "type": "string",
211
+ "internalType": "string"
212
+ },
213
+ {
214
+ "name": "newTemplate",
215
+ "type": "string",
216
+ "internalType": "string"
217
+ }
218
+ ],
219
+ "outputs": [],
220
+ "stateMutability": "nonpayable"
221
+ },
222
+ {
223
+ "type": "function",
224
+ "name": "setPlatformWebPrefix",
225
+ "inputs": [
226
+ {
227
+ "name": "platform",
228
+ "type": "string",
229
+ "internalType": "string"
230
+ },
231
+ {
232
+ "name": "prefix",
233
+ "type": "string",
234
+ "internalType": "string"
235
+ }
236
+ ],
237
+ "outputs": [],
238
+ "stateMutability": "nonpayable"
239
+ },
240
+ {
241
+ "type": "function",
242
+ "name": "setRegistry",
243
+ "inputs": [
244
+ {
245
+ "name": "_registry",
246
+ "type": "address",
247
+ "internalType": "address"
248
+ }
249
+ ],
250
+ "outputs": [],
251
+ "stateMutability": "nonpayable"
252
+ },
253
+ {
254
+ "type": "function",
255
+ "name": "setResourceTypePrefix",
256
+ "inputs": [
257
+ {
258
+ "name": "resourceType",
259
+ "type": "string",
260
+ "internalType": "string"
261
+ },
262
+ {
263
+ "name": "prefix",
264
+ "type": "string",
265
+ "internalType": "string"
266
+ }
267
+ ],
268
+ "outputs": [],
269
+ "stateMutability": "nonpayable"
270
+ },
271
+ {
272
+ "type": "function",
273
+ "name": "tokenName",
274
+ "inputs": [
275
+ {
276
+ "name": "token",
277
+ "type": "address",
278
+ "internalType": "address"
279
+ }
280
+ ],
281
+ "outputs": [
282
+ {
283
+ "name": "",
284
+ "type": "string",
285
+ "internalType": "string"
286
+ }
287
+ ],
288
+ "stateMutability": "view"
289
+ },
290
+ {
291
+ "type": "function",
292
+ "name": "unpause",
293
+ "inputs": [],
294
+ "outputs": [],
295
+ "stateMutability": "nonpayable"
296
+ },
297
+ {
298
+ "type": "function",
299
+ "name": "unregisterToken",
300
+ "inputs": [
301
+ {
302
+ "name": "name",
303
+ "type": "string",
304
+ "internalType": "string"
305
+ }
306
+ ],
307
+ "outputs": [],
308
+ "stateMutability": "nonpayable"
309
+ },
310
+ {
311
+ "type": "event",
312
+ "name": "Paused",
313
+ "inputs": [
314
+ {
315
+ "name": "account",
316
+ "type": "address",
317
+ "indexed": false,
318
+ "internalType": "address"
319
+ }
320
+ ],
321
+ "anonymous": false
322
+ },
323
+ {
324
+ "type": "event",
325
+ "name": "RegistrySet",
326
+ "inputs": [
327
+ {
328
+ "name": "oldRegistry",
329
+ "type": "address",
330
+ "indexed": true,
331
+ "internalType": "address"
332
+ },
333
+ {
334
+ "name": "newRegistry",
335
+ "type": "address",
336
+ "indexed": true,
337
+ "internalType": "address"
338
+ }
339
+ ],
340
+ "anonymous": false
341
+ },
342
+ {
343
+ "type": "event",
344
+ "name": "TokenRegistered",
345
+ "inputs": [
346
+ {
347
+ "name": "name",
348
+ "type": "string",
349
+ "indexed": false,
350
+ "internalType": "string"
351
+ },
352
+ {
353
+ "name": "token",
354
+ "type": "address",
355
+ "indexed": true,
356
+ "internalType": "address"
357
+ }
358
+ ],
359
+ "anonymous": false
360
+ },
361
+ {
362
+ "type": "event",
363
+ "name": "TokenUnregistered",
364
+ "inputs": [
365
+ {
366
+ "name": "name",
367
+ "type": "string",
368
+ "indexed": false,
369
+ "internalType": "string"
370
+ },
371
+ {
372
+ "name": "token",
373
+ "type": "address",
374
+ "indexed": true,
375
+ "internalType": "address"
376
+ }
377
+ ],
378
+ "anonymous": false
379
+ },
380
+ {
381
+ "type": "event",
382
+ "name": "Unpaused",
383
+ "inputs": [
384
+ {
385
+ "name": "account",
386
+ "type": "address",
387
+ "indexed": false,
388
+ "internalType": "address"
389
+ }
390
+ ],
391
+ "anonymous": false
392
+ },
393
+ {
394
+ "type": "error",
395
+ "name": "AlreadyRegistered",
396
+ "inputs": []
397
+ },
398
+ {
399
+ "type": "error",
400
+ "name": "EmptyName",
401
+ "inputs": []
402
+ },
403
+ {
404
+ "type": "error",
405
+ "name": "NotContractOwner",
406
+ "inputs": [
407
+ {
408
+ "name": "caller",
409
+ "type": "address",
410
+ "internalType": "address"
411
+ },
412
+ {
413
+ "name": "owner",
414
+ "type": "address",
415
+ "internalType": "address"
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "type": "error",
421
+ "name": "NotRegistered",
422
+ "inputs": []
423
+ },
424
+ {
425
+ "type": "error",
426
+ "name": "TemplateMissingAmount",
427
+ "inputs": []
428
+ },
429
+ {
430
+ "type": "error",
431
+ "name": "TemplateMissingToken",
432
+ "inputs": []
433
+ },
434
+ {
435
+ "type": "error",
436
+ "name": "TemplateMissingTokenAfterRecipient",
437
+ "inputs": []
438
+ },
439
+ {
440
+ "type": "error",
441
+ "name": "ZeroAddress",
442
+ "inputs": []
443
+ }
444
+ ] as const satisfies Abi