@puppet.fund/operator 0.1.0 → 0.2.0
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 +54 -47
- package/dist/{core-DC0-qJhv.d.ts → core-DlV1H6H-.d.ts} +41 -23
- package/dist/gmx/index.d.ts +4 -5
- package/dist/gmx/index.js +24 -13
- package/dist/{gmx-DwTiknYm.js → gmx-C0vgbHXM.js} +8317 -117
- package/dist/index.d.ts +9 -10
- package/dist/index.js +283 -8025
- package/package.json +1 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as CompactContractError, c as humanizeContractError, d as ICompactOpts, f as IDispatchedFrame, g as TOKEN_ID, h as ITokenInfo, i as IPairedSession, l as humanizeErrorCode, m as createCompact, n as IOperatorCore, o as CompactError, p as IMatchmakerStatus, r as createOperatorCore, s as formatThrownError, t as IOperatorConfig, u as ICompact } from "./core-DlV1H6H-.js";
|
|
2
2
|
import { Address, Hex } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/lifecycle.d.ts
|
|
@@ -8,15 +8,14 @@ interface IClosable {
|
|
|
8
8
|
declare function runOperator(operator: IClosable, body: (signal: AbortSignal) => unknown | Promise<unknown>): Promise<void>;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/pair.d.ts
|
|
11
|
-
|
|
12
|
-
matchmakerUrl?: string;
|
|
13
|
-
indexerUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
interface IPairedSession {
|
|
11
|
+
declare function buildSession(input: {
|
|
16
12
|
signerKey: Hex;
|
|
17
13
|
user: Address;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
baseTokenId: Hex;
|
|
15
|
+
name: Hex;
|
|
16
|
+
matchmakerUrl?: string;
|
|
17
|
+
tokenRegistry?: ITokenInfo[];
|
|
18
|
+
}): IPairedSession;
|
|
19
|
+
declare function pairOverBrowser(pairUrl?: string | URL): Promise<IPairedSession>;
|
|
21
20
|
//#endregion
|
|
22
|
-
export { CompactContractError, CompactError, type
|
|
21
|
+
export { CompactContractError, CompactError, type IClosable, type ICompact, type ICompactOpts, type IDispatchedFrame, type IMatchmakerStatus, type IOperatorConfig, type IOperatorCore, type IPairedSession, TOKEN_ID, buildSession, createCompact, createOperatorCore, formatThrownError, humanizeContractError, humanizeErrorCode, pairOverBrowser, runOperator };
|