@somnia-chain/contracts-sdk 0.2.0 → 0.3.5

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 (55) hide show
  1. package/README.md +32 -1
  2. package/dist/abis.d.ts +21 -1
  3. package/dist/abis.js +17 -1
  4. package/dist/enumerate.d.ts +56 -0
  5. package/dist/enumerate.js +70 -0
  6. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.d.ts +2 -0
  7. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.js +3 -0
  8. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.d.ts +2 -2
  9. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.js +2 -2
  10. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.d.ts +2 -2
  11. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.js +2 -2
  12. package/dist/gen/abi/somnia-markets/FeedMarketCreator.d.ts +2 -0
  13. package/dist/gen/abi/somnia-markets/FeedMarketCreator.js +3 -0
  14. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.d.ts +2 -0
  15. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.js +3 -0
  16. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.d.ts +2 -0
  17. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.js +3 -0
  18. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.d.ts +2 -0
  19. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.js +3 -0
  20. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.d.ts +2 -0
  21. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.js +3 -0
  22. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.d.ts +2 -0
  23. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.js +3 -0
  24. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.d.ts +2 -0
  25. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.js +3 -0
  26. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.d.ts +2 -0
  27. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.js +3 -0
  28. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.d.ts +2 -0
  29. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.js +3 -0
  30. package/dist/gen/abi/somnia-markets/venue-2.marketCreator.js +4 -0
  31. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.d.ts +2 -0
  32. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.js +3 -0
  33. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.d.ts +2 -0
  34. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.js +3 -0
  35. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.d.ts +2 -2
  36. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.js +2 -2
  37. package/dist/gen/abis/{9611b42c6d5f.d.ts → 2fd67c1745ef.d.ts} +35 -2
  38. package/dist/gen/abis/{9611b42c6d5f.js → 2fd67c1745ef.js} +44 -2
  39. package/dist/gen/abis/44d37d7ba560.d.ts +180 -0
  40. package/dist/gen/abis/44d37d7ba560.js +233 -0
  41. package/dist/gen/abis/{49cb4deac436.d.ts → 88eb6f69cc13.d.ts} +145 -57
  42. package/dist/gen/abis/{49cb4deac436.js → 88eb6f69cc13.js} +183 -70
  43. package/dist/gen/abis/89e2309cce3a.d.ts +1010 -0
  44. package/dist/gen/abis/89e2309cce3a.js +1301 -0
  45. package/dist/gen/abis/a032a21f83aa.d.ts +1048 -0
  46. package/dist/gen/abis/a032a21f83aa.js +1371 -0
  47. package/dist/gen/abis-index.d.ts +6999 -4643
  48. package/dist/gen/abis-index.js +10 -4
  49. package/dist/gen/meta.d.ts +2 -2
  50. package/dist/gen/meta.js +2 -2
  51. package/dist/gen/registry.d.ts +213 -43
  52. package/dist/gen/registry.js +213 -43
  53. package/dist/index.d.ts +54 -4
  54. package/dist/index.js +16 -22
  55. package/package.json +1 -1
package/README.md CHANGED
@@ -28,8 +28,18 @@ tryAddress("hideki-testnet", "somnia-markets", "MarketsCore"); // Address | null
28
28
 
29
29
  contracts("somnia-mainnet", "somnia-markets"); // enumerate, for admin screens
30
30
  identify("somnia-mainnet", "0x1a47…"); // reverse lookup: project, name, kind
