@crisp-e3/sdk 0.13.0 → 0.14.0
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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ type RoundDetails = {
|
|
|
38
38
|
startTime: bigint;
|
|
39
39
|
endTime: bigint;
|
|
40
40
|
startBlock: bigint;
|
|
41
|
+
snapshotBlock: bigint;
|
|
41
42
|
committeePublicKey: Uint8Array;
|
|
42
43
|
emojis: [string, string];
|
|
43
44
|
tokenAddress: string;
|
|
@@ -139,6 +140,7 @@ type E3StateLiteResponse = {
|
|
|
139
140
|
start_time: number;
|
|
140
141
|
end_time: number;
|
|
141
142
|
start_block: number;
|
|
143
|
+
snapshot_block: number;
|
|
142
144
|
committee_public_key: number[];
|
|
143
145
|
emojis: [string, string];
|
|
144
146
|
token_address: string;
|
package/dist/index.js
CHANGED
|
@@ -172,6 +172,7 @@ var getRoundDetails = async (serverUrl, e3Id) => {
|
|
|
172
172
|
startTime: BigInt(data.start_time),
|
|
173
173
|
endTime: BigInt(data.end_time),
|
|
174
174
|
startBlock: BigInt(data.start_block),
|
|
175
|
+
snapshotBlock: BigInt(data.snapshot_block),
|
|
175
176
|
committeePublicKey: new Uint8Array(data.committee_public_key),
|
|
176
177
|
emojis: data.emojis,
|
|
177
178
|
numOptions: BigInt(data.num_options),
|
|
@@ -185,7 +186,7 @@ var getRoundTokenDetails = async (serverUrl, e3Id) => {
|
|
|
185
186
|
return {
|
|
186
187
|
tokenAddress: roundDetails.tokenAddress,
|
|
187
188
|
threshold: roundDetails.balanceThreshold,
|
|
188
|
-
snapshotBlock: roundDetails.
|
|
189
|
+
snapshotBlock: roundDetails.snapshotBlock
|
|
189
190
|
};
|
|
190
191
|
};
|
|
191
192
|
var getOnChainRoundData = async (programAddress, e3Id, chainId) => {
|