@xyo-network/xl1-rpc 1.12.0 → 1.12.1

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.
Files changed (27) hide show
  1. package/dist/neutral/index.mjs +464 -235
  2. package/dist/neutral/index.mjs.map +1 -1
  3. package/dist/neutral/transport/MemoryRpcTransport.d.ts +2 -3
  4. package/dist/neutral/transport/MemoryRpcTransport.d.ts.map +1 -1
  5. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +2965 -2
  6. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  7. package/dist/neutral/types/schema/common/Address.d.ts.map +1 -1
  8. package/dist/neutral/types/schema/common/Chain.d.ts.map +1 -1
  9. package/dist/neutral/types/schema/common/Sequence.d.ts.map +1 -1
  10. package/dist/node/index-node.mjs +493 -266
  11. package/dist/node/index-node.mjs.map +1 -1
  12. package/dist/node/transport/MemoryRpcTransport.d.ts +2 -3
  13. package/dist/node/transport/MemoryRpcTransport.d.ts.map +1 -1
  14. package/dist/node/types/schema/AllRpcSchemas.d.ts +2965 -2
  15. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  16. package/dist/node/types/schema/common/Address.d.ts.map +1 -1
  17. package/dist/node/types/schema/common/Chain.d.ts.map +1 -1
  18. package/dist/node/types/schema/common/Sequence.d.ts.map +1 -1
  19. package/package.json +28 -31
  20. package/src/provider/client/spec/MemoryXyoClient.spec.ts +2 -2
  21. package/src/provider/gateway/spec/MemoryXyoGateway.spec.ts +2 -2
  22. package/src/provider/viewer/spec/JsonRpcXyoViewer.spec.ts +3 -2
  23. package/src/transport/MemoryRpcTransport.ts +3 -3
  24. package/src/types/schema/AllRpcSchemas.ts +2 -2
  25. package/src/types/schema/common/Address.ts +2 -5
  26. package/src/types/schema/common/Chain.ts +2 -5
  27. package/src/types/schema/common/Sequence.ts +1 -2
@@ -1,14 +1,13 @@
1
1
  import type { JsonRpcEngine } from '@metamask/json-rpc-engine';
2
2
  import type { z, ZodRawShape } from 'zod';
3
3
  import type { RpcSchemaMap } from '../types/index.ts';
4
- import { AllRpcSchemas } from '../types/index.ts';
5
4
  import type { RpcTransport } from './RpcTransport.ts';
6
- export declare class MemoryRpcTransport<T extends RpcSchemaMap = typeof AllRpcSchemas> implements RpcTransport<T> {
5
+ export declare class MemoryRpcTransport<T extends RpcSchemaMap> implements RpcTransport<T> {
7
6
  protected readonly _rpcEngine: JsonRpcEngine;
8
7
  protected readonly _schemas: T;
9
8
  protected readonly requestSchemas: Record<keyof T, z.ZodObject<ZodRawShape>>;
10
9
  protected readonly responseSchemas: Record<keyof T, z.ZodObject<ZodRawShape>>;
11
- constructor(rpcEngine: JsonRpcEngine, schemas?: T);
10
+ constructor(rpcEngine: JsonRpcEngine, schemas: T);
12
11
  sendRequest<TMethod extends keyof T>(method: TMethod, params?: z.input<T[TMethod]['params']['to']>): Promise<z.output<T[TMethod]['result']['from']>>;
13
12
  }
14
13
  //# sourceMappingURL=MemoryRpcTransport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MemoryRpcTransport.d.ts","sourceRoot":"","sources":["../../../src/transport/MemoryRpcTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAK9D,OAAO,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EACL,aAAa,EACd,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,qBAAa,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,OAAO,aAAa,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IACvG,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAA;IAC5C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,C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