31
+
32
+ allContracts();
33
+ // every current deployment across every live network — the dashboard form.
34
+ // Retired networks and superseded deployments are excluded by default, so a
35
+ // wiped testnet's addresses cannot be rendered as current by forgetting to
36
+ // filter: { includeRetiredNetworks, includeSuperseded, project } to widen it.
31
37
  ```
32
38
 
39
+ Entries carry `address`, `kind`, `status`, `version`, and `contract` — the
40
+ Solidity contract name, where a source stated one. `kind` and `status` are
41
+ unions (`DeploymentKind`, `ContractStatus`), not `string`.
42
+
33
43
  Networks: `networks` (all, retired included), `network(slug)`,
34
44
  `liveNetworks()`, and `toChain(slug, { rpcUrl })` for a viem-`Chain`-shaped
35
45
  object — you supply the RPC URL, the registry deliberately records no public
@@ -60,8 +70,23 @@ abiByHash("sha256:…"); // historical ABIs too — decode an old tx corr
60
70
  verifyAbi("sha256:…", abi); // sha256 over key-sorted compact JSON — verify, don't trust filenames
61
71
  writeFunctions("somnia-mainnet", "somnia-markets", "MarketsCore");
62
72
  // all state-changing functions — allowlists are application policy, not deployment facts
73
+
74
+ allContractsWithAbi();
75
+ // allContracts() with each ABI resolved to `abiJson` — addresses, networks and
76
+ // ABIs in one call. Costs the whole corpus, which is why it lives here.
63
77
  ```
64
78
 
79
+ ### Not every deployment has an ABI
80
+
81
+ `abiFor` returns `null`, and `abiJson` is `null`, for a real share of what the
82
+ registry holds — around half, concentrated in the testnets. That is a fact
83
+ about the records, not a gap in the package: the registry records a contract
84
+ name only where a broadcast log stated it or the repo declared one, and an ABI
85
+ is looked up by that name. Deployments created from a shared script as
86
+ per-asset instances — `BTC_reader`, `ADA_oracle` — name a role rather than a
87
+ contract, so they carry an address and no ABI. `contract` is set on exactly
88
+ the entries that have one, so it is the field to branch on.
89
+
65
90
  ## Decoding calldata
66
91
 
67
92
  Requires `viem` (optional peer dependency; only this entry needs it).
@@ -82,6 +107,12 @@ decodeBySelector(data); // 4-byte fallback across every ABI the registry holds
82
107
 
83
108
  ## Versioning
84
109
 
85
- The package is a snapshot of the registry, published when its data moves.
110
+ The package is a snapshot of the registry, and it is published when that
111
+ snapshot changes rather than when someone remembers to publish it. The
112
+ reconciliation lane compares the surface it would generate against the one the
113
+ last release shipped, and cuts a patch version whenever addresses, ABIs or
114
+ chain information moved — so a contract deployed today reaches npm on the next
115
+ lane run. Minor and major versions are cut by hand, for API changes.
116
+
86
117
  Update the dependency to pick up newly deployed contracts — nothing is fetched
87
118
  at runtime.
package/dist/abis.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { abisByHash } from "./gen/abis-index.js";
2
- import { type NetworkSlug } from "./index.js";
2
+ import { type AllContractsOptions, type ListedContract, type NetworkSlug } from "./index.js";
3
3
  export { abisByHash };
4
4
  export { abiDigest, verifyAbi } from "./digest.js";
5
5
  /**
@@ -24,6 +24,26 @@ export type AbiFunction = AbiItem & {
24
24
  export declare function abiFor(net: NetworkSlug, project: string, name: string): readonly AbiItem[] | null;
25
25
  /** Resolve a digest — including a historical one no current deployment points at — to its ABI. */
26
26
  export declare function abiByHash(digest: string): readonly AbiItem[] | null;
27
+ export interface ResolvedContract extends ListedContract {
28
+ /**
29
+ * The recorded ABI, or null where the registry has none. Null is common and
30
+ * is a fact about the registry, not an error: an ABI is recorded only where
31
+ * a source named the contract, so per-asset instances deployed from a shared
32
+ * script — `BTC_reader`, `ADA_router` — usually carry an address and no ABI.
33
+ */
34
+ abiJson: readonly AbiItem[] | null;
35
+ }
36
+ /**
37
+ * Every current deployment with its ABI already resolved — addresses,
38
+ * networks and ABIs in one call.
39
+ *
40
+ * This is the whole-corpus convenience, and it costs the whole corpus: it
41
+ * lives here rather than in the root entry so that importing it is a decision.
42
+ * A server or admin surface rendering every contract wants exactly this; a
43
+ * client bundle wants `allContracts()` from the root and a per-contract
44
+ * `./abi/*` module for the one ABI it actually needs.
45
+ */
46
+ export declare function allContractsWithAbi(opts?: AllContractsOptions): ResolvedContract[];
27
47
  /**
28
48
  * The state-changing functions of one deployment's ABI. Deliberately the
29
49
  * whole set: trimming it to an allowlist is operational policy, and policy
package/dist/abis.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { abisByHash } from "./gen/abis-index.js";
2
- import { registry } from "./index.js";
2
+ import { allContracts, registry, } from "./index.js";
3
3
  export { abisByHash };
4
4
  export { abiDigest, verifyAbi } from "./digest.js";
5
5
  /** The recorded ABI for one deployment, or null where the registry has none — including an unknown name, because the decoder path treats absence as an answer. For literal types, import the contract's `./abi/*` module. */
