Argument
public struct Argument : Codable, Equatable
The argument for Cadence code for encoding and decoding
-
The type of the argument in
Flow.Cadence.FTypeDeclaration
Swift
public let type: Cadence.FType -
The value of the argument in
Flow.Cadence.FValueDeclaration
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.FValuetype -
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.pathargument 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, .enumargument 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.referenceargument typeDeclaration
Swift
public struct Reference : Codable, Equatable -
The data structure for
See more.dictionaryargument 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.capabilityargument 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.typeargument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#typeDeclaration
Swift
public struct StaticType : Codable, Equatable
View on GitHub
Argument Structure Reference