@xyo-network/xl1-rpc 1.16.23 → 1.16.25

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 (136) hide show
  1. package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
  2. package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
  3. package/dist/neutral/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
  4. package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
  5. package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
  6. package/dist/neutral/index.mjs +695 -532
  7. package/dist/neutral/index.mjs.map +1 -1
  8. package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
  9. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
  10. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
  11. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
  12. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
  13. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
  14. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
  15. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
  16. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
  17. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
  18. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
  19. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
  20. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
  21. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
  22. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  23. package/dist/neutral/provider/viewer/index.d.ts +1 -0
  24. package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
  25. package/dist/neutral/transport/HttpRpcTransport.d.ts +3 -2
  26. package/dist/neutral/transport/HttpRpcTransport.d.ts.map +1 -1
  27. package/dist/neutral/types/AccountBalanceViewerRpc.d.ts +10 -0
  28. package/dist/neutral/types/AccountBalanceViewerRpc.d.ts.map +1 -0
  29. package/dist/neutral/types/MempoolViewerRpc.d.ts +10 -0
  30. package/dist/neutral/types/MempoolViewerRpc.d.ts.map +1 -0
  31. package/dist/neutral/types/index.d.ts +1 -0
  32. package/dist/neutral/types/index.d.ts.map +1 -1
  33. package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
  34. package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
  35. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +325 -418
  36. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  37. package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
  38. package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  39. package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
  40. package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
  41. package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  42. package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  43. package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  44. package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  45. package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
  46. package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  47. package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
  48. package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  49. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
  50. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  51. package/dist/neutral/types/schema/index.d.ts +2 -0
  52. package/dist/neutral/types/schema/index.d.ts.map +1 -1
  53. package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
  54. package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
  55. package/dist/node/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
  56. package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
  57. package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
  58. package/dist/node/index-node.mjs +695 -532
  59. package/dist/node/index-node.mjs.map +1 -1
  60. package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
  61. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
  62. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
  63. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
  64. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
  65. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
  66. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
  67. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
  68. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
  69. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
  70. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
  71. package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
  72. package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
  73. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
  74. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  75. package/dist/node/provider/viewer/index.d.ts +1 -0
  76. package/dist/node/provider/viewer/index.d.ts.map +1 -1
  77. package/dist/node/transport/HttpRpcTransport.d.ts +3 -2
  78. package/dist/node/transport/HttpRpcTransport.d.ts.map +1 -1
  79. package/dist/node/types/AccountBalanceViewerRpc.d.ts +10 -0
  80. package/dist/node/types/AccountBalanceViewerRpc.d.ts.map +1 -0
  81. package/dist/node/types/MempoolViewerRpc.d.ts +10 -0
  82. package/dist/node/types/MempoolViewerRpc.d.ts.map +1 -0
  83. package/dist/node/types/index.d.ts +1 -0
  84. package/dist/node/types/index.d.ts.map +1 -1
  85. package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
  86. package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
  87. package/dist/node/types/schema/AllRpcSchemas.d.ts +325 -418
  88. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  89. package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
  90. package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  91. package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
  92. package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
  93. package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  94. package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  95. package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  96. package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  97. package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
  98. package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  99. package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
  100. package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  101. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
  102. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  103. package/dist/node/types/schema/index.d.ts +2 -0
  104. package/dist/node/types/schema/index.d.ts.map +1 -1
  105. package/package.json +18 -19
  106. package/src/engine/rpcMethodHandlersFromAccountBalanceViewer.ts +10 -0
  107. package/src/engine/rpcMethodHandlersFromConnection.ts +8 -0
  108. package/src/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.ts +14 -0
  109. package/src/provider/signer/JsonRpcXyoSigner.ts +1 -2
  110. package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts +23 -0
  111. package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts +31 -0
  112. package/src/provider/viewer/JsonRpcAccountBalanceViewer/index.ts +2 -0
  113. package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.ts +11 -0
  114. package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.ts +21 -0
  115. package/src/provider/viewer/JsonRpcMempoolViewer/index.ts +2 -0
  116. package/src/provider/viewer/JsonRpcXyoViewer.ts +10 -10
  117. package/src/provider/viewer/index.ts +1 -0
  118. package/src/transport/HttpRpcTransport.ts +15 -4
  119. package/src/types/AccountBalanceViewerRpc.ts +16 -0
  120. package/src/types/MempoolViewerRpc.ts +16 -0
  121. package/src/types/index.ts +1 -0
  122. package/src/types/schema/AccountBalanceViewerRpcSchemas.ts +33 -0
  123. package/src/types/schema/AllRpcSchemas.ts +2 -0
  124. package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
  125. package/src/types/schema/MempoolViewerRpcSchemas.ts +19 -0
  126. package/src/types/schema/RewardsByPositionViewerRpcSchemas.ts +1 -2
  127. package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +1 -1
  128. package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +1 -1
  129. package/src/types/schema/RewardsTotalViewerRpcSchemas.ts +1 -2
  130. package/src/types/schema/StepViewerRpcSchemas.ts +3 -2
  131. package/src/types/schema/TimeSyncViewerRpcSchema.ts +1 -2
  132. package/src/types/schema/XyoPermissionsRpcSchemas.ts +1 -1
  133. package/src/types/schema/XyoRunnerRpcSchemas.ts +1 -1
  134. package/src/types/schema/XyoSignerRpcSchemas.ts +3 -4
  135. package/src/types/schema/XyoViewerRpcSchemas.ts +3 -4
  136. package/src/types/schema/index.ts +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqagB,CAAA"}
