Documentation ¶
Index ¶
- func GenImport(inPath string, res *parsecode.Result, reses []*parsecode.Result, ...) error
- func GenReceipt(inPath string, res *parsecode.Result)
- func GenSDK(inPath string, res *parsecode.Result)
- func GenStore(inPath string, res *parsecode.Result)
- func GenTypes(inPath string, res *parsecode.Result)
- func IsBnNumber(f parsecode.Field) bool
- func IsLiteralType(f parsecode.Field) bool
- func IsLiteralTypeEx(f parsecode.Field) bool
- func IsMap(f parsecode.Field) bool
- type ContractInfo
- type FatMethod
- type ImportContract
- type OtherContract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenImport ¶
func GenImport(inPath string, res *parsecode.Result, reses []*parsecode.Result, contractInfoList []ContractInfo, index int) error
GenImport - generate import code from source smart contract to destination smart contract
func GenReceipt ¶
focus to generate logic nolint unhandled - because WriteString always return (error)nil
func IsBnNumber ¶
func IsLiteralType ¶
func IsLiteralTypeEx ¶
Types ¶
type ContractInfo ¶
type FatMethod ¶
type FatMethod struct { parsecode.Method SingleParams []parsecode.Field // expand the names of param field to multiple field with same type }
FatMethod - the method describe, easy to export
type ImportContract ¶
type ImportContract struct { Contracts []OtherContract IContracts []OtherContract // 当前合约参数 OrgID string PackageName string ContractStructure string // 跨合约信息 ImportContract string DirectionName string ImportPackage string Index int ImportInterfaces []parsecode.Method ImportContractInfo std.ContractVersionList Imports map[parsecode.Import]struct{} }
Click to show internal directories.
Click to hide internal directories.