precompiled

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownMethods = map[MethodCode]tvmPrecompiled{
	{MethodID: 101616, CodeHash: ton.MustParseHash("ccae6ffb603c7d3e779ab59ec267ffc22dc1ebe0af9839902289a7a83e4c00f1")}: func(data *boc.Cell, args tlb.VmStack) (tlb.VmStack, error) {
		var body struct {
			Skip1  uint64
			Skip2  tlb.Bits256
			Value1 tlb.Uint128
			Value2 tlb.Uint256
			Field1 struct {
				Value3 tlb.Grams
				Value4 uint32
			} `tlb:"^"`
		}
		err := tlb.Unmarshal(data, &body)
		if err != nil {
			return nil, err
		}
		return tlb.VmStack{
			{
				SumType:  "VmStkInt",
				VmStkInt: tlb.Int257(body.Value1),
			},
			{
				SumType:  "VmStkInt",
				VmStkInt: tlb.Int257(body.Value2),
			},
			{
				SumType:      "VmStkTinyInt",
				VmStkTinyInt: int64(body.Field1.Value3),
			},
			{
				SumType:      "VmStkTinyInt",
				VmStkTinyInt: int64(body.Field1.Value4),
			},
		}, nil
	},
}

Functions

This section is empty.

Types

type MethodCode

type MethodCode struct {
	MethodID int
	CodeHash [32]byte
}

Jump to

Keyboard shortcuts

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