Structures

The following structures are available globally.

  • Fetching all the account balances is a lengthy task, involving many requests and parsing different structures. This struct abstract the developer away from knowing all these details, and instead allows developers to access wallets balances in a more normal approach

    See more

    Declaration

    Swift

    public struct Account : Codable, Hashable
    extension Account: Identifiable
  • Object ot abstract away a significatn amount of logic involved in computing estimated reward payments from a baker

    See more

    Declaration

    Swift

    public struct AggregateRewardInformation : Codable, Hashable, Equatable
  • An individual payment record denoting some payment in the past or future

    See more

    Declaration

    Swift

    public struct RewardDetails : Codable
  • A model matching the response that comes back from BetterCallDev’s API: v1/opg/<operation-hash>

    See more

    Declaration

    Swift

    public struct BetterCallDevOperation : Codable
  • BetterCallDev structure for errors

    See more

    Declaration

    Swift

    public struct BetterCallDevOperationError : Codable
  • Struct to hold 4 arrays of data, each one mapping to a different timeline of data, to allow the display of graphs

    See more

    Declaration

    Swift

    public struct DipDupChartData : Codable
  • Structure holding a data slice

    See more

    Declaration

    Swift

    public struct DipDupChartObject : Codable
  • Wrapper object to map to network response type

    See more

    Declaration

    Swift

    public struct DipDupExchangesAndTokensResponse : Codable
  • Wrapper object to map to network response type

    See more

    Declaration

    Swift

    public struct DipDupExchangesAndTokens : Codable
  • A DipDup Exchange object with all the necessary pieces for checking liquidity and performing Swaps

    See more

    Declaration

    Swift

    public struct DipDupExchange : Codable, Hashable, Equatable
  • Wrapper object to match network response type

    See more

    Declaration

    Swift

    public struct DipDupPosition : Codable
  • A position on DipDup corresponds to liquidity token ownership. Each of these objects represents an amount of Liquidity tokens in an exchange for the given address

    See more

    Declaration

    Swift

    public struct DipDupPositionData : Codable, Hashable, Equatable
  • DipDup representation of a Token

    See more

    Declaration

    Swift

    public struct DipDupToken : Codable, Hashable, Equatable
  • Model mapping to TzKT.io’s Account object

    See more

    Declaration

    Swift

    public struct TzKTAccount : Codable, Equatable
  • Model mapping to TzKT.io’s Account.Delegate Object

    See more

    Declaration

    Swift

    public struct TzKTAccountDelegate : Codable, Equatable
  • Details about a given contract

    See more

    Declaration

    Swift

    public struct TzKTAddress : Codable
  • Data representing a baker from TzKT or Baking-Bad

    See more

    Declaration

    Swift

    public struct TzKTBaker : Codable, Hashable
  • The bakers config file for details on when fees, min delegation etc change

    See more

    Declaration

    Swift

    public struct TzKTBakerConfig : Codable
  • Declaration

    Swift

    public struct TzKTBakerConfigDoubleValue : Codable
  • Declaration

    Swift

    public struct TzKTBakerConfigIntValue : Codable
  • Baker config payout flags

    See more

    Declaration

    Swift

    public struct TzKTBakerConfigRewardStruct : Codable
  • Model mapping to the Balance object returned from the new TzKT API, resulting from the merge of BCD and TzKT

    See more

    Declaration

    Swift

    public struct TzKTBalance : Codable
  • Model encapsulating information about the token itself

    See more

    Declaration

    Swift

    public struct TzKTBalanceToken : Codable
  • Metadata object for the token

    See more

    Declaration

    Swift

    public struct TzKTBalanceMetadata : Codable
  • Wrapper / Helper to extract metadata attribute content

    See more

    Declaration

    Swift

    public struct TzKTBalanceMetadataAttributeKeyValue : Codable, Hashable
  • Object containing information about the various formats the media is available in

    See more

    Declaration

    Swift

    public struct TzKTBalanceMetadataFormat : Codable
  • Object containing information about the dimensions of a given piece of media

    See more

    Declaration

    Swift

    public struct TzKTBalanceMetadataDimensions : Codable
  • The blockchain is broken down into cycles that last 2.7 days. Baker payment logic resolves around cycles instead of blocks

    See more

    Declaration

    Swift

    public struct TzKTCycle : Codable
  • An object containing info on the reward a delegator should receive from a baker

    See more

    Declaration

    Swift

    public struct TzKTDelegatorReward : Codable
  • A model matching the response that comes back from TzKT’s API: v1/operations/<operation-hash>

    See more

    Declaration

    Swift

    public struct TzKTOperation : Codable
  • TzKT’s more basic error object response

    See more

    Declaration

    Swift

    public struct TzKTOperationError : Codable
  • FA1.2 / FA2 token transafers are treated differently from transactions. This object is used when fetching data form the API, as a temporary placeholder, ultimately to be merged into the transactions

    See more

    Declaration

    Swift

    public struct TzKTTokenTransfer : Codable
  • A model matching the response that comes back from TzKT’s API: v1/accounts/<address>/operations

    See more

    Declaration

    Swift

    public struct TzKTTransaction : Codable, CustomStringConvertible, Hashable, Identifiable
  • Artifical object used to group related transactions into a more user friendly display For example, 1 contract call can reuslt in many transactions being returned. To avoid the users UI being clogged, we group all them into 1 group, so the user only needs to see 1 item for 1 action they performed

    See more

    Declaration

    Swift

    public struct TzKTTransactionGroup : Codable, Hashable, Identifiable, CustomStringConvertible
  • Structure representing the HEAD of the blockchain

    See more

    Declaration

    Swift

    public struct BlockchainHead : Codable
  • A struct to control what messages get logged

    See more

    Declaration

    Swift

    public struct LoggingConfig
  • A configuration object used to provide settings to the TezosNodeClient

    See more

    Declaration

    Swift

    public struct TezosNodeClientConfig
  • The gneric container object holding the raw data

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeLedgerKey : Codable
  • The unique data inside the Ledger BigMap

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeLedger : Codable
  • Network wrapper object

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeStorageResponse : Codable
  • Unique Quipuswap contract storage object

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeStorage : Codable
  • The gneric container object holding the raw data

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeUserRewardsKey : Codable
  • The unique data inside the User Rewards BigMap

    See more

    Declaration

    Swift

    public struct QuipuswapExchangeUserRewards : Codable
  • Dedicated “FailWith” parser for the codes received from Liquidity Baking contract

    See more

    Declaration

    Swift

    public struct FailWithParserLiquidityBaking : FailWithParser
  • GraphQL error object

    See more

    Declaration

    Swift

    public struct GraphQLError : Codable
  • Simple model object to wrap a GraphQL response to expose a Codable response without having to use large GraphQL libraries

    See more

    Declaration

    Swift

    public struct GraphQLResponse<T> : Codable where T : Decodable, T : Encodable
  • GarpQL bulk response for a group of collections

    See more

    Declaration

    Swift

    public struct ObjktCollections : Codable
  • Single collection item

    See more

    Declaration

    Swift

    public struct ObjktCollection : Codable
  • Declaration

    Swift

    public struct ObjktCreator : Codable
  • GarpQL response for required data for a given token

    See more

    Declaration

    Swift

    public struct ObjktTokenReponse : Codable
  • Single token item

    See more

    Declaration

    Swift

    public struct ObjktToken : Codable
  • Declaration

    Swift

    public struct ObjktAttribute : Codable
  • Declaration

    Swift

    public struct ObjktAttributeData : Codable
  • Declaration

    Swift

    public struct ObjktAttributeCounts : Codable
  • Declaration

    Swift

    public struct ObjktSale : Codable
  • Declaration

    Swift

    public struct ObjktListing : Codable
  • Single event item

    See more

    Declaration

    Swift

    public struct ObjktEvent : Codable
  • Single FA item

    See more

    Declaration

    Swift

    public struct ObjktFa : Codable

