Documentation
¶
Index ¶
- type ABI
- type Generator
- func (g *Generator) CollectedTypes() string
- func (g *Generator) GenerateMsgDecoder() string
- func (g *Generator) GetMethods() (string, []string, error)
- func (g *Generator) RenderContractErrors() (string, error)
- func (g *Generator) RenderInvocationOrderList(simpleMethods []string) (string, error)
- func (g *Generator) RenderJetton() (string, error)
- func (g *Generator) RenderMessagesMD() (string, error)
- func (g *Generator) RenderNFT() (string, error)
- type GetMethod
- type GetMethodOutput
- type Interface
- type InterfaceMessage
- type Message
- type MsgType
- type StackRecord
- type TLBMsgBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABI ¶
type ABI struct {
Methods []GetMethod `xml:"get_method"`
Internals []Message `xml:"internal"`
ExtOut []Message `xml:"ext_out"`
ExtIn []Message `xml:"ext_in"`
JettonPayloads []Message `xml:"jetton_payload"`
NFTPayloads []Message `xml:"nft_payload"`
Interfaces []Interface `xml:"interface"`
Types []string `xml:"types"`
}
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) CollectedTypes ¶
func (*Generator) GenerateMsgDecoder ¶
func (*Generator) RenderContractErrors ¶ added in v1.6.2
func (*Generator) RenderInvocationOrderList ¶
func (*Generator) RenderJetton ¶ added in v1.3.0
func (*Generator) RenderMessagesMD ¶ added in v1.4.2
RenderMessagesMD renders messages.md file with messages and their names + opcodes.
type GetMethod ¶
type GetMethod struct {
Tag xml.Name
Input struct {
StackValues []StackRecord `xml:",any"`
} `xml:"input"`
Name string `xml:"name,attr"`
ID int `xml:"id,attr"`
Output []GetMethodOutput `xml:"output"`
}
func ParseMethod ¶
func (GetMethod) GolangFunctionName ¶
func (GetMethod) UsedByIntrospection ¶
type GetMethodOutput ¶
type GetMethodOutput struct {
Version string `xml:"version,attr"`
FixedLength bool `xml:"fixed_length,attr"`
Stack []StackRecord `xml:",any"`
}
func (GetMethodOutput) FullResultName ¶
func (o GetMethodOutput) FullResultName(methodName string) string
type Interface ¶ added in v1.3.0
type Interface struct {
Name string `xml:"name,attr"`
Methods []struct {
Name string `xml:"name,attr"`
Version string `xml:"version,attr"`
} `xml:"get_method"`
Input struct {
Internals []InterfaceMessage `xml:"internal"`
Externals []InterfaceMessage `xml:"ext_in"`
} `xml:"msg_in"`
Output struct {
Internals []InterfaceMessage `xml:"internal"`
Externals []InterfaceMessage `xml:"ext_out"`
} `xml:"msg_out"`
CodeHashes []string `xml:"code_hash"`
Inherits string `xml:"inherits,attr"`
Errors []struct {
Text string `xml:",chardata"`
Code int `xml:"code,attr"`
} `xml:"error"`
}
type InterfaceMessage ¶ added in v1.3.0
type InterfaceMessage struct {
Name string `xml:"name,attr"`
}
type StackRecord ¶
Click to show internal directories.
Click to hide internal directories.