Uses of Class
avm.Address
-
Packages that use Address Package Description avm Defines routines specific to running in a blockchain environment and high-level types to interact with them.org.aion.avm.embed Defines classes which embed the AVM, directly.org.aion.avm.userlib Defines utility and quality-of-life classes which can optionally be used by user-defined contract code.org.aion.avm.userlib.abi Defines classes related to encoding/decoding the high-level data types serialized into transaction payload data. -
-
Uses of Address in avm
Methods in avm that return Address Modifier and Type Method Description static Address
Blockchain. getAddress()
Returns the owner's address, whose state is being accessed.static Address
Blockchain. getBlockCoinbase()
Returns the block coinbase.static Address
Blockchain. getCaller()
Returns the callers's address.static Address
Blockchain. getOrigin()
Returns the originator's address.Methods in avm with parameters of type Address Modifier and Type Method Description static Result
Blockchain. call(Address targetAddress, java.math.BigInteger value, byte[] data, long energyLimit)
Calls another account, whether it's normal account or dapp.static java.math.BigInteger
Blockchain. getBalance(Address address)
Returns the balance of an account.static int
Blockchain. getCodeSize(Address address)
Returns the size of the code, of the given account.static void
Blockchain. selfDestruct(Address beneficiary)
Destroys this dapp and refund all balance to the beneficiary address. -
Uses of Address in org.aion.avm.embed
Methods in org.aion.avm.embed that return Address Modifier and Type Method Description Address
AvmRule.ResultWrapper. getDappAddress()
Address
AvmRule. getPreminedAccount()
Address
AvmRule. getRandomAddress(java.math.BigInteger initialBalance)
Creates an account with an initial balance in the kernelMethods in org.aion.avm.embed with parameters of type Address Modifier and Type Method Description AvmRule.ResultWrapper
AvmRule. balanceTransfer(Address from, Address to, java.math.BigInteger value, long energyLimit, long energyPrice)
Makes a balance transfer.AvmRule.ResultWrapper
AvmRule. call(Address from, Address dappAddress, java.math.BigInteger value, byte[] transactionData)
Makes a call transaction to the Dapp.AvmRule.ResultWrapper
AvmRule. call(Address from, Address dappAddress, java.math.BigInteger value, byte[] transactionData, long energyLimit, long energyPrice)
Makes a call transaction to the Dapp.AvmRule.ResultWrapper
AvmRule. deploy(Address from, java.math.BigInteger value, byte[] dappBytes)
Deploys the Dapp.AvmRule.ResultWrapper
AvmRule. deploy(Address from, java.math.BigInteger value, byte[] dappBytes, long energyLimit, long energyPrice)
Deploys the Dapp. -
Uses of Address in org.aion.avm.userlib
Methods in org.aion.avm.userlib that return Address Modifier and Type Method Description Address
AionBuffer. getAddress()
Returns the next 32-byte Aion address in the buffer and advances the position.Methods in org.aion.avm.userlib with parameters of type Address Modifier and Type Method Description AionBuffer
AionBuffer. putAddress(Address value)
Stores an Aion address into the buffer and advances the position. -
Uses of Address in org.aion.avm.userlib.abi
Methods in org.aion.avm.userlib.abi that return Address Modifier and Type Method Description Address
ABIDecoder. decodeOneAddress()
Decode an address from the data field.Address[]
ABIDecoder. decodeOneAddressArray()
Decode an address array from the data field.Methods in org.aion.avm.userlib.abi with parameters of type Address Modifier and Type Method Description static byte[]
ABIEncoder. encodeOneAddress(Address data)
Encodes one Address as a serialized extent.ABIStreamingEncoder
ABIStreamingEncoder. encodeOneAddress(Address data)
Encode one address.static byte[]
ABIEncoder. encodeOneAddressArray(Address[] data)
Encodes one Address array as a serialized extent.ABIStreamingEncoder
ABIStreamingEncoder. encodeOneAddressArray(Address[] data)
Encode one address array.static int
ABIStreamingEncoder. getLengthOfOneAddress(Address data)
Returns the length of the ABI encoding of this Address.static int
ABIStreamingEncoder. getLengthOfOneStringArray(Address[] data)
Returns the length of the ABI encoding of this address array.
-