@gala-chain/launchpad-sdk 9.0.0-rc.2 → 9.0.0-rc.3
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/CHANGELOG.md +61 -0
- package/MIGRATING-TO-9.0.md +1 -1
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/launchpad/bundle-submission.d.ts.map +1 -1
- package/dist/launchpad/writes.d.ts.map +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/schemas/pagination.d.ts.map +1 -1
- package/dist/schemas/primitives.d.ts +1 -1
- package/dist/schemas/primitives.d.ts.map +1 -1
- package/dist/schemas/trade.d.ts +1 -1
- package/dist/schemas/user.d.ts +5 -5
- package/dist/schemas/validators.d.ts +7 -7
- package/dist/schemas/validators.d.ts.map +1 -1
- package/dist/services/BanService.d.ts.map +1 -1
- package/dist/services/BundleService.d.ts.map +1 -1
- package/dist/services/ContentFlagService.d.ts.map +1 -1
- package/dist/services/EventsBatcherService.d.ts.map +1 -1
- package/dist/services/EventsQueryService.d.ts.map +1 -1
- package/dist/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/services/HolderService.d.ts.map +1 -1
- package/dist/services/MessagesService.d.ts.map +1 -1
- package/dist/services/NftCollectionService.d.ts.map +1 -1
- package/dist/services/OEmbedService.d.ts.map +1 -1
- package/dist/services/OverseerService.d.ts.map +1 -1
- package/dist/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/services/TradeService.d.ts.map +1 -1
- package/dist/services/UserService.d.ts.map +1 -1
- package/dist/services/WebSocketAdminService.d.ts.map +1 -1
- package/dist/signing/signers.d.ts.map +1 -1
- package/dist/types/cache-management.dto.d.ts +1 -1
- package/dist/types/cache-management.dto.d.ts.map +1 -1
- package/dist/types/trade.dto.d.ts.map +1 -1
- package/dist/types/user.dto.d.ts.map +1 -1
- package/dist/utils/address-formatter.d.ts +85 -0
- package/dist/utils/address-formatter.d.ts.map +1 -1
- package/dist/utils/nft-helpers.d.ts +2 -1
- package/dist/utils/nft-helpers.d.ts.map +1 -1
- package/dist/utils/primitives.d.ts +1 -1
- package/dist/utils/primitives.d.ts.map +1 -1
- package/dist/utils/validation-helpers.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,73 @@
|
|
|
21
21
|
* @since 6.5.0
|
|
22
22
|
*/
|
|
23
23
|
import type { AddressFormat } from '../types/common';
|
|
24
|
+
/**
|
|
25
|
+
* The GalaChain user reference an address names, in the one spelling the gateway accepts:
|
|
26
|
+
* `eth|<EIP-55 checksummed digits>` for an Ethereum account (given as `eth|<40 hex>` in any
|
|
27
|
+
* casing, `0x<40 hex>` or bare hex; `eth|0x...` is refused), `client|<id>` as written. This is
|
|
28
|
+
* `galaChainUserRef` of `@gala-chain/gala-core-sdk`, the one implementation; only the error is
|
|
29
|
+
* this package's. Use it for everything the SDK sends to the gateway or signs, and for the
|
|
30
|
+
* identity a signer/transport is declared with. Values for the launchpad backend's own query
|
|
31
|
+
* parameters, paths and bodies go through {@link backendUserRef}.
|
|
32
|
+
*
|
|
33
|
+
* @param value - The address the caller gave.
|
|
34
|
+
* @param field - The field name reported in the error.
|
|
35
|
+
* @returns `eth|<EIP-55 digits>` or `client|<id>`.
|
|
36
|
+
* @throws ValidationError `INVALID_FORMAT` for anything else, a mixed-case spelling whose casing
|
|
37
|
+
* is not the EIP-55 checksum included (a typo); nothing is signed or sent.
|
|
38
|
+
*/
|
|
39
|
+
export declare function userRef(value: unknown, field?: string): AddressFormat;
|
|
40
|
+
/**
|
|
41
|
+
* The spelling the launchpad backend takes in query parameters, paths and bodies. The backend
|
|
42
|
+
* normalizes every user address it receives to its canonical form (lower case, `eth|` or `client|`
|
|
43
|
+
* prefix, no `0x`; `normalizeAddress` of launchpad-backend-service-v3) and stores and compares
|
|
44
|
+
* that form, so this is {@link userRef} (every spelling the chain accepts, a wrong checksum
|
|
45
|
+
* refused) lower-cased: the backend's own canonical form, which it accepts on every route.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The address the caller gave.
|
|
48
|
+
* @param field - The field name reported in the error.
|
|
49
|
+
* @returns `eth|<40 lower-case hex>` or `client|<id lower-cased>`.
|
|
50
|
+
* @throws ValidationError `INVALID_FORMAT`, as {@link userRef}.
|
|
51
|
+
*/
|
|
52
|
+
export declare function backendUserRef(value: unknown, field?: string): AddressFormat;
|
|
53
|
+
/**
|
|
54
|
+
* The wire value of a field the backend's `@GalaChainAddressField()` validates (content flags): the
|
|
55
|
+
* backend's canonical form, taking a bare 24-hex Mongo id as its `client|` form too (what
|
|
56
|
+
* {@link assertBackendUserAddress} lets through).
|
|
57
|
+
*
|
|
58
|
+
* @param value - The address the caller gave.
|
|
59
|
+
* @param field - The field name reported in the error.
|
|
60
|
+
* @returns `eth|<40 lower-case hex>` / `client|<24 lower-case hex>`.
|
|
61
|
+
* @throws ValidationError `INVALID_FORMAT` when the backend (or this SDK) would refuse it.
|
|
62
|
+
*/
|
|
63
|
+
export declare function backendUserParam(value: string, field: string): AddressFormat;
|
|
64
|
+
/**
|
|
65
|
+
* A user-address SEARCH filter (a backend list filter that matches on part of an address,
|
|
66
|
+
* case-insensitively): a full user address in any spelling is sent as the backend's canonical
|
|
67
|
+
* form, anything else (a fragment the caller is searching for) as its lower-cased text.
|
|
68
|
+
*
|
|
69
|
+
* @param value - The filter text.
|
|
70
|
+
* @returns What goes on the wire.
|
|
71
|
+
*/
|
|
72
|
+
export declare function userAddressFilter(value: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether two user addresses name the same account, whatever their spelling (casing, `0x`, bare
|
|
75
|
+
* hex): the comparison for a caller's filter against an address an event or an answer carries
|
|
76
|
+
* (the backend's lower-case form). A value that is no user address compares by its lower-cased
|
|
77
|
+
* text, so it never matches a real account by accident.
|
|
78
|
+
*
|
|
79
|
+
* @param a - One address.
|
|
80
|
+
* @param b - The other address.
|
|
81
|
+
* @returns true when both name the same account.
|
|
82
|
+
*/
|
|
83
|
+
export declare function sameUserAddress(a: string, b: string): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether {@link userRef} takes the value (without throwing).
|
|
86
|
+
*
|
|
87
|
+
* @param value - Anything.
|
|
88
|
+
* @returns true for a user address in any spelling the chain accepts and whose checksum, if mixed case, is right.
|
|
89
|
+
*/
|
|
90
|
+
export declare function isUserRef(value: unknown): boolean;
|
|
24
91
|
/**
|
|
25
92
|
* Address format types
|
|
26
93
|
*/
|
|
@@ -145,6 +212,15 @@ export declare class AddressFormatter {
|
|
|
145
212
|
* ```
|
|
146
213
|
*/
|
|
147
214
|
normalizeInput(address: string | undefined): AddressFormat | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* The spelling the launchpad backend takes in its query parameters, paths and bodies: the
|
|
217
|
+
* backend's own canonical lower-case form (see {@link backendUserRef}).
|
|
218
|
+
*
|
|
219
|
+
* @param address Address in any form {@link userRef} takes
|
|
220
|
+
* @returns `eth|<40 lower-case hex>` / `client|<id>`, or undefined for undefined or ''
|
|
221
|
+
* @throws ValidationError if address format is invalid
|
|
222
|
+
*/
|
|
223
|
+
normalizeForBackend(address: string | undefined): AddressFormat | undefined;
|
|
148
224
|
/**
|
|
149
225
|
* Check if an address is valid (without throwing)
|
|
150
226
|
*
|
|
@@ -286,6 +362,15 @@ export declare function isValidAddress(address: string | undefined): address is
|
|
|
286
362
|
* @returns true if the backend takes it
|
|
287
363
|
*/
|
|
288
364
|
export declare function isBackendUserAddress(address: string | undefined): address is string;
|
|
365
|
+
/**
|
|
366
|
+
* The backend's canonical form of an address its `@GalaChainAddressField()` takes, or undefined
|
|
367
|
+
* when the backend (or this SDK: `eth|0x...` and a wrong-checksum mixed-case Ethereum address
|
|
368
|
+
* are refused) would refuse it. A bare 24-hex Mongo id is the backend's `client|` form.
|
|
369
|
+
*
|
|
370
|
+
* @param address - Address in any spelling
|
|
371
|
+
* @returns `eth|<40 lower-case hex>` / `client|<24 lower-case hex>`, or undefined
|
|
372
|
+
*/
|
|
373
|
+
export declare function backendUserAddress(address: string | undefined): AddressFormat | undefined;
|
|
289
374
|
/**
|
|
290
375
|
* Validate an address against the backend's `@GalaChainAddressField()` and throw
|
|
291
376
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-formatter.d.ts","sourceRoot":"","sources":["../../src/utils/address-formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"address-formatter.d.ts","sourceRoot":"","sources":["../../src/utils/address-formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAE,MAAkB,GAAG,aAAa,CAYhF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAE,MAAkB,GAAG,aAAa,CAEvF;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAE5E;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eA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D;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAE5F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,IAAI,MAAM,CAE7E;AASD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,IAAI,MAAM,CAEnF;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAWzF;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAQ7F;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,GAAE,MAAkB,GAAG,IAAI,CAEzG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAG3F;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAElF"}
|
|
@@ -53,7 +53,8 @@ export declare function formatWholeNumber(value: string | number): string;
|
|
|
53
53
|
export declare function isValidHex(str: string): boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Validate GalaChain address format
|
|
56
|
-
* Supports eth
|
|
56
|
+
* Supports every user address spelling gala-core-sdk takes (`eth|<40 hex>` in any casing, `0x<40 hex>`,
|
|
57
|
+
* bare hex, `client|<id>`); `eth|0x...` and a wrong-checksum mixed-case address are refused.
|
|
57
58
|
*
|
|
58
59
|
* @param address - Address to validate
|
|
59
60
|
* @returns True if address is valid format
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nft-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/nft-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"nft-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/nft-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAI/E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5D;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAK3D;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAQhE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAK/C;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAKjE"}
|
|
@@ -68,7 +68,7 @@ export declare function isNullish(value: unknown): value is null | undefined;
|
|
|
68
68
|
export declare const ADDRESS_PATTERNS: {
|
|
69
69
|
/** Ethereum address format: 0x followed by 40 hexadecimal characters */
|
|
70
70
|
readonly ETH_ADDRESS: RegExp;
|
|
71
|
-
/** Backend address format: eth| followed by
|
|
71
|
+
/** Backend address format: eth| followed by 40 hexadecimal characters (`eth|0x...` is not an address form) */
|
|
72
72
|
readonly BACKEND_ADDRESS: RegExp;
|
|
73
73
|
/** Client address format: client| followed by alphanumeric characters, hyphens, underscores (variable length) */
|
|
74
74
|
readonly CLIENT_ADDRESS: RegExp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/utils/primitives.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,GAAG,EAAE,CAE3E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAEnE;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;IAC3B,wEAAwE;;IAExE,
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/utils/primitives.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,GAAG,EAAE,CAE3E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAEnE;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;IAC3B,wEAAwE;;IAExE,8GAA8G;;IAE9G,iHAAiH;;CAEzG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/validation-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"validation-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/validation-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAYhE,OAAO,EAAiD,YAAY,IAAI,qBAAqB,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIpM;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,qBAAqB,GACjC,IAAI,CAYN;AAGD,eAAO,MAAM,gBAAgB;;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,kCAA4B,CAAC;AAC1D,eAAO,MAAM,YAAY,8BAAwB,CAAC;AAClD,eAAO,MAAM,SAAS,2BAAqB,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAC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AMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEpE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAE,MAAkB,GAAG,IAAI,CAE/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAK9D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUlE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,CAYnE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@gala-chain/launchpad-sdk",
|
|
4
|
-
"version": "9.0.0-rc.
|
|
4
|
+
"version": "9.0.0-rc.3",
|
|
5
5
|
"description": "TypeScript SDK for the Gala Launchpad backend: launchpad tokens, pools, bonding-curve trades and quotes, token creation, holders, charts, users, API keys, bans, moderation, overseers, flags, reactions, messages, notifications, streaming and stream chat, WebSocket events, the bundler write transport and auth. Optional wallet (read-only and full-access modes). Gateway-generic GalaChain pieces are @gala-chain/gala-core-sdk's (a peer); the DEX is @gala-chain/gswap-sdk's. Multi-format output (ESM, CJS, UMD).",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|