@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 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.1<!-- /docs:var --> (1.2: NFT collection reads and fee estimates, the NFT writes
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)(BRIDGE_OUT_CONTRACT_PATH, BRIDGE_OUT_METHOD),
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,