@autogames/sdk 1.4.0 → 1.5.1
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/autogames-sdk.esm.js +1 -1
- package/dist/autogames-sdk.js +300 -300
- package/dist/{basic-DsUk1yju.js → basic-BBZhqs7d.js} +5 -6
- package/dist/{ccip-BUftQff6.js → ccip-D9NenQot.js} +1 -1
- package/dist/{core-vSvn2d7W.js → core-DTsAxiJb.js} +31 -32
- package/dist/{features-CN9CGh2p.js → features-1Q0Qu1SB.js} +1 -1
- package/dist/{index-DCrq_-Sk.js → index-BQfg7MNL.js} +4 -4
- package/dist/{index-CGVyS_an.js → index-C6j0n9K2.js} +1 -1
- package/dist/{index-C7GvpVec.js → index-G2_zkv6d.js} +2 -2
- package/dist/{bridge-mount-FZvmk0-F.js → main-u_ysRES3.js} +28889 -26101
- package/dist/main.d.ts +58 -0
- package/dist/{parseSignature-Di33-DjX.js → parseSignature-bsxMEuDr.js} +1 -1
- package/dist/{secp256k1-CQV8E5Pv.js → secp256k1-TMxX_1sg.js} +1 -1
- package/dist/stats-confirm.html +1 -1
- package/dist/{w3m-modal-BNIIM0f0.js → w3m-modal-PxWWCSxK.js} +2 -2
- package/package.json +1 -1
- package/dist/chat-mount-SHiAmGqS.js +0 -54
- package/dist/main-WFUU9G7G.js +0 -2748
package/dist/main.d.ts
CHANGED
|
@@ -79,6 +79,12 @@ declare class AutoGamesSDKClass {
|
|
|
79
79
|
* @returns Recall response with message
|
|
80
80
|
*/
|
|
81
81
|
recall(votingId: number): Promise<RecallResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Fetch votings
|
|
84
|
+
* @param params - Optional query parameters (game_id, token_id, status, limit, prev_voting)
|
|
85
|
+
* @returns Votings response with array of votings
|
|
86
|
+
*/
|
|
87
|
+
fetchVotings(params?: GetVotingsParams): Promise<GetVotingsResponse>;
|
|
82
88
|
/**
|
|
83
89
|
* Fetch user assets
|
|
84
90
|
* @param userId - The ID of the user
|
|
@@ -238,6 +244,18 @@ declare type GameMetrics = BaseEntity & {
|
|
|
238
244
|
volume_24h: number;
|
|
239
245
|
};
|
|
240
246
|
|
|
247
|
+
declare type GetVotingsParams = {
|
|
248
|
+
game_id?: number;
|
|
249
|
+
token_id?: number;
|
|
250
|
+
status?: 'active' | 'completed' | 'cancelled';
|
|
251
|
+
limit?: number;
|
|
252
|
+
prev_voting?: string;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
declare type GetVotingsResponse = {
|
|
256
|
+
votings: TokenVoting[];
|
|
257
|
+
};
|
|
258
|
+
|
|
241
259
|
export { PrivyClientConfig }
|
|
242
260
|
|
|
243
261
|
/**
|
|
@@ -353,6 +371,46 @@ declare type TokenMetrics = BaseEntity & {
|
|
|
353
371
|
volume_24h: number;
|
|
354
372
|
};
|
|
355
373
|
|
|
374
|
+
declare type TokenVote = BaseEntity & {
|
|
375
|
+
Option: TokenVotingOption;
|
|
376
|
+
Status: 'active' | 'completed' | 'cancelled';
|
|
377
|
+
TokenVotingID: number;
|
|
378
|
+
TokenVotingOptionID: number;
|
|
379
|
+
User: AutoGamesSDKUser;
|
|
380
|
+
UserID: number;
|
|
381
|
+
UserTokenVotingPower: number;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
declare type TokenVoting = BaseEntity & {
|
|
385
|
+
Description: string;
|
|
386
|
+
GameID: number;
|
|
387
|
+
MetaData: TokenVotingMetaData;
|
|
388
|
+
Options: TokenVotingOption[];
|
|
389
|
+
ResultTokenVotingOptionID: number;
|
|
390
|
+
Status: 'active' | 'completed' | 'cancelled';
|
|
391
|
+
Title: string;
|
|
392
|
+
TokenID: number;
|
|
393
|
+
Votes: TokenVote[];
|
|
394
|
+
voting_duration: number;
|
|
395
|
+
voting_starts_at: string;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
declare type TokenVotingMetaData = {
|
|
399
|
+
[key: string]: unknown;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
declare type TokenVotingOption = BaseEntity & {
|
|
403
|
+
Description: string;
|
|
404
|
+
MetaData: TokenVotingOptionMetaData;
|
|
405
|
+
Title: string;
|
|
406
|
+
TokenVotingID: number;
|
|
407
|
+
VotedTokens: number;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
declare type TokenVotingOptionMetaData = {
|
|
411
|
+
[key: string]: unknown;
|
|
412
|
+
};
|
|
413
|
+
|
|
356
414
|
/**
|
|
357
415
|
* Create auth store with Zustand
|
|
358
416
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./
|
|
1
|
+
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./main-u_ysRES3.js";
|
|
2
2
|
function H(s, e) {
|
|
3
3
|
if (s.length !== e.length)
|
|
4
4
|
throw new m({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./
|
|
1
|
+
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./main-u_ysRES3.js";
|
|
2
2
|
const Nt = /* @__PURE__ */ BigInt(0), xt = /* @__PURE__ */ BigInt(1);
|
|
3
3
|
function wt(e, n = "") {
|
|
4
4
|
if (typeof e != "boolean") {
|