@gala-chain/gala-core-sdk 1.2.0-beta.1 → 1.2.0-beta.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/README.md +1 -1
- package/dist/bridge.cjs +1 -11
- package/dist/bridge.cjs.map +1 -1
- package/dist/bridge.mjs +1 -11
- package/dist/bridge.mjs.map +1 -1
- package/dist/browser/bridge.js +1 -1
- package/dist/browser/bridge.js.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/reads/nft_collections.js +1 -1
- package/dist/browser/reads/nft_collections.js.map +1 -1
- package/dist/browser/utils/dto_operation.js +1 -1
- package/dist/browser/utils/dto_operation.js.map +1 -1
- package/dist/browser/utils/transport.js +1 -1
- package/dist/browser/version.js +1 -1
- package/dist/browser/version.js.map +1 -1
- package/dist/browser/writes/identity.js +1 -1
- package/dist/browser/writes/identity.js.map +1 -1
- package/dist/index.cjs +58 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -4
- package/dist/index.d.ts +38 -4
- package/dist/index.mjs +58 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -347,7 +347,7 @@ gzipped, before `ethers` and `@solana/*`) are loaded only by an app that imports
|
|
|
347
347
|
|
|
348
348
|
## Status
|
|
349
349
|
|
|
350
|
-
<!-- docs:var version -->1.2.0-beta.
|
|
350
|
+
<!-- docs:var version -->1.2.0-beta.2<!-- /docs:var --> (1.2: NFT collection reads and fee estimates, the NFT writes
|
|
351
351
|
`claimNftCollection`, `createNftCollection` and `mintNft` on `GatewayWrites`, and their DryRun fee quote
|
|
352
352
|
`estimateNftFee`; rc.7: `eth|0x<hex>` is refused as `INVALID_ETH_USER_REF_PREFIX`, not an address form; rc.6: `fetchPublicKey`, MetaMask and Trust Wallet detection, silent `restore()`;
|
|
353
353
|
rc.5: every Ethereum account a read, write or GalaConnect client sends is
|
package/dist/bridge.cjs
CHANGED
|
@@ -2272,16 +2272,6 @@ function destinationChainIdOf(value) {
|
|
|
2272
2272
|
/** The method a bridge-out signing failure names. */
|
|
2273
2273
|
const BRIDGE_OUT_METHOD = "RequestTokenBridgeOut";
|
|
2274
2274
|
/**
|
|
2275
|
-
* The contract path whose operation a `RequestTokenBridgeOut` signs: the TOKEN contract's
|
|
2276
|
-
* (`asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut`). Verified on stage (2026-11-02): the
|
|
2277
|
-
* chain refuses `...BridgeContract:RequestTokenBridgeOut` ("signed to call ...BridgeContract:RequestTokenBridgeOut,
|
|
2278
|
-
* but the current operation is asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut") and accepts this one.
|
|
2279
|
-
* The table's `asset/bridge-contract` entry is right for `BridgeTokenOut` (seen live on stage:
|
|
2280
|
-
* `asset-channel_bridge-chaincode_BridgeContract:BridgeTokenOut`, signed by GalaConnect, not by this SDK), and the grants
|
|
2281
|
-
* embedded in it sign `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table lacks.
|
|
2282
|
-
*/
|
|
2283
|
-
const BRIDGE_OUT_CONTRACT_PATH = "asset/token-contract";
|
|
2284
|
-
/**
|
|
2285
2275
|
* Signs the bridge-out typed data with the app's signer. Whatever the signer throws that is not
|
|
2286
2276
|
* already an SDK error (a declined or locked wallet, a message ethers cannot encode) is
|
|
2287
2277
|
* `SIGNING_FAILED` (`user_rejected` or `failed`, the original as `cause`), and so is a signature
|
|
@@ -2341,7 +2331,7 @@ async function buildBridgeOutPayload(dto, config) {
|
|
|
2341
2331
|
const message = {
|
|
2342
2332
|
destinationChainId,
|
|
2343
2333
|
destinationChainTxFee: sanitizeObject(sanitizedFeeObj),
|
|
2344
|
-
dtoOperation: (0, _gala_chain_gala_core_sdk.dtoOperationOf)(
|
|
2334
|
+
dtoOperation: (0, _gala_chain_gala_core_sdk.dtoOperationOf)("asset/bridge-contract", BRIDGE_OUT_METHOD),
|
|
2345
2335
|
quantity: dto.quantity,
|
|
2346
2336
|
recipient: dto.recipient,
|
|
2347
2337
|
tokenInstance: dto.tokenInstance,
|