1
+ {"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqagB,CAAA"}
@@ -1,7 +1,9 @@
1
+ export * from './AccountBalanceViewerRpcSchemas.ts';
1
2
  export * from './AllRpcSchemas.ts';
2
3
  export * from './createRequestSchema.ts';
3
4
  export * from './createResponseSchema.ts';
4
5
  export * from './DataLakeViewerRpcSchema.ts';
6
+ export * from './MempoolViewerRpcSchemas.ts';
5
7
  export * from './NetworkStakeViewerRpcSchemas.ts';
6
8
  export * from './RewardsByPositionViewerRpcSchemas.ts';
7
9
  export * from './RewardsByStakerViewerRpcSchemas.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,sCAAsC,CAAA;AACpD,cAAc,oCAAoC,CAAA;AAClD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,sCAAsC,CAAA;AACpD,cAAc,oCAAoC,CAAA;AAClD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-rpc",
4
- "version": "1.16.23",
4
+ "version": "1.16.25",
5
5
  "description": "XYO Layer One API",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -58,17 +58,16 @@
58
58
  "types": "tsc --noEmit -p tsconfig.test.json"
59
59
  },
60
60
  "dependencies": {
61
- "@metamask/json-rpc-engine": "~10.1.1",
62
- "@xylabs/axios": "~5.0.39",
63
- "@xylabs/sdk-js": "~5.0.39",
64
- "@xyo-network/archivist-model": "~5.1.24",
65
- "@xyo-network/boundwitness-model": "~5.1.24",
66
- "@xyo-network/module-model": "~5.1.24",
67
- "@xyo-network/node-model": "~5.1.24",
68
- "@xyo-network/payload-builder": "~5.1.24",
69
- "@xyo-network/payload-model": "~5.1.24",
70
- "@xyo-network/xl1-protocol": "~1.13.13",
71
- "@xyo-network/xl1-protocol-sdk": "~1.16.23",
61
+ "@metamask/json-rpc-engine": "~10.2.0",
62
+ "@xylabs/axios": "~5.0.42",
63
+ "@xylabs/sdk-js": "~5.0.42",
64
+ "@xyo-network/archivist-model": "~5.2.10",
65
+ "@xyo-network/module-model": "~5.2.10",
66
+ "@xyo-network/node-model": "~5.2.10",
67
+ "@xyo-network/payload-builder": "~5.2.10",
68
+ "@xyo-network/payload-model": "~5.2.10",
69
+ "@xyo-network/xl1-protocol": "~1.14.13",
70
+ "@xyo-network/xl1-protocol-sdk": "~1.16.25",
72
71
  "axios": "~1.13.2",
73
72
  "uuid": "~13.0.0",
74
73
  "zod": "~4.1.12"
@@ -76,18 +75,18 @@
76
75
  "devDependencies": {
77
76
  "@metamask/utils": "~11.8.1",
78
77
  "@types/node": "~24.10.1",
79
- "@xylabs/sdk-js": "~5.0.39",
78
+ "@xylabs/sdk-js": "~5.0.42",
80
79
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
81
80
  "@xylabs/tsconfig": "~7.2.8",
82
- "@xylabs/vitest-extended": "~5.0.39",
83
- "@xyo-network/account": "~5.1.24",
84
- "@xyo-network/account-model": "~5.1.24",
85
- "@xyo-network/chain-protocol": "~1.16.23",
86
- "@xyo-network/wallet": "~5.1.24",
81
+ "@xylabs/vitest-extended": "~5.0.42",
82
+ "@xyo-network/account": "~5.2.10",
83
+ "@xyo-network/account-model": "~5.2.10",
84
+ "@xyo-network/chain-protocol": "~1.16.25",
85
+ "@xyo-network/wallet": "~5.2.10",
87
86
  "dotenv": "~17.2.3",
88
87
  "eslint": "^9.39.1",
89
88
  "typescript": "~5.9.3",
90
- "vitest": "~4.0.10"
89
+ "vitest": "~4.0.13"
91
90
  },
92
91
  "packageManager": "yarn@4.6.0",
93
92
  "engines": {
@@ -0,0 +1,10 @@
1
+ import type { AccountBalanceViewerMethods } from '@xyo-network/xl1-protocol-sdk'
2
+
3
+ import type { AccountBalanceViewerRpcMethodHandlers } from '../types/index.ts'
4
+
5
+ export const rpcMethodHandlersFromAccountBalanceViewer = (viewer: AccountBalanceViewerMethods): AccountBalanceViewerRpcMethodHandlers => {
6
+ return {
7
+ accountBalanceViewer_accountsBalances: params => viewer.accountsBalances(params[0], params[1]),
8
+ accountBalanceViewer_accountsBalancesHistory: params => viewer.accountsBalancesHistory(params[0], params[1]),
9
+ }
10
+ }
@@ -1,6 +1,7 @@
1
1
  import type { NetworkStakeViewer, XyoConnection } from '@xyo-network/xl1-protocol-sdk'
2
2
 
3
3
  import type { XyoProviderRpcMethodHandlers } from '../types/index.ts'
4
+ import { rpcMethodHandlersFromAccountBalanceViewer } from './rpcMethodHandlersFromAccountBalanceViewer.ts'
4
5
  import { rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer } from './rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.ts'
5
6
  import { rpcMethodHandlersFromRunner } from './rpcMethodHandlersFromRunner.ts'
6
7
  import { rpcMethodHandlersFromViewer } from './rpcMethodHandlersFromViewer.ts'
@@ -17,5 +18,12 @@ export const rpcMethodHandlersFromConnection = (connection: XyoConnection, netwo
17
18
  ...rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer(networkStakeViewer.stepRewards.position),
18
19
  }
19
20
  }
21
+ const accountBalanceViewer = viewer?.account?.balance
22
+ if (accountBalanceViewer) {
23
+ result = {
24
+ ...result,
25
+ ...rpcMethodHandlersFromAccountBalanceViewer(accountBalanceViewer),
26
+ }
27
+ }
20
28
  return result
21
29
  }
