@gala-chain/gala-core-sdk 1.2.0-beta.2 → 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/dist/index.d.cts CHANGED
@@ -1882,10 +1882,14 @@ export declare const CHAIN_CONTRACT_OPERATION_PREFIXES: {
1882
1882
  * asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut", and it accepts the token contract's.
1883
1883
  * - `GrantAllowance`: the grants embedded in a `BridgeTokenOut` are signed as
1884
1884
  * `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table has no row for. Observed in
1885
- * GalaConnect-signed stage traffic; this SDK does not sign it and it was not re-verified against the chain.
1886
- *
1887
- * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is what was seen
1888
- * live on stage for the external-chain bridge (GalaConnect-signed). The token contracts' own `BridgeTokenOut`
1885
+ * GalaConnect-signed stage traffic and verified against the chain with real signed writes (2026-11-05):
1886
+ * a bridge-out with the grants signed this way is accepted, the same DTO with the grants signed as
1887
+ * `BridgeContract:GrantAllowance` or `basic-asset_GalaChainToken:GrantAllowance` is refused at batch index 0. A
1888
+ * standalone GrantAllowance is a different route and keeps `basic-asset_GalaChainToken`. This SDK does not sign
1889
+ * the embedded grant itself.
1890
+ *
1891
+ * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is accepted by the
1892
+ * chain for the external-chain bridge (verified 2026-11-05). The token contracts' own `BridgeTokenOut`
1889
1893
  * (`asset/token-contract`, `music/token-contract`, the channel move) is their plain prefix.
1890
1894
  */
1891
1895
  export declare const CHAIN_METHOD_OPERATIONS: {
@@ -3365,6 +3369,11 @@ export declare class NftCollectionReads {
3365
3369
  private readonly reads;
3366
3370
  constructor(reads: GatewayReads);
3367
3371
  fetchNftCollections(walletAddress: string): Promise<NftCollectionAuthorization[]>;
3372
+ /**
3373
+ * Whether a collection name can still be claimed. The chain owns uniqueness and compares names
3374
+ * case-insensitively (`COLLECTION_NAME_ALREADY_CLAIMED` for `abc` once `ABC` is claimed), so
3375
+ * so does this check: a case-sensitive one reports a refused name as free.
3376
+ */
3368
3377
  isNftCollectionAvailable(name: string): Promise<boolean>;
3369
3378
  fetchNftTokenClasses(params: FetchNftTokenClassesParams): Promise<NftTokenClassWithSupply[]>;
3370
3379
  fetchNftBalances(ownerAddress: string, collectionFilter?: string): Promise<NftBalance[]>;
package/dist/index.d.ts CHANGED
@@ -1882,10 +1882,14 @@ export declare const CHAIN_CONTRACT_OPERATION_PREFIXES: {
1882
1882
  * asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut", and it accepts the token contract's.
1883
1883
  * - `GrantAllowance`: the grants embedded in a `BridgeTokenOut` are signed as
1884
1884
  * `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table has no row for. Observed in
1885
- * GalaConnect-signed stage traffic; this SDK does not sign it and it was not re-verified against the chain.
1886
- *
1887
- * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is what was seen
1888
- * live on stage for the external-chain bridge (GalaConnect-signed). The token contracts' own `BridgeTokenOut`
1885
+ * GalaConnect-signed stage traffic and verified against the chain with real signed writes (2026-11-05):
1886
+ * a bridge-out with the grants signed this way is accepted, the same DTO with the grants signed as
1887
+ * `BridgeContract:GrantAllowance` or `basic-asset_GalaChainToken:GrantAllowance` is refused at batch index 0. A
1888
+ * standalone GrantAllowance is a different route and keeps `basic-asset_GalaChainToken`. This SDK does not sign
1889
+ * the embedded grant itself.
1890
+ *
1891
+ * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is accepted by the
1892
+ * chain for the external-chain bridge (verified 2026-11-05). The token contracts' own `BridgeTokenOut`
1889
1893
  * (`asset/token-contract`, `music/token-contract`, the channel move) is their plain prefix.
1890
1894
  */
1891
1895
  export declare const CHAIN_METHOD_OPERATIONS: {
@@ -3365,6 +3369,11 @@ export declare class NftCollectionReads {
3365
3369
  private readonly reads;
3366
3370
  constructor(reads: GatewayReads);
3367
3371
  fetchNftCollections(walletAddress: string): Promise<NftCollectionAuthorization[]>;
3372
+ /**
3373
+ * Whether a collection name can still be claimed. The chain owns uniqueness and compares names
3374
+ * case-insensitively (`COLLECTION_NAME_ALREADY_CLAIMED` for `abc` once `ABC` is claimed), so
3375
+ * so does this check: a case-sensitive one reports a refused name as free.
3376
+ */
3368
3377
  isNftCollectionAvailable(name: string): Promise<boolean>;
3369
3378
  fetchNftTokenClasses(params: FetchNftTokenClassesParams): Promise<NftTokenClassWithSupply[]>;
3370
3379
  fetchNftBalances(ownerAddress: string, collectionFilter?: string): Promise<NftBalance[]>;
package/dist/index.mjs CHANGED
@@ -2660,10 +2660,14 @@ const CHAIN_CONTRACT_OPERATION_PREFIXES = {
2660
2660
  * asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut", and it accepts the token contract's.
2661
2661
  * - `GrantAllowance`: the grants embedded in a `BridgeTokenOut` are signed as
2662
2662
  * `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table has no row for. Observed in
2663
- * GalaConnect-signed stage traffic; this SDK does not sign it and it was not re-verified against the chain.
2663
+ * GalaConnect-signed stage traffic and verified against the chain with real signed writes (2026-11-05):
2664
+ * a bridge-out with the grants signed this way is accepted, the same DTO with the grants signed as
2665
+ * `BridgeContract:GrantAllowance` or `basic-asset_GalaChainToken:GrantAllowance` is refused at batch index 0. A
2666
+ * standalone GrantAllowance is a different route and keeps `basic-asset_GalaChainToken`. This SDK does not sign
2667
+ * the embedded grant itself.
2664
2668
  *
2665
- * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is what was seen
2666
- * live on stage for the external-chain bridge (GalaConnect-signed). The token contracts' own `BridgeTokenOut`
2669
+ * `asset/bridge-contract:BridgeTokenOut` is NOT here: the table's `BridgeContract:BridgeTokenOut` is accepted by the
2670
+ * chain for the external-chain bridge (verified 2026-11-05). The token contracts' own `BridgeTokenOut`
2667
2671
  * (`asset/token-contract`, `music/token-contract`, the channel move) is their plain prefix.
2668
2672
  */
2669
2673
  const CHAIN_METHOD_OPERATIONS = {
@@ -2900,7 +2904,7 @@ async function signPreSendFor(signer, contractPath, method, dto) {
2900
2904
  * fallback. It is the version in the default `User-Agent` (`GalaChain-SDK/<version>`) of every SDK
2901
2905
  * request, whichever product SDK sends it.
2902
2906
  */
2903
- const GALA_CORE_SDK_VERSION = "1.2.0-beta.2";
2907
+ const GALA_CORE_SDK_VERSION = "1.2.0-beta.3";
2904
2908
 
2905
2909
  //#endregion
2906
2910
  //#region src/utils/transport.ts
@@ -2961,7 +2965,7 @@ function buildRequestHeaders(wire, parts = {}) {
2961
2965
  entries.set(name.toLowerCase(), [name, value]);
2962
2966
  }
2963
2967
  };
2964
- if ((wire === null || wire === void 0 ? void 0 : wire.userAgent) !== false) put({ "User-Agent": (wire === null || wire === void 0 ? void 0 : wire.userAgent) ?? `GalaChain-SDK/${"1.2.0-beta.2"}` });
2968
+ if ((wire === null || wire === void 0 ? void 0 : wire.userAgent) !== false) put({ "User-Agent": (wire === null || wire === void 0 ? void 0 : wire.userAgent) ?? `GalaChain-SDK/${"1.2.0-beta.3"}` });
2965
2969
  put(parts.defaults);
2966
2970
  put(wire === null || wire === void 0 ? void 0 : wire.headers);
2967
2971
  if (parts.json === true && !entries.has("content-type")) put({ "Content-Type": "application/json" });
@@ -5416,9 +5420,14 @@ var NftCollectionReads = class {
5416
5420
  collection: row.collection
5417
5421
  }));
5418
5422
  }
5423
+ /**
5424
+ * Whether a collection name can still be claimed. The chain owns uniqueness and compares names
5425
+ * case-insensitively (`COLLECTION_NAME_ALREADY_CLAIMED` for `abc` once `ABC` is claimed), so
5426
+ * so does this check: a case-sensitive one reports a refused name as free.
5427
+ */
5419
5428
  async isNftCollectionAvailable(name) {
5420
- const collection = collectionName(name, "collection");
5421
- return !(await this.reads.fetchAllNftCollectionAuthorizations({ pageSize: 1e3 })).some((row) => row.collection === collection);
5429
+ const collection = collectionName(name, "collection").toLowerCase();
5430
+ return !(await this.reads.fetchAllNftCollectionAuthorizations({ pageSize: 1e3 })).some((row) => row.collection.toLowerCase() === collection);
5422
5431
  }
5423
5432
  async fetchNftTokenClasses(params) {
5424
5433
  collectionName(params.collection, "collection");