@dorafactory/maci-sdk 0.0.21 → 0.0.22
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.d.mts +7 -0
- package/dist/browser.d.ts +7 -0
- package/dist/browser.js +7 -0
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +7 -0
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/libs/maci/maci.ts +12 -0
package/dist/browser.d.mts
CHANGED
|
@@ -1746,6 +1746,13 @@ declare class MACI {
|
|
|
1746
1746
|
claimable: boolean | null;
|
|
1747
1747
|
balance: string | null;
|
|
1748
1748
|
}>;
|
|
1749
|
+
queryAMaciChargeFee({ maxVoter, maxOption, }: {
|
|
1750
|
+
maxVoter: number;
|
|
1751
|
+
maxOption: number;
|
|
1752
|
+
}): Promise<{
|
|
1753
|
+
denom: string;
|
|
1754
|
+
amount: string;
|
|
1755
|
+
}>;
|
|
1749
1756
|
queryRoundGasStation({ contractAddress }: {
|
|
1750
1757
|
contractAddress: string;
|
|
1751
1758
|
}): Promise<boolean>;
|
package/dist/browser.d.ts
CHANGED
|
@@ -1746,6 +1746,13 @@ declare class MACI {
|
|
|
1746
1746
|
claimable: boolean | null;
|
|
1747
1747
|
balance: string | null;
|
|
1748
1748
|
}>;
|
|
1749
|
+
queryAMaciChargeFee({ maxVoter, maxOption, }: {
|
|
1750
|
+
maxVoter: number;
|
|
1751
|
+
maxOption: number;
|
|
1752
|
+
}): Promise<{
|
|
1753
|
+
denom: string;
|
|
1754
|
+
amount: string;
|
|
1755
|
+
}>;
|
|
1749
1756
|
queryRoundGasStation({ contractAddress }: {
|
|
1750
1757
|
contractAddress: string;
|
|
1751
1758
|
}): Promise<boolean>;
|
package/dist/browser.js
CHANGED
|
@@ -30712,6 +30712,13 @@ var MACI = class {
|
|
|
30712
30712
|
};
|
|
30713
30713
|
}
|
|
30714
30714
|
}
|
|
30715
|
+
async queryAMaciChargeFee({
|
|
30716
|
+
maxVoter,
|
|
30717
|
+
maxOption
|
|
30718
|
+
}) {
|
|
30719
|
+
const fee = getAMaciRoundCircuitFee(maxVoter, maxOption);
|
|
30720
|
+
return fee;
|
|
30721
|
+
}
|
|
30715
30722
|
async queryRoundGasStation({ contractAddress }) {
|
|
30716
30723
|
const roundInfo = await this.getRoundInfo({ contractAddress });
|
|
30717
30724
|
return roundInfo.gasStationEnable;
|