@mistcash/config 0.2.0 → 0.2.2

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/jest.config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  preset: 'ts-jest',
3
3
  testEnvironment: 'node',
4
- roots: ['<rootDir>/src', '<rootDir>/tests']
4
+ roots: ['<rootDir>/src']
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistcash/config",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,20 +17,20 @@
17
17
  "main": "dist/index.js",
18
18
  "module": "dist/index.mjs",
19
19
  "types": "dist/index.d.ts",
20
- "scripts": {
21
- "build": "tsup src/index.ts --format cjs,esm --dts",
22
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
23
- "test": "jest",
24
- "test:watch": "jest --watch",
25
- "clean": "rm -rf dist"
26
- },
27
20
  "dependencies": {
28
- "starknet": "^8.0.0"
21
+ "starknet": "^8.9.0"
29
22
  },
30
23
  "devDependencies": {
31
24
  "@types/jest": "^29.5.0",
32
25
  "jest": "^29.5.0",
33
26
  "tsup": "^8.0.0",
34
27
  "typescript": "^5.0.0"
28
+ },
29
+ "scripts": {
30
+ "build": "tsup src/index.ts --format cjs,esm --dts",
31
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
32
+ "test": "jest",
33
+ "test:watch": "jest --watch",
34
+ "clean": "rm -rf dist"
35
35
  }
36
36
  }
package/src/contracts.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Abi, TypedContractV2 } from "starknet";
2
2
 
3
- export const CHAMBER_ADDR_MAINNET = '0x06a6ed89c1955ce25c5e51cf053e5db79de51a840344421a75884b0c679368a6';
3
+ export const CHAMBER_ADDR_MAINNET = (process.env.CHAMBER_ADDR_MAINNET || '0x063eab2f19523fc8578c66a3ddf248d72094c65154b6dd7680b6e05a64845277') as `0x${string}`;
4
4
 
5
5
  export const CHAMBER_ABI = [
6
6
  {
@@ -188,6 +188,38 @@ export const CHAMBER_ABI = [
188
188
  }
189
189
  ],
190
190
  "state_mutability": "view"
191
+ },
192
+ {
193
+ "type": "function",
194
+ "name": "merkle_proof",
195
+ "inputs": [
196
+ {
197
+ "name": "index",
198
+ "type": "core::integer::u32"
199
+ }
200
+ ],
201
+ "outputs": [
202
+ {
203
+ "type": "core::array::Span::<core::integer::u256>"
204
+ }
205
+ ],
206
+ "state_mutability": "external"
207
+ },
208
+ {
209
+ "type": "function",
210
+ "name": "merkle_leaves",
211
+ "inputs": [
212
+ {
213
+ "name": "height",
214
+ "type": "core::integer::u32"
215
+ }
216
+ ],
217
+ "outputs": [
218
+ {
219
+ "type": "core::array::Array::<core::integer::u256>"
220
+ }
221
+ ],
222
+ "state_mutability": "external"
191
223
  }
192
224
  ]
193
225
  },