Documentation
¶
Index ¶
- Constants
- func CreateTypedData(app common.Address, nonce uint64, maxGasPrice *big.Int, dataBytes []byte, ...) apitypes.TypedData
- func DownloadPaioDecoderExecutableAsNeeded() (string, error)
- func IsDecodeBatchInstalled() (string, bool)
- func NewPaioReleaseHandler() devnet.HandleRelease
- func ParsePaioBatchToInputs(jsonStr string, chainId *big.Int) ([]model.InputExtra, error)
- type DecoderPaio
- type PaioBatch
- type PaioConfig
- type PaioDecoder
- type PaioMessage
- type PaioReleaseHandler
- func (d PaioReleaseHandler) DownloadAsset(ctx context.Context, release *devnet.ReleaseAsset) (string, error)
- func (d PaioReleaseHandler) ExtractAsset(archive []byte, filename string, destDir string) error
- func (d PaioReleaseHandler) FormatNameRelease(prefix string, goos string, goarch string, version string) string
- func (p PaioReleaseHandler) GetLatestReleaseCompatible(ctx context.Context) (*devnet.ReleaseAsset, error)
- func (p PaioReleaseHandler) GetVersion(ctx context.Context) (string, error)
- func (d PaioReleaseHandler) ListRelease(ctx context.Context) ([]devnet.ReleaseAsset, error)
- func (d PaioReleaseHandler) PlatformCompatible() (string, error)
- func (d PaioReleaseHandler) Prerequisites(ctx context.Context) error
- func (p PaioReleaseHandler) SaveConfigOnDefaultLocation(config *PaioConfig) error
- func (a PaioReleaseHandler) TryLoadConfig() (*PaioConfig, error)
- type PaioSignature
- type PaioTransaction
- type ZzzzHuiDecoder
Constants ¶
View Source
const (
DEFAULT_NAME_PROGRAM = "decode-batch"
)
View Source
const TimeoutExecutionPaioDecoder = 1 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func CreateTypedData ¶
func IsDecodeBatchInstalled ¶
func NewPaioReleaseHandler ¶
func NewPaioReleaseHandler() devnet.HandleRelease
func ParsePaioBatchToInputs ¶
Types ¶
type DecoderPaio ¶
type PaioBatch ¶
type PaioBatch struct {
SequencerPaymentAddress string `json:"sequencer_payment_address"`
Txs []PaioTransaction `json:"txs"`
}
type PaioConfig ¶
type PaioConfig struct {
AssetPaio devnet.ReleaseAsset `json:"asset_paio"`
LatestCheck string `json:"latest_check"`
}
func LoadPaioConfig ¶
func LoadPaioConfig(path string) (*PaioConfig, error)
func NewPaioConfig ¶
func NewPaioConfig(ra devnet.ReleaseAsset) *PaioConfig
func (*PaioConfig) SavePaioConfig ¶
func (a *PaioConfig) SavePaioConfig(path string) error
type PaioDecoder ¶
type PaioDecoder struct {
// contains filtered or unexported fields
}
func NewPaioDecoder ¶
func NewPaioDecoder(location string) *PaioDecoder
func (*PaioDecoder) DecodePaioBatch ¶
call the paio decoder binary
func (*PaioDecoder) DecodePaioBatchSkip ¶
type PaioMessage ¶
func ParsePaioFrom712Message ¶
func ParsePaioFrom712Message(typedData apitypes.TypedData) (PaioMessage, error)
type PaioReleaseHandler ¶
type PaioReleaseHandler struct {
Namespace string
Repository string
ConfigFilename string
Client *github.Client
}
func (PaioReleaseHandler) DownloadAsset ¶
func (d PaioReleaseHandler) DownloadAsset(ctx context.Context, release *devnet.ReleaseAsset) (string, error)
DownloadAsset implements commons.HandleRelease.
func (PaioReleaseHandler) ExtractAsset ¶
func (d PaioReleaseHandler) ExtractAsset(archive []byte, filename string, destDir string) error
ExtractAsset implements commons.HandleRelease.
func (PaioReleaseHandler) FormatNameRelease ¶
func (d PaioReleaseHandler) FormatNameRelease(prefix string, goos string, goarch string, version string) string
FormatNameRelease implements commons.HandleRelease.
func (PaioReleaseHandler) GetLatestReleaseCompatible ¶
func (p PaioReleaseHandler) GetLatestReleaseCompatible(ctx context.Context) (*devnet.ReleaseAsset, error)
GetLatestReleaseCompatible implements commons.HandleRelease.
func (PaioReleaseHandler) GetVersion ¶
func (p PaioReleaseHandler) GetVersion(ctx context.Context) (string, error)
GetVersion implements devnet.HandleRelease.
func (PaioReleaseHandler) ListRelease ¶
func (d PaioReleaseHandler) ListRelease(ctx context.Context) ([]devnet.ReleaseAsset, error)
ListRelease implements commons.HandleRelease.
func (PaioReleaseHandler) PlatformCompatible ¶
func (d PaioReleaseHandler) PlatformCompatible() (string, error)
PlatformCompatible implements commons.HandleRelease.
func (PaioReleaseHandler) Prerequisites ¶
func (d PaioReleaseHandler) Prerequisites(ctx context.Context) error
Prerequisites implements commons.HandleRelease.
func (PaioReleaseHandler) SaveConfigOnDefaultLocation ¶
func (p PaioReleaseHandler) SaveConfigOnDefaultLocation(config *PaioConfig) error
func (PaioReleaseHandler) TryLoadConfig ¶
func (a PaioReleaseHandler) TryLoadConfig() (*PaioConfig, error)
type PaioSignature ¶
func (*PaioSignature) Hex ¶
func (ps *PaioSignature) Hex() string
type PaioTransaction ¶
type PaioTransaction struct {
App string `json:"app"`
Nonce uint64 `json:"nonce"`
MaxGasPrice uint64 `json:"max_gas_price"`
Data []byte `json:"data"`
Signature PaioSignature `json:"signature"`
}
Click to show internal directories.
Click to hide internal directories.