@@ -0,0 +1,14 @@
1
+ import type { NetworkStakeStepRewardsByPositionViewerMethods } from '@xyo-network/xl1-protocol-sdk'
2
+
3
+ import type { NetworkStakingStepRewardsByPositionViewerRpcMethodHandlers } from '../types/index.ts'
4
+
5
+ export const rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer
6
+ = (viewer: NetworkStakeStepRewardsByPositionViewerMethods): NetworkStakingStepRewardsByPositionViewerRpcMethodHandlers => {
7
+ return {
8
+ networkStakingStepRewardsByPositionViewer_bonus: params => viewer.bonus(...(params ?? [])),
9
+ networkStakingStepRewardsByPositionViewer_claimed: params => viewer.claimed(...(params ?? [])),
10
+ networkStakingStepRewardsByPositionViewer_earned: params => viewer.earned(...(params ?? [])),
11
+ networkStakingStepRewardsByPositionViewer_total: params => viewer.total(...(params ?? [])),
12
+ networkStakingStepRewardsByPositionViewer_unclaimed: params => viewer.unclaimed(...(params ?? [])),
13
+ }
14
+ }
@@ -20,7 +20,6 @@ export class RpcXyoSigner implements XyoSigner {
20
20
  }
21
21
 
22
22
  async signTransaction(tx: UnsignedHydratedTransaction): Promise<SignedHydratedTransactionWithHashMeta> {
23
- const ret = await this.transport.sendRequest('xyoSigner_signTransaction', [tx])
24
- return ret
23
+ return await this.transport.sendRequest('xyoSigner_signTransaction', [tx])
25
24
  }
26
25
  }
