keychaincreatetransactionui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAIN_TAB           createTransactionTab = 0
	UCO_TAB            createTransactionTab = 1
	TOKEN_TAB          createTransactionTab = 2
	RECIPIENTS_TAB     createTransactionTab = 3
	OWNERSHIPS_TAB     createTransactionTab = 4
	CONTENT_TAB        createTransactionTab = 5
	SMART_CONTRACT_TAB createTransactionTab = 6
)
View Source
const (
	MAIN_ADD_BUTTON_INDEX                 = 17
	MAIN_GET_TRANSACTION_FEE_BUTTON_INDEX = 18
	MAIN_RESET_BUTTON_INDEX               = 19
	FIRST_TRANSACTION_TYPE_INDEX          = 8
	URL_INDEX                             = 4
	SEED_INDEX                            = 5
	CURVE_INDEX                           = 6
	TRANSACTION_INDEX_FIELD_INDEX         = 7
)
View Source
const (
	FIELD_TO     = 0
	FIELD_ACTION = 1
	FIELD_ARGS   = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOwnership

type AddOwnership struct {
	Cipher         []byte
	AuthorizedKeys []archethic.AuthorizedKey
	// contains filtered or unexported fields
}

type AddRecipient

type AddRecipient struct {
	Address  []byte
	Action   string
	ArgsJson string
	// contains filtered or unexported fields
}

type AddTokenTransfer

type AddTokenTransfer struct {
	To           []byte
	Amount       uint64
	TokenId      int
	TokenAddress []byte
	// contains filtered or unexported fields
}

type AddUcoTransfer

type AddUcoTransfer struct {
	To     []byte
	Amount uint64
	// contains filtered or unexported fields
}

type BackMsg

type BackMsg bool

type ContentModel

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

func NewContentModel

func NewContentModel() ContentModel

func (ContentModel) Init

func (m ContentModel) Init() tea.Cmd

func (*ContentModel) SwitchTab

func (m *ContentModel) SwitchTab() (ContentModel, []tea.Cmd)

func (ContentModel) Update

func (m ContentModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ContentModel) View

func (m ContentModel) View() string

type CreateTransactionMsg

type CreateTransactionMsg struct {
	ServiceName string
	Seed        string
	Url         string
	PvKeyBytes  []byte
}

type CreateTransactionType

type CreateTransactionType int

type DeleteOwnership

type DeleteOwnership struct {
	IndexToDelete int
}

type DeleteRecipient

type DeleteRecipient struct {
	IndexToDelete int
}

type DeleteTokenTransfer

type DeleteTokenTransfer struct {
	IndexToDelete int
}

type DeleteUcoTransfer

type DeleteUcoTransfer struct {
	IndexToDelete int
}

type GetTransactionFee added in v1.1.0

type GetTransactionFee struct {
	Curve archethic.Curve
	Seed  []byte
}

type MainModel

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

func NewMainModel

func NewMainModel(pvKeyBytes []byte) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (*MainModel) SwitchTab

func (m *MainModel) SwitchTab() (MainModel, []tea.Cmd)

func (MainModel) Update

func (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainModel) View

func (m MainModel) View() string

type Model

type Model struct {
	Tabs []string

	Spinner spinner.Model
	IsInit  bool
	// contains filtered or unexported fields
}

func New

func New(pvKeyBytes []byte) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type OwnershipsModel

type OwnershipsModel struct {
	Spinner spinner.Model
	IsInit  bool
	// contains filtered or unexported fields
}

func NewOwnershipsModel

func NewOwnershipsModel(secretKey []byte, transaction *archethic.TransactionBuilder) OwnershipsModel

func (OwnershipsModel) Init

func (m OwnershipsModel) Init() tea.Cmd

func (*OwnershipsModel) SetUrl

func (m *OwnershipsModel) SetUrl(url string)

func (*OwnershipsModel) SwitchTab

func (m *OwnershipsModel) SwitchTab() (OwnershipsModel, []tea.Cmd)

func (OwnershipsModel) Update

func (m OwnershipsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (OwnershipsModel) View

func (m OwnershipsModel) View() string

type RecipientsModel

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

func NewRecipientsModel

func NewRecipientsModel(transaction *archethic.TransactionBuilder) RecipientsModel

func (RecipientsModel) Init

func (m RecipientsModel) Init() tea.Cmd

func (*RecipientsModel) SwitchTab

func (m *RecipientsModel) SwitchTab() (RecipientsModel, []tea.Cmd)

func (RecipientsModel) Update

func (m RecipientsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (RecipientsModel) View

func (m RecipientsModel) View() string

type RenderFunc

type RenderFunc func(m Model) string

type ResetInterface

type ResetInterface struct{}

type SendTransaction

type SendTransaction struct {
	Curve archethic.Curve
	Seed  []byte
}

type SendUpdateStorageNouncePublicKey

type SendUpdateStorageNouncePublicKey struct {
	OwnershipsModel OwnershipsModel
}

type SmartContractModel

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

func NewSmartContractModel

func NewSmartContractModel() SmartContractModel

func (SmartContractModel) Init

func (m SmartContractModel) Init() tea.Cmd

func (*SmartContractModel) SwitchTab

func (m *SmartContractModel) SwitchTab() (SmartContractModel, []tea.Cmd)

func (SmartContractModel) Update

func (m SmartContractModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SmartContractModel) View

func (m SmartContractModel) View() string

type SwitchTab

type SwitchTab struct{}

type TokenTransferModel

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

func NewTokenTransferModel

func NewTokenTransferModel(transaction *archethic.TransactionBuilder) TokenTransferModel

func (TokenTransferModel) Init

func (m TokenTransferModel) Init() tea.Cmd

func (*TokenTransferModel) SwitchTab

func (m *TokenTransferModel) SwitchTab() (TokenTransferModel, []tea.Cmd)

func (TokenTransferModel) Update

func (m TokenTransferModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TokenTransferModel) View

func (m TokenTransferModel) View() string

type TransactionFeeSent added in v1.1.0

type TransactionFeeSent struct {
	Error error
	Model Model
}

type TransactionSent

type TransactionSent struct {
	Error error
	Model Model
}

type UcoTransferModel

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

func NewUcoTransferModel

func NewUcoTransferModel(transaction *archethic.TransactionBuilder) UcoTransferModel

func (UcoTransferModel) Init

func (m UcoTransferModel) Init() tea.Cmd

func (*UcoTransferModel) SwitchTab

func (m *UcoTransferModel) SwitchTab() (UcoTransferModel, []tea.Cmd)

func (UcoTransferModel) Update

func (m UcoTransferModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (UcoTransferModel) View

func (m UcoTransferModel) View() string

type UpdateContent

type UpdateContent struct {
	Content []byte
}

type UpdateSmartContract

type UpdateSmartContract struct {
	Code string
}

type UpdateStorageNouncePublicKey

type UpdateStorageNouncePublicKey struct {
	StorageNouncePublicKey string
}

type UpdateTransactionIndex

type UpdateTransactionIndex struct {
	Index int
	// contains filtered or unexported fields
}

type UpdateTransactionType

type UpdateTransactionType struct {
	TransactionType archethic.TransactionType
	// contains filtered or unexported fields
}

type UpdateUrl

type UpdateUrl struct {
	Url string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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