@gala-chain/launchpad-sdk 9.1.0-beta.0 → 9.1.0-beta.2
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 +32 -3
- package/README.md +7 -2
- package/dist/LaunchpadSDK.d.ts +2 -0
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/config/environments.d.ts +5 -0
- package/dist/config/environments.d.ts.map +1 -1
- 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/launchpad/bundle-submission.d.ts.map +1 -1
- package/dist/launchpad/bundled-dto-operation.d.ts +24 -0
- package/dist/launchpad/bundled-dto-operation.d.ts.map +1 -0
- package/dist/native.cjs +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/services/BundleService.d.ts.map +1 -1
- package/dist/signing/index.d.ts +1 -1
- package/dist/signing/index.d.ts.map +1 -1
- package/dist/signing/signers.d.ts +25 -3
- package/dist/signing/signers.d.ts.map +1 -1
- package/dist/types/common.d.ts +7 -0
- package/dist/types/common.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-submission.d.ts","sourceRoot":"","sources":["../../src/launchpad/bundle-submission.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"bundle-submission.d.ts","sourceRoot":"","sources":["../../src/launchpad/bundle-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAA2B,KAAK,gBAAgB,EAA6B,MAAM,gBAAgB,CAAC;AAK3G,+EAA+E;AAC/E,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,GAAG,QAAQ,CAA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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,+EAA+E;AAC/E,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA4B;IAEhE;;;;;;;;;OASG;gBACgB,OAAO,EAAE;QAC1B,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,eAAe,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,mBAAmB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;KACjD;IAWD;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,UAAU,EAAE,gBAAgB,GAAG,gBAAgB;IAsB7D;;;;;;;OAOG;IACU,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAuC9E;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAoFrB,OAAO,CAAC,eAAe;IAYvB;;;;;OAKG;YACW,gBAAgB;IAwB9B,sFAAsF;YACxE,gBAAgB;CAqC/B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The launchpad contract method a bundle runs in. The bundler wraps every user write it relays
|
|
3
|
+
* (`CreateSale`, `Buy*`, `Sell*`, ...) in one `BatchSubmit` call, and the chain checks each inner
|
|
4
|
+
* signed DTO's `dtoOperation` against THAT call, not against the DTO's own method ("The dto was
|
|
5
|
+
* signed to call ...Launchpad:BuyWithNative operation, but the current operation is
|
|
6
|
+
* ...Launchpad:BatchSubmit", stage, 2026-11-02).
|
|
7
|
+
*/
|
|
8
|
+
export declare const BUNDLED_DTO_METHOD = "BatchSubmit";
|
|
9
|
+
/**
|
|
10
|
+
* `dto` with the `dtoOperation` of a DTO that is relayed inside a bundle
|
|
11
|
+
* (`asset-channel_basic-asset_Launchpad:BatchSubmit`), ready to be signed. The operation is part
|
|
12
|
+
* of what is signed, so it is set before the signer sees the DTO.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const signed = await signer.signTypedData('BuyWithNative', bundledDtoOf(dto));
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @throws GalaSDKError `SIGNING_FAILED` when the DTO already carries a different operation
|
|
20
|
+
*/
|
|
21
|
+
export declare function bundledDtoOf<T extends Record<string, unknown>>(dto: T): T & {
|
|
22
|
+
readonly dtoOperation: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=bundled-dto-operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundled-dto-operation.d.ts","sourceRoot":"","sources":["../../src/launchpad/bundled-dto-operation.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5D,GAAG,EAAE,CAAC,GACL,CAAC,GAAG;IAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAEvC"}
|