@@ -0,0 +1,23 @@
1
+ import type { Address, Hash } from '@xylabs/sdk-js'
2
+ import {
3
+ asAttoXL1, type AttoXL1, type XL1BlockRange,
4
+ } from '@xyo-network/xl1-protocol'
5
+ import type { AccountBalanceHistoryItem, AccountBalanceViewer } from '@xyo-network/xl1-protocol-sdk'
6
+
7
+ import type { RpcTransport } from '../../../transport/index.ts'
8
+ import type { AccountBalanceViewerRpcSchemas } from '../../../types/index.ts'
9
+ import { JsonRpcAccountBalanceViewerMethods } from './JsonRpcAccountBalanceViewerMethods.ts'
10
+
11
+ export class JsonRpcAccountBalanceViewer extends JsonRpcAccountBalanceViewerMethods implements AccountBalanceViewer {
12
+ constructor(transport: RpcTransport<typeof AccountBalanceViewerRpcSchemas>) {
13
+ super(transport)
14
+ }
15
+
16
+ async accountBalance(address: Address, headOrRange?: Hash | XL1BlockRange): Promise<AttoXL1> {
17
+ return (await this.accountsBalances([address], headOrRange))[address] ?? asAttoXL1(0)
18
+ }
19
+
20
+ async accountBalanceHistory(address: Address, headOrRange?: Hash | XL1BlockRange): Promise<AccountBalanceHistoryItem[]> {
21
+ return (await this.accountsBalancesHistory([address], headOrRange))[address] ?? []
22
+ }
23
+ }
@@ -0,0 +1,31 @@
1
+ import type { Address, Hash } from '@xylabs/sdk-js'
2
+ import {
3
+ type AttoXL1,
4
+ type XL1BlockRange,
5
+ } from '@xyo-network/xl1-protocol'
6
+ import type { AccountBalanceHistoryItem, AccountBalanceViewerMethods } from '@xyo-network/xl1-protocol-sdk'
7
+
8
+ import type { RpcTransport } from '../../../transport/index.ts'
9
+ import type { AccountBalanceViewerRpcSchemas } from '../../../types/index.ts'
10
+
11
+ export class JsonRpcAccountBalanceViewerMethods implements AccountBalanceViewerMethods {
12
+ protected readonly transport: RpcTransport<typeof AccountBalanceViewerRpcSchemas>
13
+
14
+ constructor(transport: RpcTransport<typeof AccountBalanceViewerRpcSchemas>) {
15
+ this.transport = transport
16
+ }
17
+
18
+ async accountsBalances(address: Address[], headOrRange?: Hash | XL1BlockRange): Promise<Partial<Record<Address, AttoXL1>>> {
19
+ return await this.transport.sendRequest(
20
+ 'accountBalanceViewer_accountsBalances',
21
+ headOrRange ? [address, headOrRange] : [address],
22
+ ) as Partial<Record<Address, AttoXL1>>
23
+ }
24
+
25
+ async accountsBalancesHistory(address: Address[], headOrRange?: Hash | XL1BlockRange): Promise<Partial<Record<Address, AccountBalanceHistoryItem[]>>> {
26
+ return (await this.transport.sendRequest(
27
+ 'accountBalanceViewer_accountsBalancesHistory',
28
+ headOrRange ? [address, headOrRange] : [address],
29
+ )) as Partial<Record<Address, AccountBalanceHistoryItem[]>>
30
+ }
31
+ }
@@ -0,0 +1,2 @@
1
+ export * from './JsonRpcAccountBalanceViewer.ts'
2
+ export * from './JsonRpcAccountBalanceViewerMethods.ts'
@@ -0,0 +1,11 @@
1
+ import type { MempoolViewer } from '@xyo-network/xl1-protocol-sdk'
2
+
3
+ import type { RpcTransport } from '../../../transport/index.ts'
4
+ import type { MempoolViewerRpcSchemas } from '../../../types/index.ts'
5
+ import { JsonRpcMempoolViewerMethods } from './JsonRpcMempoolViewerMethods.ts'
6
+
7
+ export class JsonRpcMempoolViewer extends JsonRpcMempoolViewerMethods implements MempoolViewer {
8
+ constructor(transport: RpcTransport<typeof MempoolViewerRpcSchemas>) {
9
+ super(transport)
10
+ }
11
+ }
@@ -0,0 +1,21 @@
1
+ import type { SignedHydratedTransactionWithHashMeta } from '@xyo-network/xl1-protocol'
2
+ import type { MempoolViewerMethods, PendingTransactionsOptions } from '@xyo-network/xl1-protocol-sdk'
3
+
4
+ import type { RpcTransport } from '../../../transport/index.ts'
5
+ import type { MempoolViewerRpcSchemas } from '../../../types/index.ts'
6
+
7
+ export class JsonRpcMempoolViewerMethods implements MempoolViewerMethods {
8
+ protected readonly transport: RpcTransport<typeof MempoolViewerRpcSchemas>
9
+
10
+ constructor(transport: RpcTransport<typeof MempoolViewerRpcSchemas>) {
11
+ this.transport = transport
12
+ }
13
+
14
+ async pendingTransactions(options?: PendingTransactionsOptions): Promise<SignedHydratedTransactionWithHashMeta[]> {
15
+ const result = await this.transport.sendRequest(
16
+ 'mempoolViewer_pendingTransactions',
17
+ options ? [options] : [],
18
+ )
19
+ return result
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ export * from './JsonRpcMempoolViewer.ts'
2
+ export * from './JsonRpcMempoolViewerMethods.ts'
@@ -4,14 +4,14 @@ import type {
4
4
  AttoXL1,
5
5
  BlockRange,
6
6
  ChainId,
7
- HydratedBlock,
7
+ SignedHydratedBlockWithHashMeta,
8
8
  SignedHydratedTransaction,
9
9
  StepIdentity,
10
10
  StepIdentityString,
11
11
  XL1BlockNumber,
12
12
  XL1BlockRange,
13
13
  } from '@xyo-network/xl1-protocol'
14
- import { asAttoXL1, asHydratedBlock } from '@xyo-network/xl1-protocol'
14
+ import { asAttoXL1, asSignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol'
15
15
  import type {
16
16
  AccountBalanceHistoryItem, ForkHistory, NetworkStakeViewer, Position, TransferBalanceHistoryItem, TransferPair, XyoViewer,
17
17
  } from '@xyo-network/xl1-protocol-sdk'
@@ -76,16 +76,16 @@ export class JsonRpcXyoViewer implements XyoViewer {
76
76
  throw new Error('Method not implemented.')
77
77
  }
78
78
 
79
- async blockByHash(hash: Hash): Promise<HydratedBlock | null> {
80
- return asHydratedBlock(await this.transport.sendRequest('xyoViewer_blockByHash', [hash])) ?? null
79
+ async blockByHash(hash: Hash): Promise<SignedHydratedBlockWithHashMeta | null> {
80
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest('xyoViewer_blockByHash', [hash])) ?? null
81
81
  }
82
82
 
83
- async blockByNumber(blockNumber: number): Promise<HydratedBlock | null> {
84
- return asHydratedBlock(await this.transport.sendRequest('xyoViewer_blockByNumber', [blockNumber])) ?? null
83
+ async blockByNumber(blockNumber: number): Promise<SignedHydratedBlockWithHashMeta | null> {
84
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest('xyoViewer_blockByNumber', [blockNumber])) ?? null
85
85
  }
86
86
 
87
- async blocksByHash(hash: Hash, limit?: number): Promise<HydratedBlock[]> {
88
- return (await this.transport.sendRequest('xyoViewer_blocksByHash', [hash, limit])).map(b => asHydratedBlock(b, { required: true }))
87
+ async blocksByHash(hash: Hash, limit?: number): Promise<SignedHydratedBlockWithHashMeta[]> {
88
+ return (await this.transport.sendRequest('xyoViewer_blocksByHash', [hash, limit])).map(b => asSignedHydratedBlockWithHashMeta(b, true))
89
89
  }
90
90
 
91
91
  async chainId(): Promise<Address> {
@@ -96,8 +96,8 @@ export class JsonRpcXyoViewer implements XyoViewer {
96
96
  return (await this.transport.sendRequest('xyoViewer_chainIdAtBlock', [blockNumber]))
97
97
  }
98
98
 
99
- async currentBlock(): Promise<HydratedBlock> {
100
- return asHydratedBlock(await this.transport.sendRequest('xyoViewer_currentBlock'), { required: true })
99
+ async currentBlock(): Promise<SignedHydratedBlockWithHashMeta> {
100
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest('xyoViewer_currentBlock'), true)
101
101
  }
102
102
 
103
103
  async currentBlockHash(): Promise<Hash> {
@@ -1,3 +1,4 @@
1
+ export * from './JsonRpcAccountBalanceViewer/index.ts'
1
2
  export * from './JsonRpcNetworkStakeViewer/index.ts'
2
3
  export * from './JsonRpcNetworkStakingStepRewardsViewer/index.ts'
3
4
  export * from './JsonRpcTimeSyncViewer/index.ts'
@@ -2,22 +2,26 @@ import type {
2
2
  JsonRpcFailure, JsonRpcRequest, JsonRpcSuccess,
3
3
  } from '@metamask/utils'
4
4
  import { axiosJsonConfig } from '@xylabs/axios'
5
- import { isError, isUndefinedOrNull } from '@xylabs/sdk-js'
5
+ import {
6
+ isDefined, isError, isUndefinedOrNull,
7
+ } from '@xylabs/sdk-js'
6
8
  import { Axios, isAxiosError } from 'axios'
7
9
  import { v4 } from 'uuid'
8
- import type * as z from 'zod'
10
+ import * as z from 'zod'
9
11
 
10
12
  import type { RpcSchemaMap } from '../types/index.ts'
11
13
  import { jsonrpc } from '../types/index.ts'
12
14
  import type { RpcTransport } from './RpcTransport.ts'
13
15
 
14
16
  export class HttpRpcTransport<T extends RpcSchemaMap = RpcSchemaMap> implements RpcTransport<T> {
17
+ protected readonly _passThrough: boolean
15
18
  protected readonly _rpcUrl: string
16
19
  protected readonly _schemas: T
17
20
 
18
- constructor(rpcUrl: string, schemas: T) {
21
+ constructor(rpcUrl: string, schemas: T, passThrough = false) {
19
22
  this._rpcUrl = rpcUrl
20
23
  this._schemas = schemas
24
+ this._passThrough = passThrough
21
25
  }
22
26
 
23
27
  async sendRequest<
@@ -46,8 +50,15 @@ export class HttpRpcTransport<T extends RpcSchemaMap = RpcSchemaMap> implements
46
50
  method: method as string,
47
51
  }
48
52
 
53
+ const schema = schemas[method]
54
+
49
55
  if (params) {
50
- body.params = schemas[method].params.to.parse(params) as JsonRpcRequest
56
+ body.params = isDefined(schema)
57
+ ? schema.params.to.parse(params) as JsonRpcRequest
58
+ : this._passThrough ? z.json().parse(params) as JsonRpcRequest : undefined
59
+ if (!isDefined(body.params)) {
60
+ throw new Error(`RPC method ${String(method)} missing schema`)
61
+ }
51
62
  }
52
63
 
53
64
  const res = await new Axios(axiosJsonConfig()).post(url, body)
@@ -0,0 +1,16 @@
1
+ import type { AccountBalanceViewerMethods } from '@xyo-network/xl1-protocol-sdk'
2
+
3
+ import type { MethodName, RpcMethodName } from './RpcMethodName.ts'
4
+
5
+ export const AccountBalanceViewerRpcNamespace = 'accountBalanceViewer' as const
6
+ export type AccountBalanceViewerRpcNamespace = typeof AccountBalanceViewerRpcNamespace
7
+
8
+ export type AccountBalanceViewerMethodName = MethodName<AccountBalanceViewerMethods>
9
+ export type AccountBalanceViewerRpcMethodName = RpcMethodName<AccountBalanceViewerRpcNamespace,
10
+ AccountBalanceViewerMethodName>
11
+
12
+ export type AccountBalanceViewerRpcMethodHandlers = {
13
+ [K in AccountBalanceViewerMethodName as AccountBalanceViewerRpcMethodName]: (
14
+ params: Parameters<AccountBalanceViewerMethods[K]>,
15
+ ) => ReturnType<AccountBalanceViewerMethods[K]>
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { MempoolViewerMethods } from '@xyo-network/xl1-protocol-sdk'
2
+
3
+ import type { MethodName, RpcMethodName } from './RpcMethodName.ts'
4
+
5
+ export const MempoolViewerRpcNamespace = 'mempoolViewer' as const
6
+ export type MempoolViewerRpcNamespace = typeof MempoolViewerRpcNamespace
7
+
8
+ export type MempoolViewerMethodName = MethodName<MempoolViewerMethods>
9
+ export type MempoolViewerRpcMethodName = RpcMethodName<MempoolViewerRpcNamespace,
10
+ MempoolViewerMethodName>
11
+
12
+ export type MempoolViewerRpcMethodHandlers = {
13
+ [K in MempoolViewerMethodName as MempoolViewerRpcMethodName]: (
14
+ params: Parameters<MempoolViewerMethods[K]>,
15
+ ) => ReturnType<MempoolViewerMethods[K]>
16
+ }
@@ -1,3 +1,4 @@
1
+ export * from './AccountBalanceViewerRpc.ts'
1
2
  export * from './DataLakeViewerRpc.ts'
2
3
  export * from './ErrorCodes.ts'
3
4
  export * from './JsonRpc.ts'
@@ -0,0 +1,33 @@
1
+ import {
2
+ AddressZod,
3
+ BigIntToJsonZod, HashZod, JsonToBigIntZod,
4
+ } from '@xylabs/sdk-js'
5
+ import { XL1BlockRangeZod } from '@xyo-network/xl1-protocol'
6
+ import { AccountBalanceHistoryItemZod } from '@xyo-network/xl1-protocol-sdk'
7
+ import * as z from 'zod'
8
+
9
+ import type { AccountBalanceViewerRpcMethodName } from '../AccountBalanceViewerRpc.ts'
10
+ import type { RpcSchemaMap } from './RpcSchemaMap.ts'
11
+
12
+ export const AccountBalanceViewerRpcSchemas = {
13
+ accountBalanceViewer_accountsBalances: {
14
+ params: {
15
+ to: z.union([z.tuple([z.array(AddressZod)]), z.tuple([z.array(AddressZod), z.union([XL1BlockRangeZod, HashZod])])]),
16
+ from: z.union([z.tuple([z.array(AddressZod)]), z.tuple([z.array(AddressZod), z.union([XL1BlockRangeZod, HashZod])])]),
17
+ },
18
+ result: {
19
+ to: z.record(AddressZod, BigIntToJsonZod),
20
+ from: z.record(AddressZod, JsonToBigIntZod),
21
+ },
22
+ },
23
+ accountBalanceViewer_accountsBalancesHistory: {
24
+ params: {
25
+ to: z.union([z.tuple([z.array(AddressZod)]), z.tuple([z.array(AddressZod), z.union([XL1BlockRangeZod, HashZod])])]),
26
+ from: z.union([z.tuple([z.array(AddressZod)]), z.tuple([z.array(AddressZod), z.union([XL1BlockRangeZod, HashZod])])]),
27
+ },
28
+ result: {
29
+ to: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod)),
30
+ from: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod)),
31
+ },
32
+ },
33
+ } satisfies RpcSchemaMap<AccountBalanceViewerRpcMethodName>
@@ -1,3 +1,4 @@
1
+ import { AccountBalanceViewerRpcSchemas } from './AccountBalanceViewerRpcSchemas.ts'
1
2
  import { NetworkStakeViewerRpcSchemas } from './NetworkStakeViewerRpcSchemas.ts'
2
3
  import type { RpcSchemaMap } from './RpcSchemaMap.ts'
3
4
  import { XyoPermissionsRpcSchemas } from './XyoPermissionsRpcSchemas.ts'
@@ -6,6 +7,7 @@ import { XyoSignerRpcSchemas } from './XyoSignerRpcSchemas.ts'
6
7
  import { XyoViewerRpcSchemas } from './XyoViewerRpcSchemas.ts'
7
8
 
8
9
  export const AllRpcSchemas = {
10
+ ...AccountBalanceViewerRpcSchemas,
9
11
  ...XyoRunnerRpcSchemas,
10
12
  ...XyoSignerRpcSchemas,
11
13
  ...XyoViewerRpcSchemas,
@@ -1,6 +1,6 @@
1
1
  import { HashZod } from '@xylabs/sdk-js'
2
2
  import { PayloadZod } from '@xyo-network/payload-model'
3
- import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from '@xyo-network/xl1-protocol-sdk'
3
+ import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from '@xyo-network/xl1-protocol'
4
4
  import * as z from 'zod'
5
5
 
6
6
  import type { DataLakeViewerRpcMethodName } from '../DataLakeViewerRpc.ts'
@@ -0,0 +1,19 @@
1
+ import { SignedHydratedTransactionWithHashMetaZod } from '@xyo-network/xl1-protocol'
2
+ import { PendingTransactionsOptionsZod } from '@xyo-network/xl1-protocol-sdk'
3
+ import * as z from 'zod'
4
+
5
+ import type { MempoolViewerRpcMethodName } from '../MempoolViewerRpc.ts'
6
+ import type { RpcSchemaMap } from './RpcSchemaMap.ts'
7
+
8
+ export const MempoolViewerRpcSchemas = {
9
+ mempoolViewer_pendingTransactions: {
10
+ params: {
11
+ to: z.tuple([PendingTransactionsOptionsZod.optional()]),
12
+ from: z.tuple([PendingTransactionsOptionsZod.optional()]),
13
+ },
14
+ result: {
15
+ to: z.array(SignedHydratedTransactionWithHashMetaZod),
16
+ from: z.array(SignedHydratedTransactionWithHashMetaZod),
17
+ },
18
+ },
19
+ } satisfies RpcSchemaMap<MempoolViewerRpcMethodName>
@@ -1,6 +1,5 @@
1
1
  import { BigIntToJsonZod, JsonToBigIntZod } from '@xylabs/sdk-js'
2
- import { asAttoXL1 } from '@xyo-network/xl1-protocol'
3
- import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol-sdk'
2
+ import { asAttoXL1, RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol'
4
3
  import z from 'zod'
5
4
 
6
5
  import type { NetworkStakingStepRewardsByPositionViewerRpcMethodName } from '../NetworkStakingStepRewardsByPositionViewerRpc.ts'
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AddressZod, BigIntToJsonZod, JsonToBigIntZod,
3
3
  } from '@xylabs/sdk-js'
4
- import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol-sdk'
4
+ import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol'
5
5
  import z from 'zod'
6
6
 
7
7
  import type { NetworkStakingStepRewardsByStakerViewerRpcMethodName } from '../NetworkStakingStepRewardsByStakerViewerRpc.ts'
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AddressZod, BigIntToJsonZod, JsonToBigIntZod,
3
3
  } from '@xylabs/sdk-js'
4
- import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol-sdk'
4
+ import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol'
5
5
  import z from 'zod'
6
6
 
7
7
  import type { NetworkStakingStepRewardsByStepViewerRpcMethodName } from '../NetworkStakingStepRewardsByStepViewerRpc.ts'
@@ -1,6 +1,5 @@
1
1
  import { BigIntToJsonZod, JsonToBigIntZod } from '@xylabs/sdk-js'
2
- import { asAttoXL1 } from '@xyo-network/xl1-protocol'
3
- import { RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol-sdk'
2
+ import { asAttoXL1, RewardsRangeOptionsZod } from '@xyo-network/xl1-protocol'
4
3
  import * as z from 'zod'
5
4
 
6
5
  import type { NetworkStakingStepRewardsTotalViewerRpcMethodName } from '../NetworkStakingStepRewardsTotalViewerRpc.ts'
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  AddressZod, BigIntToJsonZod, JsonToBigIntZod,
3
3
  } from '@xylabs/sdk-js'
4
- import { StepIdentityZod } from '@xyo-network/xl1-protocol'
5
- import { JsonToStakeZod, StakeToJsonZod } from '@xyo-network/xl1-protocol-sdk'
4
+ import {
5
+ JsonToStakeZod, StakeToJsonZod, StepIdentityZod,
6
+ } from '@xyo-network/xl1-protocol'
6
7
  import z from 'zod'
7
8
 
8
9
  import type { StepViewerMethodName } from '../StepViewerRpc.ts'
@@ -1,5 +1,4 @@
1
- import { TimePayloadZod } from '@xyo-network/xl1-protocol'
2
- import { TimeDomainZod } from '@xyo-network/xl1-protocol-sdk'
1
+ import { TimeDomainZod, TimePayloadZod } from '@xyo-network/xl1-protocol'
3
2
  import * as z from 'zod'
4
3
 
5
4
  import type { TimeSyncViewerRpcMethodName } from '../TimeSyncViewerRpc.ts'
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod,
3
- } from '@xyo-network/xl1-protocol-sdk'
3
+ } from '@xyo-network/xl1-protocol'
4
4
  import * as z from 'zod'
5
5
 
6
6
  import type { XyoPermissionsRpcMethodName } from '../XyoPermissions.ts'
@@ -1,5 +1,5 @@
1
1
  import { HashToJsonZod, JsonToHashZod } from '@xylabs/sdk-js'
2
- import { SignedHydratedTransactionZod } from '@xyo-network/xl1-protocol-sdk'
2
+ import { SignedHydratedTransactionZod } from '@xyo-network/xl1-protocol'
3
3
  import * as z from 'zod'
4
4
 
5
5
  import type { XyoRunnerRpcMethodName } from '../XyoRunnerRpc.ts'
@@ -1,6 +1,5 @@
1
1
  import { AddressZod } from '@xylabs/sdk-js'
2
- import { asHydratedTransactionWithStorageMeta } from '@xyo-network/xl1-protocol'
3
- import { SignedHydratedTransactionZod, UnsignedHydratedTransactionZod } from '@xyo-network/xl1-protocol-sdk'
2
+ import { SignedHydratedTransactionWithHashMetaZod, UnsignedHydratedTransactionZod } from '@xyo-network/xl1-protocol'
4
3
  import { z } from 'zod'
5
4
 
6
5
  import type { XyoSignerRpcMethodName } from '../XyoSignerRpc.ts'
@@ -23,8 +22,8 @@ export const XyoSignerRpcSchemas = {
23
22
  from: z.tuple([UnsignedHydratedTransactionZod]),
24
23
  },
25
24
  result: {
26
- to: SignedHydratedTransactionZod,
27
- from: SignedHydratedTransactionZod.transform(data => asHydratedTransactionWithStorageMeta(data, { required: true })),
25
+ to: SignedHydratedTransactionWithHashMetaZod,
26
+ from: SignedHydratedTransactionWithHashMetaZod,
28
27
  },
29
28
  },
30
29
  } as const satisfies RpcSchemaMap<XyoSignerRpcMethodName>
