@markit.market/sdk 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 (66) hide show
  1. package/README.md +76 -0
  2. package/dist/abi/ERC20.d.ts +44 -0
  3. package/dist/abi/ERC20.d.ts.map +1 -0
  4. package/dist/abi/ERC20.js +30 -0
  5. package/dist/abi/ERC20.js.map +1 -0
  6. package/dist/abi/LpVault.d.ts +89 -0
  7. package/dist/abi/LpVault.d.ts.map +1 -0
  8. package/dist/abi/LpVault.js +12 -0
  9. package/dist/abi/LpVault.js.map +1 -0
  10. package/dist/abi/MarketEngine.d.ts +259 -0
  11. package/dist/abi/MarketEngine.d.ts.map +1 -0
  12. package/dist/abi/MarketEngine.js +28 -0
  13. package/dist/abi/MarketEngine.js.map +1 -0
  14. package/dist/abi/MarketFactory.d.ts +32 -0
  15. package/dist/abi/MarketFactory.d.ts.map +1 -0
  16. package/dist/abi/MarketFactory.js +6 -0
  17. package/dist/abi/MarketFactory.js.map +1 -0
  18. package/dist/builder.d.ts +3 -0
  19. package/dist/builder.d.ts.map +1 -0
  20. package/dist/builder.js +41 -0
  21. package/dist/builder.js.map +1 -0
  22. package/dist/client.d.ts +16 -0
  23. package/dist/client.d.ts.map +1 -0
  24. package/dist/client.js +45 -0
  25. package/dist/client.js.map +1 -0
  26. package/dist/constants.d.ts +7 -0
  27. package/dist/constants.d.ts.map +1 -0
  28. package/dist/constants.js +27 -0
  29. package/dist/constants.js.map +1 -0
  30. package/dist/errors.d.ts +21 -0
  31. package/dist/errors.d.ts.map +1 -0
  32. package/dist/errors.js +24 -0
  33. package/dist/errors.js.map +1 -0
  34. package/dist/index.d.ts +6 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +7 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/markets.d.ts +4 -0
  39. package/dist/markets.d.ts.map +1 -0
  40. package/dist/markets.js +111 -0
  41. package/dist/markets.js.map +1 -0
  42. package/dist/trade.d.ts +4 -0
  43. package/dist/trade.d.ts.map +1 -0
  44. package/dist/trade.js +139 -0
  45. package/dist/trade.js.map +1 -0
  46. package/dist/types.d.ts +185 -0
  47. package/dist/types.d.ts.map +1 -0
  48. package/dist/types.js +2 -0
  49. package/dist/types.js.map +1 -0
  50. package/dist/utils/format.d.ts +17 -0
  51. package/dist/utils/format.d.ts.map +1 -0
  52. package/dist/utils/format.js +32 -0
  53. package/dist/utils/format.js.map +1 -0
  54. package/dist/utils/pricing.d.ts +15 -0
  55. package/dist/utils/pricing.d.ts.map +1 -0
  56. package/dist/utils/pricing.js +61 -0
  57. package/dist/utils/pricing.js.map +1 -0
  58. package/dist/utils/supabase.d.ts +16 -0
  59. package/dist/utils/supabase.d.ts.map +1 -0
  60. package/dist/utils/supabase.js +45 -0
  61. package/dist/utils/supabase.js.map +1 -0
  62. package/dist/vault.d.ts +4 -0
  63. package/dist/vault.d.ts.map +1 -0
  64. package/dist/vault.js +89 -0
  65. package/dist/vault.js.map +1 -0
  66. package/package.json +46 -0
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # @markit/sdk
2
+
3
+ TypeScript SDK for [MarkIt](https://markit.market) prediction markets on Base.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @markit.market/sdk viem
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```ts
14
+ import { createMarkitClient } from '@markit.market/sdk'
15
+
16
+ const markit = createMarkitClient({
17
+ builderCode: 'your-builder-code',
18
+ chain: 'base', // or 'baseSepolia' for testnet
19
+ })
20
+
21
+ // List open markets
22
+ const markets = await markit.markets.list({ state: 'open' })
23
+
24
+ // Get a quote
25
+ const quote = await markit.markets.getQuote({
26
+ market: '0x...',
27
+ side: 'yes',
28
+ usdcAmount: 10_000_000n, // $10 USDC (6 decimals)
29
+ })
30
+
31
+ // Place a bet (requires a viem wallet client)
32
+ const result = await markit.trade.placeBet({
33
+ market: '0x...',
34
+ side: 'yes',
35
+ usdcAmount: 10_000_000n,
36
+ signer: walletClient,
37
+ })
38
+
39
+ // Build raw call data for smart wallet batching
40
+ const calls = markit.trade.buildPlaceBetCalls({
41
+ market: '0x...',
42
+ side: 'yes',
43
+ usdcAmount: 10_000_000n,
44
+ })
45
+ ```
46
+
47
+ ## Builder Codes
48
+
49
+ Builders earn **0.25%** of every bet placed through their integration, carved from the existing 2% protocol fee. Register at [markit.market/builders](https://markit.market/builders).
50
+
51
+ ## API Reference
52
+
53
+ ### `createMarkitClient(config)`
54
+
55
+ | Option | Type | Default | Description |
56
+ |--------|------|---------|-------------|
57
+ | `builderCode` | `string` | *required* | Your registered builder code |
58
+ | `chain` | `'base' \| 'baseSepolia'` | `'base'` | Target chain |
59
+ | `rpcUrl` | `string` | Public RPC | Custom RPC endpoint |
60
+ | `apiKey` | `string` | — | API key for builder stats |
61
+
62
+ ### Namespaces
63
+
64
+ - **`markit.markets`** — `list()`, `get()`, `getPrice()`, `getQuote()`, `getLiveScores()`
65
+ - **`markit.trade`** — `placeBet()`, `buildPlaceBetCalls()`, `reportAttribution()`, `getPositions()`
66
+ - **`markit.vault`** — `getState()`, `getUserPosition()`, `deposit()`, `requestWithdrawal()`
67
+ - **`markit.builder`** — `getStats()`, `getFeeHistory()`
68
+
69
+ ## Requirements
70
+
71
+ - Node.js 18+
72
+ - `viem` >= 2.0.0 (peer dependency)
73
+
74
+ ## License
75
+
76
+ MIT
@@ -0,0 +1,44 @@
1
+ export declare const erc20Abi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "approve";
4
+ readonly inputs: readonly [{
5
+ readonly name: "spender";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly name: "amount";
9
+ readonly type: "uint256";
10
+ }];
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "bool";
14
+ }];
15
+ readonly stateMutability: "nonpayable";
16
+ }, {
17
+ readonly type: "function";
18
+ readonly name: "allowance";
19
+ readonly inputs: readonly [{
20
+ readonly name: "owner";
21
+ readonly type: "address";
22
+ }, {
23
+ readonly name: "spender";
24
+ readonly type: "address";
25
+ }];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "uint256";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ }, {
32
+ readonly type: "function";
33
+ readonly name: "balanceOf";
34
+ readonly inputs: readonly [{
35
+ readonly name: "account";
36
+ readonly type: "address";
37
+ }];
38
+ readonly outputs: readonly [{
39
+ readonly name: "";
40
+ readonly type: "uint256";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ }];
44
+ //# sourceMappingURL=ERC20.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC20.d.ts","sourceRoot":"","sources":["../../src/abi/ERC20.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BX,CAAA"}
@@ -0,0 +1,30 @@
1
+ export const erc20Abi = [
2
+ {
3
+ type: 'function',
4
+ name: 'approve',
5
+ inputs: [
6
+ { name: 'spender', type: 'address' },
7
+ { name: 'amount', type: 'uint256' },
8
+ ],
9
+ outputs: [{ name: '', type: 'bool' }],
10
+ stateMutability: 'nonpayable',
11
+ },
12
+ {
13
+ type: 'function',
14
+ name: 'allowance',
15
+ inputs: [
16
+ { name: 'owner', type: 'address' },
17
+ { name: 'spender', type: 'address' },
18
+ ],
19
+ outputs: [{ name: '', type: 'uint256' }],
20
+ stateMutability: 'view',
21
+ },
22
+ {
23
+ type: 'function',
24
+ name: 'balanceOf',
25
+ inputs: [{ name: 'account', type: 'address' }],
26
+ outputs: [{ name: '', type: 'uint256' }],
27
+ stateMutability: 'view',
28
+ },
29
+ ];
30
+ //# sourceMappingURL=ERC20.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC20.js","sourceRoot":"","sources":["../../src/abi/ERC20.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QACrC,eAAe,EAAE,YAAY;KAC9B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;SACrC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxC,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxC,eAAe,EAAE,MAAM;KACxB;CACO,CAAA"}
@@ -0,0 +1,89 @@
1
+ export declare const lpVaultAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "deposit";
4
+ readonly inputs: readonly [{
5
+ readonly name: "usdcAmount";
6
+ readonly type: "uint256";
7
+ }];
8
+ readonly outputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ }, {
11
+ readonly type: "function";
12
+ readonly name: "requestWithdrawal";
13
+ readonly inputs: readonly [{
14
+ readonly name: "sharesToRedeem";
15
+ readonly type: "uint256";
16
+ }];
17
+ readonly outputs: readonly [];
18
+ readonly stateMutability: "nonpayable";
19
+ }, {
20
+ readonly type: "function";
21
+ readonly name: "currentNAV";
22
+ readonly inputs: readonly [];
23
+ readonly outputs: readonly [{
24
+ readonly name: "";
25
+ readonly type: "uint256";
26
+ }];
27
+ readonly stateMutability: "view";
28
+ }, {
29
+ readonly type: "function";
30
+ readonly name: "sharePrice";
31
+ readonly inputs: readonly [];
32
+ readonly outputs: readonly [{
33
+ readonly name: "";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly stateMutability: "view";
37
+ }, {
38
+ readonly type: "function";
39
+ readonly name: "totalShares";
40
+ readonly inputs: readonly [];
41
+ readonly outputs: readonly [{
42
+ readonly name: "";
43
+ readonly type: "uint256";
44
+ }];
45
+ readonly stateMutability: "view";
46
+ }, {
47
+ readonly type: "function";
48
+ readonly name: "float";
49
+ readonly inputs: readonly [];
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly type: "uint256";
53
+ }];
54
+ readonly stateMutability: "view";
55
+ }, {
56
+ readonly type: "function";
57
+ readonly name: "activeMarketCount";
58
+ readonly inputs: readonly [];
59
+ readonly outputs: readonly [{
60
+ readonly name: "";
61
+ readonly type: "uint256";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ }, {
65
+ readonly type: "function";
66
+ readonly name: "shares";
67
+ readonly inputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "address";
70
+ }];
71
+ readonly outputs: readonly [{
72
+ readonly name: "";
73
+ readonly type: "uint256";
74
+ }];
75
+ readonly stateMutability: "view";
76
+ }, {
77
+ readonly type: "function";
78
+ readonly name: "userValue";
79
+ readonly inputs: readonly [{
80
+ readonly name: "user";
81
+ readonly type: "address";
82
+ }];
83
+ readonly outputs: readonly [{
84
+ readonly name: "";
85
+ readonly type: "uint256";
86
+ }];
87
+ readonly stateMutability: "view";
88
+ }];
89
+ //# sourceMappingURL=LpVault.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LpVault.d.ts","sourceRoot":"","sources":["../../src/abi/LpVault.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUb,CAAA"}
@@ -0,0 +1,12 @@
1
+ export const lpVaultAbi = [
2
+ { type: 'function', name: 'deposit', inputs: [{ name: 'usdcAmount', type: 'uint256' }], outputs: [], stateMutability: 'nonpayable' },
3
+ { type: 'function', name: 'requestWithdrawal', inputs: [{ name: 'sharesToRedeem', type: 'uint256' }], outputs: [], stateMutability: 'nonpayable' },
4
+ { type: 'function', name: 'currentNAV', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
5
+ { type: 'function', name: 'sharePrice', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
6
+ { type: 'function', name: 'totalShares', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
7
+ { type: 'function', name: 'float', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
8
+ { type: 'function', name: 'activeMarketCount', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
9
+ { type: 'function', name: 'shares', inputs: [{ name: '', type: 'address' }], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
10
+ { type: 'function', name: 'userValue', inputs: [{ name: 'user', type: 'address' }], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
11
+ ];
12
+ //# sourceMappingURL=LpVault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LpVault.js","sourceRoot":"","sources":["../../src/abi/LpVault.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,YAAY,EAAE;IACpI,EA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AC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE;IAChJ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE;CAC/I,CAAA"}
@@ -0,0 +1,259 @@
1
+ export declare const marketEngineAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getMarkPrice";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly name: "pYes";
7
+ readonly type: "uint256";
8
+ }, {
9
+ readonly name: "pNo";
10
+ readonly type: "uint256";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ }, {
14
+ readonly type: "function";
15
+ readonly name: "state";
16
+ readonly inputs: readonly [];
17
+ readonly outputs: readonly [{
18
+ readonly name: "";
19
+ readonly type: "uint8";
20
+ }];
21
+ readonly stateMutability: "view";
22
+ }, {
23
+ readonly type: "function";
24
+ readonly name: "outcome";
25
+ readonly inputs: readonly [];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "uint8";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ }, {
32
+ readonly type: "function";
33
+ readonly name: "yesLiability";
34
+ readonly inputs: readonly [];
35
+ readonly outputs: readonly [{
36
+ readonly name: "";
37
+ readonly type: "uint256";
38
+ }];
39
+ readonly stateMutability: "view";
40
+ }, {
41
+ readonly type: "function";
42
+ readonly name: "noLiability";
43
+ readonly inputs: readonly [];
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "uint256";
47
+ }];
48
+ readonly stateMutability: "view";
49
+ }, {
50
+ readonly type: "function";
51
+ readonly name: "seedImbalance";
52
+ readonly inputs: readonly [];
53
+ readonly outputs: readonly [{
54
+ readonly name: "";
55
+ readonly type: "int256";
56
+ }];
57
+ readonly stateMutability: "view";
58
+ }, {
59
+ readonly type: "function";
60
+ readonly name: "totalLpShares";
61
+ readonly inputs: readonly [];
62
+ readonly outputs: readonly [{
63
+ readonly name: "";
64
+ readonly type: "uint256";
65
+ }];
66
+ readonly stateMutability: "view";
67
+ }, {
68
+ readonly type: "function";
69
+ readonly name: "accumulatedFees";
70
+ readonly inputs: readonly [];
71
+ readonly outputs: readonly [{
72
+ readonly name: "";
73
+ readonly type: "uint256";
74
+ }];
75
+ readonly stateMutability: "view";
76
+ }, {
77
+ readonly type: "function";
78
+ readonly name: "engineUsdc";
79
+ readonly inputs: readonly [];
80
+ readonly outputs: readonly [{
81
+ readonly name: "";
82
+ readonly type: "uint256";
83
+ }];
84
+ readonly stateMutability: "view";
85
+ }, {
86
+ readonly type: "function";
87
+ readonly name: "bettingCloseTime";
88
+ readonly inputs: readonly [];
89
+ readonly outputs: readonly [{
90
+ readonly name: "";
91
+ readonly type: "uint256";
92
+ }];
93
+ readonly stateMutability: "view";
94
+ }, {
95
+ readonly type: "function";
96
+ readonly name: "resolveTime";
97
+ readonly inputs: readonly [];
98
+ readonly outputs: readonly [{
99
+ readonly name: "";
100
+ readonly type: "uint256";
101
+ }];
102
+ readonly stateMutability: "view";
103
+ }, {
104
+ readonly type: "function";
105
+ readonly name: "question";
106
+ readonly inputs: readonly [];
107
+ readonly outputs: readonly [{
108
+ readonly name: "";
109
+ readonly type: "string";
110
+ }];
111
+ readonly stateMutability: "view";
112
+ }, {
113
+ readonly type: "function";
114
+ readonly name: "yesToken";
115
+ readonly inputs: readonly [];
116
+ readonly outputs: readonly [{
117
+ readonly name: "";
118
+ readonly type: "address";
119
+ }];
120
+ readonly stateMutability: "view";
121
+ }, {
122
+ readonly type: "function";
123
+ readonly name: "noToken";
124
+ readonly inputs: readonly [];
125
+ readonly outputs: readonly [{
126
+ readonly name: "";
127
+ readonly type: "address";
128
+ }];
129
+ readonly stateMutability: "view";
130
+ }, {
131
+ readonly type: "function";
132
+ readonly name: "curveA";
133
+ readonly inputs: readonly [];
134
+ readonly outputs: readonly [{
135
+ readonly name: "";
136
+ readonly type: "uint256";
137
+ }];
138
+ readonly stateMutability: "view";
139
+ }, {
140
+ readonly type: "function";
141
+ readonly name: "baseFeeBps";
142
+ readonly inputs: readonly [];
143
+ readonly outputs: readonly [{
144
+ readonly name: "";
145
+ readonly type: "uint256";
146
+ }];
147
+ readonly stateMutability: "view";
148
+ }, {
149
+ readonly type: "function";
150
+ readonly name: "feeK";
151
+ readonly inputs: readonly [];
152
+ readonly outputs: readonly [{
153
+ readonly name: "";
154
+ readonly type: "uint256";
155
+ }];
156
+ readonly stateMutability: "view";
157
+ }, {
158
+ readonly type: "function";
159
+ readonly name: "minFeeBps";
160
+ readonly inputs: readonly [];
161
+ readonly outputs: readonly [{
162
+ readonly name: "";
163
+ readonly type: "uint256";
164
+ }];
165
+ readonly stateMutability: "view";
166
+ }, {
167
+ readonly type: "function";
168
+ readonly name: "minBetUsdc";
169
+ readonly inputs: readonly [];
170
+ readonly outputs: readonly [{
171
+ readonly name: "";
172
+ readonly type: "uint256";
173
+ }];
174
+ readonly stateMutability: "view";
175
+ }, {
176
+ readonly type: "function";
177
+ readonly name: "minLpUsdc";
178
+ readonly inputs: readonly [];
179
+ readonly outputs: readonly [{
180
+ readonly name: "";
181
+ readonly type: "uint256";
182
+ }];
183
+ readonly stateMutability: "view";
184
+ }, {
185
+ readonly type: "function";
186
+ readonly name: "totalLpDeposited";
187
+ readonly inputs: readonly [];
188
+ readonly outputs: readonly [{
189
+ readonly name: "";
190
+ readonly type: "uint256";
191
+ }];
192
+ readonly stateMutability: "view";
193
+ }, {
194
+ readonly type: "function";
195
+ readonly name: "protocolFeeBps";
196
+ readonly inputs: readonly [];
197
+ readonly outputs: readonly [{
198
+ readonly name: "";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ }, {
203
+ readonly type: "function";
204
+ readonly name: "placeBet";
205
+ readonly inputs: readonly [{
206
+ readonly name: "side";
207
+ readonly type: "uint8";
208
+ }, {
209
+ readonly name: "usdcIn";
210
+ readonly type: "uint256";
211
+ }, {
212
+ readonly name: "minSharesOut";
213
+ readonly type: "uint256";
214
+ }];
215
+ readonly outputs: readonly [];
216
+ readonly stateMutability: "nonpayable";
217
+ }, {
218
+ readonly type: "function";
219
+ readonly name: "redeem";
220
+ readonly inputs: readonly [{
221
+ readonly name: "shares";
222
+ readonly type: "uint256";
223
+ }];
224
+ readonly outputs: readonly [];
225
+ readonly stateMutability: "nonpayable";
226
+ }, {
227
+ readonly type: "event";
228
+ readonly name: "BetPlaced";
229
+ readonly inputs: readonly [{
230
+ readonly name: "user";
231
+ readonly type: "address";
232
+ readonly indexed: true;
233
+ }, {
234
+ readonly name: "side";
235
+ readonly type: "uint8";
236
+ readonly indexed: false;
237
+ }, {
238
+ readonly name: "usdcIn";
239
+ readonly type: "uint256";
240
+ readonly indexed: false;
241
+ }, {
242
+ readonly name: "fee";
243
+ readonly type: "uint256";
244
+ readonly indexed: false;
245
+ }, {
246
+ readonly name: "protocolFee";
247
+ readonly type: "uint256";
248
+ readonly indexed: false;
249
+ }, {
250
+ readonly name: "sharesOut";
251
+ readonly type: "uint256";
252
+ readonly indexed: false;
253
+ }, {
254
+ readonly name: "markPrice";
255
+ readonly type: "uint256";
256
+ readonly indexed: false;
257
+ }];
258
+ }];
259
+ //# sourceMappingURL=MarketEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketEngine.d.ts","sourceRoot":"","sources":["../../src/abi/MarketEngine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BlB,CAAA"}
@@ -0,0 +1,28 @@
1
+ export const marketEngineAbi = [
2
+ { type: 'function', name: 'getMarkPrice', inputs: [], outputs: [{ name: 'pYes', type: 'uint256' }, { name: 'pNo', type: 'uint256' }], stateMutability: 'view' },
3
+ { type: 'function', name: 'state', inputs: [], outputs: [{ name: '', type: 'uint8' }], stateMutability: 'view' },
4
+ { type: 'function', name: 'outcome', inputs: [], outputs: [{ name: '', type: 'uint8' }], stateMutability: 'view' },
5
+ { type: 'function', name: 'yesLiability', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
6
+ { type: 'function', name: 'noLiability', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
7
+ { type: 'function', name: 'seedImbalance', inputs: [], outputs: [{ name: '', type: 'int256' }], stateMutability: 'view' },
8
+ { type: 'function', name: 'totalLpShares', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
9
+ { type: 'function', name: 'accumulatedFees', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
10
+ { type: 'function', name: 'engineUsdc', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
11
+ { type: 'function', name: 'bettingCloseTime', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
12
+ { type: 'function', name: 'resolveTime', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
13
+ { type: 'function', name: 'question', inputs: [], outputs: [{ name: '', type: 'string' }], stateMutability: 'view' },
14
+ { type: 'function', name: 'yesToken', inputs: [], outputs: [{ name: '', type: 'address' }], stateMutability: 'view' },
15
+ { type: 'function', name: 'noToken', inputs: [], outputs: [{ name: '', type: 'address' }], stateMutability: 'view' },
16
+ { type: 'function', name: 'curveA', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
17
+ { type: 'function', name: 'baseFeeBps', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
18
+ { type: 'function', name: 'feeK', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
19
+ { type: 'function', name: 'minFeeBps', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
20
+ { type: 'function', name: 'minBetUsdc', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
21
+ { type: 'function', name: 'minLpUsdc', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
22
+ { type: 'function', name: 'totalLpDeposited', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
23
+ { type: 'function', name: 'protocolFeeBps', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
24
+ { type: 'function', name: 'placeBet', inputs: [{ name: 'side', type: 'uint8' }, { name: 'usdcIn', type: 'uint256' }, { name: 'minSharesOut', type: 'uint256' }], outputs: [], stateMutability: 'nonpayable' },
25
+ { type: 'function', name: 'redeem', inputs: [{ name: 'shares', type: 'uint256' }], outputs: [], stateMutability: 'nonpayable' },
26
+ { type: 'event', name: 'BetPlaced', inputs: [{ name: 'user', type: 'address', indexed: true }, { name: 'side', type: 'uint8', indexed: false }, { name: 'usdcIn', type: 'uint256', indexed: false }, { name: 'fee', type: 'uint256', indexed: false }, { name: 'protocolFee', type: 'uint256', indexed: false }, { name: 'sharesOut', type: 'uint256', indexed: false }, { name: 'markPrice', type: 'uint256', indexed: false }] },
27
+ ];
28
+ //# sourceMappingURL=MarketEngine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketEngine.js","sourceRoot":"","sources":["../../src/abi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IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE;CAC1Z,CAAA"}
@@ -0,0 +1,32 @@
1
+ export declare const marketFactoryAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getMarkets";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly name: "";
7
+ readonly type: "address[]";
8
+ }];
9
+ readonly stateMutability: "view";
10
+ }, {
11
+ readonly type: "function";
12
+ readonly name: "marketCount";
13
+ readonly inputs: readonly [];
14
+ readonly outputs: readonly [{
15
+ readonly name: "";
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly stateMutability: "view";
19
+ }, {
20
+ readonly type: "function";
21
+ readonly name: "isMarket";
22
+ readonly inputs: readonly [{
23
+ readonly name: "";
24
+ readonly type: "address";
25
+ }];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "bool";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ }];
32
+ //# sourceMappingURL=MarketFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketFactory.d.ts","sourceRoot":"","sources":["../../src/abi/MarketFactory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export const marketFactoryAbi = [
2
+ { type: 'function', name: 'getMarkets', inputs: [], outputs: [{ name: '', type: 'address[]' }], stateMutability: 'view' },
3
+ { type: 'function', name: 'marketCount', inputs: [], outputs: [{ name: '', type: 'uint256' }], stateMutability: 'view' },
4
+ { type: 'function', name: 'isMarket', inputs: [{ name: '', type: 'address' }], outputs: [{ name: '', type: 'bool' }], stateMutability: 'view' },
5
+ ];
6
+ //# sourceMappingURL=MarketFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketFactory.js","sourceRoot":"","sources":["../../src/abi/MarketFactory.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE;IACzH,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE;IACxH,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE;CACvI,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ChainConfig, MarkitBuilder } from './types.js';
2
+ export declare function createBuilder(chainConfig: ChainConfig, builderCode: string, apiKey?: string): MarkitBuilder;
3
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA+B,aAAa,EAAE,MAAM,YAAY,CAAA;AAGzF,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,MAAM,GACd,aAAa,CAuCf"}