@gala-chain/launchpad-sdk 9.0.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 +14 -0
- package/EXAMPLES.md +4 -4
- package/README.md +9 -4
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/constants/version.generated.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/native.cjs +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/services/BundleService.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.1.0-beta.1
|
|
4
|
+
|
|
5
|
+
Docs only: the signing pages and the agent guide describe `dtoOperation`. No code change since
|
|
6
|
+
9.1.0-beta.0.
|
|
7
|
+
|
|
8
|
+
## 9.1.0-beta.0
|
|
9
|
+
|
|
10
|
+
A beta: published under the `next` dist-tag (`latest` stays on 9.0.0). The peer range on
|
|
11
|
+
`@gala-chain/gala-core-sdk` is `>=1.1.0-beta.0 <2`: it needs the core that signs `dtoOperation`.
|
|
12
|
+
|
|
13
|
+
- **Bundler writes are signed with their `dtoOperation`** (`asset-channel_basic-asset_Launchpad:<Method>`), as
|
|
14
|
+
the chain now requires; the wrap / unwrap `RequestTokenBridgeOut` carries the bridge contract's. Token writes
|
|
15
|
+
get theirs from `gala-core-sdk`'s `GatewayWrites`.
|
|
16
|
+
|
|
3
17
|
## 9.0.0
|
|
4
18
|
|
|
5
19
|
The first stable 9.x release: the code is that of 9.0.0-rc.6, unchanged. It is published under the `latest`
|
package/EXAMPLES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gala Launchpad SDK - Usage Examples
|
|
2
2
|
|
|
3
|
-
Practical code examples for the launchpad SDK (
|
|
3
|
+
Practical code examples for the launchpad SDK ({{docs.version}}), organized by category. For complete API documentation, see [API Reference](./docs/API-REFERENCE.md).
|
|
4
4
|
|
|
5
5
|
> **9.0 is launchpad-only.** The DEX (quotes, swaps, pools, liquidity, fees, market prices, leaderboards) is
|
|
6
6
|
> `@gala-chain/gswap-sdk`; its runnable demos are in
|
|
@@ -104,11 +104,11 @@ if (isGraduated) {
|
|
|
104
104
|
### Installation
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
|
-
npm install @gala-chain/launchpad-sdk @gala-chain/gala-core-sdk zod
|
|
107
|
+
npm install @gala-chain/launchpad-sdk@next @gala-chain/gala-core-sdk@next zod
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
`@gala-chain/gala-core-sdk` and `zod` are peer dependencies. `latest` is
|
|
111
|
-
plain install gets it and `^9
|
|
110
|
+
`@gala-chain/gala-core-sdk` and `zod` are peer dependencies. `latest` is {{docs.version}}, so a
|
|
111
|
+
plain install gets it and a range on the major (`^9`) works.
|
|
112
112
|
|
|
113
113
|
### Basic Setup
|
|
114
114
|
|
package/README.md
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
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 9.0.
|
|
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
|
|
|
9
9
|
```bash
|
|
10
|
-
pnpm add @gala-chain/launchpad-sdk @gala-chain/gala-core-sdk @gala-chain/api axios bignumber.js ethers socket.io-client zod
|
|
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 9.0.
|
|
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
|
|
|
17
|
-
For the DEX, install `@gala-chain/gswap-sdk` 2.0 next to this package: `pnpm add @gala-chain/gswap-sdk`.
|
|
17
|
+
For the DEX, install `@gala-chain/gswap-sdk` 2.0 next to this package: `pnpm add @gala-chain/gswap-sdk@next`.
|
|
18
18
|
|
|
19
19
|
## Configure
|
|
20
20
|
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../../src/constants/version.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../../src/constants/version.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,iBAAiB,CAAC"}
|