EthereumAbiFunction

Represents Ethereum ABI function

Constructors

Link copied to clipboard
open fun EthereumAbiFunction(name: String)
Creates a function object, with the given name and empty parameter list.

Functions

Link copied to clipboard
open fun addInArrayParamAddress(arrayIdx: Int, val: Array<Byte>): Int
Adding an address type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamBool(arrayIdx: Int, val: Boolean): Int
Adding a bool type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamBytes(arrayIdx: Int, val: Array<Byte>): Int
Adding a bytes type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamBytesFix(arrayIdx: Int, size: Int, val: Array<Byte>): Int
Adding a int64 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamInt16(arrayIdx: Int, val: Short): Int
Adding a int16 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamInt256(arrayIdx: Int, val: Array<Byte>): Int
Adding a int256 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamInt32(arrayIdx: Int, val: Int): Int
Adding a int32 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamInt64(arrayIdx: Int, val: Long): Int
Adding a int64 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamInt8(arrayIdx: Int, val: Byte): Int
Adding a int8 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamIntN(arrayIdx: Int, bits: Int, val: Array<Byte>): Int
Adding a int[N] type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamString(arrayIdx: Int, val: String): Int
Adding a string type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamUInt16(arrayIdx: Int, val: Short): Int
Adding a uint16 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamUInt256(arrayIdx: Int, val: Array<Byte>): Int
Adding a uint256 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamUInt32(arrayIdx: Int, val: Int): Int
Adding a uint32 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamUInt64(arrayIdx: Int, val: Long): Int
Adding a uint64 type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addInArrayParamUInt8(arrayIdx: Int, val: Byte): Int
Methods for adding a parameter of the given type to a top-level input parameter array.
Link copied to clipboard
open fun addInArrayParamUIntN(arrayIdx: Int, bits: Int, val: Array<Byte>): Int
Adding a uint[N] type parameter of to the top-level input parameter array
Link copied to clipboard
open fun addParamAddress(val: Array<Byte>, isOutput: Boolean): Int
Add an address type parameter
Link copied to clipboard
open fun addParamArray(isOutput: Boolean): Int
Add a type[] type parameter
Link copied to clipboard
open fun addParamBool(val: Boolean, isOutput: Boolean): Int
Add a bool type parameter
Link copied to clipboard
open fun addParamBytes(val: Array<Byte>, isOutput: Boolean): Int
Add a bytes type parameter
Link copied to clipboard
open fun addParamBytesFix(size: Int, val: Array<Byte>, isOutput: Boolean): Int
Add a bytes[N] type parameter
Link copied to clipboard
open fun addParamInt16(val: Short, isOutput: Boolean): Int
Add a int16 type parameter
Link copied to clipboard
open fun addParamInt256(val: Array<Byte>, isOutput: Boolean): Int
Add a int256 type parameter
Link copied to clipboard
open fun addParamInt32(val: Int, isOutput: Boolean): Int
Add a int32 type parameter
Link copied to clipboard
open fun addParamInt64(val: Long, isOutput: Boolean): Int
Add a int64 type parameter
Link copied to clipboard
open fun addParamInt8(val: Byte, isOutput: Boolean): Int
Add a int8 type parameter
Link copied to clipboard
open fun addParamIntN(bits: Int, val: Array<Byte>, isOutput: Boolean): Int
Add a int(bits) type parameter
Link copied to clipboard
open fun addParamString(val: String, isOutput: Boolean): Int
Add a string type parameter
Link copied to clipboard
open fun addParamUInt16(val: Short, isOutput: Boolean): Int
Add a uint16 type parameter
Link copied to clipboard
open fun addParamUInt256(val: Array<Byte>, isOutput: Boolean): Int
Add a uint256 type parameter
Link copied to clipboard
open fun addParamUInt32(val: Int, isOutput: Boolean): Int
Add a uint32 type parameter
Link copied to clipboard
open fun addParamUInt64(val: Long, isOutput: Boolean): Int
Add a uint64 type parameter
Link copied to clipboard
open fun addParamUInt8(val: Byte, isOutput: Boolean): Int
Methods for adding parameters of the given type (input or output).
Link copied to clipboard
open fun addParamUIntN(bits: Int, val: Array<Byte>, isOutput: Boolean): Int
Add a uint(bits) type parameter
Link copied to clipboard
open fun getParamAddress(idx: Int, isOutput: Boolean): Array<Byte>
Get an address type parameter at the given index
Link copied to clipboard
open fun getParamBool(idx: Int, isOutput: Boolean): Boolean
Get a bool type parameter at the given index
Link copied to clipboard
open fun getParamString(idx: Int, isOutput: Boolean): String
Get a string type parameter at the given index
Link copied to clipboard
open fun getParamUInt256(idx: Int, isOutput: Boolean): Array<Byte>
Get a uint256 type parameter at the given index
Link copied to clipboard
open fun getParamUInt64(idx: Int, isOutput: Boolean): Long
Get a uint64 type parameter at the given index
Link copied to clipboard
open fun getParamUInt8(idx: Int, isOutput: Boolean): Byte
Methods for accessing the value of an output or input parameter, of different types.
Link copied to clipboard
open fun getType(): String
Return the function type signature, of the form "baz(int32,uint256)"