Skip to content

Property

MarcoDotIO edited this page Jun 30, 2023 · 2 revisions

Property

public struct Property: Hashable 

Inheritance

Hashable

Initializers

init(name:propertyType:value:)

public init(name: String, propertyType: String, value: AnyHashable) 

Properties

name

public let name: String

propertyType

public let propertyType: String

value

public let value: AnyHashable

BOOL

public static let BOOL: Int = 0

U8

public static let U8: Int = 1

U16

public static let U16: Int = 2

U32

public static let U32: Int = 3

U64

public static let U64: Int = 4

U128

public static let U128: Int = 5

U256

public static let U256: Int = 6

ADDRESS

public static let ADDRESS: Int = 7

BYTE_VECTOR

public static let BYTE_VECTOR: Int = 8

STRING

public static let STRING: Int = 9

Methods

serializeValue()

public func serializeValue() throws -> Data 

toTransactionArguments()

public func toTransactionArguments() throws -> [AnyTransactionArgument] 

parse(_:_:_:)

public static func parse(_ name: String, _ propertyType: Int, _ value: Data) throws -> Property 

bool(_:_:)

public static func bool(_ name: String, _ value: Bool) -> Property 

u8(_:_:)

public static func u8(_ name: String, _ value: UInt8) -> Property 

u16(_:_:)

public static func u16(_ name: String, _ value: UInt16) -> Property 

u32(_:_:)

public static func u32(_ name: String, _ value: UInt32) -> Property 

u64(_:_:)

public static func u64(_ name: String, _ value: UInt64) -> Property 

u128(_:_:)

public static func u128(_ name: String, _ value: UInt128) -> Property 

u256(_:_:)

public static func u256(_ name: String, _ value: UInt256) -> Property 

string(_:_:)

public static func string(_ name: String, _ value: String) -> Property 

bytes(_:_:)

public static func bytes(_ name: String, _ value: Data) -> Property 

Operators

==

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