@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/index.mjs CHANGED
@@ -4159,7 +4159,10 @@ var Contract = class {
4159
4159
  }
4160
4160
  }
4161
4161
  });
4162
- return contractAddress;
4162
+ return {
4163
+ ...res,
4164
+ contractAddress
4165
+ };
4163
4166
  }
4164
4167
  async createMaciRound({
4165
4168
  signer,
@@ -4369,6 +4372,19 @@ var OracleCertificate = class {
4369
4372
  spend_limit: response.allowance.allowance.allowance.spend_limit
4370
4373
  };
4371
4374
  }
4375
+ async listEcosystems() {
4376
+ const response = await this.http.fetch(
4377
+ `${this.certificateApiEndpoint}/list`,
4378
+ {
4379
+ method: "GET",
4380
+ headers: {
4381
+ "Content-Type": "application/json"
4382
+ }
4383
+ }
4384
+ );
4385
+ const signatureData = await response.json();
4386
+ return signatureData;
4387
+ }
4372
4388
  };
4373
4389
 
4374
4390
  // src/libs/circom/index.ts
@@ -5168,6 +5184,10 @@ var MACI = class {
5168
5184
  });
5169
5185
  return client.claim();
5170
5186
  }
5187
+ async getOracleCertificateConfig() {
5188
+ const ecosystems = await this.oracleCertificate.listEcosystems();
5189
+ return ecosystems;
5190
+ }
5171
5191
  };
5172
5192
 
5173
5193
  // src/maci.ts