Package-level declarations

Types

Link copied to clipboard
object Json
Link copied to clipboard
data class LatticeAbi(val abi: String)
Link copied to clipboard
data class LatticeFunction(val abi: String, val methodName: String? = null, val method: EthereumABIElement)

abi function

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun bytesSize(ty: String): Int
Link copied to clipboard
fun convertArgument(namedType: EthereumNamedType, arg: Any?): Type<*>
Link copied to clipboard
fun convertArguments(types: List<EthereumNamedType>?, args: Array<Any>): List<Type<*>>

转换参数为zvm的类型

Link copied to clipboard
fun LatticeFunction.decode(rawCode: String): List<Type<*>>
Link copied to clipboard
fun LatticeFunction.decodeReturn(rawCode: String): List<Type<*>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun List<EthereumABIElement>.filter(methodName: String? = null): EthereumABIElement

fun List<AbiDefinition>.filter(methodName: String?): AbiDefinition

查找abi中定义的方法

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun LatticeFunction.getTypeReferences(): Pair<List<TypeReference<Type<*>>>, List<TypeReference<Type<*>>>>

获取 Abi 中方法的输入输出定义

Link copied to clipboard
fun intSize(ty: String): Int
Link copied to clipboard
fun EthereumABIElement.isConstructor(): Boolean
fun AbiDefinition.isConstructor(): Boolean
Link copied to clipboard
fun EthereumABIElement.isFunction(): Boolean
fun AbiDefinition.isFunction(): Boolean
Link copied to clipboard
fun uintSize(ty: String): Int