Argument
public struct Argument : Codable, Equatable
The argument for Cadence code for encoding and decoding
-
The type of the argument in
Flow.Cadence.FType
Declaration
Swift
public let type: Cadence.FType
-
The value of the argument in
Flow.Cadence.FValue
Declaration
Swift
public let value: Cadence.FValue
-
Encode argument into json data.
Declaration
Swift
public var jsonData: Data? { get }
-
Encode argument into json string.
Declaration
Swift
public var jsonString: String? { get }
-
Initial argument with type and value
-
Initial argument with value in
Flow.Cadence.FValue
type -
Decode argument from json string
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
The data structure for
See more.path
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#pathDeclaration
Swift
public struct Path : Codable, Equatable
-
The data structure for
See more.struct, .resource, .event, .contract, .enum
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#composites-struct-resource-event-contract-enumDeclaration
Swift
public struct Event : Codable, Equatable
-
The data structure for
See more.reference
argument typeDeclaration
Swift
public struct Reference : Codable, Equatable
-
The data structure for
See more.dictionary
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#dictionaryDeclaration
Swift
public struct Dictionary : Codable, Equatable
-
The data structure for
See more.capability
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#capabilityDeclaration
Swift
public struct Capability : Codable, Equatable
-
The data structure for
See more.type
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#typeDeclaration
Swift
public struct StaticType : Codable, Equatable