@gala-chain/gswap-sdk 1.1.0 → 1.1.1
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -537,7 +537,11 @@ export declare class GdexStreamService {
|
|
|
537
537
|
poolHash?: string;
|
|
538
538
|
transactionId?: string;
|
|
539
539
|
}): Promise<GdexSubscription>;
|
|
540
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* State changes of one pool (price, tick, reserves, liquidity). These events carry no acting wallet:
|
|
542
|
+
* on v2 `creator` is whoever created the pool, not whoever just traded or added liquidity. For
|
|
543
|
+
* "who did it", use {@link subscribeLiquidity} (`owner`) or {@link subscribeSwaps} (`sender`).
|
|
544
|
+
*/
|
|
541
545
|
subscribePool(selector: GdexPoolSelector, cb: (event: Record<string, unknown>) => void, opts?: GdexSubscribeOptions): Promise<GdexSubscription>;
|
|
542
546
|
/** Balance changes of one wallet. */
|
|
543
547
|
subscribeBalances(owner: string, cb: (event: Record<string, unknown>) => void, opts?: GdexSubscribeOptions & {
|
package/dist/index.d.ts
CHANGED
|
@@ -537,7 +537,11 @@ export declare class GdexStreamService {
|
|
|
537
537
|
poolHash?: string;
|
|
538
538
|
transactionId?: string;
|
|
539
539
|
}): Promise<GdexSubscription>;
|
|
540
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* State changes of one pool (price, tick, reserves, liquidity). These events carry no acting wallet:
|
|
542
|
+
* on v2 `creator` is whoever created the pool, not whoever just traded or added liquidity. For
|
|
543
|
+
* "who did it", use {@link subscribeLiquidity} (`owner`) or {@link subscribeSwaps} (`sender`).
|
|
544
|
+
*/
|
|
541
545
|
subscribePool(selector: GdexPoolSelector, cb: (event: Record<string, unknown>) => void, opts?: GdexSubscribeOptions): Promise<GdexSubscription>;
|
|
542
546
|
/** Balance changes of one wallet. */
|
|
543
547
|
subscribeBalances(owner: string, cb: (event: Record<string, unknown>) => void, opts?: GdexSubscribeOptions & {
|
package/dist/index.mjs
CHANGED
|
@@ -965,7 +965,11 @@ var GdexStreamService = class {
|
|
|
965
965
|
subscribeSwaps(cb, opts = {}) {
|
|
966
966
|
return this.subscribe("swap", cb, opts);
|
|
967
967
|
}
|
|
968
|
-
/**
|
|
968
|
+
/**
|
|
969
|
+
* State changes of one pool (price, tick, reserves, liquidity). These events carry no acting wallet:
|
|
970
|
+
* on v2 `creator` is whoever created the pool, not whoever just traded or added liquidity. For
|
|
971
|
+
* "who did it", use {@link subscribeLiquidity} (`owner`) or {@link subscribeSwaps} (`sender`).
|
|
972
|
+
*/
|
|
969
973
|
subscribePool(selector, cb, opts = {}) {
|
|
970
974
|
return this.subscribe("pool", cb, {
|
|
971
975
|
...selector,
|
|
@@ -1181,7 +1185,7 @@ var GdexStreamService = class {
|
|
|
1181
1185
|
//#endregion
|
|
1182
1186
|
//#region src/version.ts
|
|
1183
1187
|
/** Package version embedded by the bundler, with a source-test fallback. */
|
|
1184
|
-
const SDK_VERSION = "1.1.
|
|
1188
|
+
const SDK_VERSION = "1.1.1";
|
|
1185
1189
|
|
|
1186
1190
|
//#endregion
|
|
1187
1191
|
//#region src/classes/http_client.ts
|