rpc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERPCCall                    = "ten_call"
	ERPCGetBalance              = "ten_getBalance"
	ERPCGetTransactionByHash    = "ten_getTransactionByHash"
	ERPCGetRawTransactionByHash = "ten_getRawTransactionByHash"
	ERPCGetTransactionCount     = "ten_getTransactionCount"
	ERPCGetTransactionReceipt   = "ten_getTransactionReceipt"
	ERPCSendRawTransaction      = "ten_sendRawTransaction"
	ERPCResend                  = "ten_resend"
	ERPCEstimateGas             = "ten_estimateGas"
	ERPCGetLogs                 = "ten_getLogs"
	ERPCGetStorageAt            = "ten_getStorageAt"
	ERPCDebugLogs               = "debug_eventLogRelevancy"
	ERPCGetPersonalTransactions = "scan_getPersonalTransactions"
)

encryptedMethods for which the RPC requests and responses should be encrypted these are names of virtual RPC methods exposed by a TEN node they all get routed through "ten_encryptedRPC"

View Source
const EncRPC = "ten_encryptedRPC"

EncRPC - the RPC method through which all encypted calls get routed

Variables

This section is empty.

Functions

func FromBatchHeaderMsg

func FromBatchHeaderMsg(header *generated.BatchHeaderMsg) *common.BatchHeader

func FromCrossChainMsgs

func FromCrossChainMsgs(messages []*generated.CrossChainMsg) []MessageBus.StructsCrossChainMessage

func FromExtBatchMsg

func FromExtBatchMsg(msg *generated.ExtBatchMsg) *common.ExtBatch

func FromExtRollupMsg

func FromExtRollupMsg(msg *generated.ExtRollupMsg) *common.ExtRollup

func FromRollupDataMsg added in v0.24.0

func FromRollupHeaderMsg

func FromRollupHeaderMsg(header *generated.RollupHeaderMsg) *common.RollupHeader

func FromSecretRespMsg

func FromSecretRespMsg(secretResponses []*generated.SecretResponseMsg) []*common.ProducedSecretResponse

func IsEncryptedMethod added in v1.0.0

func IsEncryptedMethod(method string) bool

IsEncryptedMethod indicates whether the RPC method's requests and responses should be encrypted.

func ToBatchHeaderMsg

func ToBatchHeaderMsg(header *common.BatchHeader) *generated.BatchHeaderMsg

func ToBlobMsgs added in v1.0.0

func ToBlobMsgs(blobs []*kzg4844.Blob) []*generated.BlobMsg

func ToExtBatchMsg

func ToExtBatchMsg(batch *common.ExtBatch) generated.ExtBatchMsg

func ToExtRollupMsg

func ToExtRollupMsg(rollup *common.ExtRollup) generated.ExtRollupMsg

func ToRollupDataMsg added in v0.24.0

func ToRollupDataMsg(rollupData *common.PublicRollupMetadata) generated.PublicRollupDataMsg

func ToRollupHeaderMsg

func ToRollupHeaderMsg(header *common.RollupHeader) *generated.RollupHeaderMsg

func ToSecretRespMsg

func ToSecretRespMsg(responses []*common.ProducedSecretResponse) []*generated.SecretResponseMsg

Types

type RequestWithVk added in v0.22.0

type RequestWithVk struct {
	VK     *viewingkey.RPCSignedViewingKey
	Method string // can be only one of the encrypted methods above
	Params []any
}

RequestWithVk - wraps the eth parameters with a viewing key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL