@gala-chain/launchpad-sdk 9.1.0-beta.0 → 9.1.0-beta.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/CHANGELOG.md +5 -0
- package/README.md +7 -2
- package/dist/constants/version.generated.d.ts +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/native.cjs +1 -1
- package/dist/native.esm.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The SDK signs with `@gala-chain/api` and `ethers`; it does not depend on `@gala-chain/connect`.
|
|
4
4
|
|
|
5
|
-
The TypeScript SDK for Gala Launchpad (9.0; `latest` is <!-- docs:var version -->9.1.0-beta.
|
|
5
|
+
The TypeScript SDK for Gala Launchpad (9.0; `latest` is <!-- docs:var version -->9.1.0-beta.1<!-- /docs:var -->). It provides read APIs for launchpad data, typed launchpad submissions and gateway-backed token transactions. Version 9.0 is launchpad-only: the DEX is a separate SDK, `@gala-chain/gswap-sdk` (this package has no DEX client and does not depend on it), and the gateway-generic pieces (signers, wallet helpers and providers, React hooks, the bridge) are `@gala-chain/gala-core-sdk`'s. See [MIGRATING-TO-9.0.md](./MIGRATING-TO-9.0.md) for every removed export and where it went.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ The TypeScript SDK for Gala Launchpad (9.0; `latest` is <!-- docs:var version --
|
|
|
10
10
|
pnpm add @gala-chain/launchpad-sdk@next @gala-chain/gala-core-sdk@next @gala-chain/api axios bignumber.js ethers socket.io-client zod
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
A plain install gets <!-- docs:var version -->9.1.0-beta.
|
|
13
|
+
A plain install gets <!-- docs:var version -->9.1.0-beta.1<!-- /docs:var -->, and a range on the major (`^9`) works. Pin the exact versions in an app build.
|
|
14
14
|
|
|
15
15
|
`@gala-chain/gala-core-sdk` and the others are peer dependencies: install them next to this package. An app that bridges or wraps tokens installs the bridge's own peers (`ethers`, `@solana/web3.js`, `@solana/spl-token`) and hands the bridge module to the SDK: `new LaunchpadSDK({ ..., bridge: () => import('@gala-chain/gala-core-sdk/bridge') })` (loaded at the first bridge or wrap call). This package never loads that module or Solana itself, so an app that does not bridge bundles and installs neither; without the loader the bridge and wrap methods throw a `ConfigurationError` naming the `bridge` option.
|
|
16
16
|
|
|
@@ -44,6 +44,11 @@ const result = await submission.wait();
|
|
|
44
44
|
console.log(submission.bundleId, result);
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
The SDK signs each write with the `dtoOperation` of its call (`asset-channel_basic-asset_Launchpad:BuyWithNative`
|
|
48
|
+
for the example above). The chain refuses a signed DTO without it, or with another call's, and it is
|
|
49
|
+
part of what is signed, so it is set before signing and nothing can add it afterwards. You set nothing
|
|
50
|
+
yourself; a DTO you sign on your own needs gala-core-sdk's `withDtoOperation`.
|
|
51
|
+
|
|
47
52
|
## Token writes
|
|
48
53
|
|
|
49
54
|
Token transfers, burns, locks and unlocks go straight to the GalaChain gateway (signed and sent by
|