@@ -12,6 +12,22 @@ export function abiFor(net, project, name) {
12
12
  export function abiByHash(digest) {
13
13
  return abisByHash[digest] ?? null;
14
14
  }
15
+ /**
16
+ * Every current deployment with its ABI already resolved — addresses,
17
+ * networks and ABIs in one call.
18
+ *
19
+ * This is the whole-corpus convenience, and it costs the whole corpus: it
20
+ * lives here rather than in the root entry so that importing it is a decision.
21
+ * A server or admin surface rendering every contract wants exactly this; a
22
+ * client bundle wants `allContracts()` from the root and a per-contract
23
+ * `./abi/*` module for the one ABI it actually needs.
24
+ */
25
+ export function allContractsWithAbi(opts = {}) {
26
+ return allContracts(opts).map((entry) => ({
27
+ ...entry,
28
+ abiJson: entry.abi ? abiByHash(entry.abi) : null,
29
+ }));
30
+ }
15
31
  /**
16
32
  * The state-changing functions of one deployment's ABI. Deliberately the
17
33
  * whole set: trimming it to an allowlist is operational policy, and policy
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Enumeration over the address books, with no generated data in sight.
3
+ *
4
+ * Split out for the same reason `decode-core.ts` is: the generated modules are
5
+ * a build product, so anything that imports them cannot be tested until they
6
+ * exist — and the filtering here is precisely what a dashboard relies on to
7
+ * not render a wiped testnet's addresses as current. Structural types rather
8
+ * than the package's public ones, so this file depends on nothing.
9
+ */
10
+ export interface BookEntry {
11
+ address: string;
12
+ kind: string;
13
+ status: string;
14
+ version: string;
15
+ contract?: string;
16
+ implementation?: string;
17
+ startBlock?: number;
18
+ abi?: string;
19
+ }
20
+ export interface NetworkBook {
21
+ status: string;
22
+ contracts: Record<string, Record<string, BookEntry>>;
23
+ }
24
+ export type Books = Record<string, NetworkBook>;
25
+ export interface Listed extends BookEntry {
26
+ network: string;
27
+ project: string;
28
+ name: string;
29
+ }
30
+ export interface EnumerateOptions {
31
+ includeRetiredNetworks?: boolean;
32
+ includeSuperseded?: boolean;
33
+ project?: string;
34
+ }
35
+ /** One network's deployments, optionally one project's. Throws on an unknown slug. */
36
+ export declare function listContracts(books: Books, net: string, project?: string): Listed[];
37
+ /**
38
+ * Every current deployment across every live network.
39
+ *
40
+ * Both exclusions are defaults rather than the caller's job on purpose: a
41
+ * retired network's addresses answer on a chain that was wiped, and a
42
+ * superseded deployment is one a later release replaced. Requiring each call
43
+ * site to remember that is how one of them forgets.
44
+ */
45
+ export declare function listAll(books: Books, opts?: EnumerateOptions): Listed[];
46
+ /**
47
+ * Address -> deployment, for one network.
48
+ *
49
+ * Proxy implementations resolve to their proxy's identity so that a signer
50
+ * looking at an implementation address learns which proxy it serves. The
51
+ * proxy's own entry always wins: `set` runs for every deployment first, and
52
+ * an implementation only claims an address nothing has claimed already.
53
+ */
54
+ export declare function buildIdentityIndex(books: Books, net: string): Map<string, Listed & {
55
+ matchedBy: "address" | "implementation";
56
+ }>;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Enumeration over the address books, with no generated data in sight.
3
+ *
4
+ * Split out for the same reason `decode-core.ts` is: the generated modules are
5
+ * a build product, so anything that imports them cannot be tested until they
6
+ * exist — and the filtering here is precisely what a dashboard relies on to
7
+ * not render a wiped testnet's addresses as current. Structural types rather
8
+ * than the package's public ones, so this file depends on nothing.
9
+ */
10
+ /** One network's deployments, optionally one project's. Throws on an unknown slug. */
11
+ export function listContracts(books, net, project) {
12
+ const book = books[net];
13
+ if (!book)
14
+ throw new Error(`unknown network: ${net}`);
15
+ const out = [];
16
+ for (const [proj, entries] of Object.entries(book.contracts)) {
17
+ if (project !== undefined && proj !== project)
18
+ continue;
19
+ for (const [name, entry] of Object.entries(entries)) {
20
+ out.push({ network: net, project: proj, name, ...entry });
21
+ }
22
+ }
23
+ return out;
24
+ }
25
+ /**
26
+ * Every current deployment across every live network.
27
+ *
28
+ * Both exclusions are defaults rather than the caller's job on purpose: a
29
+ * retired network's addresses answer on a chain that was wiped, and a
30
+ * superseded deployment is one a later release replaced. Requiring each call
31
+ * site to remember that is how one of them forgets.
32
+ */
33
+ export function listAll(books, opts = {}) {
34
+ const out = [];
35
+ for (const net of Object.keys(books).sort()) {
36
+ if (!opts.includeRetiredNetworks && books[net].status !== "live")
37
+ continue;
38
+ for (const entry of listContracts(books, net, opts.project)) {
39
+ if (!opts.includeSuperseded && entry.status !== "active")
40
+ continue;
41
+ out.push(entry);
42
+ }
43
+ }
44
+ return out.sort((a, b) => a.network.localeCompare(b.network) ||
45
+ a.project.localeCompare(b.project) ||
46
+ a.name.localeCompare(b.name));
47
+ }
48
+ /**
49
+ * Address -> deployment, for one network.
50
+ *
51
+ * Proxy implementations resolve to their proxy's identity so that a signer
52
+ * looking at an implementation address learns which proxy it serves. The
53
+ * proxy's own entry always wins: `set` runs for every deployment first, and
54
+ * an implementation only claims an address nothing has claimed already.
55
+ */
56
+ export function buildIdentityIndex(books, net) {
57
+ const index = new Map();
58
+ const entries = listContracts(books, net);
59
+ for (const entry of entries) {
60
+ index.set(entry.address.toLowerCase(), { ...entry, matchedBy: "address" });
61
+ }
62
+ for (const entry of entries) {
63
+ if (!entry.implementation)
64
+ continue;
65
+ const key = entry.implementation.toLowerCase();
66
+ if (!index.has(key))
67
+ index.set(key, { ...entry, matchedBy: "implementation" });
68
+ }
69
+ return index;
70
+ }
@@ -0,0 +1,2 @@
1
+ export { abi_44d37d7ba560 as SafeProxyFactoryAbi } from "../../abis/44d37d7ba560.js";
2
+ export declare const SafeProxyFactoryAbiDigest = "sha256:44d37d7ba560dba7bd43fa13576d99f6a5639c68466445e79fe5bfbd73cdfd39";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_44d37d7ba560 as SafeProxyFactoryAbi } from "../../abis/44d37d7ba560.js";
3
+ export const SafeProxyFactoryAbiDigest = "sha256:44d37d7ba560dba7bd43fa13576d99f6a5639c68466445e79fe5bfbd73cdfd39";
@@ -1,2 +1,2 @@
1
- export { abi_9611b42c6d5f as dream_vault_implementationAbi } from "../../abis/9611b42c6d5f.js";
2
- export declare const dream_vault_implementationAbiDigest = "sha256:9611b42c6d5f9be4435875aa42e451cf2a9602ef47082da2dfb23130f4bcd3e4";
1
+ export { abi_2fd67c1745ef as dream_vault_implementationAbi } from "../../abis/2fd67c1745ef.js";
2
+ export declare const dream_vault_implementationAbiDigest = "sha256:2fd67c1745efce166a36400ea59978db635369bd47dc332c67a001b5e92fdfa7";
@@ -1,3 +1,3 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export { abi_9611b42c6d5f as dream_vault_implementationAbi } from "../../abis/9611b42c6d5f.js";
3
- export const dream_vault_implementationAbiDigest = "sha256:9611b42c6d5f9be4435875aa42e451cf2a9602ef47082da2dfb23130f4bcd3e4";
2
+ export { abi_2fd67c1745ef as dream_vault_implementationAbi } from "../../abis/2fd67c1745ef.js";
3
+ export const dream_vault_implementationAbiDigest = "sha256:2fd67c1745efce166a36400ea59978db635369bd47dc332c67a001b5e92fdfa7";
@@ -1,2 +1,2 @@
1
- export { abi_49cb4deac436 as BinaryMarketsModuleAbi } from "../../abis/49cb4deac436.js";
2
- export declare const BinaryMarketsModuleAbiDigest = "sha256:49cb4deac4368abbc0201f10d4b3243e6b1afd4203030b038b8eefcda9381fe0";
1
+ export { abi_88eb6f69cc13 as BinaryMarketsModuleAbi } from "../../abis/88eb6f69cc13.js";
2
+ export declare const BinaryMarketsModuleAbiDigest = "sha256:88eb6f69cc133fbfe2018ac3d4117fd00acbac9f546b2abdff8ea4c592fcb2b9";
@@ -1,3 +1,3 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export { abi_49cb4deac436 as BinaryMarketsModuleAbi } from "../../abis/49cb4deac436.js";
3
- export const BinaryMarketsModuleAbiDigest = "sha256:49cb4deac4368abbc0201f10d4b3243e6b1afd4203030b038b8eefcda9381fe0";
2
+ export { abi_88eb6f69cc13 as BinaryMarketsModuleAbi } from "../../abis/88eb6f69cc13.js";
3
+ export const BinaryMarketsModuleAbiDigest = "sha256:88eb6f69cc133fbfe2018ac3d4117fd00acbac9f546b2abdff8ea4c592fcb2b9";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreatorAbi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreatorAbi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy1Abi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreator_legacy1AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy1Abi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreator_legacy1AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy2Abi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreator_legacy2AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy2Abi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreator_legacy2AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy3Abi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreator_legacy3AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy3Abi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreator_legacy3AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy4Abi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreator_legacy4AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy4Abi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreator_legacy4AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy5Abi } from "../../abis/89e2309cce3a.js";
2
+ export declare const FeedMarketCreator_legacy5AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as FeedMarketCreator_legacy5Abi } from "../../abis/89e2309cce3a.js";
3
+ export const FeedMarketCreator_legacy5AbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_a032a21f83aa as PriceFeedOracleAdapterAbi } from "../../abis/a032a21f83aa.js";
2
+ export declare const PriceFeedOracleAdapterAbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_a032a21f83aa as PriceFeedOracleAdapterAbi } from "../../abis/a032a21f83aa.js";
3
+ export const PriceFeedOracleAdapterAbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -0,0 +1,2 @@
1
+ export { abi_a032a21f83aa as PriceFeedOracleAdapter_legacy1Abi } from "../../abis/a032a21f83aa.js";
2
+ export declare const PriceFeedOracleAdapter_legacy1AbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_a032a21f83aa as PriceFeedOracleAdapter_legacy1Abi } from "../../abis/a032a21f83aa.js";
3
+ export const PriceFeedOracleAdapter_legacy1AbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -0,0 +1,2 @@
1
+ export { abi_a032a21f83aa as PriceFeedOracleAdapter_legacy2Abi } from "../../abis/a032a21f83aa.js";
2
+ export declare const PriceFeedOracleAdapter_legacy2AbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_a032a21f83aa as PriceFeedOracleAdapter_legacy2Abi } from "../../abis/a032a21f83aa.js";
3
+ export const PriceFeedOracleAdapter_legacy2AbiDigest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";
@@ -1,3 +1,7 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ // This contract's ABI differs across networks; the export follows the
3
+ // highest-priority network. Per network:
4
+ // somnia-mainnet: sha256:072309c539e433439b1cfa50e63e3e7eac37910968bd705fad1469ed184ef2f6
5
+ // somnia-testnet: sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322
2
6
  export { abi_072309c539e4 as venue_2_marketCreatorAbi } from "../../abis/072309c539e4.js";
