@xyo-network/xl1-rpc 1.15.28 → 1.16.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.
- package/dist/neutral/engine/rpcMethodHandlersFromConnection.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.d.ts +2 -2
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakingViewer.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakingViewer.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromPermissions.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromPermissions.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromRunner.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromRunner.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromSigner.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromSigner.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromViewer.d.ts +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/neutral/engine-node/rpcEngineFromConnection.d.ts +1 -1
- package/dist/neutral/engine-node/rpcEngineFromConnection.d.ts.map +1 -1
- package/dist/neutral/index.mjs +698 -991
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/client/MemoryXyoClient.d.ts +1 -1
- package/dist/neutral/provider/client/MemoryXyoClient.d.ts.map +1 -1
- package/dist/neutral/provider/connection/HttpRpcXyoConnection.d.ts +2 -2
- package/dist/neutral/provider/connection/HttpRpcXyoConnection.d.ts.map +1 -1
- package/dist/neutral/provider/connection/XyoBaseConnection.d.ts +3 -3
- package/dist/neutral/provider/connection/XyoBaseConnection.d.ts.map +1 -1
- package/dist/neutral/provider/datalake/JsonRpcDataLakeViewer.d.ts +7 -0
- package/dist/neutral/provider/datalake/JsonRpcDataLakeViewer.d.ts.map +1 -0
- package/dist/neutral/provider/datalake/JsonRpcDataLakeViewerMethods.d.ts +10 -0
- package/dist/neutral/provider/datalake/JsonRpcDataLakeViewerMethods.d.ts.map +1 -0
- package/dist/neutral/provider/datalake/index.d.ts +2 -3
- package/dist/neutral/provider/datalake/index.d.ts.map +1 -1
- package/dist/neutral/provider/gateway/Abstract.d.ts +2 -1
- package/dist/neutral/provider/gateway/Abstract.d.ts.map +1 -1
- package/dist/neutral/provider/gateway/MemoryXyoGateway.d.ts +1 -1
- package/dist/neutral/provider/gateway/MemoryXyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/network/MemoryXyoNetwork.d.ts +2 -1
- package/dist/neutral/provider/network/MemoryXyoNetwork.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/MemoryXyoPermissions.d.ts +1 -1
- package/dist/neutral/provider/permissions/MemoryXyoPermissions.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/RpcXyoPermissions.d.ts +1 -1
- package/dist/neutral/provider/permissions/RpcXyoPermissions.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/store/MemoryPermissions.d.ts +1 -1
- package/dist/neutral/provider/permissions/store/MemoryPermissions.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/store/PermissionsStore.d.ts +1 -1
- package/dist/neutral/provider/permissions/store/PermissionsStore.d.ts.map +1 -1
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts +2 -1
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/runner/MemoryXyoRunner.d.ts +2 -1
- package/dist/neutral/provider/runner/MemoryXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts +2 -1
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts +2 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts +2 -1
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewer.d.ts +3 -3
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.d.ts +8 -7
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.d.ts +8 -7
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.d.ts +8 -7
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.d.ts +8 -7
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewer.d.ts +14 -11
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +10 -6
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/index.d.ts +1 -0
- package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakeViewerRpc.d.ts +1 -1
- package/dist/neutral/types/NetworkStakeViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakingStepRewardsByPositionViewerRpc.d.ts +3 -3
- package/dist/neutral/types/NetworkStakingStepRewardsByPositionViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakingStepRewardsByStakerViewerRpc.d.ts +3 -3
- package/dist/neutral/types/NetworkStakingStepRewardsByStakerViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakingStepRewardsByStepViewerRpc.d.ts +3 -3
- package/dist/neutral/types/NetworkStakingStepRewardsByStepViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakingStepRewardsTotalViewerRpc.d.ts +3 -3
- package/dist/neutral/types/NetworkStakingStepRewardsTotalViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/NetworkStakingStepRewardsViewerRpc.d.ts +3 -3
- package/dist/neutral/types/NetworkStakingStepRewardsViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/StepViewerRpc.d.ts +1 -1
- package/dist/neutral/types/StepViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/XyoDataLakeViewerRpc.d.ts +10 -0
- package/dist/neutral/types/XyoDataLakeViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/XyoPermissions.d.ts +1 -1
- package/dist/neutral/types/XyoPermissions.d.ts.map +1 -1
- package/dist/neutral/types/XyoRunnerRpc.d.ts +1 -1
- package/dist/neutral/types/XyoRunnerRpc.d.ts.map +1 -1
- package/dist/neutral/types/XyoSignerRpc.d.ts +1 -1
- package/dist/neutral/types/XyoSignerRpc.d.ts.map +1 -1
- package/dist/neutral/types/XyoViewerRpc.d.ts +1 -1
- package/dist/neutral/types/XyoViewerRpc.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +1360 -284
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts +74 -0
- package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -0
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +1361 -285
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/ArrayBuffer.d.ts +4 -0
- package/dist/neutral/types/schema/common/ArrayBuffer.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +73 -39
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +81 -0
- package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts +76 -49
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts +59 -4
- package/dist/neutral/types/schema/common/Transfer.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/index.d.ts +1 -0
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec.d.ts.map +1 -0
- package/dist/neutral/types/schema/index.d.ts +1 -0
- package/dist/neutral/types/schema/index.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromConnection.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.d.ts +2 -2
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakingViewer.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakingViewer.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromPermissions.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromPermissions.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromRunner.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromRunner.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromSigner.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromSigner.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/node/engine-node/rpcEngineFromConnection.d.ts +1 -1
- package/dist/node/engine-node/rpcEngineFromConnection.d.ts.map +1 -1
- package/dist/node/index-node.mjs +698 -991
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/client/MemoryXyoClient.d.ts +1 -1
- package/dist/node/provider/client/MemoryXyoClient.d.ts.map +1 -1
- package/dist/node/provider/connection/HttpRpcXyoConnection.d.ts +2 -2
- package/dist/node/provider/connection/HttpRpcXyoConnection.d.ts.map +1 -1
- package/dist/node/provider/connection/XyoBaseConnection.d.ts +3 -3
- package/dist/node/provider/connection/XyoBaseConnection.d.ts.map +1 -1
- package/dist/node/provider/datalake/JsonRpcDataLakeViewer.d.ts +7 -0
- package/dist/node/provider/datalake/JsonRpcDataLakeViewer.d.ts.map +1 -0
- package/dist/node/provider/datalake/JsonRpcDataLakeViewerMethods.d.ts +10 -0
- package/dist/node/provider/datalake/JsonRpcDataLakeViewerMethods.d.ts.map +1 -0
- package/dist/node/provider/datalake/index.d.ts +2 -3
- package/dist/node/provider/datalake/index.d.ts.map +1 -1
- package/dist/node/provider/gateway/Abstract.d.ts +2 -1
- package/dist/node/provider/gateway/Abstract.d.ts.map +1 -1
- package/dist/node/provider/gateway/MemoryXyoGateway.d.ts +1 -1
- package/dist/node/provider/gateway/MemoryXyoGateway.d.ts.map +1 -1
- package/dist/node/provider/network/MemoryXyoNetwork.d.ts +2 -1
- package/dist/node/provider/network/MemoryXyoNetwork.d.ts.map +1 -1
- package/dist/node/provider/permissions/MemoryXyoPermissions.d.ts +1 -1
- package/dist/node/provider/permissions/MemoryXyoPermissions.d.ts.map +1 -1
- package/dist/node/provider/permissions/RpcXyoPermissions.d.ts +1 -1
- package/dist/node/provider/permissions/RpcXyoPermissions.d.ts.map +1 -1
- package/dist/node/provider/permissions/store/MemoryPermissions.d.ts +1 -1
- package/dist/node/provider/permissions/store/MemoryPermissions.d.ts.map +1 -1
- package/dist/node/provider/permissions/store/PermissionsStore.d.ts +1 -1
- package/dist/node/provider/permissions/store/PermissionsStore.d.ts.map +1 -1
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts +2 -1
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/runner/MemoryXyoRunner.d.ts +2 -1
- package/dist/node/provider/runner/MemoryXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/runner/NodeXyoRunner.d.ts +2 -1
- package/dist/node/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts +2 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts +2 -1
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewer.d.ts +3 -3
- package/dist/node/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.d.ts +8 -7
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewer.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.d.ts +8 -7
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.d.ts +8 -7
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.d.ts +8 -7
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewer.d.ts +14 -11
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +10 -6
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/index.d.ts +1 -0
- package/dist/node/provider/viewer/index.d.ts.map +1 -1
- package/dist/node/types/NetworkStakeViewerRpc.d.ts +1 -1
- package/dist/node/types/NetworkStakeViewerRpc.d.ts.map +1 -1
- package/dist/node/types/NetworkStakingStepRewardsByPositionViewerRpc.d.ts +3 -3
- package/dist/node/types/NetworkStakingStepRewardsByPositionViewerRpc.d.ts.map +1 -1
- package/dist/node/types/NetworkStakingStepRewardsByStakerViewerRpc.d.ts +3 -3
- package/dist/node/types/NetworkStakingStepRewardsByStakerViewerRpc.d.ts.map +1 -1
- package/dist/node/types/NetworkStakingStepRewardsByStepViewerRpc.d.ts +3 -3
- package/dist/node/types/NetworkStakingStepRewardsByStepViewerRpc.d.ts.map +1 -1
- package/dist/node/types/NetworkStakingStepRewardsTotalViewerRpc.d.ts +3 -3
- package/dist/node/types/NetworkStakingStepRewardsTotalViewerRpc.d.ts.map +1 -1
- package/dist/node/types/NetworkStakingStepRewardsViewerRpc.d.ts +3 -3
- package/dist/node/types/NetworkStakingStepRewardsViewerRpc.d.ts.map +1 -1
- package/dist/node/types/StepViewerRpc.d.ts +1 -1
- package/dist/node/types/StepViewerRpc.d.ts.map +1 -1
- package/dist/node/types/XyoDataLakeViewerRpc.d.ts +10 -0
- package/dist/node/types/XyoDataLakeViewerRpc.d.ts.map +1 -0
- package/dist/node/types/XyoPermissions.d.ts +1 -1
- package/dist/node/types/XyoPermissions.d.ts.map +1 -1
- package/dist/node/types/XyoRunnerRpc.d.ts +1 -1
- package/dist/node/types/XyoRunnerRpc.d.ts.map +1 -1
- package/dist/node/types/XyoSignerRpc.d.ts +1 -1
- package/dist/node/types/XyoSignerRpc.d.ts.map +1 -1
- package/dist/node/types/XyoViewerRpc.d.ts +1 -1
- package/dist/node/types/XyoViewerRpc.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +1360 -284
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts +74 -0
- package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -0
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +1361 -285
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/ArrayBuffer.d.ts +4 -0
- package/dist/node/types/schema/common/ArrayBuffer.d.ts.map +1 -0
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +73 -39
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/BoundWitness.d.ts +81 -0
- package/dist/node/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedBlock.d.ts +76 -49
- package/dist/node/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/node/types/schema/common/Transfer.d.ts +59 -4
- package/dist/node/types/schema/common/Transfer.d.ts.map +1 -1
- package/dist/node/types/schema/common/index.d.ts +1 -0
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec.d.ts +2 -0
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec.d.ts.map +1 -0
- package/dist/node/types/schema/index.d.ts +1 -0
- package/dist/node/types/schema/index.d.ts.map +1 -1
- package/package.json +28 -28
- package/src/engine/rpcMethodHandlersFromConnection.ts +1 -1
- package/src/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.ts +2 -2
- package/src/engine/rpcMethodHandlersFromNetworkStakingViewer.ts +1 -1
- package/src/engine/rpcMethodHandlersFromPermissions.ts +1 -1
- package/src/engine/rpcMethodHandlersFromRunner.ts +1 -1
- package/src/engine/rpcMethodHandlersFromSigner.ts +1 -1
- package/src/engine/rpcMethodHandlersFromViewer.ts +1 -1
- package/src/engine-node/rpcEngineFromConnection.ts +1 -1
- package/src/provider/client/MemoryXyoClient.ts +1 -1
- package/src/provider/client/spec/MemoryXyoClient.spec.ts +2 -3
- package/src/provider/connection/HttpRpcXyoConnection.ts +4 -7
- package/src/provider/connection/XyoBaseConnection.ts +5 -5
- package/src/provider/connection/spec/XyoConnection.spec.ts +2 -2
- package/src/provider/datalake/JsonRpcDataLakeViewer.ts +10 -0
- package/src/provider/datalake/JsonRpcDataLakeViewerMethods.ts +19 -0
- package/src/provider/datalake/index.ts +2 -3
- package/src/provider/gateway/Abstract.ts +4 -2
- package/src/provider/gateway/MemoryXyoGateway.ts +1 -1
- package/src/provider/network/MemoryXyoNetwork.ts +2 -1
- package/src/provider/permissions/MemoryXyoPermissions.ts +1 -1
- package/src/provider/permissions/RpcXyoPermissions.ts +1 -1
- package/src/provider/permissions/spec/MemoryXyoPermissions.spec.ts +1 -1
- package/src/provider/permissions/store/MemoryPermissions.ts +1 -1
- package/src/provider/permissions/store/PermissionsStore.ts +1 -1
- package/src/provider/runner/JsonRpcXyoRunner.ts +2 -1
- package/src/provider/runner/MemoryXyoRunner.ts +2 -1
- package/src/provider/runner/NodeXyoRunner.ts +2 -4
- package/src/provider/signer/JsonRpcXyoSigner.ts +1 -1
- package/src/provider/signer/MemoryXyoSigner.ts +2 -1
- package/src/provider/signer/spec/RpcEngineXyoSigner.spec.ts +2 -1
- package/src/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewer.ts +3 -3
- package/src/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.ts +1 -1
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.ts +2 -2
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.ts +8 -9
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewer.ts +3 -2
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.ts +8 -9
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.ts +3 -2
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.ts +8 -9
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.ts +3 -2
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.ts +8 -11
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewer.ts +22 -24
- package/src/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.ts +2 -2
- package/src/provider/viewer/JsonRpcXyoViewer.ts +24 -17
- package/src/provider/viewer/index.ts +1 -0
- package/src/provider/viewer/spec/JsonRpcXyoViewer.spec.ts +1 -1
- package/src/types/NetworkStakeViewerRpc.ts +1 -1
- package/src/types/NetworkStakingStepRewardsByPositionViewerRpc.ts +4 -4
- package/src/types/NetworkStakingStepRewardsByStakerViewerRpc.ts +4 -4
- package/src/types/NetworkStakingStepRewardsByStepViewerRpc.ts +4 -4
- package/src/types/NetworkStakingStepRewardsTotalViewerRpc.ts +4 -4
- package/src/types/NetworkStakingStepRewardsViewerRpc.ts +4 -4
- package/src/types/StepViewerRpc.ts +1 -1
- package/src/types/XyoDataLakeViewerRpc.ts +16 -0
- package/src/types/XyoPermissions.ts +1 -1
- package/src/types/XyoRunnerRpc.ts +1 -1
- package/src/types/XyoSignerRpc.ts +1 -1
- package/src/types/XyoViewerRpc.ts +1 -1
- package/src/types/schema/DataLakeViewerRpcSchema.ts +41 -0
- package/src/types/schema/XyoViewerRpcSchemas.ts +59 -152
- package/src/types/schema/common/ArrayBuffer.ts +42 -0
- package/src/types/schema/common/BlockBoundWitness.ts +9 -5
- package/src/types/schema/common/BoundWitness.ts +4 -1
- package/src/types/schema/common/Transfer.ts +6 -3
- package/src/types/schema/common/index.ts +1 -0
- package/src/types/schema/index.ts +1 -0
- package/dist/neutral/provider/datalake/AbstractXyoDataLake.d.ts +0 -10
- package/dist/neutral/provider/datalake/AbstractXyoDataLake.d.ts.map +0 -1
- package/dist/neutral/provider/datalake/ArchivistXyoDataLake.d.ts +0 -11
- package/dist/neutral/provider/datalake/ArchivistXyoDataLake.d.ts.map +0 -1
- package/dist/neutral/provider/datalake/HttpXyoDataLake.d.ts +0 -20
- package/dist/neutral/provider/datalake/HttpXyoDataLake.d.ts.map +0 -1
- package/dist/neutral/provider/datalake/spec/HttpXyoDataLake.spec.d.ts +0 -2
- package/dist/neutral/provider/datalake/spec/HttpXyoDataLake.spec.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts +0 -2
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts.map +0 -1
- package/dist/node/provider/datalake/AbstractXyoDataLake.d.ts +0 -10
- package/dist/node/provider/datalake/AbstractXyoDataLake.d.ts.map +0 -1
- package/dist/node/provider/datalake/ArchivistXyoDataLake.d.ts +0 -11
- package/dist/node/provider/datalake/ArchivistXyoDataLake.d.ts.map +0 -1
- package/dist/node/provider/datalake/HttpXyoDataLake.d.ts +0 -20
- package/dist/node/provider/datalake/HttpXyoDataLake.d.ts.map +0 -1
- package/dist/node/provider/datalake/spec/HttpXyoDataLake.spec.d.ts +0 -2
- package/dist/node/provider/datalake/spec/HttpXyoDataLake.spec.d.ts.map +0 -1
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts +0 -2
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts.map +0 -1
- package/src/provider/datalake/AbstractXyoDataLake.ts +0 -38
- package/src/provider/datalake/ArchivistXyoDataLake.ts +0 -26
- package/src/provider/datalake/HttpXyoDataLake.ts +0 -115
- package/src/provider/datalake/spec/HttpXyoDataLake.spec.ts +0 -161
- /package/src/types/schema/common/spec/{UnsignedHydratedTransactionSchema.spec copy.ts → UnsignedHydratedTransactionSchema.spec.ts} +0 -0
package/dist/node/index-node.mjs
CHANGED
|
@@ -163,58 +163,91 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
|
|
|
163
163
|
var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
|
|
164
164
|
|
|
165
165
|
// src/types/schema/NetworkStakeViewerRpcSchemas.ts
|
|
166
|
-
import { BigIntToJsonZod as
|
|
167
|
-
import * as
|
|
166
|
+
import { BigIntToJsonZod as BigIntToJsonZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/hex";
|
|
167
|
+
import * as z20 from "zod";
|
|
168
168
|
|
|
169
169
|
// src/types/schema/common/Address.ts
|
|
170
170
|
import { AddressRegEx, toAddress } from "@xylabs/hex";
|
|
171
171
|
import * as z from "zod";
|
|
172
172
|
var AddressZod = z.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
173
173
|
|
|
174
|
+
// src/types/schema/common/ArrayBuffer.ts
|
|
175
|
+
import * as z2 from "zod";
|
|
176
|
+
function base64Encode(u8) {
|
|
177
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
178
|
+
return Buffer.from(u8).toString("base64");
|
|
179
|
+
}
|
|
180
|
+
let binary = "";
|
|
181
|
+
const chunk = 32768;
|
|
182
|
+
for (let i = 0; i < u8.length; i += chunk) {
|
|
183
|
+
binary += String.fromCharCode(...u8.subarray(i, i + chunk));
|
|
184
|
+
}
|
|
185
|
+
return btoa(binary);
|
|
186
|
+
}
|
|
187
|
+
__name(base64Encode, "base64Encode");
|
|
188
|
+
function base64Decode(b64) {
|
|
189
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
190
|
+
return new Uint8Array(Buffer.from(b64, "base64"));
|
|
191
|
+
}
|
|
192
|
+
const binary = atob(b64);
|
|
193
|
+
const u8 = new Uint8Array(binary.length);
|
|
194
|
+
for (let i = 0; i < binary.length; i++) u8[i] = binary.charCodeAt(i);
|
|
195
|
+
return u8;
|
|
196
|
+
}
|
|
197
|
+
__name(base64Decode, "base64Decode");
|
|
198
|
+
var ArrayBufferToJsonZod = z2.instanceof(ArrayBuffer).transform((x) => {
|
|
199
|
+
const u8 = new Uint8Array(x);
|
|
200
|
+
return base64Encode(u8);
|
|
201
|
+
});
|
|
202
|
+
var JsonToArrayBufferZod = z2.string().transform((x) => {
|
|
203
|
+
const u8 = base64Decode(x);
|
|
204
|
+
return u8.buffer;
|
|
205
|
+
});
|
|
206
|
+
|
|
174
207
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
175
|
-
import {
|
|
176
|
-
import * as
|
|
208
|
+
import { asXL1BlockNumber } from "@xyo-network/xl1-protocol";
|
|
209
|
+
import * as z7 from "zod";
|
|
177
210
|
|
|
178
211
|
// src/types/schema/common/BoundWitness.ts
|
|
179
212
|
import { HashZod, HexZod } from "@xylabs/hex";
|
|
180
213
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
181
|
-
import * as
|
|
214
|
+
import * as z5 from "zod";
|
|
182
215
|
|
|
183
216
|
// src/types/schema/common/Payload.ts
|
|
184
217
|
import { HashToJsonZod } from "@xylabs/hex";
|
|
185
|
-
import * as
|
|
218
|
+
import * as z4 from "zod";
|
|
186
219
|
|
|
187
220
|
// src/types/schema/common/Sequence.ts
|
|
188
221
|
import { HexRegExMinMax, toHex } from "@xylabs/hex";
|
|
189
222
|
import { SequenceConstants } from "@xyo-network/payload-model";
|
|
190
|
-
import * as
|
|
223
|
+
import * as z3 from "zod";
|
|
191
224
|
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
192
|
-
var LocalSequenceToStringZod =
|
|
193
|
-
var LocalSequenceFromStringZod =
|
|
225
|
+
var LocalSequenceToStringZod = z3.string().regex(LocalSequenceRegex);
|
|
226
|
+
var LocalSequenceFromStringZod = z3.string().regex(LocalSequenceRegex).transform((v) => toHex(v));
|
|
194
227
|
var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
|
|
195
|
-
var QualifiedSequenceToStringZod =
|
|
196
|
-
var QualifiedSequenceFromStringZod =
|
|
197
|
-
var SequenceToStringZod =
|
|
228
|
+
var QualifiedSequenceToStringZod = z3.string().regex(QualifiedSequenceRegex);
|
|
229
|
+
var QualifiedSequenceFromStringZod = z3.string().regex(QualifiedSequenceRegex).transform((v) => toHex(v));
|
|
230
|
+
var SequenceToStringZod = z3.union([
|
|
198
231
|
LocalSequenceToStringZod,
|
|
199
232
|
QualifiedSequenceToStringZod
|
|
200
233
|
]);
|
|
201
|
-
var SequenceFromStringZod =
|
|
234
|
+
var SequenceFromStringZod = z3.union([
|
|
202
235
|
LocalSequenceFromStringZod,
|
|
203
236
|
QualifiedSequenceFromStringZod
|
|
204
237
|
]);
|
|
205
238
|
|
|
206
239
|
// src/types/schema/common/Payload.ts
|
|
207
|
-
var StorageMetaZod =
|
|
240
|
+
var StorageMetaZod = z4.object({
|
|
208
241
|
_hash: HashToJsonZod,
|
|
209
242
|
_dataHash: HashToJsonZod,
|
|
210
243
|
_sequence: SequenceToStringZod
|
|
211
244
|
});
|
|
212
|
-
var SchemaZod =
|
|
213
|
-
var PayloadZod =
|
|
245
|
+
var SchemaZod = z4.string();
|
|
246
|
+
var PayloadZod = z4.object({
|
|
214
247
|
schema: SchemaZod
|
|
215
|
-
}).catchall(
|
|
248
|
+
}).catchall(z4.any());
|
|
216
249
|
var PayloadWithStorageMetaZod = PayloadZod.extend(StorageMetaZod.shape);
|
|
217
|
-
var AnyPayloadZod = PayloadZod.catchall(
|
|
250
|
+
var AnyPayloadZod = PayloadZod.catchall(z4.json());
|
|
218
251
|
var AnyPayloadWithStorageMetaZod = AnyPayloadZod.extend(StorageMetaZod.shape);
|
|
219
252
|
function WithStorageMetaZod(valueZod) {
|
|
220
253
|
return StorageMetaZod.extend(valueZod.shape);
|
|
@@ -222,54 +255,57 @@ function WithStorageMetaZod(valueZod) {
|
|
|
222
255
|
__name(WithStorageMetaZod, "WithStorageMetaZod");
|
|
223
256
|
|
|
224
257
|
// src/types/schema/common/BoundWitness.ts
|
|
225
|
-
var BoundWitnessRequiredFieldsZod =
|
|
226
|
-
addresses:
|
|
227
|
-
payload_hashes:
|
|
228
|
-
payload_schemas:
|
|
229
|
-
previous_hashes:
|
|
258
|
+
var BoundWitnessRequiredFieldsZod = z5.object({
|
|
259
|
+
addresses: z5.array(AddressZod),
|
|
260
|
+
payload_hashes: z5.array(HashZod),
|
|
261
|
+
payload_schemas: z5.array(SchemaZod),
|
|
262
|
+
previous_hashes: z5.array(HashZod.nullable())
|
|
230
263
|
});
|
|
231
|
-
var BoundWitnessMetaZod =
|
|
264
|
+
var BoundWitnessMetaZod = z5.object({
|
|
232
265
|
$destination: AddressZod.optional(),
|
|
233
266
|
$sourceQuery: HashZod.optional(),
|
|
234
|
-
$signatures:
|
|
267
|
+
$signatures: z5.array(z5.union([
|
|
235
268
|
HexZod,
|
|
236
|
-
|
|
269
|
+
z5.null()
|
|
237
270
|
]))
|
|
238
271
|
});
|
|
239
272
|
var BoundWitnessZod = PayloadZod.extend({
|
|
240
|
-
schema:
|
|
273
|
+
schema: z5.literal(BoundWitnessSchema)
|
|
241
274
|
}).extend(BoundWitnessRequiredFieldsZod.shape).extend(BoundWitnessMetaZod.shape).refine((data) => data.$signatures.length === data.addresses.length, {
|
|
242
275
|
message: "$signatures length must equal addresses length"
|
|
243
276
|
});
|
|
244
|
-
var AnyBoundWitnessZod = BoundWitnessZod.catchall(
|
|
277
|
+
var AnyBoundWitnessZod = BoundWitnessZod.catchall(z5.any());
|
|
245
278
|
var UnsignedBoundWitnessZod = BoundWitnessZod.refine((data) => data.$signatures.includes(null), {
|
|
246
279
|
message: "all $signatures must be null"
|
|
247
280
|
});
|
|
248
|
-
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
249
|
-
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape);
|
|
281
|
+
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z5.any());
|
|
282
|
+
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(StorageMetaZod.shape);
|
|
250
283
|
var SignedBoundWitnessZod = BoundWitnessZod.refine((data) => !data.$signatures.includes(null), {
|
|
251
284
|
message: "all $signatures must not be null"
|
|
252
285
|
});
|
|
253
286
|
var SignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod;
|
|
254
|
-
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
255
|
-
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(
|
|
287
|
+
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z5.any());
|
|
288
|
+
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z5.any());
|
|
256
289
|
|
|
257
290
|
// src/types/schema/common/Chain.ts
|
|
258
291
|
import { AddressRegEx as AddressRegEx2, toAddress as toAddress2 } from "@xylabs/hex";
|
|
259
|
-
import * as
|
|
260
|
-
var ChainZod =
|
|
292
|
+
import * as z6 from "zod";
|
|
293
|
+
var ChainZod = z6.string().toLowerCase().regex(AddressRegEx2).transform((v) => toAddress2(v));
|
|
261
294
|
|
|
262
295
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
263
|
-
var BlockNumberZod =
|
|
264
|
-
var
|
|
265
|
-
|
|
296
|
+
var BlockNumberZod = z7.number().int().nonnegative();
|
|
297
|
+
var XL1BlockNumberZod = BlockNumberZod.transform(asXL1BlockNumber);
|
|
298
|
+
var HexZod2 = z7.string().regex(/^[0-9a-f]+$/);
|
|
299
|
+
var HashZod2 = HexZod2.transform((v) => v);
|
|
300
|
+
var BlockBoundWitnessFieldsZod = z7.object({
|
|
301
|
+
block: XL1BlockNumberZod,
|
|
266
302
|
chain: ChainZod,
|
|
267
|
-
previous:
|
|
268
|
-
protocol:
|
|
269
|
-
step_hashes:
|
|
303
|
+
previous: HashZod2.nullable(),
|
|
304
|
+
protocol: z7.number(),
|
|
305
|
+
step_hashes: z7.array(HashZod2).optional()
|
|
270
306
|
});
|
|
271
|
-
var BlockBoundWitnessMetaZod =
|
|
272
|
-
$epoch:
|
|
307
|
+
var BlockBoundWitnessMetaZod = z7.object({
|
|
308
|
+
$epoch: z7.number()
|
|
273
309
|
});
|
|
274
310
|
var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
275
311
|
var BlockBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
@@ -277,57 +313,57 @@ var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod.part
|
|
|
277
313
|
var SignedBlockBoundWitnessWithStorageMetaZod = SignedBoundWitnessWithStorageMetaZod.merge(StorageMetaZod.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
278
314
|
|
|
279
315
|
// src/types/schema/common/BlockRange.ts
|
|
280
|
-
import { z as
|
|
281
|
-
var BlockRangeZod =
|
|
282
|
-
|
|
283
|
-
|
|
316
|
+
import { z as z8 } from "zod";
|
|
317
|
+
var BlockRangeZod = z8.tuple([
|
|
318
|
+
z8.number().optional(),
|
|
319
|
+
z8.number().optional()
|
|
284
320
|
]);
|
|
285
321
|
|
|
286
322
|
// src/types/schema/common/HydratedBlock.ts
|
|
287
|
-
import * as
|
|
288
|
-
var HydratedBlockZod =
|
|
323
|
+
import * as z9 from "zod";
|
|
324
|
+
var HydratedBlockZod = z9.tuple([
|
|
289
325
|
BlockBoundWitnessZod,
|
|
290
|
-
|
|
326
|
+
z9.array(PayloadZod)
|
|
291
327
|
]);
|
|
292
|
-
var HydratedBlockWithStorageMetaZod =
|
|
328
|
+
var HydratedBlockWithStorageMetaZod = z9.tuple([
|
|
293
329
|
BlockBoundWitnessWithStorageMetaZod,
|
|
294
|
-
|
|
330
|
+
z9.array(PayloadWithStorageMetaZod)
|
|
295
331
|
]);
|
|
296
|
-
var SignedHydratedBlockZod =
|
|
332
|
+
var SignedHydratedBlockZod = z9.tuple([
|
|
297
333
|
SignedBlockBoundWitnessZod,
|
|
298
|
-
|
|
334
|
+
z9.array(PayloadZod)
|
|
299
335
|
]);
|
|
300
|
-
var SignedHydratedBlockToJsonZod =
|
|
336
|
+
var SignedHydratedBlockToJsonZod = z9.tuple([
|
|
301
337
|
SignedBlockBoundWitnessZod,
|
|
302
|
-
|
|
338
|
+
z9.array(PayloadZod)
|
|
303
339
|
]);
|
|
304
|
-
var SignedHydratedBlockWithStorageMetaZod =
|
|
340
|
+
var SignedHydratedBlockWithStorageMetaZod = z9.tuple([
|
|
305
341
|
SignedBlockBoundWitnessWithStorageMetaZod,
|
|
306
|
-
|
|
342
|
+
z9.array(PayloadWithStorageMetaZod)
|
|
307
343
|
]);
|
|
308
344
|
|
|
309
345
|
// src/types/schema/common/HydratedTransaction.ts
|
|
310
346
|
import { asAnyPayload } from "@xyo-network/payload-model";
|
|
311
347
|
import { asSignedHydratedTransaction } from "@xyo-network/xl1-protocol";
|
|
312
|
-
import * as
|
|
348
|
+
import * as z12 from "zod";
|
|
313
349
|
|
|
314
350
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
315
|
-
import * as
|
|
351
|
+
import * as z11 from "zod";
|
|
316
352
|
|
|
317
353
|
// src/types/schema/common/TransactionFees.ts
|
|
318
354
|
import { BigIntToJsonZod, HexZod as HexZod3, JsonToBigIntZod } from "@xylabs/hex";
|
|
319
355
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
320
|
-
import * as
|
|
321
|
-
var AttoZod =
|
|
356
|
+
import * as z10 from "zod";
|
|
357
|
+
var AttoZod = z10.bigint();
|
|
322
358
|
var JsonToAttoZod = JsonToBigIntZod.transform((v) => asAttoXL1(v));
|
|
323
359
|
var AttoToJsonZod = BigIntToJsonZod;
|
|
324
|
-
var TransactionFeesHexZod =
|
|
360
|
+
var TransactionFeesHexZod = z10.object({
|
|
325
361
|
base: HexZod3,
|
|
326
362
|
gasLimit: HexZod3,
|
|
327
363
|
gasPrice: HexZod3,
|
|
328
364
|
priority: HexZod3
|
|
329
365
|
});
|
|
330
|
-
var TransactionFeesBigIntZod =
|
|
366
|
+
var TransactionFeesBigIntZod = z10.object({
|
|
331
367
|
base: AttoZod,
|
|
332
368
|
gasLimit: AttoZod,
|
|
333
369
|
gasPrice: AttoZod,
|
|
@@ -347,23 +383,23 @@ var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) =>
|
|
|
347
383
|
}));
|
|
348
384
|
|
|
349
385
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
350
|
-
var BlockStartZod =
|
|
386
|
+
var BlockStartZod = z11.object({
|
|
351
387
|
nbf: BlockNumberZod
|
|
352
388
|
});
|
|
353
|
-
var BlockEndZod =
|
|
389
|
+
var BlockEndZod = z11.object({
|
|
354
390
|
exp: BlockNumberZod
|
|
355
391
|
});
|
|
356
|
-
var BlockDurationZod =
|
|
392
|
+
var BlockDurationZod = z11.object({
|
|
357
393
|
nbf: BlockNumberZod,
|
|
358
394
|
exp: BlockNumberZod
|
|
359
395
|
});
|
|
360
|
-
var BlockScriptsZod =
|
|
361
|
-
script:
|
|
396
|
+
var BlockScriptsZod = z11.object({
|
|
397
|
+
script: z11.array(z11.string()).optional()
|
|
362
398
|
});
|
|
363
|
-
var WithTransactionFeesZod =
|
|
399
|
+
var WithTransactionFeesZod = z11.object({
|
|
364
400
|
fees: TransactionFeesHexZod
|
|
365
401
|
});
|
|
366
|
-
var TransactionBoundWitnessFields =
|
|
402
|
+
var TransactionBoundWitnessFields = z11.object({
|
|
367
403
|
chain: ChainZod,
|
|
368
404
|
from: ChainZod
|
|
369
405
|
});
|
|
@@ -371,17 +407,17 @@ var TransactionBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod.pa
|
|
|
371
407
|
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod.partial());
|
|
372
408
|
|
|
373
409
|
// src/types/schema/common/HydratedTransaction.ts
|
|
374
|
-
var HydratedTransactionZod =
|
|
410
|
+
var HydratedTransactionZod = z12.tuple([
|
|
375
411
|
TransactionBoundWitnessZod,
|
|
376
|
-
|
|
412
|
+
z12.array(PayloadZod)
|
|
377
413
|
]);
|
|
378
|
-
var UnsignedHydratedTransactionZod =
|
|
414
|
+
var UnsignedHydratedTransactionZod = z12.tuple([
|
|
379
415
|
TransactionBoundWitnessZod,
|
|
380
|
-
|
|
416
|
+
z12.array(PayloadZod)
|
|
381
417
|
]);
|
|
382
|
-
var SignedHydratedTransactionZod =
|
|
418
|
+
var SignedHydratedTransactionZod = z12.tuple([
|
|
383
419
|
SignedTransactionBoundWitnessZod,
|
|
384
|
-
|
|
420
|
+
z12.array(PayloadZod)
|
|
385
421
|
]);
|
|
386
422
|
var SignedHydratedTransactionToJsonZod = SignedHydratedTransactionZod.transform(([tx, payloads]) => asSignedHydratedTransaction([
|
|
387
423
|
tx,
|
|
@@ -393,79 +429,79 @@ var JsonToSignedHydratedTransactionZod = SignedHydratedTransactionZod.transform(
|
|
|
393
429
|
]);
|
|
394
430
|
|
|
395
431
|
// src/types/schema/common/Json.ts
|
|
396
|
-
import * as
|
|
397
|
-
var JsonValueZod =
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
432
|
+
import * as z13 from "zod";
|
|
433
|
+
var JsonValueZod = z13.lazy(() => z13.union([
|
|
434
|
+
z13.string(),
|
|
435
|
+
z13.number(),
|
|
436
|
+
z13.boolean(),
|
|
437
|
+
z13.null(),
|
|
438
|
+
z13.array(JsonValueZod),
|
|
439
|
+
z13.record(z13.string(), JsonValueZod)
|
|
404
440
|
]));
|
|
405
|
-
var JsonObjectZod =
|
|
441
|
+
var JsonObjectZod = z13.record(z13.string(), JsonValueZod);
|
|
406
442
|
|
|
407
443
|
// src/types/schema/common/Permission.ts
|
|
408
|
-
import { z as
|
|
409
|
-
var CaveatTypesZod =
|
|
444
|
+
import { z as z14 } from "zod";
|
|
445
|
+
var CaveatTypesZod = z14.enum([
|
|
410
446
|
"chain",
|
|
411
447
|
"expiration",
|
|
412
448
|
"filteredResponse",
|
|
413
449
|
"rateLimit",
|
|
414
450
|
"restrictReturnedAccounts"
|
|
415
451
|
]);
|
|
416
|
-
var CaveatsZod =
|
|
452
|
+
var CaveatsZod = z14.object({
|
|
417
453
|
type: CaveatTypesZod,
|
|
418
|
-
value:
|
|
454
|
+
value: z14.json()
|
|
419
455
|
});
|
|
420
|
-
var PermissionZod =
|
|
421
|
-
parentCapability:
|
|
456
|
+
var PermissionZod = z14.object({
|
|
457
|
+
parentCapability: z14.string(),
|
|
422
458
|
caveats: CaveatsZod.array().optional(),
|
|
423
|
-
invoker:
|
|
459
|
+
invoker: z14.string()
|
|
424
460
|
});
|
|
425
461
|
var InvokerPermissionZod = PermissionZod.extend({
|
|
426
|
-
date:
|
|
462
|
+
date: z14.number().optional()
|
|
427
463
|
});
|
|
428
|
-
var PermissionRequestZod =
|
|
429
|
-
var RequestedPermissionZod =
|
|
430
|
-
parentCapability:
|
|
431
|
-
date:
|
|
464
|
+
var PermissionRequestZod = z14.record(z14.string(), z14.record(z14.string(), z14.any()));
|
|
465
|
+
var RequestedPermissionZod = z14.object({
|
|
466
|
+
parentCapability: z14.string(),
|
|
467
|
+
date: z14.number().optional()
|
|
432
468
|
});
|
|
433
469
|
|
|
434
470
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
435
|
-
import { z as
|
|
471
|
+
import { z as z16 } from "zod";
|
|
436
472
|
|
|
437
473
|
// src/types/schema/common/StepIdentity.ts
|
|
438
|
-
import * as
|
|
439
|
-
var StepIdentityZod =
|
|
440
|
-
block:
|
|
441
|
-
step:
|
|
474
|
+
import * as z15 from "zod";
|
|
475
|
+
var StepIdentityZod = z15.object({
|
|
476
|
+
block: z15.number(),
|
|
477
|
+
step: z15.number()
|
|
442
478
|
});
|
|
443
479
|
|
|
444
480
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
445
|
-
var RewardsRangeOptionsZod =
|
|
446
|
-
positions:
|
|
481
|
+
var RewardsRangeOptionsZod = z16.object({
|
|
482
|
+
positions: z16.array(z16.number()).optional(),
|
|
447
483
|
range: BlockRangeZod.optional(),
|
|
448
|
-
steps:
|
|
449
|
-
stakers:
|
|
484
|
+
steps: z16.array(StepIdentityZod).optional(),
|
|
485
|
+
stakers: z16.array(AddressZod).optional()
|
|
450
486
|
});
|
|
451
487
|
|
|
452
488
|
// src/types/schema/common/Stake.ts
|
|
453
489
|
import { HexZod as HexZod4 } from "@xylabs/hex";
|
|
454
|
-
import * as
|
|
455
|
-
var StakeZod =
|
|
490
|
+
import * as z17 from "zod";
|
|
491
|
+
var StakeZod = z17.object({
|
|
456
492
|
amount: AttoZod,
|
|
457
493
|
// the block number when the stake was added
|
|
458
|
-
addBlock:
|
|
494
|
+
addBlock: z17.number(),
|
|
459
495
|
// the unique id for the stake item
|
|
460
|
-
id:
|
|
496
|
+
id: z17.number(),
|
|
461
497
|
// the block number when the stake was removed (set to 0 if not removed)
|
|
462
|
-
removeBlock:
|
|
498
|
+
removeBlock: z17.number(),
|
|
463
499
|
// the address that is being staked
|
|
464
500
|
staked: AddressZod,
|
|
465
501
|
// the address that owns the stake
|
|
466
502
|
staker: AddressZod,
|
|
467
503
|
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
468
|
-
withdrawBlock:
|
|
504
|
+
withdrawBlock: z17.number()
|
|
469
505
|
});
|
|
470
506
|
var StakeToJsonZod = StakeZod.transform((val) => ({
|
|
471
507
|
addBlock: val.addBlock,
|
|
@@ -489,20 +525,23 @@ var JsonToStakeZod = StakeZod.extend({
|
|
|
489
525
|
}));
|
|
490
526
|
|
|
491
527
|
// src/types/schema/common/Transfer.ts
|
|
492
|
-
import {
|
|
493
|
-
import { PayloadZodStrictOfSchema } from "@xyo-network/payload-model";
|
|
528
|
+
import { HexZod as HexZod5 } from "@xylabs/hex";
|
|
529
|
+
import { PayloadZodStrictOfSchema, StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
|
|
494
530
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
495
|
-
import
|
|
496
|
-
var TransferFieldsZod =
|
|
497
|
-
|
|
531
|
+
import z18 from "zod";
|
|
532
|
+
var TransferFieldsZod = z18.object({
|
|
533
|
+
$opCodes: z18.array(z18.string()).optional(),
|
|
534
|
+
context: z18.object().optional(),
|
|
535
|
+
epoch: z18.number(),
|
|
498
536
|
from: AddressZod,
|
|
499
|
-
transfers:
|
|
537
|
+
transfers: z18.record(AddressZod, HexZod5)
|
|
500
538
|
});
|
|
501
539
|
var TransferZod = PayloadZodStrictOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
|
|
540
|
+
var TransferZodWithStorageMeta = TransferZod.extend(StorageMetaZod2.shape);
|
|
502
541
|
|
|
503
542
|
// src/types/schema/common/TransferPair.ts
|
|
504
|
-
import
|
|
505
|
-
var TransferPairZod =
|
|
543
|
+
import z19 from "zod";
|
|
544
|
+
var TransferPairZod = z19.tuple([
|
|
506
545
|
AddressZod,
|
|
507
546
|
AddressZod
|
|
508
547
|
]);
|
|
@@ -511,79 +550,79 @@ var TransferPairZod = z18.tuple([
|
|
|
511
550
|
var NetworkStakeViewerRpcSchemas = {
|
|
512
551
|
networkStakeViewer_active: {
|
|
513
552
|
params: {
|
|
514
|
-
from:
|
|
553
|
+
from: z20.tuple([
|
|
515
554
|
BlockNumberZod.optional()
|
|
516
555
|
]),
|
|
517
|
-
to:
|
|
556
|
+
to: z20.tuple([
|
|
518
557
|
BlockNumberZod.optional()
|
|
519
558
|
])
|
|
520
559
|
},
|
|
521
560
|
result: {
|
|
522
|
-
from:
|
|
561
|
+
from: z20.tuple([
|
|
523
562
|
JsonToBigIntZod2,
|
|
524
|
-
|
|
563
|
+
z20.number()
|
|
525
564
|
]),
|
|
526
|
-
to:
|
|
527
|
-
|
|
528
|
-
|
|
565
|
+
to: z20.tuple([
|
|
566
|
+
BigIntToJsonZod2,
|
|
567
|
+
z20.number()
|
|
529
568
|
])
|
|
530
569
|
}
|
|
531
570
|
}
|
|
532
571
|
};
|
|
533
572
|
|
|
534
573
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
535
|
-
import * as
|
|
574
|
+
import * as z21 from "zod";
|
|
536
575
|
var XyoPermissionsRpcSchemas = {
|
|
537
576
|
xyoPermissions_getPermissions: {
|
|
538
577
|
params: {
|
|
539
|
-
to:
|
|
540
|
-
from:
|
|
578
|
+
to: z21.array(z21.any()).length(0),
|
|
579
|
+
from: z21.array(z21.any()).length(0)
|
|
541
580
|
},
|
|
542
581
|
result: {
|
|
543
|
-
to:
|
|
544
|
-
from:
|
|
582
|
+
to: z21.array(InvokerPermissionZod),
|
|
583
|
+
from: z21.array(InvokerPermissionZod)
|
|
545
584
|
}
|
|
546
585
|
},
|
|
547
586
|
xyoPermissions_requestPermissions: {
|
|
548
587
|
params: {
|
|
549
|
-
to:
|
|
550
|
-
|
|
588
|
+
to: z21.tuple([
|
|
589
|
+
z21.array(PermissionRequestZod)
|
|
551
590
|
]),
|
|
552
|
-
from:
|
|
553
|
-
|
|
591
|
+
from: z21.tuple([
|
|
592
|
+
z21.array(PermissionRequestZod)
|
|
554
593
|
])
|
|
555
594
|
},
|
|
556
595
|
result: {
|
|
557
|
-
to:
|
|
558
|
-
from:
|
|
596
|
+
to: z21.array(RequestedPermissionZod),
|
|
597
|
+
from: z21.array(RequestedPermissionZod)
|
|
559
598
|
}
|
|
560
599
|
},
|
|
561
600
|
xyoPermissions_revokePermissions: {
|
|
562
601
|
params: {
|
|
563
|
-
to:
|
|
564
|
-
|
|
602
|
+
to: z21.tuple([
|
|
603
|
+
z21.array(PermissionRequestZod)
|
|
565
604
|
]),
|
|
566
|
-
from:
|
|
567
|
-
|
|
605
|
+
from: z21.tuple([
|
|
606
|
+
z21.array(PermissionRequestZod)
|
|
568
607
|
])
|
|
569
608
|
},
|
|
570
609
|
result: {
|
|
571
|
-
to:
|
|
572
|
-
from:
|
|
610
|
+
to: z21.array(RequestedPermissionZod),
|
|
611
|
+
from: z21.array(RequestedPermissionZod)
|
|
573
612
|
}
|
|
574
613
|
}
|
|
575
614
|
};
|
|
576
615
|
|
|
577
616
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
578
617
|
import { HashToJsonZod as HashToJsonZod2, JsonToHashZod } from "@xylabs/hex";
|
|
579
|
-
import * as
|
|
618
|
+
import * as z22 from "zod";
|
|
580
619
|
var XyoRunnerRpcSchemas = {
|
|
581
620
|
xyoRunner_broadcastTransaction: {
|
|
582
621
|
params: {
|
|
583
|
-
to:
|
|
622
|
+
to: z22.tuple([
|
|
584
623
|
SignedHydratedTransactionZod
|
|
585
624
|
]),
|
|
586
|
-
from:
|
|
625
|
+
from: z22.tuple([
|
|
587
626
|
SignedHydratedTransactionZod
|
|
588
627
|
])
|
|
589
628
|
},
|
|
@@ -596,12 +635,12 @@ var XyoRunnerRpcSchemas = {
|
|
|
596
635
|
|
|
597
636
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
598
637
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
599
|
-
import { z as
|
|
638
|
+
import { z as z23 } from "zod";
|
|
600
639
|
var XyoSignerRpcSchemas = {
|
|
601
640
|
xyoSigner_address: {
|
|
602
641
|
params: {
|
|
603
|
-
to:
|
|
604
|
-
from:
|
|
642
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
643
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
605
644
|
},
|
|
606
645
|
result: {
|
|
607
646
|
to: AddressZod,
|
|
@@ -610,10 +649,10 @@ var XyoSignerRpcSchemas = {
|
|
|
610
649
|
},
|
|
611
650
|
xyoSigner_signTransaction: {
|
|
612
651
|
params: {
|
|
613
|
-
to:
|
|
652
|
+
to: z23.tuple([
|
|
614
653
|
UnsignedHydratedTransactionZod
|
|
615
654
|
]),
|
|
616
|
-
from:
|
|
655
|
+
from: z23.tuple([
|
|
617
656
|
UnsignedHydratedTransactionZod
|
|
618
657
|
])
|
|
619
658
|
},
|
|
@@ -627,86 +666,70 @@ var XyoSignerRpcSchemas = {
|
|
|
627
666
|
};
|
|
628
667
|
|
|
629
668
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
630
|
-
import { BigIntToJsonZod as
|
|
631
|
-
import * as
|
|
669
|
+
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod3, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
670
|
+
import * as z24 from "zod";
|
|
632
671
|
var XyoViewerRpcSchemas = {
|
|
633
672
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
634
673
|
params: {
|
|
635
|
-
to:
|
|
636
|
-
|
|
637
|
-
AddressZod
|
|
638
|
-
])
|
|
674
|
+
to: z24.tuple([
|
|
675
|
+
AddressZod
|
|
639
676
|
]),
|
|
640
|
-
from:
|
|
641
|
-
|
|
642
|
-
AddressZod
|
|
643
|
-
])
|
|
677
|
+
from: z24.tuple([
|
|
678
|
+
AddressZod
|
|
644
679
|
])
|
|
645
680
|
},
|
|
646
681
|
result: {
|
|
647
|
-
to:
|
|
682
|
+
to: BigIntToJsonZod3,
|
|
648
683
|
from: JsonToBigIntZod3
|
|
649
684
|
}
|
|
650
685
|
},
|
|
651
686
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
652
687
|
params: {
|
|
653
|
-
to:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
AddressZod
|
|
657
|
-
])
|
|
688
|
+
to: z24.tuple([
|
|
689
|
+
StepIdentityZod,
|
|
690
|
+
AddressZod
|
|
658
691
|
]),
|
|
659
|
-
from:
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
AddressZod
|
|
663
|
-
])
|
|
692
|
+
from: z24.tuple([
|
|
693
|
+
StepIdentityZod,
|
|
694
|
+
AddressZod
|
|
664
695
|
])
|
|
665
696
|
},
|
|
666
697
|
result: {
|
|
667
|
-
to:
|
|
668
|
-
from:
|
|
698
|
+
to: z24.record(AddressZod, BigIntToJsonZod3),
|
|
699
|
+
from: z24.record(AddressZod, JsonToBigIntZod3)
|
|
669
700
|
}
|
|
670
701
|
},
|
|
671
702
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
672
703
|
params: {
|
|
673
|
-
to:
|
|
674
|
-
|
|
675
|
-
AddressZod
|
|
676
|
-
])
|
|
704
|
+
to: z24.tuple([
|
|
705
|
+
AddressZod
|
|
677
706
|
]),
|
|
678
|
-
from:
|
|
679
|
-
|
|
680
|
-
AddressZod
|
|
681
|
-
])
|
|
707
|
+
from: z24.tuple([
|
|
708
|
+
AddressZod
|
|
682
709
|
])
|
|
683
710
|
},
|
|
684
711
|
result: {
|
|
685
|
-
to:
|
|
686
|
-
from:
|
|
712
|
+
to: z24.record(AddressZod, BigIntToJsonZod3),
|
|
713
|
+
from: z24.record(AddressZod, JsonToBigIntZod3)
|
|
687
714
|
}
|
|
688
715
|
},
|
|
689
716
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
690
717
|
params: {
|
|
691
|
-
to:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
AddressZod
|
|
695
|
-
])
|
|
718
|
+
to: z24.tuple([
|
|
719
|
+
StepIdentityZod,
|
|
720
|
+
AddressZod
|
|
696
721
|
]),
|
|
697
|
-
from:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
AddressZod
|
|
701
|
-
])
|
|
722
|
+
from: z24.tuple([
|
|
723
|
+
StepIdentityZod,
|
|
724
|
+
AddressZod
|
|
702
725
|
])
|
|
703
726
|
},
|
|
704
727
|
result: {
|
|
705
|
-
to:
|
|
706
|
-
|
|
707
|
-
|
|
728
|
+
to: z24.tuple([
|
|
729
|
+
BigIntToJsonZod3,
|
|
730
|
+
BigIntToJsonZod3
|
|
708
731
|
]),
|
|
709
|
-
from:
|
|
732
|
+
from: z24.tuple([
|
|
710
733
|
JsonToBigIntZod3,
|
|
711
734
|
JsonToBigIntZod3
|
|
712
735
|
])
|
|
@@ -714,193 +737,153 @@ var XyoViewerRpcSchemas = {
|
|
|
714
737
|
},
|
|
715
738
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
716
739
|
params: {
|
|
717
|
-
to:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
AddressZod
|
|
721
|
-
])
|
|
740
|
+
to: z24.tuple([
|
|
741
|
+
StepIdentityZod,
|
|
742
|
+
AddressZod
|
|
722
743
|
]),
|
|
723
|
-
from:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
AddressZod
|
|
727
|
-
])
|
|
744
|
+
from: z24.tuple([
|
|
745
|
+
StepIdentityZod,
|
|
746
|
+
AddressZod
|
|
728
747
|
])
|
|
729
748
|
},
|
|
730
749
|
result: {
|
|
731
|
-
to:
|
|
750
|
+
to: BigIntToJsonZod3,
|
|
732
751
|
from: JsonToBigIntZod3
|
|
733
752
|
}
|
|
734
753
|
},
|
|
735
754
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
736
755
|
params: {
|
|
737
|
-
to:
|
|
738
|
-
|
|
739
|
-
AddressZod
|
|
740
|
-
])
|
|
756
|
+
to: z24.tuple([
|
|
757
|
+
AddressZod
|
|
741
758
|
]),
|
|
742
|
-
from:
|
|
743
|
-
|
|
744
|
-
AddressZod
|
|
745
|
-
])
|
|
759
|
+
from: z24.tuple([
|
|
760
|
+
AddressZod
|
|
746
761
|
])
|
|
747
762
|
},
|
|
748
763
|
result: {
|
|
749
|
-
to:
|
|
764
|
+
to: BigIntToJsonZod3,
|
|
750
765
|
from: JsonToBigIntZod3
|
|
751
766
|
}
|
|
752
767
|
},
|
|
753
768
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
754
769
|
params: {
|
|
755
|
-
to:
|
|
756
|
-
|
|
757
|
-
StepIdentityZod
|
|
758
|
-
])
|
|
770
|
+
to: z24.tuple([
|
|
771
|
+
StepIdentityZod
|
|
759
772
|
]),
|
|
760
|
-
from:
|
|
761
|
-
|
|
762
|
-
StepIdentityZod
|
|
763
|
-
])
|
|
773
|
+
from: z24.tuple([
|
|
774
|
+
StepIdentityZod
|
|
764
775
|
])
|
|
765
776
|
},
|
|
766
777
|
result: {
|
|
767
|
-
to:
|
|
768
|
-
from:
|
|
778
|
+
to: z24.record(AddressZod, BigIntToJsonZod3),
|
|
779
|
+
from: z24.record(AddressZod, JsonToBigIntZod3)
|
|
769
780
|
}
|
|
770
781
|
},
|
|
771
782
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
772
783
|
params: {
|
|
773
|
-
to:
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
z23.number()
|
|
777
|
-
])
|
|
784
|
+
to: z24.tuple([
|
|
785
|
+
StepIdentityZod,
|
|
786
|
+
z24.number()
|
|
778
787
|
]),
|
|
779
|
-
from:
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
z23.number()
|
|
783
|
-
])
|
|
788
|
+
from: z24.tuple([
|
|
789
|
+
StepIdentityZod,
|
|
790
|
+
z24.number()
|
|
784
791
|
])
|
|
785
792
|
},
|
|
786
793
|
result: {
|
|
787
|
-
to:
|
|
794
|
+
to: BigIntToJsonZod3,
|
|
788
795
|
from: JsonToBigIntZod3
|
|
789
796
|
}
|
|
790
797
|
},
|
|
791
798
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
792
799
|
params: {
|
|
793
|
-
to:
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
z23.number()
|
|
797
|
-
])
|
|
800
|
+
to: z24.tuple([
|
|
801
|
+
StepIdentityZod,
|
|
802
|
+
z24.number()
|
|
798
803
|
]),
|
|
799
|
-
from:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
z23.number()
|
|
803
|
-
])
|
|
804
|
+
from: z24.tuple([
|
|
805
|
+
StepIdentityZod,
|
|
806
|
+
z24.number()
|
|
804
807
|
])
|
|
805
808
|
},
|
|
806
809
|
result: {
|
|
807
|
-
to:
|
|
810
|
+
to: BigIntToJsonZod3,
|
|
808
811
|
from: JsonToBigIntZod3
|
|
809
812
|
}
|
|
810
813
|
},
|
|
811
814
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
812
815
|
params: {
|
|
813
|
-
to:
|
|
814
|
-
|
|
815
|
-
StepIdentityZod
|
|
816
|
-
])
|
|
816
|
+
to: z24.tuple([
|
|
817
|
+
StepIdentityZod
|
|
817
818
|
]),
|
|
818
|
-
from:
|
|
819
|
-
|
|
820
|
-
StepIdentityZod
|
|
821
|
-
])
|
|
819
|
+
from: z24.tuple([
|
|
820
|
+
StepIdentityZod
|
|
822
821
|
])
|
|
823
822
|
},
|
|
824
823
|
result: {
|
|
825
|
-
to:
|
|
824
|
+
to: BigIntToJsonZod3,
|
|
826
825
|
from: JsonToBigIntZod3
|
|
827
826
|
}
|
|
828
827
|
},
|
|
829
828
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
830
829
|
params: {
|
|
831
|
-
to:
|
|
832
|
-
|
|
833
|
-
StepIdentityZod
|
|
834
|
-
])
|
|
830
|
+
to: z24.tuple([
|
|
831
|
+
StepIdentityZod
|
|
835
832
|
]),
|
|
836
|
-
from:
|
|
837
|
-
|
|
838
|
-
StepIdentityZod
|
|
839
|
-
])
|
|
833
|
+
from: z24.tuple([
|
|
834
|
+
StepIdentityZod
|
|
840
835
|
])
|
|
841
836
|
},
|
|
842
837
|
result: {
|
|
843
|
-
to:
|
|
838
|
+
to: BigIntToJsonZod3,
|
|
844
839
|
from: JsonToBigIntZod3
|
|
845
840
|
}
|
|
846
841
|
},
|
|
847
842
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
848
843
|
params: {
|
|
849
|
-
to:
|
|
850
|
-
|
|
851
|
-
StepIdentityZod
|
|
852
|
-
])
|
|
844
|
+
to: z24.tuple([
|
|
845
|
+
StepIdentityZod
|
|
853
846
|
]),
|
|
854
|
-
from:
|
|
855
|
-
|
|
856
|
-
StepIdentityZod
|
|
857
|
-
])
|
|
847
|
+
from: z24.tuple([
|
|
848
|
+
StepIdentityZod
|
|
858
849
|
])
|
|
859
850
|
},
|
|
860
851
|
result: {
|
|
861
|
-
to:
|
|
862
|
-
from:
|
|
852
|
+
to: z24.number(),
|
|
853
|
+
from: z24.number()
|
|
863
854
|
}
|
|
864
855
|
},
|
|
865
856
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
866
857
|
params: {
|
|
867
|
-
to:
|
|
868
|
-
|
|
869
|
-
StepIdentityZod
|
|
870
|
-
])
|
|
858
|
+
to: z24.tuple([
|
|
859
|
+
StepIdentityZod
|
|
871
860
|
]),
|
|
872
|
-
from:
|
|
873
|
-
|
|
874
|
-
StepIdentityZod
|
|
875
|
-
])
|
|
861
|
+
from: z24.tuple([
|
|
862
|
+
StepIdentityZod
|
|
876
863
|
])
|
|
877
864
|
},
|
|
878
865
|
result: {
|
|
879
|
-
to:
|
|
880
|
-
from:
|
|
866
|
+
to: z24.record(AddressZod, BigIntToJsonZod3),
|
|
867
|
+
from: z24.record(AddressZod, JsonToBigIntZod3)
|
|
881
868
|
}
|
|
882
869
|
},
|
|
883
870
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
884
871
|
params: {
|
|
885
|
-
to:
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
z23.number()
|
|
889
|
-
])
|
|
872
|
+
to: z24.tuple([
|
|
873
|
+
StepIdentityZod,
|
|
874
|
+
z24.number()
|
|
890
875
|
]),
|
|
891
|
-
from:
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
z23.number()
|
|
895
|
-
])
|
|
876
|
+
from: z24.tuple([
|
|
877
|
+
StepIdentityZod,
|
|
878
|
+
z24.number()
|
|
896
879
|
])
|
|
897
880
|
},
|
|
898
881
|
result: {
|
|
899
|
-
to:
|
|
900
|
-
|
|
901
|
-
|
|
882
|
+
to: z24.tuple([
|
|
883
|
+
BigIntToJsonZod3,
|
|
884
|
+
BigIntToJsonZod3
|
|
902
885
|
]),
|
|
903
|
-
from:
|
|
886
|
+
from: z24.tuple([
|
|
904
887
|
JsonToBigIntZod3,
|
|
905
888
|
JsonToBigIntZod3
|
|
906
889
|
])
|
|
@@ -908,31 +891,27 @@ var XyoViewerRpcSchemas = {
|
|
|
908
891
|
},
|
|
909
892
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
910
893
|
params: {
|
|
911
|
-
to:
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
z23.number()
|
|
917
|
-
])
|
|
894
|
+
to: z24.tuple([
|
|
895
|
+
z24.number(),
|
|
896
|
+
z24.tuple([
|
|
897
|
+
z24.number(),
|
|
898
|
+
z24.number()
|
|
918
899
|
])
|
|
919
900
|
]),
|
|
920
|
-
from:
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
z23.number()
|
|
926
|
-
])
|
|
901
|
+
from: z24.tuple([
|
|
902
|
+
z24.number(),
|
|
903
|
+
z24.tuple([
|
|
904
|
+
z24.number(),
|
|
905
|
+
z24.number()
|
|
927
906
|
])
|
|
928
907
|
])
|
|
929
908
|
},
|
|
930
909
|
result: {
|
|
931
|
-
to:
|
|
932
|
-
|
|
933
|
-
|
|
910
|
+
to: z24.tuple([
|
|
911
|
+
BigIntToJsonZod3,
|
|
912
|
+
BigIntToJsonZod3
|
|
934
913
|
]),
|
|
935
|
-
from:
|
|
914
|
+
from: z24.tuple([
|
|
936
915
|
JsonToBigIntZod3,
|
|
937
916
|
JsonToBigIntZod3
|
|
938
917
|
])
|
|
@@ -940,81 +919,69 @@ var XyoViewerRpcSchemas = {
|
|
|
940
919
|
},
|
|
941
920
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
942
921
|
params: {
|
|
943
|
-
to:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
z23.number()
|
|
948
|
-
])
|
|
922
|
+
to: z24.tuple([
|
|
923
|
+
z24.tuple([
|
|
924
|
+
z24.number(),
|
|
925
|
+
z24.number()
|
|
949
926
|
])
|
|
950
927
|
]),
|
|
951
|
-
from:
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
z23.number()
|
|
956
|
-
])
|
|
928
|
+
from: z24.tuple([
|
|
929
|
+
z24.tuple([
|
|
930
|
+
z24.number(),
|
|
931
|
+
z24.number()
|
|
957
932
|
])
|
|
958
933
|
])
|
|
959
934
|
},
|
|
960
935
|
result: {
|
|
961
|
-
to:
|
|
936
|
+
to: BigIntToJsonZod3,
|
|
962
937
|
from: JsonToBigIntZod3
|
|
963
938
|
}
|
|
964
939
|
},
|
|
965
940
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
966
941
|
params: {
|
|
967
|
-
to:
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
z23.number()
|
|
973
|
-
])
|
|
942
|
+
to: z24.tuple([
|
|
943
|
+
z24.number(),
|
|
944
|
+
z24.tuple([
|
|
945
|
+
z24.number(),
|
|
946
|
+
z24.number()
|
|
974
947
|
])
|
|
975
948
|
]),
|
|
976
|
-
from:
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
z23.number()
|
|
982
|
-
])
|
|
949
|
+
from: z24.tuple([
|
|
950
|
+
z24.number(),
|
|
951
|
+
z24.tuple([
|
|
952
|
+
z24.number(),
|
|
953
|
+
z24.number()
|
|
983
954
|
])
|
|
984
955
|
])
|
|
985
956
|
},
|
|
986
957
|
result: {
|
|
987
|
-
to:
|
|
958
|
+
to: BigIntToJsonZod3,
|
|
988
959
|
from: JsonToBigIntZod3
|
|
989
960
|
}
|
|
990
961
|
},
|
|
991
962
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
992
963
|
params: {
|
|
993
|
-
to:
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
z23.number()
|
|
999
|
-
])
|
|
964
|
+
to: z24.tuple([
|
|
965
|
+
z24.number(),
|
|
966
|
+
z24.tuple([
|
|
967
|
+
z24.number(),
|
|
968
|
+
z24.number()
|
|
1000
969
|
])
|
|
1001
970
|
]),
|
|
1002
|
-
from:
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
z23.number()
|
|
1008
|
-
])
|
|
971
|
+
from: z24.tuple([
|
|
972
|
+
z24.number(),
|
|
973
|
+
z24.tuple([
|
|
974
|
+
z24.number(),
|
|
975
|
+
z24.number()
|
|
1009
976
|
])
|
|
1010
977
|
])
|
|
1011
978
|
},
|
|
1012
979
|
result: {
|
|
1013
|
-
to:
|
|
1014
|
-
|
|
1015
|
-
|
|
980
|
+
to: z24.record(z24.string(), z24.tuple([
|
|
981
|
+
BigIntToJsonZod3,
|
|
982
|
+
BigIntToJsonZod3
|
|
1016
983
|
])),
|
|
1017
|
-
from:
|
|
984
|
+
from: z24.record(z24.string(), z24.tuple([
|
|
1018
985
|
JsonToBigIntZod3,
|
|
1019
986
|
JsonToBigIntZod3
|
|
1020
987
|
]))
|
|
@@ -1022,142 +989,134 @@ var XyoViewerRpcSchemas = {
|
|
|
1022
989
|
},
|
|
1023
990
|
xyoViewer_accountBalance: {
|
|
1024
991
|
params: {
|
|
1025
|
-
to:
|
|
1026
|
-
|
|
1027
|
-
AddressZod
|
|
1028
|
-
])
|
|
992
|
+
to: z24.tuple([
|
|
993
|
+
AddressZod
|
|
1029
994
|
]),
|
|
1030
|
-
from:
|
|
1031
|
-
|
|
1032
|
-
AddressZod
|
|
1033
|
-
])
|
|
995
|
+
from: z24.tuple([
|
|
996
|
+
AddressZod
|
|
1034
997
|
])
|
|
1035
998
|
},
|
|
1036
999
|
result: {
|
|
1037
|
-
to:
|
|
1000
|
+
to: BigIntToJsonZod3,
|
|
1038
1001
|
from: JsonToBigIntZod3
|
|
1039
1002
|
}
|
|
1040
1003
|
},
|
|
1041
1004
|
xyoViewer_accountBalanceHistory: {
|
|
1042
1005
|
params: {
|
|
1043
|
-
to:
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
])
|
|
1006
|
+
to: z24.tuple([
|
|
1007
|
+
AddressZod,
|
|
1008
|
+
BlockRangeZod.optional()
|
|
1047
1009
|
]),
|
|
1048
|
-
from:
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
])
|
|
1010
|
+
from: z24.tuple([
|
|
1011
|
+
AddressZod,
|
|
1012
|
+
BlockRangeZod.optional()
|
|
1052
1013
|
])
|
|
1053
1014
|
},
|
|
1054
1015
|
result: {
|
|
1055
|
-
to:
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1016
|
+
to: z24.array(z24.tuple([
|
|
1017
|
+
BlockBoundWitnessZod,
|
|
1018
|
+
TransactionBoundWitnessZod.nullable(),
|
|
1019
|
+
TransferZodWithStorageMeta
|
|
1059
1020
|
])),
|
|
1060
|
-
from:
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1021
|
+
from: z24.array(z24.tuple([
|
|
1022
|
+
BlockBoundWitnessZod,
|
|
1023
|
+
TransactionBoundWitnessZod.nullable(),
|
|
1024
|
+
TransferZodWithStorageMeta
|
|
1064
1025
|
]))
|
|
1065
1026
|
}
|
|
1066
1027
|
},
|
|
1067
1028
|
xyoViewer_transferPairBalance: {
|
|
1068
1029
|
params: {
|
|
1069
|
-
to:
|
|
1070
|
-
|
|
1071
|
-
TransferPairZod
|
|
1072
|
-
])
|
|
1030
|
+
to: z24.tuple([
|
|
1031
|
+
TransferPairZod
|
|
1073
1032
|
]),
|
|
1074
|
-
from:
|
|
1075
|
-
|
|
1076
|
-
TransferPairZod
|
|
1077
|
-
])
|
|
1033
|
+
from: z24.tuple([
|
|
1034
|
+
TransferPairZod
|
|
1078
1035
|
])
|
|
1079
1036
|
},
|
|
1080
1037
|
result: {
|
|
1081
|
-
to:
|
|
1038
|
+
to: BigIntToJsonZod3,
|
|
1082
1039
|
from: JsonToBigIntZod3
|
|
1083
1040
|
}
|
|
1084
1041
|
},
|
|
1085
1042
|
xyoViewer_transferPairBalanceHistory: {
|
|
1086
1043
|
params: {
|
|
1087
|
-
to:
|
|
1088
|
-
|
|
1089
|
-
TransferPairZod
|
|
1090
|
-
])
|
|
1044
|
+
to: z24.tuple([
|
|
1045
|
+
TransferPairZod
|
|
1091
1046
|
]),
|
|
1092
|
-
from:
|
|
1093
|
-
|
|
1094
|
-
TransferPairZod
|
|
1095
|
-
])
|
|
1047
|
+
from: z24.tuple([
|
|
1048
|
+
TransferPairZod
|
|
1096
1049
|
])
|
|
1097
1050
|
},
|
|
1098
1051
|
result: {
|
|
1099
|
-
to:
|
|
1100
|
-
|
|
1101
|
-
|
|
1052
|
+
to: z24.array(z24.tuple([
|
|
1053
|
+
BlockBoundWitnessWithStorageMetaZod,
|
|
1054
|
+
z24.union([
|
|
1055
|
+
TransactionBoundWitnessZod,
|
|
1056
|
+
z24.null()
|
|
1057
|
+
]),
|
|
1102
1058
|
PayloadZod
|
|
1103
1059
|
])),
|
|
1104
|
-
from:
|
|
1105
|
-
|
|
1106
|
-
|
|
1060
|
+
from: z24.array(z24.tuple([
|
|
1061
|
+
BlockBoundWitnessWithStorageMetaZod,
|
|
1062
|
+
z24.union([
|
|
1063
|
+
TransactionBoundWitnessZod,
|
|
1064
|
+
z24.null()
|
|
1065
|
+
]),
|
|
1107
1066
|
PayloadZod
|
|
1108
1067
|
]))
|
|
1109
1068
|
}
|
|
1110
1069
|
},
|
|
1111
1070
|
xyoViewer_transferBalance: {
|
|
1112
1071
|
params: {
|
|
1113
|
-
to:
|
|
1114
|
-
|
|
1115
|
-
AddressZod
|
|
1116
|
-
])
|
|
1072
|
+
to: z24.tuple([
|
|
1073
|
+
AddressZod
|
|
1117
1074
|
]),
|
|
1118
|
-
from:
|
|
1119
|
-
|
|
1120
|
-
AddressZod
|
|
1121
|
-
])
|
|
1075
|
+
from: z24.tuple([
|
|
1076
|
+
AddressZod
|
|
1122
1077
|
])
|
|
1123
1078
|
},
|
|
1124
1079
|
result: {
|
|
1125
|
-
to:
|
|
1080
|
+
to: BigIntToJsonZod3,
|
|
1126
1081
|
from: JsonToBigIntZod3
|
|
1127
1082
|
}
|
|
1128
1083
|
},
|
|
1129
1084
|
xyoViewer_transferBalanceHistory: {
|
|
1130
1085
|
params: {
|
|
1131
|
-
to:
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
])
|
|
1086
|
+
to: z24.tuple([
|
|
1087
|
+
AddressZod,
|
|
1088
|
+
BlockRangeZod.optional()
|
|
1135
1089
|
]),
|
|
1136
|
-
from:
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
])
|
|
1090
|
+
from: z24.tuple([
|
|
1091
|
+
AddressZod,
|
|
1092
|
+
BlockRangeZod.optional()
|
|
1140
1093
|
])
|
|
1141
1094
|
},
|
|
1142
1095
|
result: {
|
|
1143
|
-
to:
|
|
1144
|
-
|
|
1145
|
-
|
|
1096
|
+
to: z24.array(z24.tuple([
|
|
1097
|
+
BlockBoundWitnessWithStorageMetaZod,
|
|
1098
|
+
z24.union([
|
|
1099
|
+
TransactionBoundWitnessZod,
|
|
1100
|
+
z24.null()
|
|
1101
|
+
]),
|
|
1146
1102
|
PayloadZod
|
|
1147
1103
|
])),
|
|
1148
|
-
from:
|
|
1149
|
-
|
|
1150
|
-
|
|
1104
|
+
from: z24.array(z24.tuple([
|
|
1105
|
+
BlockBoundWitnessWithStorageMetaZod,
|
|
1106
|
+
z24.union([
|
|
1107
|
+
TransactionBoundWitnessZod,
|
|
1108
|
+
z24.null()
|
|
1109
|
+
]),
|
|
1151
1110
|
PayloadZod
|
|
1152
1111
|
]))
|
|
1153
1112
|
}
|
|
1154
1113
|
},
|
|
1155
1114
|
xyoViewer_blockByHash: {
|
|
1156
1115
|
params: {
|
|
1157
|
-
to:
|
|
1116
|
+
to: z24.tuple([
|
|
1158
1117
|
HashToJsonZod3
|
|
1159
1118
|
]),
|
|
1160
|
-
from:
|
|
1119
|
+
from: z24.tuple([
|
|
1161
1120
|
JsonToHashZod2
|
|
1162
1121
|
])
|
|
1163
1122
|
},
|
|
@@ -1168,11 +1127,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1168
1127
|
},
|
|
1169
1128
|
xyoViewer_blockByNumber: {
|
|
1170
1129
|
params: {
|
|
1171
|
-
to:
|
|
1172
|
-
|
|
1130
|
+
to: z24.tuple([
|
|
1131
|
+
z24.number()
|
|
1173
1132
|
]),
|
|
1174
|
-
from:
|
|
1175
|
-
|
|
1133
|
+
from: z24.tuple([
|
|
1134
|
+
z24.number()
|
|
1176
1135
|
])
|
|
1177
1136
|
},
|
|
1178
1137
|
result: {
|
|
@@ -1182,24 +1141,24 @@ var XyoViewerRpcSchemas = {
|
|
|
1182
1141
|
},
|
|
1183
1142
|
xyoViewer_blocksByHash: {
|
|
1184
1143
|
params: {
|
|
1185
|
-
to:
|
|
1186
|
-
|
|
1187
|
-
|
|
1144
|
+
to: z24.tuple([
|
|
1145
|
+
HashZod3,
|
|
1146
|
+
z24.number().optional()
|
|
1188
1147
|
]),
|
|
1189
|
-
from:
|
|
1190
|
-
|
|
1191
|
-
|
|
1148
|
+
from: z24.tuple([
|
|
1149
|
+
HashZod3,
|
|
1150
|
+
z24.number().optional()
|
|
1192
1151
|
])
|
|
1193
1152
|
},
|
|
1194
1153
|
result: {
|
|
1195
|
-
to:
|
|
1196
|
-
from:
|
|
1154
|
+
to: z24.array(SignedHydratedBlockZod),
|
|
1155
|
+
from: z24.array(SignedHydratedBlockZod)
|
|
1197
1156
|
}
|
|
1198
1157
|
},
|
|
1199
1158
|
xyoViewer_chainId: {
|
|
1200
1159
|
params: {
|
|
1201
|
-
to:
|
|
1202
|
-
from:
|
|
1160
|
+
to: z24.array(z24.any()).length(0).optional(),
|
|
1161
|
+
from: z24.array(z24.any()).length(0).optional()
|
|
1203
1162
|
},
|
|
1204
1163
|
result: {
|
|
1205
1164
|
to: AddressZod,
|
|
@@ -1208,10 +1167,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1208
1167
|
},
|
|
1209
1168
|
xyoViewer_chainIdAtBlock: {
|
|
1210
1169
|
params: {
|
|
1211
|
-
to:
|
|
1170
|
+
to: z24.tuple([
|
|
1212
1171
|
BlockNumberZod
|
|
1213
1172
|
]),
|
|
1214
|
-
from:
|
|
1173
|
+
from: z24.tuple([
|
|
1215
1174
|
BlockNumberZod
|
|
1216
1175
|
])
|
|
1217
1176
|
},
|
|
@@ -1222,8 +1181,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1222
1181
|
},
|
|
1223
1182
|
xyoViewer_currentBlock: {
|
|
1224
1183
|
params: {
|
|
1225
|
-
to:
|
|
1226
|
-
from:
|
|
1184
|
+
to: z24.array(z24.any()).length(0).optional(),
|
|
1185
|
+
from: z24.array(z24.any()).length(0).optional()
|
|
1227
1186
|
},
|
|
1228
1187
|
result: {
|
|
1229
1188
|
to: SignedHydratedBlockZod,
|
|
@@ -1232,18 +1191,18 @@ var XyoViewerRpcSchemas = {
|
|
|
1232
1191
|
},
|
|
1233
1192
|
xyoViewer_currentBlockHash: {
|
|
1234
1193
|
params: {
|
|
1235
|
-
to:
|
|
1236
|
-
from:
|
|
1194
|
+
to: z24.array(z24.any()).length(0).optional(),
|
|
1195
|
+
from: z24.array(z24.any()).length(0).optional()
|
|
1237
1196
|
},
|
|
1238
1197
|
result: {
|
|
1239
|
-
to:
|
|
1240
|
-
from:
|
|
1198
|
+
to: HashZod3,
|
|
1199
|
+
from: HashZod3
|
|
1241
1200
|
}
|
|
1242
1201
|
},
|
|
1243
1202
|
xyoViewer_currentBlockNumber: {
|
|
1244
1203
|
params: {
|
|
1245
|
-
to:
|
|
1246
|
-
from:
|
|
1204
|
+
to: z24.array(z24.any()).length(0).optional(),
|
|
1205
|
+
from: z24.array(z24.any()).length(0).optional()
|
|
1247
1206
|
},
|
|
1248
1207
|
result: {
|
|
1249
1208
|
to: BlockNumberZod,
|
|
@@ -1252,23 +1211,23 @@ var XyoViewerRpcSchemas = {
|
|
|
1252
1211
|
},
|
|
1253
1212
|
xyoViewer_forkHistory: {
|
|
1254
1213
|
params: {
|
|
1255
|
-
to:
|
|
1256
|
-
from:
|
|
1214
|
+
to: z24.array(z24.any()).length(0).optional(),
|
|
1215
|
+
from: z24.array(z24.any()).length(0).optional()
|
|
1257
1216
|
},
|
|
1258
1217
|
result: {
|
|
1259
|
-
to:
|
|
1260
|
-
from:
|
|
1218
|
+
to: z24.record(z24.number(), AddressZod),
|
|
1219
|
+
from: z24.record(z24.number(), AddressZod)
|
|
1261
1220
|
}
|
|
1262
1221
|
},
|
|
1263
1222
|
xyoViewer_stakeByStaker: {
|
|
1264
1223
|
params: {
|
|
1265
|
-
to:
|
|
1224
|
+
to: z24.tuple([
|
|
1266
1225
|
AddressZod,
|
|
1267
|
-
|
|
1226
|
+
z24.number()
|
|
1268
1227
|
]),
|
|
1269
|
-
from:
|
|
1228
|
+
from: z24.tuple([
|
|
1270
1229
|
AddressZod,
|
|
1271
|
-
|
|
1230
|
+
z24.number()
|
|
1272
1231
|
])
|
|
1273
1232
|
},
|
|
1274
1233
|
result: {
|
|
@@ -1278,11 +1237,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1278
1237
|
},
|
|
1279
1238
|
xyoViewer_stakeById: {
|
|
1280
1239
|
params: {
|
|
1281
|
-
to:
|
|
1282
|
-
|
|
1240
|
+
to: z24.tuple([
|
|
1241
|
+
z24.number()
|
|
1283
1242
|
]),
|
|
1284
|
-
from:
|
|
1285
|
-
|
|
1243
|
+
from: z24.tuple([
|
|
1244
|
+
z24.number()
|
|
1286
1245
|
])
|
|
1287
1246
|
},
|
|
1288
1247
|
result: {
|
|
@@ -1292,55 +1251,55 @@ var XyoViewerRpcSchemas = {
|
|
|
1292
1251
|
},
|
|
1293
1252
|
xyoViewer_stakedByStaker: {
|
|
1294
1253
|
params: {
|
|
1295
|
-
to:
|
|
1254
|
+
to: z24.tuple([
|
|
1296
1255
|
AddressZod
|
|
1297
1256
|
]),
|
|
1298
|
-
from:
|
|
1257
|
+
from: z24.tuple([
|
|
1299
1258
|
AddressZod
|
|
1300
1259
|
])
|
|
1301
1260
|
},
|
|
1302
1261
|
result: {
|
|
1303
|
-
to:
|
|
1304
|
-
from:
|
|
1262
|
+
to: z24.array(AddressZod),
|
|
1263
|
+
from: z24.array(AddressZod)
|
|
1305
1264
|
}
|
|
1306
1265
|
},
|
|
1307
1266
|
xyoViewer_stakesByStaker: {
|
|
1308
1267
|
params: {
|
|
1309
|
-
to:
|
|
1268
|
+
to: z24.tuple([
|
|
1310
1269
|
AddressZod
|
|
1311
1270
|
]),
|
|
1312
|
-
from:
|
|
1271
|
+
from: z24.tuple([
|
|
1313
1272
|
AddressZod
|
|
1314
1273
|
])
|
|
1315
1274
|
},
|
|
1316
1275
|
result: {
|
|
1317
|
-
to:
|
|
1318
|
-
from:
|
|
1276
|
+
to: z24.array(StakeToJsonZod),
|
|
1277
|
+
from: z24.array(JsonToStakeZod)
|
|
1319
1278
|
}
|
|
1320
1279
|
},
|
|
1321
1280
|
xyoViewer_stakesByStaked: {
|
|
1322
1281
|
params: {
|
|
1323
|
-
to:
|
|
1282
|
+
to: z24.tuple([
|
|
1324
1283
|
AddressZod
|
|
1325
1284
|
]),
|
|
1326
|
-
from:
|
|
1285
|
+
from: z24.tuple([
|
|
1327
1286
|
AddressZod
|
|
1328
1287
|
])
|
|
1329
1288
|
},
|
|
1330
1289
|
result: {
|
|
1331
|
-
to:
|
|
1332
|
-
from:
|
|
1290
|
+
to: z24.array(StakeToJsonZod),
|
|
1291
|
+
from: z24.array(JsonToStakeZod)
|
|
1333
1292
|
}
|
|
1334
1293
|
},
|
|
1335
1294
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1336
1295
|
params: {
|
|
1337
|
-
to:
|
|
1338
|
-
|
|
1339
|
-
|
|
1296
|
+
to: z24.tuple([
|
|
1297
|
+
HashZod3,
|
|
1298
|
+
z24.number()
|
|
1340
1299
|
]),
|
|
1341
|
-
from:
|
|
1342
|
-
|
|
1343
|
-
|
|
1300
|
+
from: z24.tuple([
|
|
1301
|
+
HashZod3,
|
|
1302
|
+
z24.number()
|
|
1344
1303
|
])
|
|
1345
1304
|
},
|
|
1346
1305
|
result: {
|
|
@@ -1350,13 +1309,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1350
1309
|
},
|
|
1351
1310
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1352
1311
|
params: {
|
|
1353
|
-
to:
|
|
1354
|
-
|
|
1355
|
-
|
|
1312
|
+
to: z24.tuple([
|
|
1313
|
+
z24.number(),
|
|
1314
|
+
z24.number()
|
|
1356
1315
|
]),
|
|
1357
|
-
from:
|
|
1358
|
-
|
|
1359
|
-
|
|
1316
|
+
from: z24.tuple([
|
|
1317
|
+
z24.number(),
|
|
1318
|
+
z24.number()
|
|
1360
1319
|
])
|
|
1361
1320
|
},
|
|
1362
1321
|
result: {
|
|
@@ -1366,11 +1325,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1366
1325
|
},
|
|
1367
1326
|
xyoViewer_transactionByHash: {
|
|
1368
1327
|
params: {
|
|
1369
|
-
to:
|
|
1370
|
-
|
|
1328
|
+
to: z24.tuple([
|
|
1329
|
+
HashZod3
|
|
1371
1330
|
]),
|
|
1372
|
-
from:
|
|
1373
|
-
|
|
1331
|
+
from: z24.tuple([
|
|
1332
|
+
HashZod3
|
|
1374
1333
|
])
|
|
1375
1334
|
},
|
|
1376
1335
|
result: {
|
|
@@ -1390,330 +1349,390 @@ var AllRpcSchemas = {
|
|
|
1390
1349
|
};
|
|
1391
1350
|
|
|
1392
1351
|
// src/types/schema/createRequestSchema.ts
|
|
1393
|
-
import * as z24 from "zod";
|
|
1394
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z24.undefined()) => z24.object({
|
|
1395
|
-
id: z24.union([
|
|
1396
|
-
z24.string(),
|
|
1397
|
-
z24.number()
|
|
1398
|
-
]),
|
|
1399
|
-
jsonrpc: z24.literal(jsonrpc),
|
|
1400
|
-
method: z24.literal(methodName),
|
|
1401
|
-
params: paramsSchema
|
|
1402
|
-
}), "createRequestSchema");
|
|
1403
|
-
|
|
1404
|
-
// src/types/schema/createResponseSchema.ts
|
|
1405
1352
|
import * as z25 from "zod";
|
|
1406
|
-
var
|
|
1353
|
+
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z25.undefined()) => z25.object({
|
|
1407
1354
|
id: z25.union([
|
|
1408
1355
|
z25.string(),
|
|
1409
1356
|
z25.number()
|
|
1410
1357
|
]),
|
|
1411
1358
|
jsonrpc: z25.literal(jsonrpc),
|
|
1359
|
+
method: z25.literal(methodName),
|
|
1360
|
+
params: paramsSchema
|
|
1361
|
+
}), "createRequestSchema");
|
|
1362
|
+
|
|
1363
|
+
// src/types/schema/createResponseSchema.ts
|
|
1364
|
+
import * as z26 from "zod";
|
|
1365
|
+
var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z26.undefined()) => z26.object({
|
|
1366
|
+
id: z26.union([
|
|
1367
|
+
z26.string(),
|
|
1368
|
+
z26.number()
|
|
1369
|
+
]),
|
|
1370
|
+
jsonrpc: z26.literal(jsonrpc),
|
|
1412
1371
|
result: resultSchema
|
|
1413
1372
|
}), "createResponseSchema");
|
|
1414
1373
|
|
|
1374
|
+
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1375
|
+
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1376
|
+
import * as z27 from "zod";
|
|
1377
|
+
var DataLakeViewerRpcSchemas = {
|
|
1378
|
+
dataLakeViewer_get: {
|
|
1379
|
+
params: {
|
|
1380
|
+
to: z27.tuple([
|
|
1381
|
+
HashZod2
|
|
1382
|
+
]),
|
|
1383
|
+
from: z27.tuple([
|
|
1384
|
+
HashZod2
|
|
1385
|
+
])
|
|
1386
|
+
},
|
|
1387
|
+
result: {
|
|
1388
|
+
to: z27.union([
|
|
1389
|
+
PayloadZod2,
|
|
1390
|
+
ArrayBufferToJsonZod
|
|
1391
|
+
]).optional(),
|
|
1392
|
+
from: z27.union([
|
|
1393
|
+
PayloadZod2,
|
|
1394
|
+
JsonToArrayBufferZod
|
|
1395
|
+
]).optional()
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
dataLakeViewer_getMany: {
|
|
1399
|
+
params: {
|
|
1400
|
+
to: z27.tuple([
|
|
1401
|
+
z27.array(HashZod2)
|
|
1402
|
+
]),
|
|
1403
|
+
from: z27.tuple([
|
|
1404
|
+
z27.array(HashZod2)
|
|
1405
|
+
])
|
|
1406
|
+
},
|
|
1407
|
+
result: {
|
|
1408
|
+
to: z27.array(z27.union([
|
|
1409
|
+
PayloadZod2,
|
|
1410
|
+
ArrayBufferToJsonZod
|
|
1411
|
+
])),
|
|
1412
|
+
from: z27.array(z27.union([
|
|
1413
|
+
PayloadZod2,
|
|
1414
|
+
JsonToArrayBufferZod
|
|
1415
|
+
]))
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
dataLakeViewer_has: {
|
|
1419
|
+
params: {
|
|
1420
|
+
to: z27.tuple([
|
|
1421
|
+
HashZod2
|
|
1422
|
+
]),
|
|
1423
|
+
from: z27.tuple([
|
|
1424
|
+
HashZod2
|
|
1425
|
+
])
|
|
1426
|
+
},
|
|
1427
|
+
result: {
|
|
1428
|
+
to: z27.boolean(),
|
|
1429
|
+
from: z27.boolean()
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1415
1434
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1416
|
-
import { BigIntToJsonZod as
|
|
1435
|
+
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1417
1436
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1418
|
-
import
|
|
1437
|
+
import z28 from "zod";
|
|
1419
1438
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1420
1439
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1421
1440
|
params: {
|
|
1422
|
-
from:
|
|
1441
|
+
from: z28.tuple([
|
|
1423
1442
|
RewardsRangeOptionsZod.optional()
|
|
1424
1443
|
]),
|
|
1425
|
-
to:
|
|
1444
|
+
to: z28.tuple([
|
|
1426
1445
|
RewardsRangeOptionsZod.optional()
|
|
1427
1446
|
])
|
|
1428
1447
|
},
|
|
1429
1448
|
result: {
|
|
1430
|
-
from:
|
|
1431
|
-
to:
|
|
1449
|
+
from: z28.record(z28.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1450
|
+
to: z28.record(z28.number(), BigIntToJsonZod4)
|
|
1432
1451
|
}
|
|
1433
1452
|
},
|
|
1434
1453
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1435
1454
|
params: {
|
|
1436
|
-
from:
|
|
1455
|
+
from: z28.tuple([
|
|
1437
1456
|
RewardsRangeOptionsZod.optional()
|
|
1438
1457
|
]),
|
|
1439
|
-
to:
|
|
1458
|
+
to: z28.tuple([
|
|
1440
1459
|
RewardsRangeOptionsZod.optional()
|
|
1441
1460
|
])
|
|
1442
1461
|
},
|
|
1443
1462
|
result: {
|
|
1444
|
-
from:
|
|
1445
|
-
to:
|
|
1463
|
+
from: z28.record(z28.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1464
|
+
to: z28.record(z28.number(), JsonToBigIntZod4)
|
|
1446
1465
|
}
|
|
1447
1466
|
},
|
|
1448
1467
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1449
1468
|
params: {
|
|
1450
|
-
from:
|
|
1469
|
+
from: z28.tuple([
|
|
1451
1470
|
RewardsRangeOptionsZod.optional()
|
|
1452
1471
|
]),
|
|
1453
|
-
to:
|
|
1472
|
+
to: z28.tuple([
|
|
1454
1473
|
RewardsRangeOptionsZod.optional()
|
|
1455
1474
|
])
|
|
1456
1475
|
},
|
|
1457
1476
|
result: {
|
|
1458
|
-
from:
|
|
1459
|
-
to:
|
|
1477
|
+
from: z28.record(z28.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1478
|
+
to: z28.record(z28.number(), JsonToBigIntZod4)
|
|
1460
1479
|
}
|
|
1461
1480
|
},
|
|
1462
1481
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1463
1482
|
params: {
|
|
1464
|
-
from:
|
|
1483
|
+
from: z28.tuple([
|
|
1465
1484
|
RewardsRangeOptionsZod.optional()
|
|
1466
1485
|
]),
|
|
1467
|
-
to:
|
|
1486
|
+
to: z28.tuple([
|
|
1468
1487
|
RewardsRangeOptionsZod.optional()
|
|
1469
1488
|
])
|
|
1470
1489
|
},
|
|
1471
1490
|
result: {
|
|
1472
|
-
from:
|
|
1473
|
-
to:
|
|
1491
|
+
from: z28.record(z28.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1492
|
+
to: z28.record(z28.number(), JsonToBigIntZod4)
|
|
1474
1493
|
}
|
|
1475
1494
|
},
|
|
1476
1495
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1477
1496
|
params: {
|
|
1478
|
-
from:
|
|
1497
|
+
from: z28.tuple([
|
|
1479
1498
|
RewardsRangeOptionsZod.optional()
|
|
1480
1499
|
]),
|
|
1481
|
-
to:
|
|
1500
|
+
to: z28.tuple([
|
|
1482
1501
|
RewardsRangeOptionsZod.optional()
|
|
1483
1502
|
])
|
|
1484
1503
|
},
|
|
1485
1504
|
result: {
|
|
1486
|
-
from:
|
|
1487
|
-
to:
|
|
1505
|
+
from: z28.record(z28.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1506
|
+
to: z28.record(z28.number(), JsonToBigIntZod4)
|
|
1488
1507
|
}
|
|
1489
1508
|
}
|
|
1490
1509
|
};
|
|
1491
1510
|
|
|
1492
1511
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1493
|
-
import { BigIntToJsonZod as
|
|
1494
|
-
import
|
|
1512
|
+
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1513
|
+
import z29 from "zod";
|
|
1495
1514
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1496
1515
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1497
1516
|
params: {
|
|
1498
|
-
from:
|
|
1517
|
+
from: z29.tuple([
|
|
1499
1518
|
RewardsRangeOptionsZod.optional()
|
|
1500
1519
|
]),
|
|
1501
|
-
to:
|
|
1520
|
+
to: z29.tuple([
|
|
1502
1521
|
RewardsRangeOptionsZod.optional()
|
|
1503
1522
|
])
|
|
1504
1523
|
},
|
|
1505
1524
|
result: {
|
|
1506
|
-
from:
|
|
1507
|
-
to:
|
|
1525
|
+
from: z29.record(AddressZod, BigIntToJsonZod5),
|
|
1526
|
+
to: z29.record(AddressZod, JsonToBigIntZod5)
|
|
1508
1527
|
}
|
|
1509
1528
|
},
|
|
1510
1529
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1511
1530
|
params: {
|
|
1512
|
-
from:
|
|
1531
|
+
from: z29.tuple([
|
|
1513
1532
|
RewardsRangeOptionsZod.optional()
|
|
1514
1533
|
]),
|
|
1515
|
-
to:
|
|
1534
|
+
to: z29.tuple([
|
|
1516
1535
|
RewardsRangeOptionsZod.optional()
|
|
1517
1536
|
])
|
|
1518
1537
|
},
|
|
1519
1538
|
result: {
|
|
1520
|
-
from:
|
|
1521
|
-
to:
|
|
1539
|
+
from: z29.record(AddressZod, BigIntToJsonZod5),
|
|
1540
|
+
to: z29.record(AddressZod, JsonToBigIntZod5)
|
|
1522
1541
|
}
|
|
1523
1542
|
},
|
|
1524
1543
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1525
1544
|
params: {
|
|
1526
|
-
from:
|
|
1545
|
+
from: z29.tuple([
|
|
1527
1546
|
RewardsRangeOptionsZod.optional()
|
|
1528
1547
|
]),
|
|
1529
|
-
to:
|
|
1548
|
+
to: z29.tuple([
|
|
1530
1549
|
RewardsRangeOptionsZod.optional()
|
|
1531
1550
|
])
|
|
1532
1551
|
},
|
|
1533
1552
|
result: {
|
|
1534
|
-
from:
|
|
1535
|
-
to:
|
|
1553
|
+
from: z29.record(AddressZod, BigIntToJsonZod5),
|
|
1554
|
+
to: z29.record(AddressZod, JsonToBigIntZod5)
|
|
1536
1555
|
}
|
|
1537
1556
|
},
|
|
1538
1557
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1539
1558
|
params: {
|
|
1540
|
-
from:
|
|
1559
|
+
from: z29.tuple([
|
|
1541
1560
|
RewardsRangeOptionsZod.optional()
|
|
1542
1561
|
]),
|
|
1543
|
-
to:
|
|
1562
|
+
to: z29.tuple([
|
|
1544
1563
|
RewardsRangeOptionsZod.optional()
|
|
1545
1564
|
])
|
|
1546
1565
|
},
|
|
1547
1566
|
result: {
|
|
1548
|
-
from:
|
|
1549
|
-
to:
|
|
1567
|
+
from: z29.record(AddressZod, BigIntToJsonZod5),
|
|
1568
|
+
to: z29.record(AddressZod, JsonToBigIntZod5)
|
|
1550
1569
|
}
|
|
1551
1570
|
},
|
|
1552
1571
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1553
1572
|
params: {
|
|
1554
|
-
from:
|
|
1573
|
+
from: z29.tuple([
|
|
1555
1574
|
RewardsRangeOptionsZod.optional()
|
|
1556
1575
|
]),
|
|
1557
|
-
to:
|
|
1576
|
+
to: z29.tuple([
|
|
1558
1577
|
RewardsRangeOptionsZod.optional()
|
|
1559
1578
|
])
|
|
1560
1579
|
},
|
|
1561
1580
|
result: {
|
|
1562
|
-
from:
|
|
1563
|
-
to:
|
|
1581
|
+
from: z29.record(AddressZod, BigIntToJsonZod5),
|
|
1582
|
+
to: z29.record(AddressZod, JsonToBigIntZod5)
|
|
1564
1583
|
}
|
|
1565
1584
|
}
|
|
1566
1585
|
};
|
|
1567
1586
|
|
|
1568
1587
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1569
|
-
import { BigIntToJsonZod as
|
|
1570
|
-
import
|
|
1588
|
+
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1589
|
+
import z30 from "zod";
|
|
1571
1590
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1572
1591
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1573
1592
|
params: {
|
|
1574
|
-
from:
|
|
1593
|
+
from: z30.tuple([
|
|
1575
1594
|
RewardsRangeOptionsZod.optional()
|
|
1576
1595
|
]),
|
|
1577
|
-
to:
|
|
1596
|
+
to: z30.tuple([
|
|
1578
1597
|
RewardsRangeOptionsZod.optional()
|
|
1579
1598
|
])
|
|
1580
1599
|
},
|
|
1581
1600
|
result: {
|
|
1582
|
-
from:
|
|
1583
|
-
to:
|
|
1601
|
+
from: z30.record(AddressZod, BigIntToJsonZod6),
|
|
1602
|
+
to: z30.record(AddressZod, JsonToBigIntZod6)
|
|
1584
1603
|
}
|
|
1585
1604
|
},
|
|
1586
1605
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1587
1606
|
params: {
|
|
1588
|
-
from:
|
|
1607
|
+
from: z30.tuple([
|
|
1589
1608
|
RewardsRangeOptionsZod.optional()
|
|
1590
1609
|
]),
|
|
1591
|
-
to:
|
|
1610
|
+
to: z30.tuple([
|
|
1592
1611
|
RewardsRangeOptionsZod.optional()
|
|
1593
1612
|
])
|
|
1594
1613
|
},
|
|
1595
1614
|
result: {
|
|
1596
|
-
from:
|
|
1597
|
-
to:
|
|
1615
|
+
from: z30.record(AddressZod, BigIntToJsonZod6),
|
|
1616
|
+
to: z30.record(AddressZod, JsonToBigIntZod6)
|
|
1598
1617
|
}
|
|
1599
1618
|
},
|
|
1600
1619
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1601
1620
|
params: {
|
|
1602
|
-
from:
|
|
1621
|
+
from: z30.tuple([
|
|
1603
1622
|
RewardsRangeOptionsZod.optional()
|
|
1604
1623
|
]),
|
|
1605
|
-
to:
|
|
1624
|
+
to: z30.tuple([
|
|
1606
1625
|
RewardsRangeOptionsZod.optional()
|
|
1607
1626
|
])
|
|
1608
1627
|
},
|
|
1609
1628
|
result: {
|
|
1610
|
-
from:
|
|
1611
|
-
to:
|
|
1629
|
+
from: z30.record(AddressZod, BigIntToJsonZod6),
|
|
1630
|
+
to: z30.record(AddressZod, JsonToBigIntZod6)
|
|
1612
1631
|
}
|
|
1613
1632
|
},
|
|
1614
1633
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1615
1634
|
params: {
|
|
1616
|
-
from:
|
|
1635
|
+
from: z30.tuple([
|
|
1617
1636
|
RewardsRangeOptionsZod.optional()
|
|
1618
1637
|
]),
|
|
1619
|
-
to:
|
|
1638
|
+
to: z30.tuple([
|
|
1620
1639
|
RewardsRangeOptionsZod.optional()
|
|
1621
1640
|
])
|
|
1622
1641
|
},
|
|
1623
1642
|
result: {
|
|
1624
|
-
from:
|
|
1625
|
-
to:
|
|
1643
|
+
from: z30.record(AddressZod, BigIntToJsonZod6),
|
|
1644
|
+
to: z30.record(AddressZod, JsonToBigIntZod6)
|
|
1626
1645
|
}
|
|
1627
1646
|
},
|
|
1628
1647
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1629
1648
|
params: {
|
|
1630
|
-
from:
|
|
1649
|
+
from: z30.tuple([
|
|
1631
1650
|
RewardsRangeOptionsZod.optional()
|
|
1632
1651
|
]),
|
|
1633
|
-
to:
|
|
1652
|
+
to: z30.tuple([
|
|
1634
1653
|
RewardsRangeOptionsZod.optional()
|
|
1635
1654
|
])
|
|
1636
1655
|
},
|
|
1637
1656
|
result: {
|
|
1638
|
-
from:
|
|
1639
|
-
to:
|
|
1657
|
+
from: z30.record(AddressZod, BigIntToJsonZod6),
|
|
1658
|
+
to: z30.record(AddressZod, JsonToBigIntZod6)
|
|
1640
1659
|
}
|
|
1641
1660
|
}
|
|
1642
1661
|
};
|
|
1643
1662
|
|
|
1644
1663
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1645
|
-
import { BigIntToJsonZod as
|
|
1664
|
+
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1646
1665
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1647
|
-
import * as
|
|
1666
|
+
import * as z31 from "zod";
|
|
1648
1667
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1649
1668
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1650
1669
|
params: {
|
|
1651
|
-
from:
|
|
1670
|
+
from: z31.tuple([
|
|
1652
1671
|
RewardsRangeOptionsZod.optional()
|
|
1653
1672
|
]),
|
|
1654
|
-
to:
|
|
1673
|
+
to: z31.tuple([
|
|
1655
1674
|
RewardsRangeOptionsZod.optional()
|
|
1656
1675
|
])
|
|
1657
1676
|
},
|
|
1658
1677
|
result: {
|
|
1659
1678
|
from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
|
|
1660
|
-
to:
|
|
1679
|
+
to: BigIntToJsonZod7
|
|
1661
1680
|
}
|
|
1662
1681
|
},
|
|
1663
1682
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1664
1683
|
params: {
|
|
1665
|
-
from:
|
|
1684
|
+
from: z31.tuple([
|
|
1666
1685
|
RewardsRangeOptionsZod.optional()
|
|
1667
1686
|
]),
|
|
1668
|
-
to:
|
|
1687
|
+
to: z31.tuple([
|
|
1669
1688
|
RewardsRangeOptionsZod.optional()
|
|
1670
1689
|
])
|
|
1671
1690
|
},
|
|
1672
1691
|
result: {
|
|
1673
1692
|
from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
|
|
1674
|
-
to:
|
|
1693
|
+
to: BigIntToJsonZod7
|
|
1675
1694
|
}
|
|
1676
1695
|
},
|
|
1677
1696
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1678
1697
|
params: {
|
|
1679
|
-
from:
|
|
1698
|
+
from: z31.tuple([
|
|
1680
1699
|
RewardsRangeOptionsZod.optional()
|
|
1681
1700
|
]),
|
|
1682
|
-
to:
|
|
1701
|
+
to: z31.tuple([
|
|
1683
1702
|
RewardsRangeOptionsZod.optional()
|
|
1684
1703
|
])
|
|
1685
1704
|
},
|
|
1686
1705
|
result: {
|
|
1687
1706
|
from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
|
|
1688
|
-
to:
|
|
1707
|
+
to: BigIntToJsonZod7
|
|
1689
1708
|
}
|
|
1690
1709
|
},
|
|
1691
1710
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1692
1711
|
params: {
|
|
1693
|
-
from:
|
|
1712
|
+
from: z31.tuple([
|
|
1694
1713
|
RewardsRangeOptionsZod.optional()
|
|
1695
1714
|
]),
|
|
1696
|
-
to:
|
|
1715
|
+
to: z31.tuple([
|
|
1697
1716
|
RewardsRangeOptionsZod.optional()
|
|
1698
1717
|
])
|
|
1699
1718
|
},
|
|
1700
1719
|
result: {
|
|
1701
1720
|
from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
|
|
1702
|
-
to:
|
|
1721
|
+
to: BigIntToJsonZod7
|
|
1703
1722
|
}
|
|
1704
1723
|
},
|
|
1705
1724
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1706
1725
|
params: {
|
|
1707
|
-
from:
|
|
1726
|
+
from: z31.tuple([
|
|
1708
1727
|
RewardsRangeOptionsZod.optional()
|
|
1709
1728
|
]),
|
|
1710
|
-
to:
|
|
1729
|
+
to: z31.tuple([
|
|
1711
1730
|
RewardsRangeOptionsZod.optional()
|
|
1712
1731
|
])
|
|
1713
1732
|
},
|
|
1714
1733
|
result: {
|
|
1715
1734
|
from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
|
|
1716
|
-
to:
|
|
1735
|
+
to: BigIntToJsonZod7
|
|
1717
1736
|
}
|
|
1718
1737
|
}
|
|
1719
1738
|
};
|
|
@@ -1768,10 +1787,6 @@ var MemoryXyoClient = class {
|
|
|
1768
1787
|
}
|
|
1769
1788
|
};
|
|
1770
1789
|
|
|
1771
|
-
// src/provider/connection/HttpRpcXyoConnection.ts
|
|
1772
|
-
import { isString as isString2 } from "@xylabs/typeof";
|
|
1773
|
-
import { isDataLakeProvider } from "@xyo-network/xl1-protocol";
|
|
1774
|
-
|
|
1775
1790
|
// src/transport/HttpRpcTransport.ts
|
|
1776
1791
|
import { AxiosJson } from "@xylabs/axios";
|
|
1777
1792
|
import { isError, isUndefinedOrNull } from "@xylabs/typeof";
|
|
@@ -1858,194 +1873,6 @@ var MemoryRpcTransport = class {
|
|
|
1858
1873
|
}
|
|
1859
1874
|
};
|
|
1860
1875
|
|
|
1861
|
-
// src/provider/datalake/AbstractXyoDataLake.ts
|
|
1862
|
-
import { ObjectHasher } from "@xyo-network/hash";
|
|
1863
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
1864
|
-
import { isAnyPayload } from "@xyo-network/payload-model";
|
|
1865
|
-
import { isHashPayload } from "@xyo-network/xl1-protocol";
|
|
1866
|
-
var AbstractXyoDataLake = class {
|
|
1867
|
-
static {
|
|
1868
|
-
__name(this, "AbstractXyoDataLake");
|
|
1869
|
-
}
|
|
1870
|
-
async fetch(hashes, maxDepth = 10) {
|
|
1871
|
-
const results = await this.get(hashes);
|
|
1872
|
-
if (maxDepth > 0) {
|
|
1873
|
-
const hashPayloads = results.filter(isHashPayload);
|
|
1874
|
-
const otherPayloads = results.filter((item) => !isHashPayload(item));
|
|
1875
|
-
const found = await this.fetch(hashPayloads.map((item) => item.hash), maxDepth - 1);
|
|
1876
|
-
const foundHashes = await Promise.all(found.map(async (item) => isAnyPayload(item) ? await PayloadBuilder.hash(item) : ObjectHasher.hashBytes(item)));
|
|
1877
|
-
const notFound = hashPayloads.filter((item) => !foundHashes.includes(item.hash));
|
|
1878
|
-
return [
|
|
1879
|
-
...otherPayloads,
|
|
1880
|
-
...found,
|
|
1881
|
-
...notFound
|
|
1882
|
-
];
|
|
1883
|
-
}
|
|
1884
|
-
return results;
|
|
1885
|
-
}
|
|
1886
|
-
async trace(hash) {
|
|
1887
|
-
const [result] = await this.get([
|
|
1888
|
-
hash
|
|
1889
|
-
]);
|
|
1890
|
-
if (isHashPayload(result)) {
|
|
1891
|
-
const [payload, route] = await this.trace(result.hash);
|
|
1892
|
-
return [
|
|
1893
|
-
payload,
|
|
1894
|
-
[
|
|
1895
|
-
result,
|
|
1896
|
-
...route
|
|
1897
|
-
]
|
|
1898
|
-
];
|
|
1899
|
-
}
|
|
1900
|
-
return [
|
|
1901
|
-
result,
|
|
1902
|
-
[]
|
|
1903
|
-
];
|
|
1904
|
-
}
|
|
1905
|
-
};
|
|
1906
|
-
|
|
1907
|
-
// src/provider/datalake/ArchivistXyoDataLake.ts
|
|
1908
|
-
import { assertEx as assertEx2 } from "@xylabs/assert";
|
|
1909
|
-
import { isAnyPayload as isAnyPayload2 } from "@xyo-network/payload-model";
|
|
1910
|
-
var ArchivistXyoDataLake = class extends AbstractXyoDataLake {
|
|
1911
|
-
static {
|
|
1912
|
-
__name(this, "ArchivistXyoDataLake");
|
|
1913
|
-
}
|
|
1914
|
-
_archivist;
|
|
1915
|
-
constructor(archivist) {
|
|
1916
|
-
super();
|
|
1917
|
-
this._archivist = archivist;
|
|
1918
|
-
}
|
|
1919
|
-
async add(items) {
|
|
1920
|
-
const payloads = items.filter(isAnyPayload2);
|
|
1921
|
-
assertEx2(payloads.length === items.length, () => "Some items are not payloads");
|
|
1922
|
-
return await this._archivist.insert(payloads);
|
|
1923
|
-
}
|
|
1924
|
-
async get(hashes) {
|
|
1925
|
-
return await this._archivist.get(hashes);
|
|
1926
|
-
}
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
// src/provider/datalake/HttpXyoDataLake.ts
|
|
1930
|
-
import { isArrayBuffer } from "@xylabs/arraybuffer";
|
|
1931
|
-
import { assertEx as assertEx3 } from "@xylabs/assert";
|
|
1932
|
-
import { AxiosJson as AxiosJson2 } from "@xylabs/axios";
|
|
1933
|
-
import { exists } from "@xylabs/exists";
|
|
1934
|
-
import { isDefined } from "@xylabs/typeof";
|
|
1935
|
-
import { isAnyPayload as isAnyPayload3 } from "@xyo-network/payload-model";
|
|
1936
|
-
import { isHashPayload as isHashPayload2 } from "@xyo-network/xl1-protocol";
|
|
1937
|
-
import { Axios } from "axios";
|
|
1938
|
-
var HttpXyoDataLake = class extends AbstractXyoDataLake {
|
|
1939
|
-
static {
|
|
1940
|
-
__name(this, "HttpXyoDataLake");
|
|
1941
|
-
}
|
|
1942
|
-
_axiosGet;
|
|
1943
|
-
_axiosInsertBlob;
|
|
1944
|
-
_axiosInsertJson;
|
|
1945
|
-
_endpoint;
|
|
1946
|
-
constructor(endpoint) {
|
|
1947
|
-
super();
|
|
1948
|
-
this._endpoint = endpoint;
|
|
1949
|
-
this._axiosInsertJson = new AxiosJson2({
|
|
1950
|
-
baseURL: endpoint
|
|
1951
|
-
});
|
|
1952
|
-
this._axiosInsertBlob = new Axios({
|
|
1953
|
-
baseURL: endpoint,
|
|
1954
|
-
headers: {
|
|
1955
|
-
"Content-Type": "application/octet-stream",
|
|
1956
|
-
"Accept": "application/octet-stream"
|
|
1957
|
-
}
|
|
1958
|
-
});
|
|
1959
|
-
this._axiosGet = new Axios({
|
|
1960
|
-
baseURL: endpoint,
|
|
1961
|
-
headers: {
|
|
1962
|
-
"Content-Type": "application/json",
|
|
1963
|
-
"Accept": "application/octet-stream, application/json"
|
|
1964
|
-
}
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
get endpoint() {
|
|
1968
|
-
return this._endpoint;
|
|
1969
|
-
}
|
|
1970
|
-
async add(items) {
|
|
1971
|
-
const results = [];
|
|
1972
|
-
for (const item of items) {
|
|
1973
|
-
if (isAnyPayload3(item)) {
|
|
1974
|
-
const result = await this.addPayload(item);
|
|
1975
|
-
if (isAnyPayload3(result)) {
|
|
1976
|
-
results.push(result);
|
|
1977
|
-
} else if (isDefined(result)) {
|
|
1978
|
-
assertEx3(false, () => "Expected result to be a Payload");
|
|
1979
|
-
}
|
|
1980
|
-
} else if (isArrayBuffer(item)) {
|
|
1981
|
-
const result = await this.addArrayBuffer(item);
|
|
1982
|
-
if (isAnyPayload3(result)) {
|
|
1983
|
-
results.push(result);
|
|
1984
|
-
} else if (isDefined(result)) {
|
|
1985
|
-
assertEx3(false, () => "Expected result to be a Payload");
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
return results;
|
|
1990
|
-
}
|
|
1991
|
-
async get(hashes) {
|
|
1992
|
-
return (await Promise.all(hashes.map(async (hash) => {
|
|
1993
|
-
return await this.getOne(hash);
|
|
1994
|
-
}))).filter(exists);
|
|
1995
|
-
}
|
|
1996
|
-
async addArrayBuffer(item) {
|
|
1997
|
-
const result = await this._axiosInsertBlob.post("/insert", item);
|
|
1998
|
-
if (result.status < 200 || result.status >= 300) {
|
|
1999
|
-
throw new Error(`Failed to add items [${result.status}]: ${result.statusText}`);
|
|
2000
|
-
}
|
|
2001
|
-
if (!isArrayBuffer(result.data)) {
|
|
2002
|
-
throw new Error("Invalid response from server (expected a ArrayBuffer)");
|
|
2003
|
-
}
|
|
2004
|
-
return result.data;
|
|
2005
|
-
}
|
|
2006
|
-
async addPayload(item) {
|
|
2007
|
-
const result = await this._axiosInsertJson.post("/insert", item);
|
|
2008
|
-
if (result.status < 200 || result.status >= 300) {
|
|
2009
|
-
throw new Error(`Failed to add items [${result.status}]: ${result.statusText}`);
|
|
2010
|
-
}
|
|
2011
|
-
if (!Array.isArray(result.data) || result.data.length !== 1) {
|
|
2012
|
-
throw new Error("Invalid response from server (expected an Array of Payloads)");
|
|
2013
|
-
}
|
|
2014
|
-
const [response] = result.data;
|
|
2015
|
-
if (!isAnyPayload3(response)) {
|
|
2016
|
-
throw new Error("Invalid response from server (expected a Payload)");
|
|
2017
|
-
}
|
|
2018
|
-
return response;
|
|
2019
|
-
}
|
|
2020
|
-
async fetchOne(hash, maxDepth = Number.MAX_SAFE_INTEGER) {
|
|
2021
|
-
if (maxDepth <= 0) {
|
|
2022
|
-
return void 0;
|
|
2023
|
-
}
|
|
2024
|
-
const result = await this.getOne(hash);
|
|
2025
|
-
if (isHashPayload2(result)) {
|
|
2026
|
-
return await this.fetchOne(result.hash, maxDepth - 1);
|
|
2027
|
-
}
|
|
2028
|
-
return result;
|
|
2029
|
-
}
|
|
2030
|
-
getOne(hash) {
|
|
2031
|
-
return this._axiosGet.get(`/get/${hash}`).then((response) => {
|
|
2032
|
-
if (response.status < 200 || response.status >= 300) {
|
|
2033
|
-
throw new Error(`Failed to get item [${response.status}]: ${response.statusText}`);
|
|
2034
|
-
}
|
|
2035
|
-
const contentType = response.headers["content-type"];
|
|
2036
|
-
if (contentType && contentType.includes("application/json")) {
|
|
2037
|
-
const parsed = JSON.parse(response.data);
|
|
2038
|
-
if (!isAnyPayload3(parsed)) {
|
|
2039
|
-
throw new Error("Invalid response from server (expected a Payload)");
|
|
2040
|
-
}
|
|
2041
|
-
return parsed;
|
|
2042
|
-
} else {
|
|
2043
|
-
throw new Error(`Unexpected content type: ${contentType}`);
|
|
2044
|
-
}
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
};
|
|
2048
|
-
|
|
2049
1876
|
// src/provider/runner/JsonRpcXyoRunner.ts
|
|
2050
1877
|
var JsonRpcXyoRunner = class {
|
|
2051
1878
|
static {
|
|
@@ -2064,7 +1891,7 @@ var JsonRpcXyoRunner = class {
|
|
|
2064
1891
|
|
|
2065
1892
|
// src/provider/runner/MemoryXyoRunner.ts
|
|
2066
1893
|
import { MemoryArchivist } from "@xyo-network/archivist-memory";
|
|
2067
|
-
import { PayloadBuilder
|
|
1894
|
+
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
2068
1895
|
import { flattenHydratedTransaction } from "@xyo-network/xl1-protocol-sdk";
|
|
2069
1896
|
var MemoryXyoRunner = class {
|
|
2070
1897
|
static {
|
|
@@ -2074,7 +1901,7 @@ var MemoryXyoRunner = class {
|
|
|
2074
1901
|
async broadcastTransaction(transaction) {
|
|
2075
1902
|
const archivist = await this.getArchivist();
|
|
2076
1903
|
await archivist.insert(flattenHydratedTransaction(transaction));
|
|
2077
|
-
return await
|
|
1904
|
+
return await PayloadBuilder.hash(transaction[0]);
|
|
2078
1905
|
}
|
|
2079
1906
|
async getArchivist() {
|
|
2080
1907
|
if (!this._archivist) {
|
|
@@ -2087,9 +1914,9 @@ var MemoryXyoRunner = class {
|
|
|
2087
1914
|
};
|
|
2088
1915
|
|
|
2089
1916
|
// src/provider/runner/NodeXyoRunner.ts
|
|
2090
|
-
import { assertEx as
|
|
1917
|
+
import { assertEx as assertEx2 } from "@xylabs/assert";
|
|
2091
1918
|
import { asArchivistInstance } from "@xyo-network/archivist-model";
|
|
2092
|
-
import { PayloadBuilder as
|
|
1919
|
+
import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/payload-builder";
|
|
2093
1920
|
import { PayloadBundleSchema } from "@xyo-network/payload-model";
|
|
2094
1921
|
import { flattenHydratedTransaction as flattenHydratedTransaction2 } from "@xyo-network/xl1-protocol-sdk";
|
|
2095
1922
|
var NodeXyoRunner = class {
|
|
@@ -2106,7 +1933,7 @@ var NodeXyoRunner = class {
|
|
|
2106
1933
|
async broadcastTransaction(transaction) {
|
|
2107
1934
|
const flattened = flattenHydratedTransaction2(transaction);
|
|
2108
1935
|
const pendingArchivist = await this.getPendingArchivist();
|
|
2109
|
-
const txHash = await
|
|
1936
|
+
const txHash = await PayloadBuilder2.hash(transaction[0]);
|
|
2110
1937
|
const payloadBundle = {
|
|
2111
1938
|
schema: PayloadBundleSchema,
|
|
2112
1939
|
payloads: flattened,
|
|
@@ -2119,12 +1946,12 @@ var NodeXyoRunner = class {
|
|
|
2119
1946
|
}
|
|
2120
1947
|
getArchivist = /* @__PURE__ */ __name(async (identifier) => {
|
|
2121
1948
|
const archivist = await this.node.resolve(identifier);
|
|
2122
|
-
return
|
|
1949
|
+
return assertEx2(asArchivistInstance(archivist), () => `Error: Could not resolve ${identifier} to an archivist instance`);
|
|
2123
1950
|
}, "getArchivist");
|
|
2124
1951
|
getPendingArchivist = /* @__PURE__ */ __name(async () => {
|
|
2125
1952
|
if (this._pendingArchivist) return this._pendingArchivist;
|
|
2126
1953
|
this._pendingArchivist = await this.getArchivist(this.pendingArchivistPath);
|
|
2127
|
-
return
|
|
1954
|
+
return assertEx2(this._pendingArchivist, () => `Error: Could not resolve pending archivist at ${this.pendingArchivistPath}`);
|
|
2128
1955
|
}, "getPendingArchivist");
|
|
2129
1956
|
};
|
|
2130
1957
|
|
|
@@ -2139,155 +1966,6 @@ var JsonRpcViewer = class {
|
|
|
2139
1966
|
}
|
|
2140
1967
|
};
|
|
2141
1968
|
|
|
2142
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewerMethods.ts
|
|
2143
|
-
var JsonRpcNetworkStakingStepRewardsByPositionViewerMethods = class extends JsonRpcViewer {
|
|
2144
|
-
static {
|
|
2145
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsByPositionViewerMethods");
|
|
2146
|
-
}
|
|
2147
|
-
async bonus(options) {
|
|
2148
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByPositionViewer_bonus", [
|
|
2149
|
-
options
|
|
2150
|
-
]);
|
|
2151
|
-
}
|
|
2152
|
-
async claimed(options) {
|
|
2153
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByPositionViewer_claimed", [
|
|
2154
|
-
options
|
|
2155
|
-
]);
|
|
2156
|
-
}
|
|
2157
|
-
async earned(options) {
|
|
2158
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByPositionViewer_earned", [
|
|
2159
|
-
options
|
|
2160
|
-
]);
|
|
2161
|
-
}
|
|
2162
|
-
async total(options) {
|
|
2163
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByPositionViewer_total", [
|
|
2164
|
-
options
|
|
2165
|
-
]);
|
|
2166
|
-
}
|
|
2167
|
-
async unclaimed(options) {
|
|
2168
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByPositionViewer_unclaimed", [
|
|
2169
|
-
options
|
|
2170
|
-
]);
|
|
2171
|
-
}
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsByPositionViewer/JsonRpcNetworkStakingStepRewardsByPositionViewer.ts
|
|
2175
|
-
var JsonRpcNetworkStakingStepRewardsByPositionViewer = class extends JsonRpcNetworkStakingStepRewardsByPositionViewerMethods {
|
|
2176
|
-
static {
|
|
2177
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsByPositionViewer");
|
|
2178
|
-
}
|
|
2179
|
-
};
|
|
2180
|
-
|
|
2181
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStakerViewer/JsonRpcNetworkStakingStepRewardsByStakerViewerMethods.ts
|
|
2182
|
-
var JsonRpcNetworkStakingStepRewardsByStakerViewerMethods = class extends JsonRpcViewer {
|
|
2183
|
-
static {
|
|
2184
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsByStakerViewerMethods");
|
|
2185
|
-
}
|
|
2186
|
-
async bonus(options) {
|
|
2187
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStakerViewer_bonus", [
|
|
2188
|
-
options
|
|
2189
|
-
]);
|
|
2190
|
-
}
|
|
2191
|
-
async claimed(options) {
|
|
2192
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStakerViewer_claimed", [
|
|
2193
|
-
options
|
|
2194
|
-
]);
|
|
2195
|
-
}
|
|
2196
|
-
async earned(options) {
|
|
2197
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStakerViewer_earned", [
|
|
2198
|
-
options
|
|
2199
|
-
]);
|
|
2200
|
-
}
|
|
2201
|
-
async total(options) {
|
|
2202
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStakerViewer_total", [
|
|
2203
|
-
options
|
|
2204
|
-
]);
|
|
2205
|
-
}
|
|
2206
|
-
async unclaimed(options) {
|
|
2207
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStakerViewer_unclaimed", [
|
|
2208
|
-
options
|
|
2209
|
-
]);
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
|
-
|
|
2213
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewerMethods.ts
|
|
2214
|
-
var JsonRpcNetworkStakingStepRewardsByStepViewerMethods = class extends JsonRpcViewer {
|
|
2215
|
-
static {
|
|
2216
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsByStepViewerMethods");
|
|
2217
|
-
}
|
|
2218
|
-
async bonus(options) {
|
|
2219
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStepViewer_bonus", [
|
|
2220
|
-
options
|
|
2221
|
-
]);
|
|
2222
|
-
}
|
|
2223
|
-
async claimed(options) {
|
|
2224
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStepViewer_claimed", [
|
|
2225
|
-
options
|
|
2226
|
-
]);
|
|
2227
|
-
}
|
|
2228
|
-
async earned(options) {
|
|
2229
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStepViewer_earned", [
|
|
2230
|
-
options
|
|
2231
|
-
]);
|
|
2232
|
-
}
|
|
2233
|
-
async total(options) {
|
|
2234
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStepViewer_total", [
|
|
2235
|
-
options
|
|
2236
|
-
]);
|
|
2237
|
-
}
|
|
2238
|
-
async unclaimed(options) {
|
|
2239
|
-
return await this.transport.sendRequest("networkStakingStepRewardsByStepViewer_unclaimed", [
|
|
2240
|
-
options
|
|
2241
|
-
]);
|
|
2242
|
-
}
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2245
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsByStepViewer/JsonRpcNetworkStakingStepRewardsByStepViewer.ts
|
|
2246
|
-
var JsonRpcNetworkStakingStepRewardsByStepViewer = class extends JsonRpcNetworkStakingStepRewardsByStepViewerMethods {
|
|
2247
|
-
static {
|
|
2248
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsByStepViewer");
|
|
2249
|
-
}
|
|
2250
|
-
};
|
|
2251
|
-
|
|
2252
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewerMethods.ts
|
|
2253
|
-
var JsonRpcNetworkStakingStepRewardsTotalViewerMethods = class extends JsonRpcViewer {
|
|
2254
|
-
static {
|
|
2255
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsTotalViewerMethods");
|
|
2256
|
-
}
|
|
2257
|
-
async bonus(options) {
|
|
2258
|
-
return await this.transport.sendRequest("networkStakingStepRewardsTotalViewer_bonus", [
|
|
2259
|
-
options
|
|
2260
|
-
]);
|
|
2261
|
-
}
|
|
2262
|
-
async claimed(options) {
|
|
2263
|
-
return await this.transport.sendRequest("networkStakingStepRewardsTotalViewer_claimed", [
|
|
2264
|
-
options
|
|
2265
|
-
]);
|
|
2266
|
-
}
|
|
2267
|
-
async earned(options) {
|
|
2268
|
-
return await this.transport.sendRequest("networkStakingStepRewardsTotalViewer_earned", [
|
|
2269
|
-
options
|
|
2270
|
-
]);
|
|
2271
|
-
}
|
|
2272
|
-
async total(options) {
|
|
2273
|
-
return await this.transport.sendRequest("networkStakingStepRewardsTotalViewer_total", [
|
|
2274
|
-
options
|
|
2275
|
-
]);
|
|
2276
|
-
}
|
|
2277
|
-
async unclaimed(options) {
|
|
2278
|
-
return await this.transport.sendRequest("networkStakingStepRewardsTotalViewer_unclaimed", [
|
|
2279
|
-
options
|
|
2280
|
-
]);
|
|
2281
|
-
}
|
|
2282
|
-
};
|
|
2283
|
-
|
|
2284
|
-
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsTotalViewer/JsonRpcNetworkStakingStepRewardsTotalViewer.ts
|
|
2285
|
-
var JsonRpcNetworkStakingStepRewardsTotalViewer = class extends JsonRpcNetworkStakingStepRewardsTotalViewerMethods {
|
|
2286
|
-
static {
|
|
2287
|
-
__name(this, "JsonRpcNetworkStakingStepRewardsTotalViewer");
|
|
2288
|
-
}
|
|
2289
|
-
};
|
|
2290
|
-
|
|
2291
1969
|
// src/provider/viewer/JsonRpcNetworkStakingStepRewardsViewer/JsonRpcNetworkStakingStepRewardsViewerMethods.ts
|
|
2292
1970
|
var JsonRpcNetworkStakingStepRewardsViewerMethods = class extends JsonRpcViewer {
|
|
2293
1971
|
static {
|
|
@@ -2300,28 +1978,22 @@ var JsonRpcNetworkStakingStepRewardsViewer = class extends JsonRpcNetworkStaking
|
|
|
2300
1978
|
static {
|
|
2301
1979
|
__name(this, "JsonRpcNetworkStakingStepRewardsViewer");
|
|
2302
1980
|
}
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
_step;
|
|
2306
|
-
_total;
|
|
2307
|
-
constructor(transport) {
|
|
1981
|
+
providers;
|
|
1982
|
+
constructor(transport, providers) {
|
|
2308
1983
|
super(transport);
|
|
2309
|
-
this.
|
|
2310
|
-
this._staker = new JsonRpcNetworkStakingStepRewardsByStakerViewerMethods(transport);
|
|
2311
|
-
this._step = new JsonRpcNetworkStakingStepRewardsByStepViewer(transport);
|
|
2312
|
-
this._total = new JsonRpcNetworkStakingStepRewardsTotalViewer(transport);
|
|
1984
|
+
this.providers = providers ?? {};
|
|
2313
1985
|
}
|
|
2314
1986
|
get position() {
|
|
2315
|
-
return this.
|
|
1987
|
+
return this.providers.position;
|
|
2316
1988
|
}
|
|
2317
1989
|
get staker() {
|
|
2318
|
-
return this.
|
|
1990
|
+
return this.providers.staker;
|
|
2319
1991
|
}
|
|
2320
1992
|
get step() {
|
|
2321
|
-
return this.
|
|
1993
|
+
return this.providers.step;
|
|
2322
1994
|
}
|
|
2323
1995
|
get total() {
|
|
2324
|
-
return this.
|
|
1996
|
+
return this.providers.total;
|
|
2325
1997
|
}
|
|
2326
1998
|
};
|
|
2327
1999
|
|
|
@@ -2353,27 +2025,31 @@ var JsonRpcNetworkStakeViewer = class extends JsonRpcNetworkStakeViewerMethods {
|
|
|
2353
2025
|
};
|
|
2354
2026
|
|
|
2355
2027
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
2028
|
+
import { isDefined } from "@xylabs/typeof";
|
|
2356
2029
|
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
2357
2030
|
var JsonRpcXyoViewer = class {
|
|
2358
2031
|
static {
|
|
2359
2032
|
__name(this, "JsonRpcXyoViewer");
|
|
2360
2033
|
}
|
|
2361
|
-
|
|
2034
|
+
providers;
|
|
2362
2035
|
transport;
|
|
2363
|
-
constructor(transport,
|
|
2036
|
+
constructor(transport, providers) {
|
|
2364
2037
|
this.transport = transport;
|
|
2365
|
-
this.
|
|
2038
|
+
this.providers = providers;
|
|
2366
2039
|
}
|
|
2367
2040
|
get networkStakeViewer() {
|
|
2368
|
-
return this.
|
|
2041
|
+
return this.providers?.networkStakeViewer;
|
|
2369
2042
|
}
|
|
2370
2043
|
async accountBalance(address) {
|
|
2371
2044
|
return asAttoXL14(await this.transport.sendRequest("xyoViewer_accountBalance", [
|
|
2372
2045
|
address
|
|
2373
2046
|
]));
|
|
2374
2047
|
}
|
|
2375
|
-
async accountBalanceHistory(address) {
|
|
2376
|
-
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
2048
|
+
async accountBalanceHistory(address, range) {
|
|
2049
|
+
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", isDefined(range) ? [
|
|
2050
|
+
address,
|
|
2051
|
+
range
|
|
2052
|
+
] : [
|
|
2377
2053
|
address
|
|
2378
2054
|
]);
|
|
2379
2055
|
}
|
|
@@ -2564,20 +2240,16 @@ var JsonRpcXyoViewer = class {
|
|
|
2564
2240
|
address
|
|
2565
2241
|
]));
|
|
2566
2242
|
}
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
address
|
|
2570
|
-
]);
|
|
2243
|
+
transferBalanceHistory(address, range) {
|
|
2244
|
+
throw new Error("Method not implemented.");
|
|
2571
2245
|
}
|
|
2572
2246
|
async transferPairBalance(pair) {
|
|
2573
2247
|
return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
|
|
2574
2248
|
pair
|
|
2575
2249
|
]));
|
|
2576
2250
|
}
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
pair
|
|
2580
|
-
]);
|
|
2251
|
+
transferPairBalanceHistory(pair) {
|
|
2252
|
+
throw new Error("Method not implemented.");
|
|
2581
2253
|
}
|
|
2582
2254
|
};
|
|
2583
2255
|
|
|
@@ -2624,8 +2296,10 @@ var HttpRpcXyoConnection = class extends XyoBaseConnection {
|
|
|
2624
2296
|
});
|
|
2625
2297
|
const runner = new JsonRpcXyoRunner(transport);
|
|
2626
2298
|
const networkStakeViewer = new JsonRpcNetworkStakeViewer(transport);
|
|
2627
|
-
const viewer = new JsonRpcXyoViewer(transport,
|
|
2628
|
-
|
|
2299
|
+
const viewer = new JsonRpcXyoViewer(transport, {
|
|
2300
|
+
networkStakeViewer
|
|
2301
|
+
});
|
|
2302
|
+
const storage = storageParam;
|
|
2629
2303
|
super({
|
|
2630
2304
|
runner,
|
|
2631
2305
|
viewer,
|
|
@@ -2634,10 +2308,36 @@ var HttpRpcXyoConnection = class extends XyoBaseConnection {
|
|
|
2634
2308
|
}
|
|
2635
2309
|
};
|
|
2636
2310
|
|
|
2311
|
+
// src/provider/datalake/JsonRpcDataLakeViewerMethods.ts
|
|
2312
|
+
var JsonRpcDataLakeViewerMethods = class extends JsonRpcViewer {
|
|
2313
|
+
static {
|
|
2314
|
+
__name(this, "JsonRpcDataLakeViewerMethods");
|
|
2315
|
+
}
|
|
2316
|
+
get(id) {
|
|
2317
|
+
throw new Error("Method not implemented.");
|
|
2318
|
+
}
|
|
2319
|
+
getMany(id) {
|
|
2320
|
+
throw new Error("Method not implemented.");
|
|
2321
|
+
}
|
|
2322
|
+
has(id) {
|
|
2323
|
+
throw new Error("Method not implemented.");
|
|
2324
|
+
}
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
// src/provider/datalake/JsonRpcDataLakeViewer.ts
|
|
2328
|
+
var JsonRpcDataLakeViewer = class extends JsonRpcDataLakeViewerMethods {
|
|
2329
|
+
static {
|
|
2330
|
+
__name(this, "JsonRpcDataLakeViewer");
|
|
2331
|
+
}
|
|
2332
|
+
constructor(transport) {
|
|
2333
|
+
super(transport);
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
|
|
2637
2337
|
// src/provider/gateway/Abstract.ts
|
|
2638
|
-
import { assertEx as
|
|
2338
|
+
import { assertEx as assertEx3 } from "@xylabs/assert";
|
|
2639
2339
|
import { isDefined as isDefined2 } from "@xylabs/typeof";
|
|
2640
|
-
import { PayloadBuilder as
|
|
2340
|
+
import { PayloadBuilder as PayloadBuilder3 } from "@xyo-network/payload-builder";
|
|
2641
2341
|
import { buildUnsignedTransaction } from "@xyo-network/xl1-protocol-sdk";
|
|
2642
2342
|
var AbstractXyoGateway = class {
|
|
2643
2343
|
static {
|
|
@@ -2645,14 +2345,14 @@ var AbstractXyoGateway = class {
|
|
|
2645
2345
|
}
|
|
2646
2346
|
async addPayloadsToChain(onChain, offChain, options) {
|
|
2647
2347
|
const connection = await this.connection();
|
|
2648
|
-
const viewer =
|
|
2348
|
+
const viewer = assertEx3(connection.viewer, () => "No viewer available on connection");
|
|
2649
2349
|
const signer = await this.signer();
|
|
2650
2350
|
const { nbf, exp, chain, fees } = options ?? {};
|
|
2651
2351
|
const resolvedChainId = isDefined2(chain) ? chain : await viewer.chainId();
|
|
2652
2352
|
const resolvedNbf = isDefined2(nbf) ? nbf : await viewer?.currentBlockNumber();
|
|
2653
2353
|
const resolvedExp = isDefined2(exp) ? exp : resolvedNbf + 10;
|
|
2654
2354
|
const tx = await buildUnsignedTransaction(resolvedChainId, onChain, offChain, resolvedNbf, resolvedExp, await signer.address(), fees);
|
|
2655
|
-
const runner =
|
|
2355
|
+
const runner = assertEx3(connection.runner, () => "No runner available on connection");
|
|
2656
2356
|
const signedTx = await signer.signTransaction(tx);
|
|
2657
2357
|
const hash = await runner.broadcastTransaction(signedTx);
|
|
2658
2358
|
return [
|
|
@@ -2663,11 +2363,11 @@ var AbstractXyoGateway = class {
|
|
|
2663
2363
|
async addTransactionToChain(tx) {
|
|
2664
2364
|
const connection = await this.connection();
|
|
2665
2365
|
const signer = await this.signer();
|
|
2666
|
-
const runner =
|
|
2366
|
+
const runner = assertEx3(connection.runner, () => "No runner available on connection");
|
|
2667
2367
|
const signedTx = await signer.signTransaction(tx);
|
|
2668
2368
|
return await runner.broadcastTransaction([
|
|
2669
|
-
await
|
|
2670
|
-
await
|
|
2369
|
+
await PayloadBuilder3.addStorageMeta(signedTx[0]),
|
|
2370
|
+
await PayloadBuilder3.addStorageMeta(signedTx[1])
|
|
2671
2371
|
]);
|
|
2672
2372
|
}
|
|
2673
2373
|
};
|
|
@@ -2765,7 +2465,7 @@ var MemoryXyoNetwork = class {
|
|
|
2765
2465
|
};
|
|
2766
2466
|
|
|
2767
2467
|
// src/provider/permissions/MemoryXyoPermissions.ts
|
|
2768
|
-
import { assertEx as
|
|
2468
|
+
import { assertEx as assertEx4 } from "@xylabs/assert";
|
|
2769
2469
|
var MemoryXyoPermissions = class {
|
|
2770
2470
|
static {
|
|
2771
2471
|
__name(this, "MemoryXyoPermissions");
|
|
@@ -2777,7 +2477,7 @@ var MemoryXyoPermissions = class {
|
|
|
2777
2477
|
this.invoker = store.invoker;
|
|
2778
2478
|
}
|
|
2779
2479
|
get store() {
|
|
2780
|
-
return
|
|
2480
|
+
return assertEx4(this._store, () => "Store must be defined to get permissions");
|
|
2781
2481
|
}
|
|
2782
2482
|
async getPermissions() {
|
|
2783
2483
|
return await this.store.getPermissions();
|
|
@@ -2858,7 +2558,7 @@ var RpcXyoPermissions = class {
|
|
|
2858
2558
|
};
|
|
2859
2559
|
|
|
2860
2560
|
// src/provider/permissions/store/MemoryPermissions.ts
|
|
2861
|
-
import { assertEx as
|
|
2561
|
+
import { assertEx as assertEx5 } from "@xylabs/assert";
|
|
2862
2562
|
var MemoryPermissionsStore = class {
|
|
2863
2563
|
static {
|
|
2864
2564
|
__name(this, "MemoryPermissionsStore");
|
|
@@ -2869,7 +2569,7 @@ var MemoryPermissionsStore = class {
|
|
|
2869
2569
|
this._invoker = invoker;
|
|
2870
2570
|
}
|
|
2871
2571
|
get invoker() {
|
|
2872
|
-
return
|
|
2572
|
+
return assertEx5(this._invoker, () => "Invoker must be defined to get permissions");
|
|
2873
2573
|
}
|
|
2874
2574
|
async getPermissions() {
|
|
2875
2575
|
await Promise.resolve();
|
|
@@ -2928,7 +2628,6 @@ var MemoryXyoSigner = class {
|
|
|
2928
2628
|
}
|
|
2929
2629
|
};
|
|
2930
2630
|
export {
|
|
2931
|
-
AbstractXyoDataLake,
|
|
2932
2631
|
AbstractXyoGateway,
|
|
2933
2632
|
AddressZod,
|
|
2934
2633
|
AllRpcSchemas,
|
|
@@ -2938,7 +2637,7 @@ export {
|
|
|
2938
2637
|
AnySignedBoundWitnessWithStorageMetaZod,
|
|
2939
2638
|
AnySignedBoundWitnessZod,
|
|
2940
2639
|
AnyUnsignedBoundWitnessZod,
|
|
2941
|
-
|
|
2640
|
+
ArrayBufferToJsonZod,
|
|
2942
2641
|
AttoToJsonZod,
|
|
2943
2642
|
AttoZod,
|
|
2944
2643
|
BlockBoundWitnessWithStorageMetaZod,
|
|
@@ -2953,21 +2652,27 @@ export {
|
|
|
2953
2652
|
CaveatTypesZod,
|
|
2954
2653
|
CaveatsZod,
|
|
2955
2654
|
ChainZod,
|
|
2655
|
+
DataLakeViewerRpcSchemas,
|
|
2656
|
+
HashZod2 as HashZod,
|
|
2657
|
+
HexZod2 as HexZod,
|
|
2956
2658
|
HttpRpcTransport,
|
|
2957
2659
|
HttpRpcXyoConnection,
|
|
2958
|
-
HttpXyoDataLake,
|
|
2959
2660
|
HydratedBlockWithStorageMetaZod,
|
|
2960
2661
|
HydratedBlockZod,
|
|
2961
2662
|
HydratedTransactionZod,
|
|
2962
2663
|
InvokerPermissionZod,
|
|
2963
2664
|
JsonObjectZod,
|
|
2665
|
+
JsonRpcDataLakeViewer,
|
|
2666
|
+
JsonRpcDataLakeViewerMethods,
|
|
2964
2667
|
JsonRpcErrorCodes,
|
|
2965
2668
|
JsonRpcNetworkStakeViewer,
|
|
2966
2669
|
JsonRpcNetworkStakeViewerMethods,
|
|
2967
2670
|
JsonRpcNetworkStakingStepRewardsViewer,
|
|
2968
2671
|
JsonRpcNetworkStakingStepRewardsViewerMethods,
|
|
2672
|
+
JsonRpcViewer,
|
|
2969
2673
|
JsonRpcXyoRunner,
|
|
2970
2674
|
JsonRpcXyoViewer,
|
|
2675
|
+
JsonToArrayBufferZod,
|
|
2971
2676
|
JsonToAttoZod,
|
|
2972
2677
|
JsonToSignedHydratedTransactionZod,
|
|
2973
2678
|
JsonToStakeZod,
|
|
@@ -3029,11 +2734,13 @@ export {
|
|
|
3029
2734
|
TransferFieldsZod,
|
|
3030
2735
|
TransferPairZod,
|
|
3031
2736
|
TransferZod,
|
|
2737
|
+
TransferZodWithStorageMeta,
|
|
3032
2738
|
UnsignedBoundWitnessWithStorageMetaZod,
|
|
3033
2739
|
UnsignedBoundWitnessZod,
|
|
3034
2740
|
UnsignedHydratedTransactionZod,
|
|
3035
2741
|
WithStorageMetaZod,
|
|
3036
2742
|
WithTransactionFeesZod,
|
|
2743
|
+
XL1BlockNumberZod,
|
|
3037
2744
|
XyoBaseConnection,
|
|
3038
2745
|
XyoPermissionsRpcSchemas,
|
|
3039
2746
|
XyoRunnerRpcSchemas,
|