@dorafactory/maci-sdk 0.0.24 → 0.0.26

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/browser.mjs CHANGED
@@ -29957,7 +29957,10 @@ var Contract = class {
29957
29957
  }
29958
29958
  }
29959
29959
  });
29960
- return contractAddress;
29960
+ return {
29961
+ ...res,
29962
+ contractAddress
29963
+ };
29961
29964
  }
29962
29965
  async createMaciRound({
29963
29966
  signer,
@@ -30171,6 +30174,19 @@ var OracleCertificate = class {
30171
30174
  spend_limit: response.allowance.allowance.allowance.spend_limit
30172
30175
  };
30173
30176
  }
30177
+ async listEcosystems() {
30178
+ const response = await this.http.fetch(
30179
+ `${this.certificateApiEndpoint}/list`,
30180
+ {
30181
+ method: "GET",
30182
+ headers: {
30183
+ "Content-Type": "application/json"
30184
+ }
30185
+ }
30186
+ );
30187
+ const signatureData = await response.json();
30188
+ return signatureData;
30189
+ }
30174
30190
  };
30175
30191
 
30176
30192
  // src/libs/circom/index.ts
@@ -30976,6 +30992,10 @@ var MACI = class {
30976
30992
  });
30977
30993
  return client.claim();
30978
30994
  }
30995
+ async getOracleCertificateConfig() {
30996
+ const ecosystems = await this.oracleCertificate.listEcosystems();
30997
+ return ecosystems;
30998
+ }
30979
30999
  };
30980
31000
 
30981
31001
  // src/maci.ts