@xyo-network/xl1-react-client-sdk 2.1.0 → 2.1.2

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.
@@ -0,0 +1,46 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import type { GatewayName } from '@xyo-network/xl1-sdk';
3
+ import React from 'react';
4
+ export interface AutoSignChainPanelProps extends StackProps {
5
+ /** How many `addPayloadsToChain` calls the burst fires. Defaults to 3. */
6
+ burstSize?: number;
7
+ /**
8
+ * Real chain id the grant's `chainId` caveat pins to. Must equal the chain the
9
+ * gateway stamps on the transaction's bound witness (`bw.chain`), or auto-sign
10
+ * silently falls back to the popup. Defaults to `SequenceNetwork.chain`
11
+ * (`4b43a753c8024c0e5000e8ac948ac0063ac624bc`) — keep it in sync with
12
+ * `gatewayName`.
13
+ */
14
+ chainId?: string;
15
+ /**
16
+ * Explorer base URL used to build per-transaction links. Combined with
17
+ * `gatewayName` (as the explorer's network id). Defaults to the Sequence
18
+ * (test) explorer — keep it in sync with `gatewayName`.
19
+ */
20
+ explorerUrl?: string;
21
+ /** Gateway/network to build transactions against. Defaults to `SequenceNetwork.id`. */
22
+ gatewayName?: GatewayName;
23
+ /**
24
+ * Max number of auto-signed transactions the grant permits (the `txCountLimit`
25
+ * caveat). Set below `burstSize` to exercise the count-limit fallback. Defaults
26
+ * to 100.
27
+ */
28
+ maxTxCount?: number;
29
+ /**
30
+ * Schema of the off-chain content payload anchored by each call. Set it outside
31
+ * `schemaPatterns` to exercise the allowlist fallback. Defaults to
32
+ * `network.xyo.game.move`.
33
+ */
34
+ offChainSchema?: string;
35
+ /**
36
+ * Schema-allowlist patterns for the grant. Must cover *every* schema the
37
+ * transaction's bound witness references; here that is just the off-chain
38
+ * content schema, so the default is `['network.xyo.game.*']`. (The wallet
39
+ * requires all `payload_schemas` to match — relevant if you add more payloads.)
40
+ */
41
+ schemaPatterns?: string[];
42
+ /** Wallet-detection timeout, forwarded to the wallet hooks. */
43
+ timeout?: number;
44
+ }
45
+ export declare const AutoSignChainPanel: React.FC<AutoSignChainPanelProps>;
46
+ //# sourceMappingURL=AutoSignChainPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoSignChainPanel.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/AutoSignChainPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAY/C,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAEN,MAAM,OAAO,CAAA;AA4Ld,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uFAAuF;IACvF,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AA+DD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+KhE,CAAA"}
@@ -5,11 +5,11 @@ export declare const useConnectAccount: (gatewayName?: GatewayName, timeout?: nu
5
5
  } & {
6
6
  readonly __address: true;
7
7
  }) | undefined;
8
- connectSigner: () => Promise<(Lowercase<string> & {
8
+ connectSigner: () => Promise<import("@xyo-network/address").XyoQuantAddress | (Lowercase<string> & {
9
9
  readonly __hex: true;
10
10
  } & {
11
11
  readonly __address: true;
12
- }) | import("@xyo-network/address").XyoQuantAddress | undefined>;
12
+ }) | undefined>;
13
13
  error: Error | undefined;
14
14
  gateway: import("@xyo-network/xl1-sdk").XyoGatewayRunner | null | undefined;
15
15
  timedout: boolean;
@@ -1,5 +1,6 @@
1
1
  export * from './account/index.ts';
2
2
  export * from './ApprovedLakeSelector.tsx';
3
+ export * from './AutoSignChainPanel.tsx';
3
4
  export * from './ConnectAccountsStack.tsx';
4
5
  export * from './DataLakeAddToChainPanel.tsx';
5
6
  export * from './DataLakeGetButton.tsx';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA"}