@dorafactory/maci-sdk 0.1.3-pre.2 → 0.1.3-pre.4

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
@@ -6511,7 +6511,7 @@ var Contract = class {
6511
6511
  const client = await createApiSaasClientBy({
6512
6512
  rpcEndpoint: this.rpcEndpoint,
6513
6513
  wallet: signer,
6514
- contractAddress: this.saasAddress
6514
+ contractAddress: this.apiSaasAddress
6515
6515
  });
6516
6516
  const [operatorPubkeyX, operatorPubkeyY] = unpackPubKey(
6517
6517
  BigInt(operatorPubkey)
@@ -6539,7 +6539,7 @@ var Contract = class {
6539
6539
  const [{ address }] = await signer.getAccounts();
6540
6540
  const contractClient = await this.contractClient({ signer });
6541
6541
  const msg = {
6542
- create_oracle_maci_round: {
6542
+ create_api_maci_round: {
6543
6543
  certification_system: "0",
6544
6544
  circuit_type: "0",
6545
6545
  coordinator: roundParams.coordinator,
@@ -6558,7 +6558,7 @@ var Contract = class {
6558
6558
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
6559
6559
  value: {
6560
6560
  sender: address,
6561
- contract: this.saasAddress,
6561
+ contract: this.apiSaasAddress,
6562
6562
  msg: new TextEncoder().encode(JSON.stringify(msg))
6563
6563
  }
6564
6564
  }
@@ -6574,13 +6574,13 @@ var Contract = class {
6574
6574
  const grantFee = {
6575
6575
  amount: calculatedFee.amount,
6576
6576
  gas: calculatedFee.gas,
6577
- granter: this.saasAddress
6577
+ granter: this.apiSaasAddress
6578
6578
  };
6579
6579
  createResponse = await client.createApiMaciRound(roundParams, grantFee);
6580
6580
  } else if (gasStation && typeof fee === "object") {
6581
6581
  const grantFee = {
6582
6582
  ...fee,
6583
- granter: this.saasAddress
6583
+ granter: this.apiSaasAddress
6584
6584
  };
6585
6585
  createResponse = await client.createApiMaciRound(roundParams, grantFee);
6586
6586
  } else {
@@ -6614,7 +6614,7 @@ var Contract = class {
6614
6614
  const client = await createApiSaasClientBy({
6615
6615
  rpcEndpoint: this.rpcEndpoint,
6616
6616
  wallet: signer,
6617
- contractAddress: this.saasAddress
6617
+ contractAddress: this.apiSaasAddress
6618
6618
  });
6619
6619
  const roundInfo = {
6620
6620
  title,
@@ -6637,7 +6637,7 @@ var Contract = class {
6637
6637
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
6638
6638
  value: {
6639
6639
  sender: address,
6640
- contract: this.saasAddress,
6640
+ contract: this.apiSaasAddress,
6641
6641
  msg: new TextEncoder().encode(JSON.stringify(msg))
6642
6642
  }
6643
6643
  }
@@ -6653,7 +6653,7 @@ var Contract = class {
6653
6653
  const grantFee = {
6654
6654
  amount: calculatedFee.amount,
6655
6655
  gas: calculatedFee.gas,
6656
- granter: this.saasAddress
6656
+ granter: this.apiSaasAddress
6657
6657
  };
6658
6658
  return client.setRoundInfo(
6659
6659
  {
@@ -6665,7 +6665,7 @@ var Contract = class {
6665
6665
  } else if (gasStation && typeof fee === "object") {
6666
6666
  const grantFee = {
6667
6667
  ...fee,
6668
- granter: this.saasAddress
6668
+ granter: this.apiSaasAddress
6669
6669
  };
6670
6670
  return client.setRoundInfo(
6671
6671
  {
@@ -6693,7 +6693,7 @@ var Contract = class {
6693
6693
  const client = await createApiSaasClientBy({
6694
6694
  rpcEndpoint: this.rpcEndpoint,
6695
6695
  wallet: signer,
6696
- contractAddress: this.saasAddress
6696
+ contractAddress: this.apiSaasAddress
6697
6697
  });
6698
6698
  if (gasStation && typeof fee !== "object") {
6699
6699
  const [{ address }] = await signer.getAccounts();
@@ -6711,7 +6711,7 @@ var Contract = class {
6711
6711
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
6712
6712
  value: {
6713
6713
  sender: address,
6714
- contract: this.saasAddress,
6714
+ contract: this.apiSaasAddress,
6715
6715
  msg: new TextEncoder().encode(JSON.stringify(msg))
6716
6716
  }
6717
6717
  }
@@ -6727,7 +6727,7 @@ var Contract = class {
6727
6727
  const grantFee = {
6728
6728
  amount: calculatedFee.amount,
6729
6729
  gas: calculatedFee.gas,
6730
- granter: this.saasAddress
6730
+ granter: this.apiSaasAddress
6731
6731
  };
6732
6732
  return client.setVoteOptionsMap(
6733
6733
  {
@@ -6739,7 +6739,7 @@ var Contract = class {
6739
6739
  } else if (gasStation && typeof fee === "object") {
6740
6740
  const grantFee = {
6741
6741
  ...fee,
6742
- granter: this.saasAddress
6742
+ granter: this.apiSaasAddress
6743
6743
  };
6744
6744
  return client.setVoteOptionsMap(
6745
6745
  {
@@ -6766,7 +6766,7 @@ var Contract = class {
6766
6766
  const client = await createApiSaasClientBy({
6767
6767
  rpcEndpoint: this.rpcEndpoint,
6768
6768
  wallet: signer,
6769
- contractAddress: this.saasAddress
6769
+ contractAddress: this.apiSaasAddress
6770
6770
  });
6771
6771
  if (gasStation && typeof fee !== "object") {
6772
6772
  const [{ address }] = await signer.getAccounts();
@@ -6783,7 +6783,7 @@ var Contract = class {
6783
6783
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
6784
6784
  value: {
6785
6785
  sender: address,
6786
- contract: this.saasAddress,
6786
+ contract: this.apiSaasAddress,
6787
6787
  msg: new TextEncoder().encode(JSON.stringify(msg))
6788
6788
  }
6789
6789
  }
@@ -6799,13 +6799,13 @@ var Contract = class {
6799
6799
  const grantFee = {
6800
6800
  amount: calculatedFee.amount,
6801
6801
  gas: calculatedFee.gas,
6802
- granter: this.saasAddress
6802
+ granter: this.apiSaasAddress
6803
6803
  };
6804
6804
  return client.addOperator({ operator }, grantFee);
6805
6805
  } else if (gasStation && typeof fee === "object") {
6806
6806
  const grantFee = {
6807
6807
  ...fee,
6808
- granter: this.saasAddress
6808
+ granter: this.apiSaasAddress
6809
6809
  };
6810
6810
  return client.addOperator({ operator }, grantFee);
6811
6811
  }
@@ -6820,7 +6820,7 @@ var Contract = class {
6820
6820
  const client = await createApiSaasClientBy({
6821
6821
  rpcEndpoint: this.rpcEndpoint,
6822
6822
  wallet: signer,
6823
- contractAddress: this.saasAddress
6823
+ contractAddress: this.apiSaasAddress
6824
6824
  });
6825
6825
  if (gasStation && typeof fee !== "object") {
6826
6826
  const [{ address }] = await signer.getAccounts();
@@ -6837,7 +6837,7 @@ var Contract = class {
6837
6837
  typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
6838
6838
  value: {
6839
6839
  sender: address,
6840
- contract: this.saasAddress,
6840
+ contract: this.apiSaasAddress,
6841
6841
  msg: new TextEncoder().encode(JSON.stringify(msg))
6842
6842
  }
6843
6843
  }
@@ -6853,13 +6853,13 @@ var Contract = class {
6853
6853
  const grantFee = {
6854
6854
  amount: calculatedFee.amount,
6855
6855
  gas: calculatedFee.gas,
6856
- granter: this.saasAddress
6856
+ granter: this.apiSaasAddress
6857
6857
  };
6858
6858
  return client.removeOperator({ operator }, grantFee);
6859
6859
  } else if (gasStation && typeof fee === "object") {
6860
6860
  const grantFee = {
6861
6861
  ...fee,
6862
- granter: this.saasAddress
6862
+ granter: this.apiSaasAddress
6863
6863
  };
6864
6864
  return client.removeOperator({ operator }, grantFee);
6865
6865
  }
@@ -6872,7 +6872,7 @@ var Contract = class {
6872
6872
  const client = await createApiSaasClientBy({
6873
6873
  rpcEndpoint: this.rpcEndpoint,
6874
6874
  wallet: signer,
6875
- contractAddress: this.saasAddress
6875
+ contractAddress: this.apiSaasAddress
6876
6876
  });
6877
6877
  return client.isOperator({ address: operator });
6878
6878
  }
@@ -8119,6 +8119,12 @@ var MaciClient2 = class {
8119
8119
  ...params
8120
8120
  });
8121
8121
  }
8122
+ async createApiSaasMaciRound(params) {
8123
+ return await this.contract.createApiSaasMaciRound({
8124
+ signer: this.getSigner(params.signer),
8125
+ ...params
8126
+ });
8127
+ }
8122
8128
  async genKeypairFromSign({
8123
8129
  signer,
8124
8130
  address