@gala-chain/gala-core-sdk 1.1.0-beta.6 → 1.1.0-beta.8
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 -21
- package/dist/bridge.cjs.map +1 -1
- package/dist/bridge.d.cts +2 -19
- package/dist/bridge.d.ts +2 -19
- package/dist/bridge.mjs +1 -21
- 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 +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 +21 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +21 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -302,7 +302,7 @@ gzipped, before `ethers` and `@solana/*`) are loaded only by an app that imports
|
|
|
302
302
|
|
|
303
303
|
## Status
|
|
304
304
|
|
|
305
|
-
<!-- docs:var version -->1.1.0-beta.
|
|
305
|
+
<!-- docs:var version -->1.1.0-beta.8<!-- /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()`;
|
|
306
306
|
rc.5: every Ethereum account a read, write or GalaConnect client sends is
|
|
307
307
|
`eth|<EIP-55>`, the only spelling the gateway accepts, and `galaChainUserRef` is exported; rc.4:
|
|
308
308
|
`bridgeableTokenService` is required). In: signing, signers, transport and the error model (rc.0, from gswap-sdk); the
|
package/dist/bridge.cjs
CHANGED
|
@@ -4872,26 +4872,6 @@ function readWrapResult(bridgeOutResponse, bridgeRequestId) {
|
|
|
4872
4872
|
return typeof hash === "string" && hash !== "" ? hash : bridgeRequestId;
|
|
4873
4873
|
}
|
|
4874
4874
|
|
|
4875
|
-
//#endregion
|
|
4876
|
-
//#region src/config/environments.ts
|
|
4877
|
-
/**
|
|
4878
|
-
* The built-in endpoints of each deployment. A product SDK extends these with its own backends
|
|
4879
|
-
* (launchpad-sdk's launchpad and bundler URLs, gswap-sdk's swap backend); it never redefines them.
|
|
4880
|
-
*/
|
|
4881
|
-
const GALA_CHAIN_ENVIRONMENTS = Object.freeze({
|
|
4882
|
-
prod: Object.freeze({
|
|
4883
|
-
gatewayBaseUrl: "https://gateway-mainnet.galachain.com",
|
|
4884
|
-
dexApiBaseUrl: "https://dex-api-platform-dex-prod-gala.gala.com",
|
|
4885
|
-
dexBackendBaseUrl: "https://dex-backend-prod1.defi.gala.com"
|
|
4886
|
-
}),
|
|
4887
|
-
stage: Object.freeze({
|
|
4888
|
-
gatewayBaseUrl: "https://gateway-testnet.galachain.com",
|
|
4889
|
-
dexApiBaseUrl: "https://dex-api-platform-dex-stage-gala.gala.com",
|
|
4890
|
-
dexBackendBaseUrl: "https://swap-backend.stage.defi.ovh.gala.com",
|
|
4891
|
-
eip712DomainName: "GalaChainStage"
|
|
4892
|
-
})
|
|
4893
|
-
});
|
|
4894
|
-
|
|
4895
4875
|
//#endregion
|
|
4896
4876
|
//#region src/bridge/tokens/createWrapService.ts
|
|
4897
4877
|
/**
|
|
@@ -4926,7 +4906,7 @@ const GALA_CHAIN_ENVIRONMENTS = Object.freeze({
|
|
|
4926
4906
|
*/
|
|
4927
4907
|
function createWrapService(options) {
|
|
4928
4908
|
const environment = options.environment ?? "prod";
|
|
4929
|
-
const urls = Object.prototype.hasOwnProperty.call(GALA_CHAIN_ENVIRONMENTS, environment) ? GALA_CHAIN_ENVIRONMENTS[environment] : void 0;
|
|
4909
|
+
const urls = Object.prototype.hasOwnProperty.call(_gala_chain_gala_core_sdk.GALA_CHAIN_ENVIRONMENTS, environment) ? _gala_chain_gala_core_sdk.GALA_CHAIN_ENVIRONMENTS[environment] : void 0;
|
|
4930
4910
|
if (urls === void 0) throw new _gala_chain_gala_core_sdk.GalaSDKError("INVALID_BRIDGE_OPTION", { option: "environment" });
|
|
4931
4911
|
const galaConnectClient = new GalaConnectClient({
|
|
4932
4912
|
baseUrl: options.galaConnectBaseUrl ?? urls.dexApiBaseUrl,
|