twophasecommit

package
v0.0.0-...-faa2c92 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CounterContractPath = bindings.GetBuildDir("examples.async-communication.two-phase-commit.Counter/tact_Counter.pkg")
View Source
var DbContractPath = bindings.GetBuildDir("examples.async-communication.two-phase-commit.DB/tact_DB.pkg")

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Contract wrappers.Contract
}

func (Counter) GetValue

func (c Counter) GetValue() (uint32, error)

func (Counter) SendAck

func (c Counter) SendAck() (msgReceived *tracetracking.ReceivedMessage, err error)

type CounterInitData

type CounterInitData struct {
	ID      uint32 `tlb:"## 32"`
	Value   uint32 `tlb:"## 32"`
	AutoAck bool   `tlb:"bool"`
}

type CounterProvider

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

func NewCounterProvider

func NewCounterProvider(apiClient tracetracking.SignedAPIClient) *CounterProvider

func (*CounterProvider) Deploy

func (p *CounterProvider) Deploy(ctx context.Context, initData CounterInitData) (Counter, error)

type DB

type DB struct {
	Contract wrappers.Contract
}

func (DB) SendBeginTransaction

func (s DB) SendBeginTransaction(queryID uint64) (msgReceived *tracetracking.ReceivedMessage, err error)

func (DB) SendCommit

func (s DB) SendCommit() (msgReceived *tracetracking.ReceivedMessage, err error)

func (DB) SendSetValue

func (s DB) SendSetValue(counterAddr *address.Address, value uint32) (msgReceived *tracetracking.ReceivedMessage, err error)

type DBInitData

type DBInitData struct {
	ID uint32 `tlb:"## 32"`
}

type DBProvider

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

func NewDBProvider

func NewDBProvider(apiClient tracetracking.SignedAPIClient) *DBProvider

func (*DBProvider) Deploy

func (p *DBProvider) Deploy(ctx context.Context, initData DBInitData) (DB, error)

Jump to

Keyboard shortcuts

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