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