@the-situation/artifacts 0.5.0-alpha.0 → 0.8.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/dist/contracts-release-manifest.json +35 -11
- package/dist/index.d.ts +32 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -15
- package/dist/index.js.map +1 -1
- package/dist/the_situation_distribution_factory.abi.json +1441 -0
- package/dist/the_situation_multinoulli_amm.abi.json +1539 -0
- package/dist/the_situation_multinoulli_factory_plugin.abi.json +166 -0
- package/dist/the_situation_multinoulli_math_runtime.abi.json +910 -0
- package/dist/the_situation_normal_amm.abi.json +136 -132
- package/dist/the_situation_normal_factory_plugin.abi.json +166 -0
- package/dist/the_situation_normal_math_runtime.abi.json +942 -0
- package/dist/the_situation_oracle.abi.json +1 -1
- package/package.json +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "the-situation-contracts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"timestamp": "2026-02-
|
|
5
|
-
"commit": "
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"timestamp": "2026-02-13T20:03:33Z",
|
|
5
|
+
"commit": "b48f18919011e6dad3f3f443a18f1c42c4e0e13a",
|
|
6
6
|
"contracts": [
|
|
7
7
|
{
|
|
8
8
|
"name": "normal_amm",
|
|
@@ -11,16 +11,40 @@
|
|
|
11
11
|
"abi": "the_situation_normal_amm.abi.json"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"name": "
|
|
15
|
-
"sierra": "
|
|
16
|
-
"casm": "
|
|
17
|
-
"abi": "
|
|
14
|
+
"name": "normal_math_runtime",
|
|
15
|
+
"sierra": "the_situation_normal_math_runtime.contract_class.json",
|
|
16
|
+
"casm": "the_situation_normal_math_runtime.compiled_contract_class.json",
|
|
17
|
+
"abi": "the_situation_normal_math_runtime.abi.json"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"name": "
|
|
21
|
-
"sierra": "
|
|
22
|
-
"casm": "
|
|
23
|
-
"abi": "
|
|
20
|
+
"name": "normal_factory_plugin",
|
|
21
|
+
"sierra": "the_situation_normal_factory_plugin.contract_class.json",
|
|
22
|
+
"casm": "the_situation_normal_factory_plugin.compiled_contract_class.json",
|
|
23
|
+
"abi": "the_situation_normal_factory_plugin.abi.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "distribution_factory",
|
|
27
|
+
"sierra": "the_situation_distribution_factory.contract_class.json",
|
|
28
|
+
"casm": "the_situation_distribution_factory.compiled_contract_class.json",
|
|
29
|
+
"abi": "the_situation_distribution_factory.abi.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "multinoulli_amm",
|
|
33
|
+
"sierra": "the_situation_multinoulli_amm.contract_class.json",
|
|
34
|
+
"casm": "the_situation_multinoulli_amm.compiled_contract_class.json",
|
|
35
|
+
"abi": "the_situation_multinoulli_amm.abi.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "multinoulli_math_runtime",
|
|
39
|
+
"sierra": "the_situation_multinoulli_math_runtime.contract_class.json",
|
|
40
|
+
"casm": "the_situation_multinoulli_math_runtime.compiled_contract_class.json",
|
|
41
|
+
"abi": "the_situation_multinoulli_math_runtime.abi.json"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "multinoulli_factory_plugin",
|
|
45
|
+
"sierra": "the_situation_multinoulli_factory_plugin.contract_class.json",
|
|
46
|
+
"casm": "the_situation_multinoulli_factory_plugin.compiled_contract_class.json",
|
|
47
|
+
"abi": "the_situation_multinoulli_factory_plugin.abi.json"
|
|
24
48
|
},
|
|
25
49
|
{
|
|
26
50
|
"name": "oracle",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contract ABIs for The Situation prediction market contracts.
|
|
2
|
+
* Contract ABIs for The Situation prediction market contracts (v0.8.0).
|
|
3
3
|
*
|
|
4
4
|
* These ABIs can be used directly with starknet.js Contract instances.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* import {
|
|
8
|
+
* import { NORMAL_AMM_ABI, DISTRIBUTION_FACTORY_ABI, MULTINOULLI_AMM_ABI } from '@the-situation/artifacts';
|
|
9
9
|
* import { Contract } from 'starknet';
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
11
|
+
* const normalAmm = new Contract(NORMAL_AMM_ABI, marketAddress, provider);
|
|
12
|
+
* const multinoulliAmm = new Contract(MULTINOULLI_AMM_ABI, marketAddress, provider);
|
|
12
13
|
* ```
|
|
13
14
|
*
|
|
14
15
|
* @module
|
|
15
16
|
*/
|
|
16
17
|
import type { Abi } from 'starknet';
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import normalAmmAbi from './the_situation_normal_amm.abi.json';
|
|
19
|
+
import normalMathRuntimeAbi from './the_situation_normal_math_runtime.abi.json';
|
|
20
|
+
import normalFactoryPluginAbi from './the_situation_normal_factory_plugin.abi.json';
|
|
21
|
+
import distributionFactoryAbi from './the_situation_distribution_factory.abi.json';
|
|
22
|
+
import multinoulliAmmAbi from './the_situation_multinoulli_amm.abi.json';
|
|
23
|
+
import multinoulliMathRuntimeAbi from './the_situation_multinoulli_math_runtime.abi.json';
|
|
24
|
+
import multinoulliFactoryPluginAbi from './the_situation_multinoulli_factory_plugin.abi.json';
|
|
21
25
|
import oracleAbi from './the_situation_oracle.abi.json';
|
|
26
|
+
import releaseManifest from './contracts-release-manifest.json';
|
|
22
27
|
export interface ContractReleaseManifestEntry {
|
|
23
28
|
readonly name: string;
|
|
24
29
|
readonly sierra: string;
|
|
@@ -32,17 +37,31 @@ export interface ContractReleaseManifest {
|
|
|
32
37
|
readonly commit: string;
|
|
33
38
|
readonly contracts: readonly ContractReleaseManifestEntry[];
|
|
34
39
|
}
|
|
35
|
-
/** AMM
|
|
40
|
+
/** Normal AMM contract ABI */
|
|
41
|
+
export declare const NORMAL_AMM_ABI: Abi;
|
|
42
|
+
/** Normal Math Runtime contract ABI */
|
|
43
|
+
export declare const NORMAL_MATH_RUNTIME_ABI: Abi;
|
|
44
|
+
/** Normal Factory Plugin ABI */
|
|
45
|
+
export declare const NORMAL_FACTORY_PLUGIN_ABI: Abi;
|
|
46
|
+
/** Multinoulli AMM contract ABI */
|
|
47
|
+
export declare const MULTINOULLI_AMM_ABI: Abi;
|
|
48
|
+
/** Multinoulli Math Runtime contract ABI */
|
|
49
|
+
export declare const MULTINOULLI_MATH_RUNTIME_ABI: Abi;
|
|
50
|
+
/** Multinoulli Factory Plugin ABI */
|
|
51
|
+
export declare const MULTINOULLI_FACTORY_PLUGIN_ABI: Abi;
|
|
52
|
+
/** Distribution Factory contract ABI (deploys both normal & multinoulli markets) */
|
|
53
|
+
export declare const DISTRIBUTION_FACTORY_ABI: Abi;
|
|
54
|
+
/** Oracle contract ABI */
|
|
55
|
+
export declare const ORACLE_ABI: Abi;
|
|
56
|
+
/** @deprecated Use `NORMAL_AMM_ABI` instead */
|
|
36
57
|
export declare const AMM_ABI: Abi;
|
|
37
|
-
/**
|
|
58
|
+
/** @deprecated Use `DISTRIBUTION_FACTORY_ABI` instead */
|
|
38
59
|
export declare const FACTORY_ABI: Abi;
|
|
39
|
-
/**
|
|
60
|
+
/** @deprecated Use `NORMAL_MATH_RUNTIME_ABI` instead */
|
|
40
61
|
export declare const MATH_LIBRARY_ABI: Abi;
|
|
41
|
-
/** Oracle contract ABI */
|
|
42
|
-
export declare const ORACLE_ABI: Abi;
|
|
43
62
|
/** Contracts release metadata (source release used for bundled ABIs). */
|
|
44
63
|
export declare const CONTRACT_RELEASE_MANIFEST: ContractReleaseManifest;
|
|
45
64
|
/** Version string from the bundled contracts release manifest. */
|
|
46
65
|
export declare const CONTRACT_RELEASE_VERSION: string;
|
|
47
|
-
export {
|
|
66
|
+
export { normalAmmAbi, normalMathRuntimeAbi, normalFactoryPluginAbi, distributionFactoryAbi, multinoulliAmmAbi, multinoulliMathRuntimeAbi, multinoulliFactoryPluginAbi, oracleAbi, releaseManifest, };
|
|
48
67
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,oBAAoB,MAAM,8CAA8C,CAAC;AAChF,OAAO,sBAAsB,MAAM,gDAAgD,CAAC;AACpF,OAAO,sBAAsB,MAAM,+CAA+C,CAAC;AACnF,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,yBAAyB,MAAM,mDAAmD,CAAC;AAC1F,OAAO,2BAA2B,MAAM,qDAAqD,CAAC;AAC9F,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAEhE,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;AAID,8BAA8B;AAC9B,eAAO,MAAM,cAAc,EAAE,GAAyB,CAAC;AAEvD,uCAAuC;AACvC,eAAO,MAAM,uBAAuB,EAAE,GAAiC,CAAC;AAExE,gCAAgC;AAChC,eAAO,MAAM,yBAAyB,EAAE,GAAmC,CAAC;AAI5E,mCAAmC;AACnC,eAAO,MAAM,mBAAmB,EAAE,GAA8B,CAAC;AAEjE,4CAA4C;AAC5C,eAAO,MAAM,4BAA4B,EAAE,GAAsC,CAAC;AAElF,qCAAqC;AACrC,eAAO,MAAM,8BAA8B,EAAE,GAAwC,CAAC;AAItF,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,EAAE,GAAmC,CAAC;AAE3E,0BAA0B;AAC1B,eAAO,MAAM,UAAU,EAAE,GAAsB,CAAC;AAIhD,+CAA+C;AAC/C,eAAO,MAAM,OAAO,EAAE,GAAoB,CAAC;AAE3C,yDAAyD;AACzD,eAAO,MAAM,WAAW,EAAE,GAA8B,CAAC;AAEzD,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,GAA6B,CAAC;AAI7D,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,EAAE,uBACI,CAAC;AAE7C,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,EAAE,MAA0C,CAAC;AAGlF,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,SAAS,EACT,eAAe,GAChB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contract ABIs for The Situation prediction market contracts.
|
|
2
|
+
* Contract ABIs for The Situation prediction market contracts (v0.8.0).
|
|
3
3
|
*
|
|
4
4
|
* These ABIs can be used directly with starknet.js Contract instances.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* import {
|
|
8
|
+
* import { NORMAL_AMM_ABI, DISTRIBUTION_FACTORY_ABI, MULTINOULLI_AMM_ABI } from '@the-situation/artifacts';
|
|
9
9
|
* import { Contract } from 'starknet';
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
11
|
+
* const normalAmm = new Contract(NORMAL_AMM_ABI, marketAddress, provider);
|
|
12
|
+
* const multinoulliAmm = new Contract(MULTINOULLI_AMM_ABI, marketAddress, provider);
|
|
12
13
|
* ```
|
|
13
14
|
*
|
|
14
15
|
* @module
|
|
15
16
|
*/
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
17
|
+
import normalAmmAbi from './the_situation_normal_amm.abi.json';
|
|
18
|
+
import normalMathRuntimeAbi from './the_situation_normal_math_runtime.abi.json';
|
|
19
|
+
import normalFactoryPluginAbi from './the_situation_normal_factory_plugin.abi.json';
|
|
20
|
+
import distributionFactoryAbi from './the_situation_distribution_factory.abi.json';
|
|
21
|
+
import multinoulliAmmAbi from './the_situation_multinoulli_amm.abi.json';
|
|
22
|
+
import multinoulliMathRuntimeAbi from './the_situation_multinoulli_math_runtime.abi.json';
|
|
23
|
+
import multinoulliFactoryPluginAbi from './the_situation_multinoulli_factory_plugin.abi.json';
|
|
20
24
|
import oracleAbi from './the_situation_oracle.abi.json';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
export const
|
|
25
|
-
/** Math
|
|
26
|
-
export const
|
|
25
|
+
import releaseManifest from './contracts-release-manifest.json';
|
|
26
|
+
// ── Normal distribution contracts ──────────────────────────────────────
|
|
27
|
+
/** Normal AMM contract ABI */
|
|
28
|
+
export const NORMAL_AMM_ABI = normalAmmAbi;
|
|
29
|
+
/** Normal Math Runtime contract ABI */
|
|
30
|
+
export const NORMAL_MATH_RUNTIME_ABI = normalMathRuntimeAbi;
|
|
31
|
+
/** Normal Factory Plugin ABI */
|
|
32
|
+
export const NORMAL_FACTORY_PLUGIN_ABI = normalFactoryPluginAbi;
|
|
33
|
+
// ── Multinoulli distribution contracts ─────────────────────────────────
|
|
34
|
+
/** Multinoulli AMM contract ABI */
|
|
35
|
+
export const MULTINOULLI_AMM_ABI = multinoulliAmmAbi;
|
|
36
|
+
/** Multinoulli Math Runtime contract ABI */
|
|
37
|
+
export const MULTINOULLI_MATH_RUNTIME_ABI = multinoulliMathRuntimeAbi;
|
|
38
|
+
/** Multinoulli Factory Plugin ABI */
|
|
39
|
+
export const MULTINOULLI_FACTORY_PLUGIN_ABI = multinoulliFactoryPluginAbi;
|
|
40
|
+
// ── Shared contracts ───────────────────────────────────────────────────
|
|
41
|
+
/** Distribution Factory contract ABI (deploys both normal & multinoulli markets) */
|
|
42
|
+
export const DISTRIBUTION_FACTORY_ABI = distributionFactoryAbi;
|
|
27
43
|
/** Oracle contract ABI */
|
|
28
44
|
export const ORACLE_ABI = oracleAbi;
|
|
45
|
+
// ── Backwards-compatible aliases ───────────────────────────────────────
|
|
46
|
+
/** @deprecated Use `NORMAL_AMM_ABI` instead */
|
|
47
|
+
export const AMM_ABI = NORMAL_AMM_ABI;
|
|
48
|
+
/** @deprecated Use `DISTRIBUTION_FACTORY_ABI` instead */
|
|
49
|
+
export const FACTORY_ABI = DISTRIBUTION_FACTORY_ABI;
|
|
50
|
+
/** @deprecated Use `NORMAL_MATH_RUNTIME_ABI` instead */
|
|
51
|
+
export const MATH_LIBRARY_ABI = NORMAL_MATH_RUNTIME_ABI;
|
|
52
|
+
// ── Manifest ───────────────────────────────────────────────────────────
|
|
29
53
|
/** Contracts release metadata (source release used for bundled ABIs). */
|
|
30
54
|
export const CONTRACT_RELEASE_MANIFEST = releaseManifest;
|
|
31
55
|
/** Version string from the bundled contracts release manifest. */
|
|
32
56
|
export const CONTRACT_RELEASE_VERSION = CONTRACT_RELEASE_MANIFEST.version;
|
|
33
|
-
// Re-export for convenience
|
|
34
|
-
export {
|
|
57
|
+
// Re-export raw JSON imports for convenience
|
|
58
|
+
export { normalAmmAbi, normalMathRuntimeAbi, normalFactoryPluginAbi, distributionFactoryAbi, multinoulliAmmAbi, multinoulliMathRuntimeAbi, multinoulliFactoryPluginAbi, oracleAbi, releaseManifest, };
|
|
35
59
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,oBAAoB,MAAM,8CAA8C,CAAC;AAChF,OAAO,sBAAsB,MAAM,gDAAgD,CAAC;AACpF,OAAO,sBAAsB,MAAM,+CAA+C,CAAC;AACnF,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,yBAAyB,MAAM,mDAAmD,CAAC;AAC1F,OAAO,2BAA2B,MAAM,qDAAqD,CAAC;AAC9F,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAiBhE,0EAA0E;AAE1E,8BAA8B;AAC9B,MAAM,CAAC,MAAM,cAAc,GAAQ,YAAmB,CAAC;AAEvD,uCAAuC;AACvC,MAAM,CAAC,MAAM,uBAAuB,GAAQ,oBAA2B,CAAC;AAExE,gCAAgC;AAChC,MAAM,CAAC,MAAM,yBAAyB,GAAQ,sBAA6B,CAAC;AAE5E,0EAA0E;AAE1E,mCAAmC;AACnC,MAAM,CAAC,MAAM,mBAAmB,GAAQ,iBAAwB,CAAC;AAEjE,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAQ,yBAAgC,CAAC;AAElF,qCAAqC;AACrC,MAAM,CAAC,MAAM,8BAA8B,GAAQ,2BAAkC,CAAC;AAEtF,0EAA0E;AAE1E,oFAAoF;AACpF,MAAM,CAAC,MAAM,wBAAwB,GAAQ,sBAA6B,CAAC;AAE3E,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAQ,SAAgB,CAAC;AAEhD,0EAA0E;AAE1E,+CAA+C;AAC/C,MAAM,CAAC,MAAM,OAAO,GAAQ,cAAc,CAAC;AAE3C,yDAAyD;AACzD,MAAM,CAAC,MAAM,WAAW,GAAQ,wBAAwB,CAAC;AAEzD,wDAAwD;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAQ,uBAAuB,CAAC;AAE7D,0EAA0E;AAE1E,yEAAyE;AACzE,MAAM,CAAC,MAAM,yBAAyB,GACpC,eAA0C,CAAC;AAE7C,kEAAkE;AAClE,MAAM,CAAC,MAAM,wBAAwB,GAAW,yBAAyB,CAAC,OAAO,CAAC;AAElF,6CAA6C;AAC7C,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,SAAS,EACT,eAAe,GAChB,CAAC"}
|