tezossigner

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountConfig

type AccountConfig struct {
	LogPayloads bool                      `yaml:"log_payloads"`
	Allow       AllowedTransactionsConfig `yaml:"allow"`
}

type AllowedTransactionsConfig

type AllowedTransactionsConfig struct {
	Block          []string `yaml:"block"`
	Endorsement    []string `yaml:"endorsement"`
	Preendorsement []string `yaml:"preendorsement"`
	Generic        []string `yaml:"generic"`
}

type Config

type Config struct {
	Server ServerConfig             `yaml:"server"`
	Vaults VaultsConfig             `yaml:"vaults"`
	Tezos  map[string]AccountConfig `yaml:"tezos"`
}

func GenerateSignerConfig

func GenerateSignerConfig(accountsAddresses []string) *Config

func (*Config) WriteConfig

func (c *Config) WriteConfig(filename string) error

type FileConfig

type FileConfig struct {
	SecretPath string `yaml:"file,omitempty"`
}

type LocalSecretConfig

type LocalSecretConfig struct {
	Driver string     `yaml:"driver,omitempty"`
	File   FileConfig `yaml:"config,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	Address        string `yaml:"address,omitempty"`
	UtilityAddress string `yaml:"utility_address,omitempty"`
}

type TezosSignerProvider

type TezosSignerProvider struct {
	// contains filtered or unexported fields
}

func NewTezosSignerProvider

func NewTezosSignerProvider(ctx context.Context, stack *types.Stack) *TezosSignerProvider

func (*TezosSignerProvider) CreateAccount

func (p *TezosSignerProvider) CreateAccount(args []string) (interface{}, error)

func (*TezosSignerProvider) FirstTimeSetup

func (p *TezosSignerProvider) FirstTimeSetup() error

func (*TezosSignerProvider) GetDockerServiceDefinition

func (p *TezosSignerProvider) GetDockerServiceDefinition(rpcURL string) *docker.ServiceDefinition

func (*TezosSignerProvider) WriteConfig

func (p *TezosSignerProvider) WriteConfig(_ *types.InitOptions) error

type VaultsConfig

type VaultsConfig struct {
	LocalSecret LocalSecretConfig `yaml:"local_secret,omitempty"`
}

Jump to

Keyboard shortcuts

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