@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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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";
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
- interface IPairedEndpoints {
12
- matchmakerUrl?: string;
13
- indexerUrl?: string;
14
- }
15
- interface IPairedSession {
11
+ declare function buildSession(input: {
16
12
  signerKey: Hex;
17
13
  user: Address;
18
- endpoints: IPairedEndpoints;
19
- }
20
- declare function pairOverBrowser(siteUrl?: string | URL, port?: number): Promise<IPairedSession>;
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 IAttestResult, type IClosable, type ICompact, type ICompactOpts, type IMatchmakerStatus, type IOperatorConfig, type IOperatorCore, TOKEN_ID, createCompact, createOperatorCore, formatThrownError, humanizeContractError, humanizeErrorCode, pairOverBrowser, runOperator };
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 };