@xyo-network/xl1-providers 1.22.21 → 1.22.22

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.
@@ -1,8 +1,10 @@
1
1
  import type { AccountInstance } from '@xyo-network/account-model';
2
2
  import { SimpleXyoSigner } from '@xyo-network/xl1-protocol-sdk';
3
3
  import type { BuildProviderLocatorParams } from './buildProviderLocator.ts';
4
+ /** @deprecated use buildSimpleXyoSignerV2 instead */
4
5
  export interface BuildSimpleXyoSignerLocatorParams extends BuildProviderLocatorParams {
5
6
  account: AccountInstance;
6
7
  }
8
+ /** @deprecated use buildSimpleXyoSignerV2 instead */
7
9
  export declare function buildSimpleXyoSigner(params: BuildSimpleXyoSignerLocatorParams): Promise<import("@xyo-network/xl1-protocol-sdk").CreatableProviderInstance<SimpleXyoSigner>>;
8
10
  //# sourceMappingURL=buildSimpleXyoSigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildSimpleXyoSigner.d.ts","sourceRoot":"","sources":["../../src/buildSimpleXyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAoB,MAAM,+BAA+B,CAAA;AAEjF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AAG3E,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B;IACnF,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,+FAOnF"}
1
+ {"version":3,"file":"buildSimpleXyoSigner.d.ts","sourceRoot":"","sources":["../../src/buildSimpleXyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAoB,MAAM,+BAA+B,CAAA;AAEjF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AAG3E,sDAAsD;AAEtD,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B;IACnF,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,sDAAsD;AAEtD,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,+FAQnF"}
@@ -0,0 +1,5 @@
1
+ import type { AccountInstance } from '@xyo-network/account-model';
2
+ import type { Config } from '@xyo-network/xl1-protocol-sdk';
3
+ import { SimpleXyoSigner } from '@xyo-network/xl1-protocol-sdk';
4
+ export declare function buildSimpleXyoSignerV2(config: Config, account: AccountInstance): Promise<import("@xyo-network/xl1-protocol-sdk").CreatableProviderInstance<SimpleXyoSigner>>;
5
+ //# sourceMappingURL=buildSimpleXyoSignerV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSimpleXyoSignerV2.d.ts","sourceRoot":"","sources":["../../src/buildSimpleXyoSignerV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAoB,MAAM,+BAA+B,CAAA;AAIjF,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,+FAMpF"}
@@ -1,6 +1,7 @@
1
1
  export * from './buildProviderLocator.ts';
2
2
  export * from './buildProviderLocatorV2.ts';
3
3
  export * from './buildSimpleXyoSigner.ts';
4
+ export * from './buildSimpleXyoSignerV2.ts';
4
5
  export * from './NodeXyoViewer.ts';
5
6
  export * from './registerHelpers.ts';
6
7
  export * from './SimpleNetworkStakeViewer.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA"}
@@ -1389,6 +1389,16 @@ async function buildSimpleXyoSigner(params) {
1389
1389
  );
1390
1390
  return await locator.getInstance(XyoSignerMoniker);
1391
1391
  }
1392
+
1393
+ // src/buildSimpleXyoSignerV2.ts
1394
+ import { SimpleXyoSigner as SimpleXyoSigner3, XyoSignerMoniker as XyoSignerMoniker2 } from "@xyo-network/xl1-protocol-sdk";
1395
+ async function buildSimpleXyoSignerV2(config, account) {
1396
+ const locator = buildEmptyProviderLocator(config);
1397
+ locator.register(
1398
+ SimpleXyoSigner3.factory(SimpleXyoSigner3.dependencies, { account })
1399
+ );
1400
+ return await locator.getInstance(XyoSignerMoniker2);
1401
+ }
1392
1402
  export {
1393
1403
  NodeXyoViewer,
1394
1404
  SimpleNetworkStakeViewer,
@@ -1409,6 +1419,7 @@ export {
1409
1419
  buildSimpleProviderLocator,
1410
1420
  buildSimpleProviderLocatorV2,
1411
1421
  buildSimpleXyoSigner,
1422
+ buildSimpleXyoSignerV2,
1412
1423
  registerGatewayAndConnectionWithLocator,
1413
1424
  registerGatewayRunnerWithLocatorIfProvided
1414
1425
  };