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