@puppet.fund/operator 0.1.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 +153 -0
- package/dist/core-DC0-qJhv.d.ts +2986 -0
- package/dist/gmx/index.d.ts +1002 -0
- package/dist/gmx/index.js +176 -0
- package/dist/gmx-DwTiknYm.js +12389 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +10081 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { a as CompactError, c as humanizeErrorCode, d as ICompactOpts, f as IMatchmakerStatus, i as CompactContractError, l as IAttestResult, m as TOKEN_ID, n as IOperatorCore, o as formatThrownError, p as createCompact, r as createOperatorCore, s as humanizeContractError, t as IOperatorConfig, u as ICompact } from "./core-DC0-qJhv.js";
|
|
2
|
+
import { Address, Hex } from "viem";
|
|
3
|
+
|
|
4
|
+
//#region src/lifecycle.d.ts
|
|
5
|
+
interface IClosable {
|
|
6
|
+
close(): void;
|
|
7
|
+
}
|
|
8
|
+
declare function runOperator(operator: IClosable, body: (signal: AbortSignal) => unknown | Promise<unknown>): Promise<void>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/pair.d.ts
|
|
11
|
+
interface IPairedEndpoints {
|
|
12
|
+
matchmakerUrl?: string;
|
|
13
|
+
indexerUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
interface IPairedSession {
|
|
16
|
+
signerKey: Hex;
|
|
17
|
+
user: Address;
|
|
18
|
+
endpoints: IPairedEndpoints;
|
|
19
|
+
}
|
|
20
|
+
declare function pairOverBrowser(siteUrl?: string | URL, port?: number): Promise<IPairedSession>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CompactContractError, CompactError, type IAttestResult, type IClosable, type ICompact, type ICompactOpts, type IMatchmakerStatus, type IOperatorConfig, type IOperatorCore, TOKEN_ID, createCompact, createOperatorCore, formatThrownError, humanizeContractError, humanizeErrorCode, pairOverBrowser, runOperator };
|