@autogames/sdk 1.4.1 → 1.6.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/autogames-sdk.esm.js +1 -1
- package/dist/autogames-sdk.js +268 -268
- package/dist/{basic-DNgO8qRu.js → basic-DV6TdjBr.js} +3 -3
- package/dist/{ccip-B3-cQAzb.js → ccip-ztp95LKl.js} +1 -1
- package/dist/{core-CF2-hC7T.js → core-CXtJRzmk.js} +5 -5
- package/dist/{features-CYOwZOfN.js → features-BHCRYoZV.js} +1 -1
- package/dist/{index-B7tNGyqT.js → index-BFXOCwz7.js} +2 -2
- package/dist/{index-DrQkONoR.js → index-Dyc59rXu.js} +4 -4
- package/dist/{index-DClY0MS6.js → index-Qkvrcl05.js} +1 -1
- package/dist/{main-BPrpIEW3.js → main-U3Dcm1Dt.js} +8517 -8504
- package/dist/main.d.ts +69 -0
- package/dist/{parseSignature-DolnDskM.js → parseSignature-C95pV-l4.js} +1 -1
- package/dist/{secp256k1-DmBO7H7C.js → secp256k1-woYfdRaQ.js} +1 -1
- package/dist/stats-confirm.html +1 -1
- package/dist/{w3m-modal-Ds_YpISg.js → w3m-modal-BaYsio8m.js} +2 -2
- package/package.json +1 -1
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
|
|
@@ -190,8 +196,19 @@ export declare type ChatWidgetOptions = {
|
|
|
190
196
|
*/
|
|
191
197
|
offsetY?: number;
|
|
192
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* Color theme (defaults to 'dark')
|
|
201
|
+
*/
|
|
202
|
+
theme?: ChatWidgetTheme;
|
|
193
203
|
};
|
|
194
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Chat widget theme
|
|
207
|
+
* - 'dark': Dark background (default)
|
|
208
|
+
* - 'light': Light background
|
|
209
|
+
*/
|
|
210
|
+
export declare type ChatWidgetTheme = 'dark' | 'light';
|
|
211
|
+
|
|
195
212
|
declare type CreatedToken = {
|
|
196
213
|
token: Token;
|
|
197
214
|
user_token: UserToken;
|
|
@@ -238,6 +255,18 @@ declare type GameMetrics = BaseEntity & {
|
|
|
238
255
|
volume_24h: number;
|
|
239
256
|
};
|
|
240
257
|
|
|
258
|
+
declare type GetVotingsParams = {
|
|
259
|
+
game_id?: number;
|
|
260
|
+
token_id?: number;
|
|
261
|
+
status?: 'active' | 'completed' | 'cancelled';
|
|
262
|
+
limit?: number;
|
|
263
|
+
prev_voting?: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
declare type GetVotingsResponse = {
|
|
267
|
+
votings: TokenVoting[];
|
|
268
|
+
};
|
|
269
|
+
|
|
241
270
|
export { PrivyClientConfig }
|
|
242
271
|
|
|
243
272
|
/**
|
|
@@ -353,6 +382,46 @@ declare type TokenMetrics = BaseEntity & {
|
|
|
353
382
|
volume_24h: number;
|
|
354
383
|
};
|
|
355
384
|
|
|
385
|
+
declare type TokenVote = BaseEntity & {
|
|
386
|
+
Option: TokenVotingOption;
|
|
387
|
+
Status: 'active' | 'completed' | 'cancelled';
|
|
388
|
+
TokenVotingID: number;
|
|
389
|
+
TokenVotingOptionID: number;
|
|
390
|
+
User: AutoGamesSDKUser;
|
|
391
|
+
UserID: number;
|
|
392
|
+
UserTokenVotingPower: number;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
declare type TokenVoting = BaseEntity & {
|
|
396
|
+
Description: string;
|
|
397
|
+
GameID: number;
|
|
398
|
+
MetaData: TokenVotingMetaData;
|
|
399
|
+
Options: TokenVotingOption[];
|
|
400
|
+
ResultTokenVotingOptionID: number;
|
|
401
|
+
Status: 'active' | 'completed' | 'cancelled';
|
|
402
|
+
Title: string;
|
|
403
|
+
TokenID: number;
|
|
404
|
+
Votes: TokenVote[];
|
|
405
|
+
voting_duration: number;
|
|
406
|
+
voting_starts_at: string;
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
declare type TokenVotingMetaData = {
|
|
410
|
+
[key: string]: unknown;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
declare type TokenVotingOption = BaseEntity & {
|
|
414
|
+
Description: string;
|
|
415
|
+
MetaData: TokenVotingOptionMetaData;
|
|
416
|
+
Title: string;
|
|
417
|
+
TokenVotingID: number;
|
|
418
|
+
VotedTokens: number;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
declare type TokenVotingOptionMetaData = {
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
};
|
|
424
|
+
|
|
356
425
|
/**
|
|
357
426
|
* Create auth store with Zustand
|
|
358
427
|
*/
|
|
@@ -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 "./main-
|
|
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-U3Dcm1Dt.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 "./main-
|
|
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-U3Dcm1Dt.js";
|
|
2
2
|
const Nt = /* @__PURE__ */ BigInt(0), xt = /* @__PURE__ */ BigInt(1);
|
|
3
3
|
function wt(e, n = "") {
|
|
4
4
|
if (typeof e != "boolean") {
|