@@ -4,11 +4,10 @@ import {
4
4
  JsonToHashZod,
5
5
  } from '@xylabs/sdk-js'
6
6
  import {
7
- BlockNumberZod, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod,
7
+ BlockNumberZod, BlockRangeZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod, StakeToJsonZod, StepIdentityZod, TransferPairZod,
8
+ XL1BlockNumberZod, XL1BlockRangeZod,
8
9
  } from '@xyo-network/xl1-protocol'
9
- import {
10
- AccountBalanceHistoryItemZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod, StakeToJsonZod, TransferPairZod,
11
- } from '@xyo-network/xl1-protocol-sdk'
10
+ import { AccountBalanceHistoryItemZod } from '@xyo-network/xl1-protocol-sdk'
12
11
  import * as z from 'zod'
13
12
 
14
13
  import type { XyoViewerRpcMethodName } from '../XyoViewerRpc.ts'
@@ -1,7 +1,9 @@
1
+ export * from './AccountBalanceViewerRpcSchemas.ts'
1
2
  export * from './AllRpcSchemas.ts'
2
3
  export * from './createRequestSchema.ts'
3
4
  export * from './createResponseSchema.ts'
4
5
  export * from './DataLakeViewerRpcSchema.ts'
6
+ export * from './MempoolViewerRpcSchemas.ts'
5
7
  export * from './NetworkStakeViewerRpcSchemas.ts'
6
8
  export * from './RewardsByPositionViewerRpcSchemas.ts'
7
9
  export * from './RewardsByStakerViewerRpcSchemas.ts'