Domain

Reverse Record

  • Response object wrapper for querying a reverse record

    See more

    Declaration

    Swift

    public struct TezosDomainsDomainResponse : Codable
  • Response object wrapper for querying a reverse record in bulk

    See more

    Declaration

    Swift

    public struct TezosDomainsDomainBulkResponse : Codable
  • Object containing an array of reverse records

    See more

    Declaration

    Swift

    public struct TezosDomainsReverseRecords : Codable
  • Object containing all the info of the tezos domains record

    See more

    Declaration

    Swift

    public struct TezosDomainsReverseRecord : Codable
  • Wrapper object to hold onto all the necessary data in order to work with liquidity baking contract (swap, add or remove liqudity)

    See more

    Declaration

    Swift

    public struct LiquidityBakingData : Codable
  • NFT

    An indiviual NFT (not the parent token/collection) holding a URI to an asset somewhere on the internet

    See more

    Declaration

    Swift

    public struct NFT : Codable, Hashable
    extension NFT: Identifiable
  • The contants that a given Tezos node is using for block times, blakc size etc

    See more

    Declaration

    Swift

    public struct NetworkConstants : Codable
  • The version of the Tezos code being run by the given node

    See more

    Declaration

    Swift

    public struct NetworkVersion : Codable
  • property wrapper to easily handle a situation where we don’t want decoding to fail for 1 property which may be problematic. Instead just default it to nil

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct NilOnDecodingError<Wrapped>
    extension NilOnDecodingError: Decodable where Wrapped: Decodable
    extension NilOnDecodingError: Encodable where Wrapped: Encodable
  • Declaration

    Swift

    public struct OperationBlockHeader : Codable, Equatable
  • A structure representing all the fees, storage and computation needed to perform an Operation

    See more

    Declaration

    Swift

    public struct OperationFees : Equatable
  • Structure representing the metadata needed by Operation‘s in order to comply with the RPC standards

    See more

    Declaration

    Swift

    public struct OperationMetadata : Codable
  • A structure representing the request that needs to be made when sending Opertion‘s to the RPC

    See more

    Declaration

    Swift

    public struct OperationPayload : Codable, Equatable
  • Structure representing the response returned from RPC endpoints such as .../preapply/operations

    See more

    Declaration

    Swift

    public struct OperationResponse : Codable
  • The main content of the JSON returned

    Declaration

    Swift

    public struct OperationResponseContent : Codable
  • The metadata belonging to the OperationResponse

    Declaration

    Swift

    public struct OperationResponseMetadata : Codable
  • Struct representing a change to the balance of the sender, destination or intermediary contract

    Declaration

    Swift

    public struct BalanceUpdate : Codable
  • The inner result key from the OeprationResponse

    Declaration

    Swift

    public struct OperationResponseResult : Codable
  • Definition of the internal operation found inside OperationResponse

    Declaration

    Swift

    public struct OperationResponseInternalOperation : Codable
  • Definition of the outer Error object found inside OperationResponseInternalResult

    See more

    Declaration

    Swift

    public struct OperationResponseInternalResultError : Codable, Equatable
  • The error string, error int (code), or micheline error object returned inside FailWith

    See more

    Declaration

    Swift

    public struct FailWith : Codable, Equatable
  • Payload object needed when sending operations to …/run_operation

    Declaration

    Swift

    public struct RunOperationPayload : Codable
  • SVG image processor for Kingfisher library

    See more

    Declaration

    Swift

    public struct SVGImgProcessor : ImageProcessor
  • Object for sending a request through SignalR to listen to operations for a given account

    Declaration

    Swift

    public struct OperationSubscription : Codable
  • Container to store groups of WalletMetadata based on type

    See more

    Declaration

    Swift

    public struct WalletMetadataList : Codable, Hashable
  • Object to store UI related info about wallets, seperated from the wallet object itself to avoid issues merging together

    See more

    Declaration

    Swift

    public struct WalletMetadata : Codable, Hashable
  • A struct to hold all the necessary calculations for a dex trade

    See more

    Declaration

    Swift

    public struct DexSwapCalculationResult
  • A struct to hold all the necessary calculations for adding liquidity to a dex contract

    See more

    Declaration

    Swift

    public struct DexAddCalculationResult
  • A struct to hold all the necessary calculations for removing liquidity from a dex contract

    See more

    Declaration

    Swift

    public struct DexRemoveCalculationResult
  • A struct conforming to Error, attempting to handle errors from all sources (RPC, network, OS, other services/components/libraries), without the implementing code having to deal with each layer themselves. Comes with helpers to extract meaning from RPC errors, optionally includes all the network data that caused the error for easier retrieval, and a fallback human readbale description to ensure something useful is always shown to the user.

    See more

    Declaration

    Swift

    public struct KukaiError : CustomStringConvertible, Error
  • Declaration

    Swift

    public struct DApp
  • Declaration

    Swift

    public struct OfflineConstants

Types

  • SDK requires information about the verifer that can’t be stored inside the verifier, add a wrapper object to allow passing of all the data

    See more

    Declaration

    Swift

    public struct SubverifierWrapper