@the-situation/artifacts 0.5.0-alpha.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.
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "the-situation-contracts",
3
+ "version": "0.7.0",
4
+ "timestamp": "2026-02-07T13:32:42Z",
5
+ "commit": "cf7abb0a753d72de733bc6b74d29fed83a998433",
6
+ "contracts": [
7
+ {
8
+ "name": "normal_amm",
9
+ "sierra": "the_situation_normal_amm.contract_class.json",
10
+ "casm": "the_situation_normal_amm.compiled_contract_class.json",
11
+ "abi": "the_situation_normal_amm.abi.json"
12
+ },
13
+ {
14
+ "name": "normal_factory",
15
+ "sierra": "the_situation_normal_factory.contract_class.json",
16
+ "casm": "the_situation_normal_factory.compiled_contract_class.json",
17
+ "abi": "the_situation_normal_factory.abi.json"
18
+ },
19
+ {
20
+ "name": "normal_math_library",
21
+ "sierra": "the_situation_normal_math_library.contract_class.json",
22
+ "casm": "the_situation_normal_math_library.compiled_contract_class.json",
23
+ "abi": "the_situation_normal_math_library.abi.json"
24
+ },
25
+ {
26
+ "name": "oracle",
27
+ "sierra": "the_situation_oracle.contract_class.json",
28
+ "casm": "the_situation_oracle.compiled_contract_class.json",
29
+ "abi": "the_situation_oracle.abi.json"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Contract ABIs for The Situation prediction market contracts.
3
+ *
4
+ * These ABIs can be used directly with starknet.js Contract instances.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { AMM_ABI, FACTORY_ABI, ORACLE_ABI } from '@the-situation/sdk/artifacts';
9
+ * import { Contract } from 'starknet';
10
+ *
11
+ * const ammContract = new Contract(AMM_ABI, marketAddress, provider);
12
+ * ```
13
+ *
14
+ * @module
15
+ */
16
+ import type { Abi } from 'starknet';
17
+ import ammAbi from './the_situation_normal_amm.abi.json';
18
+ import releaseManifest from './contracts-release-manifest.json';
19
+ import factoryAbi from './the_situation_normal_factory.abi.json';
20
+ import mathLibraryAbi from './the_situation_normal_math_library.abi.json';
21
+ import oracleAbi from './the_situation_oracle.abi.json';
22
+ export interface ContractReleaseManifestEntry {
23
+ readonly name: string;
24
+ readonly sierra: string;
25
+ readonly casm: string;
26
+ readonly abi: string;
27
+ }
28
+ export interface ContractReleaseManifest {
29
+ readonly name: string;
30
+ readonly version: string;
31
+ readonly timestamp: string;
32
+ readonly commit: string;
33
+ readonly contracts: readonly ContractReleaseManifestEntry[];
34
+ }
35
+ /** AMM (Market) contract ABI */
36
+ export declare const AMM_ABI: Abi;
37
+ /** Factory contract ABI */
38
+ export declare const FACTORY_ABI: Abi;
39
+ /** Math Library contract ABI (used via Library Dispatcher) */
40
+ export declare const MATH_LIBRARY_ABI: Abi;
41
+ /** Oracle contract ABI */
42
+ export declare const ORACLE_ABI: Abi;
43
+ /** Contracts release metadata (source release used for bundled ABIs). */
44
+ export declare const CONTRACT_RELEASE_MANIFEST: ContractReleaseManifest;
45
+ /** Version string from the bundled contracts release manifest. */
46
+ export declare const CONTRACT_RELEASE_VERSION: string;
47
+ export { ammAbi, factoryAbi, mathLibraryAbi, oracleAbi, releaseManifest };
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,MAAM,MAAM,qCAAqC,CAAC;AACzD,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,UAAU,MAAM,yCAAyC,CAAC;AACjE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAExD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,4BAA4B,EAAE,CAAC;CAC7D;AAED,gCAAgC;AAChC,eAAO,MAAM,OAAO,EAAE,GAAmB,CAAC;AAE1C,2BAA2B;AAC3B,eAAO,MAAM,WAAW,EAAE,GAAuB,CAAC;AAElD,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,EAAE,GAA2B,CAAC;AAE3D,0BAA0B;AAC1B,eAAO,MAAM,UAAU,EAAE,GAAsB,CAAC;AAEhD,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,EAAE,uBACI,CAAC;AAE7C,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,EAAE,MAA0C,CAAC;AAGlF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Contract ABIs for The Situation prediction market contracts.
3
+ *
4
+ * These ABIs can be used directly with starknet.js Contract instances.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { AMM_ABI, FACTORY_ABI, ORACLE_ABI } from '@the-situation/sdk/artifacts';
9
+ * import { Contract } from 'starknet';
10
+ *
11
+ * const ammContract = new Contract(AMM_ABI, marketAddress, provider);
12
+ * ```
13
+ *
14
+ * @module
15
+ */
16
+ import ammAbi from './the_situation_normal_amm.abi.json';
17
+ import releaseManifest from './contracts-release-manifest.json';
18
+ import factoryAbi from './the_situation_normal_factory.abi.json';
19
+ import mathLibraryAbi from './the_situation_normal_math_library.abi.json';
20
+ import oracleAbi from './the_situation_oracle.abi.json';
21
+ /** AMM (Market) contract ABI */
22
+ export const AMM_ABI = ammAbi;
23
+ /** Factory contract ABI */
24
+ export const FACTORY_ABI = factoryAbi;
25
+ /** Math Library contract ABI (used via Library Dispatcher) */
26
+ export const MATH_LIBRARY_ABI = mathLibraryAbi;
27
+ /** Oracle contract ABI */
28
+ export const ORACLE_ABI = oracleAbi;
29
+ /** Contracts release metadata (source release used for bundled ABIs). */
30
+ export const CONTRACT_RELEASE_MANIFEST = releaseManifest;
31
+ /** Version string from the bundled contracts release manifest. */
32
+ export const CONTRACT_RELEASE_VERSION = CONTRACT_RELEASE_MANIFEST.version;
33
+ // Re-export for convenience
34
+ export { ammAbi, factoryAbi, mathLibraryAbi, oracleAbi, releaseManifest };
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,MAAM,MAAM,qCAAqC,CAAC;AACzD,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,UAAU,MAAM,yCAAyC,CAAC;AACjE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAiBxD,gCAAgC;AAChC,MAAM,CAAC,MAAM,OAAO,GAAQ,MAAa,CAAC;AAE1C,2BAA2B;AAC3B,MAAM,CAAC,MAAM,WAAW,GAAQ,UAAiB,CAAC;AAElD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,gBAAgB,GAAQ,cAAqB,CAAC;AAE3D,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAQ,SAAgB,CAAC;AAEhD,yEAAyE;AACzE,MAAM,CAAC,MAAM,yBAAyB,GACpC,eAA0C,CAAC;AAE7C,kEAAkE;AAClE,MAAM,CAAC,MAAM,wBAAwB,GAAW,yBAAyB,CAAC,OAAO,CAAC;AAElF,4BAA4B;AAC5B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC"}