Documentation ¶
Index ¶
- func GenerateCodeFromIDLSchema(schemaPath, outputPath, packageName string) error
- func GenerateExecuteMsg(f *jen.File, schema *schemas.JSONSchema)
- func GenerateInstantiateMsg(f *jen.File, schema *schemas.JSONSchema)
- func GenerateMigrateMsg(f *jen.File, schema *schemas.JSONSchema)
- func GenerateQueryClient(f *jen.File, responses map[string]*schemas.JSONSchema, ...)
- func GenerateQueryClientFromIDLSchema(schemaPath, outputPath, packageName string) error
- func GenerateQueryMsg(f *jen.File, schema *schemas.JSONSchema)
- func GenerateResponses(f *jen.File, responses map[string]*schemas.JSONSchema)
- func GenerateSudoMsg(f *jen.File, schema *schemas.JSONSchema)
- func GetDefinition(ref string) (*schemas.JSONSchema, bool)
- func RegisterDefinition(ref string, schema *schemas.JSONSchema) bool
- func RegisterDefinitions(definitions map[string]*schemas.JSONSchema) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCodeFromIDLSchema ¶
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
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.