@gala-chain/gala-core-sdk 1.1.0-beta.3 → 1.1.0-beta.4

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
@@ -103,9 +103,14 @@ back, signed natively by a `GalaChainSigner`. A `RequestTokenBridgeOut` (the bri
103
103
  unwrap) signs the TOKEN contract's `dtoOperation`
104
104
  (`asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut`, not the bridge contract's, which the
105
105
  chain refuses; verified on stage, 2026-11-02) as a field of its EIP-712 `GalaTransaction` type, so the
106
- signature covers it; `buildBridgeOutPayload` does this. The bridge contract's entry in the operation table
107
- is kept for `BridgeTokenOut`, which stage has not yet been seen to accept or refuse (UNVERIFIED); the SDK
108
- signs nothing under it.
106
+ signature covers it; `buildBridgeOutPayload` does this. The wrap / unwrap request carries no `wrap` field:
107
+ the contract's `RequestTokenBridgeOut` DTO has none (strict validation refuses it) and the direction is the
108
+ destination channel id. The other bridge strings, all seen live on stage and signed by GalaConnect (this SDK
109
+ signs none of them): `BridgeTokenOut` on `/asset/bridge-contract` is
110
+ `asset-channel_bridge-chaincode_BridgeContract:BridgeTokenOut` (the operation table's bridge-contract entry
111
+ is right for it), and the grants embedded in a `BridgeTokenOut` sign
112
+ `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which is NOT in the platform's operation
113
+ table.
109
114
 
110
115
  TypeScript: the `./bridge` declarations name `@solana/web3.js` types, whose own declarations import
111
116
  Node's `http` and `https`, so a TypeScript app that imports `./bridge` has `@types/node` (with
@@ -287,7 +292,7 @@ gzipped, before `ethers` and `@solana/*`) are loaded only by an app that imports
287
292
 
288
293
  ## Status
289
294
 
290
- <!-- docs:var version -->1.1.0-beta.3<!-- /docs:var --> (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()`;
295
+ <!-- docs:var version -->1.1.0-beta.4<!-- /docs:var --> (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()`;
291
296
  rc.5: every Ethereum account a read, write or GalaConnect client sends is
292
297
  `eth|<EIP-55>`, the only spelling the gateway accepts, and `galaChainUserRef` is exported; rc.4:
293
298
  `bridgeableTokenService` is required). In: signing, signers, transport and the error model (rc.0, from gswap-sdk); the
package/dist/bridge.cjs CHANGED
@@ -2234,8 +2234,9 @@ const BRIDGE_OUT_METHOD = "RequestTokenBridgeOut";
2234
2234
  * (`asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut`). Verified on stage (2026-11-02): the
2235
2235
  * chain refuses `...BridgeContract:RequestTokenBridgeOut` ("signed to call ...BridgeContract:RequestTokenBridgeOut,
2236
2236
  * but the current operation is asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut") and accepts this one.
2237
- * The table's `asset/bridge-contract` entry is kept for `BridgeTokenOut`, which stage has not yet been seen to accept
2238
- * or refuse: it is UNVERIFIED and nothing here signs it.
2237
+ * The table's `asset/bridge-contract` entry is right for `BridgeTokenOut` (seen live on stage:
2238
+ * `asset-channel_bridge-chaincode_BridgeContract:BridgeTokenOut`, signed by GalaConnect, not by this SDK), and the grants
2239
+ * embedded in it sign `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table lacks.
2239
2240
  */
2240
2241
  const BRIDGE_OUT_CONTRACT_PATH = "asset/token-contract";
2241
2242
  /**
@@ -4788,7 +4789,6 @@ var WrapService = class {
4788
4789
  },
4789
4790
  destinationChainId: routing.destinationChannelId,
4790
4791
  recipient,
4791
- wrap: true,
4792
4792
  uniqueKey
4793
4793
  };
4794
4794
  const requestBody = await (0, _gala_chain_gala_core_sdk.signPreSend)(this.signer, BRIDGE_OUT_CONTRACT_PATH, "RequestTokenBridgeOut", message);