@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 +9 -4
- package/dist/bridge.cjs +3 -3
- package/dist/bridge.cjs.map +1 -1
- package/dist/bridge.mjs +3 -3
- 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/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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
107
|
-
|
|
108
|
-
|
|
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.
|
|
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
|
|
2238
|
-
*
|
|
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);
|