3
7
  export const venue_2_marketCreatorAbiDigest = "sha256:072309c539e433439b1cfa50e63e3e7eac37910968bd705fad1469ed184ef2f6";
@@ -0,0 +1,2 @@
1
+ export { abi_89e2309cce3a as venue_4_marketCreatorAbi } from "../../abis/89e2309cce3a.js";
2
+ export declare const venue_4_marketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_89e2309cce3a as venue_4_marketCreatorAbi } from "../../abis/89e2309cce3a.js";
3
+ export const venue_4_marketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -0,0 +1,2 @@
1
+ export { abi_c76e9681cb2f as venue_4_marketCreatorPolicyAbi } from "../../abis/c76e9681cb2f.js";
2
+ export declare const venue_4_marketCreatorPolicyAbiDigest = "sha256:c76e9681cb2ff8c1220b018d85fd392d16c0cacc229ea8bcef37b1f51fb98c3a";
@@ -0,0 +1,3 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export { abi_c76e9681cb2f as venue_4_marketCreatorPolicyAbi } from "../../abis/c76e9681cb2f.js";
3
+ export const venue_4_marketCreatorPolicyAbiDigest = "sha256:c76e9681cb2ff8c1220b018d85fd392d16c0cacc229ea8bcef37b1f51fb98c3a";
@@ -1,2 +1,2 @@
1
- export { abi_072309c539e4 as venue_5_marketCreatorAbi } from "../../abis/072309c539e4.js";
2
- export declare const venue_5_marketCreatorAbiDigest = "sha256:072309c539e433439b1cfa50e63e3e7eac37910968bd705fad1469ed184ef2f6";
1
+ export { abi_89e2309cce3a as venue_5_marketCreatorAbi } from "../../abis/89e2309cce3a.js";
2
+ export declare const venue_5_marketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -1,3 +1,3 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export { abi_072309c539e4 as venue_5_marketCreatorAbi } from "../../abis/072309c539e4.js";
3
- export const venue_5_marketCreatorAbiDigest = "sha256:072309c539e433439b1cfa50e63e3e7eac37910968bd705fad1469ed184ef2f6";
2
+ export { abi_89e2309cce3a as venue_5_marketCreatorAbi } from "../../abis/89e2309cce3a.js";
3
+ export const venue_5_marketCreatorAbiDigest = "sha256:89e2309cce3a7aa4b38161ad2b7011e7e500250c2b5c7adbcfd93ae352aae322";
@@ -1,4 +1,4 @@
1
- export declare const abi_9611b42c6d5f: readonly [{
1
+ export declare const abi_2fd67c1745ef: readonly [{
2
2
  readonly inputs: readonly [];
3
3
  readonly stateMutability: "nonpayable";
4
4
  readonly type: "constructor";
@@ -254,6 +254,16 @@ export declare const abi_9611b42c6d5f: readonly [{
254
254
  readonly outputs: readonly [];
255
255
  readonly stateMutability: "nonpayable";
256
256
  readonly type: "function";
257
+ }, {
258
+ readonly inputs: readonly [{
259
+ readonly internalType: "address";
260
+ readonly name: "newTreasury";
261
+ readonly type: "address";
262
+ }];
263
+ readonly name: "setTreasury";
264
+ readonly outputs: readonly [];
265
+ readonly stateMutability: "nonpayable";
266
+ readonly type: "function";
257
267
  }, {
258
268
  readonly inputs: readonly [{
259
269
  readonly internalType: "bytes4";
@@ -362,6 +372,21 @@ export declare const abi_9611b42c6d5f: readonly [{
362
372
  }];
363
373
  readonly name: "RoleRevoked";
364
374
  readonly type: "event";
375
+ }, {
376
+ readonly anonymous: false;
377
+ readonly inputs: readonly [{
378
+ readonly indexed: true;
379
+ readonly internalType: "address";
380
+ readonly name: "previousTreasury";
381
+ readonly type: "address";
382
+ }, {
383
+ readonly indexed: true;
384
+ readonly internalType: "address";
385
+ readonly name: "newTreasury";
386
+ readonly type: "address";
387
+ }];
388
+ readonly name: "TreasuryUpdated";
389
+ readonly type: "event";
365
390
  }, {
366
391
  readonly anonymous: false;
367
392
  readonly inputs: readonly [{
@@ -424,6 +449,14 @@ export declare const abi_9611b42c6d5f: readonly [{
424
449
  readonly inputs: readonly [];
425
450
  readonly name: "InvalidInitialization";
426
451
  readonly type: "error";
452
+ }, {
453
+ readonly inputs: readonly [];
454
+ readonly name: "InvalidTreasury";
455
+ readonly type: "error";
456
+ }, {
457
+ readonly inputs: readonly [];
458
+ readonly name: "NoStateChange";
459
+ readonly type: "error";
427
460
  }, {
428
461
  readonly inputs: readonly [];
429
462
  readonly name: "NotInitializing";
@@ -449,4 +482,4 @@ export declare const abi_9611b42c6d5f: readonly [{
449
482
  readonly name: "UUPSUnsupportedProxiableUUID";
450
483
  readonly type: "error";
451
484
  }];
452
- export declare const digest = "sha256:9611b42c6d5f9be4435875aa42e451cf2a9602ef47082da2dfb23130f4bcd3e4";
485
+ export declare const digest = "sha256:2fd67c1745efce166a36400ea59978db635369bd47dc332c67a001b5e92fdfa7";
@@ -1,5 +1,5 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export const abi_9611b42c6d5f = [
2
+ export const abi_2fd67c1745ef = [
3
3
  {
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable",
@@ -335,6 +335,19 @@ export const abi_9611b42c6d5f = [
335
335
  "stateMutability": "nonpayable",
336
336
  "type": "function"
337
337
  },
338
+ {
339
+ "inputs": [
340
+ {
341
+ "internalType": "address",
342
+ "name": "newTreasury",
343
+ "type": "address"
344
+ }
345
+ ],
346
+ "name": "setTreasury",
347
+ "outputs": [],
348
+ "stateMutability": "nonpayable",
349
+ "type": "function"
350
+ },
338
351
  {
339
352
  "inputs": [
340
353
  {
@@ -473,6 +486,25 @@ export const abi_9611b42c6d5f = [
473
486
  "name": "RoleRevoked",
474
487
  "type": "event"
475
488
  },
489
+ {
490
+ "anonymous": false,
491
+ "inputs": [
492
+ {
493
+ "indexed": true,
494
+ "internalType": "address",
495
+ "name": "previousTreasury",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "indexed": true,
500
+ "internalType": "address",
501
+ "name": "newTreasury",
502
+ "type": "address"
503
+ }
504
+ ],
505
+ "name": "TreasuryUpdated",
506
+ "type": "event"
507
+ },
476
508
  {
477
509
  "anonymous": false,
478
510
  "inputs": [
@@ -554,6 +586,16 @@ export const abi_9611b42c6d5f = [
554
586
  "name": "InvalidInitialization",
555
587
  "type": "error"
556
588
  },
589
+ {
590
+ "inputs": [],
591
+ "name": "InvalidTreasury",
592
+ "type": "error"
593
+ },
594
+ {
595
+ "inputs": [],
596
+ "name": "NoStateChange",
597
+ "type": "error"
598
+ },
557
599
  {
558
600
  "inputs": [],
559
601
  "name": "NotInitializing",
@@ -587,4 +629,4 @@ export const abi_9611b42c6d5f = [
587
629
  "type": "error"
588
630
  }
589
631
  ];
590
- export const digest = "sha256:9611b42c6d5f9be4435875aa42e451cf2a9602ef47082da2dfb23130f4bcd3e4";
632
+ export const digest = "sha256:2fd67c1745efce166a36400ea59978db635369bd47dc332c67a001b5e92fdfa7";