counter

package
v0.1.0-test Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TopicCountIncreased uint32 = hash.CRC32("CountIncreased")
View Source
var TopicCountSet uint32 = hash.CRC32("CountSet")

Functions

func GetID

func GetID(ctx context.Context, api ton.APIClientWrapped, addr *address.Address) (uint32, error)

func GetValue

func GetValue(ctx context.Context, api ton.APIClientWrapped, addr *address.Address) (uint32, error)

Types

type ContractData

type ContractData struct {
	ID    uint32 `tlb:"## 32"`
	Value uint32 `tlb:"## 32"`

	// TODO: import as ownable2step.Data bindings from pkg/bindings/lib/access/ownable_2step
	Ownable common.Ownable2Step `tlb:"."`
}

type CountIncreased

type CountIncreased struct {
	ID     uint32          `tlb:"## 32"`
	Value  uint32          `tlb:"## 32"`
	Sender address.Address `tlb:"addr"`
}

type CountIncreasedMsg

type CountIncreasedMsg struct {
	ID     uint32          `tlb:"## 32"`
	Value  uint32          `tlb:"## 32"`
	Sender address.Address `tlb:"addr"`
	// contains filtered or unexported fields
}

Reply message to sender when the counter is increased.

type CountSet

type CountSet struct {
	ID     uint32          `tlb:"## 32"`
	Value  uint32          `tlb:"## 32"`
	Sender address.Address `tlb:"addr"`
}

type CountSetMsg

type CountSetMsg struct {
	ID     uint32          `tlb:"## 32"`
	Value  uint32          `tlb:"## 32"`
	Sender address.Address `tlb:"addr"`
	// contains filtered or unexported fields
}

Reply message to sender when the counter is set.

type IncreaseCount

type IncreaseCount struct {
	QueryID uint64 `tlb:"## 64"`
	// contains filtered or unexported fields
}

Message to increase the counter value.

type SetCount

type SetCount struct {
	QueryID  uint64 `tlb:"## 64"`
	NewCount uint32 `tlb:"## 32"`
	// contains filtered or unexported fields
}

Message to set the counter value.

Jump to

Keyboard shortcuts

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