@provable-games/metagame-sdk 0.1.4 → 0.1.6

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/index.js CHANGED
@@ -476,13 +476,13 @@ function parseKeyValueFormat(input) {
476
476
  // src/utils/extensions.ts
477
477
  var EXTENSION_ADDRESSES = {
478
478
  SN_SEPOLIA: {
479
- tournamentValidator: "0x07eade45e4317b1a036e3a8123bb1f95215d37a6f6b0cea25cdd48030a932dfc",
480
- erc20BalanceValidator: "0x028112199f873e919963277b41ef1231365986e2fd7722501cd7d293de60b64e",
481
- opusTrovesValidator: "0x0317f96eeff41d1badffd9bda126d36c1806523d8c91a5b440f9bdf2aa2b9fe7",
482
- snapshotValidator: "0x05520239f16dc58c5dfdccb1f0480977e7fea18d4305e64f5eae88ae786a22fe",
483
- zkPassportValidator: "0x025b65137c5297e03491830635f4c5d76eb17e5b2db3bf49dbee34bba94ad3e6",
484
- governanceValidator: "0x0585e6b1aa8daac7711004a92a8d0d3b5a81eaac8c9a07db24fc34b1a4f2322c",
485
- merkleValidator: "0x07a5b716c65ac5726ecd0b023ff1b4cc9090820707a508b49f5ed42e44a401c4"
479
+ tournamentValidator: "0x03f50e4679b95735650c4b2ff901282d6204b5b0cb6521ac8381569c74fd56b6",
480
+ erc20BalanceValidator: "0x07488c95f24dead886732f190436b169ed9274969b96b9765bbda5265ae1b929",
481
+ opusTrovesValidator: "0x03542fc18dee94938c5b8ee2bcfce30010a9598b854c3ceb326bb376591a3c46",
482
+ snapshotValidator: "0x005aa67f8ef769a25c0cf2ab96fdcba2e4b3fa8abe187fbc316f2c39a54cfa9a",
483
+ zkPassportValidator: "0x01ad565ed6d201cf0b3f4e864562bd7ef63fb10fa08b0a0b6ff0f3398449092b",
484
+ governanceValidator: "0x06ad6e97c6e1e48ef92d30f5034e9a3bcb5940cb71cfe0fe7dd6576c3665490b",
485
+ merkleValidator: "0x05a0775e6c3af9ed2498b9349003cac1f41d93a54a1a18eedd8e366266993e58"
486
486
  },
487
487
  SN_MAIN: {
488
488
  tournamentValidator: "0x0771b57c0709fc4407ff8b63d573f302b96fb03638364032fad734e3c310b9e0",
@@ -1184,6 +1184,16 @@ var MerkleClient = class {
1184
1184
  return empty;
1185
1185
  }
1186
1186
  }
1187
+ /** Fetch a single merkle tree by ID. */
1188
+ async getTree(treeId) {
1189
+ try {
1190
+ const res = await fetch(`${this.apiUrl}/trees/${treeId}`);
1191
+ if (!res.ok) return null;
1192
+ return await res.json();
1193
+ } catch {
1194
+ return null;
1195
+ }
1196
+ }
1187
1197
  /** Fetch entries for a specific merkle tree. */
1188
1198
  async getTreeEntries(treeId, options) {
1189
1199
  const empty = {