Skip to content

ScriptArgument

MarcoDotIO edited this page Jul 4, 2023 · 2 revisions

ScriptArgument

Aptos Blockchain Script Argument

public struct ScriptArgument: KeyProtocol, Equatable 

Inheritance

Equatable, KeyProtocol

Initializers

init(_:_:)

public init(_ variant: UInt8, _ value: Any) throws 

Properties

u8

UInt8 Variant

public static let u8: UInt8 = 0

u64

UInt64 Variant

public static let u64: UInt8 = 1

u128

UInt128 Variant

public static let u128: UInt8 = 2

address

AccountAddress Variant

public static let address: UInt8 = 3

u8Vector

Vector Variant

public static let u8Vector: UInt8 = 4

bool

Boolean Variant

public static let bool: UInt8 = 5

u16

UInt16 Variant

public static let u16: UInt8 = 6

u32

UInt32 Variant

public static let u32: UInt8 = 7

u256

UInt256 Variant

public static let u256: UInt8 = 8

variant

The variant value itself

public var variant: UInt8

value

The value itself

public var value: Any

Methods

deserialize(from:)

public static func deserialize(from deserializer: Deserializer) throws -> ScriptArgument 

serialize(_:)

public func serialize(_ serializer: Serializer) throws 

Operators

==

public static func == (lhs: ScriptArgument, rhs: ScriptArgument) -> Bool 
Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally