codegen

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCodeFromIDLSchema

func GenerateCodeFromIDLSchema(schemaPath, outputPath, packageName string) error

GenerateCodeFromIDLSchema generates golang message types for your CosmWasm smart contracts.

func GenerateExecuteMsg

func GenerateExecuteMsg(f *jen.File, schema *schemas.JSONSchema)

Generates the code for ExecuteMsg

func GenerateInstantiateMsg

func GenerateInstantiateMsg(f *jen.File, schema *schemas.JSONSchema)

func GenerateMigrateMsg

func GenerateMigrateMsg(f *jen.File, schema *schemas.JSONSchema)

func GenerateQueryClient added in v0.2.0

func GenerateQueryClient(f *jen.File, responses map[string]*schemas.JSONSchema, queryMsgSchema *schemas.JSONSchema)

GenerateQueryClient generates the gRPC query client for your CosmWasm smart contracts.

func GenerateQueryClientFromIDLSchema added in v0.2.0

func GenerateQueryClientFromIDLSchema(schemaPath, outputPath, packageName string) error

GenerateQueryClientFromIDLSchema generates a gRPC query client for your CosmWasm smart contracts.

func GenerateQueryMsg

func GenerateQueryMsg(f *jen.File, schema *schemas.JSONSchema)

Generates the code for QueryMsg

func GenerateResponses

func GenerateResponses(f *jen.File, responses map[string]*schemas.JSONSchema)

func GenerateSudoMsg

func GenerateSudoMsg(f *jen.File, schema *schemas.JSONSchema)

Generates the code for SudoMsg

func GetDefinition

func GetDefinition(ref string) (*schemas.JSONSchema, bool)

GetDefinition returns a definition from the global definition registry. If the definition is not found, it returns false.

func RegisterDefinition

func RegisterDefinition(ref string, schema *schemas.JSONSchema) bool

RegisterDefinition registers a definition to the global definition registry and returns true if the definition is successfully registered. If the definition is already registered, it returns false.

func RegisterDefinitions

func RegisterDefinitions(definitions map[string]*schemas.JSONSchema) bool

RegisterDefinitions registers definitions to the global definition registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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