Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7542 lines (6401 sloc) 268 KB
// DO NOT EDIT.
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: rpc.proto
//
// For information on using the generated types, please see the documenation:
// https://github.com/apple/swift-protobuf/
import Foundation
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that your are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
/// create_tx(itx, wallet, token)
public struct ForgeAbi_RequestCreateTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var itx: SwiftProtobuf.Google_Protobuf_Any {
get {return _storage._itx ?? SwiftProtobuf.Google_Protobuf_Any()}
set {_uniqueStorage()._itx = newValue}
}
/// Returns true if `itx` has been explicitly set.
public var hasItx: Bool {return _storage._itx != nil}
/// Clears the value of `itx`. Subsequent reads from it will return its default value.
public mutating func clearItx() {_uniqueStorage()._itx = nil}
public var from: String {
get {return _storage._from}
set {_uniqueStorage()._from = newValue}
}
public var nonce: UInt64 {
get {return _storage._nonce}
set {_uniqueStorage()._nonce = newValue}
}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseCreateTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var tx: ForgeAbi_Transaction {
get {return _storage._tx ?? ForgeAbi_Transaction()}
set {_uniqueStorage()._tx = newValue}
}
/// Returns true if `tx` has been explicitly set.
public var hasTx: Bool {return _storage._tx != nil}
/// Clears the value of `tx`. Subsequent reads from it will return its default value.
public mutating func clearTx() {_uniqueStorage()._tx = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// multisig(tx, wallet, token)
public struct ForgeAbi_RequestMultisig {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var tx: ForgeAbi_Transaction {
get {return _storage._tx ?? ForgeAbi_Transaction()}
set {_uniqueStorage()._tx = newValue}
}
/// Returns true if `tx` has been explicitly set.
public var hasTx: Bool {return _storage._tx != nil}
/// Clears the value of `tx`. Subsequent reads from it will return its default value.
public mutating func clearTx() {_uniqueStorage()._tx = nil}
/// extra data for multisig
public var data: SwiftProtobuf.Google_Protobuf_Any {
get {return _storage._data ?? SwiftProtobuf.Google_Protobuf_Any()}
set {_uniqueStorage()._data = newValue}
}
/// Returns true if `data` has been explicitly set.
public var hasData: Bool {return _storage._data != nil}
/// Clears the value of `data`. Subsequent reads from it will return its default value.
public mutating func clearData() {_uniqueStorage()._data = nil}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var delegatee: String {
get {return _storage._delegatee}
set {_uniqueStorage()._delegatee = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseMultisig {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var tx: ForgeAbi_Transaction {
get {return _storage._tx ?? ForgeAbi_Transaction()}
set {_uniqueStorage()._tx = newValue}
}
/// Returns true if `tx` has been explicitly set.
public var hasTx: Bool {return _storage._tx != nil}
/// Clears the value of `tx`. Subsequent reads from it will return its default value.
public mutating func clearTx() {_uniqueStorage()._tx = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// send_tx(tx, wallet, token, commit \\ false)
public struct ForgeAbi_RequestSendTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var tx: ForgeAbi_Transaction {
get {return _storage._tx ?? ForgeAbi_Transaction()}
set {_uniqueStorage()._tx = newValue}
}
/// Returns true if `tx` has been explicitly set.
public var hasTx: Bool {return _storage._tx != nil}
/// Clears the value of `tx`. Subsequent reads from it will return its default value.
public mutating func clearTx() {_uniqueStorage()._tx = nil}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var commit: Bool {
get {return _storage._commit}
set {_uniqueStorage()._commit = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseSendTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var hash: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// get_tx(hash)
public struct ForgeAbi_RequestGetTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var hash: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var info: ForgeAbi_TransactionInfo {
get {return _storage._info ?? ForgeAbi_TransactionInfo()}
set {_uniqueStorage()._info = newValue}
}
/// Returns true if `info` has been explicitly set.
public var hasInfo: Bool {return _storage._info != nil}
/// Clears the value of `info`. Subsequent reads from it will return its default value.
public mutating func clearInfo() {_uniqueStorage()._info = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// get_block(height)
public struct ForgeAbi_RequestGetBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var block: ForgeAbi_BlockInfo {
get {return _storage._block ?? ForgeAbi_BlockInfo()}
set {_uniqueStorage()._block = newValue}
}
/// Returns true if `block` has been explicitly set.
public var hasBlock: Bool {return _storage._block != nil}
/// Clears the value of `block`. Subsequent reads from it will return its default value.
public mutating func clearBlock() {_uniqueStorage()._block = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetBlocks {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var heightFilter: ForgeAbi_RangeFilter {
get {return _storage._heightFilter ?? ForgeAbi_RangeFilter()}
set {_uniqueStorage()._heightFilter = newValue}
}
/// Returns true if `heightFilter` has been explicitly set.
public var hasHeightFilter: Bool {return _storage._heightFilter != nil}
/// Clears the value of `heightFilter`. Subsequent reads from it will return its default value.
public mutating func clearHeightFilter() {_uniqueStorage()._heightFilter = nil}
public var emptyExcluded: Bool {
get {return _storage._emptyExcluded}
set {_uniqueStorage()._emptyExcluded = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseGetBlocks {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var blocks: [ForgeAbi_BlockInfoSimple] {
get {return _storage._blocks}
set {_uniqueStorage()._blocks = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// create_wallet(moniker, passphrase): create an account locally
public struct ForgeAbi_RequestCreateWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var passphrase: String {
get {return _storage._passphrase}
set {_uniqueStorage()._passphrase = newValue}
}
public var type: ForgeAbi_WalletType {
get {return _storage._type ?? ForgeAbi_WalletType()}
set {_uniqueStorage()._type = newValue}
}
/// Returns true if `type` has been explicitly set.
public var hasType: Bool {return _storage._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
public mutating func clearType() {_uniqueStorage()._type = nil}
public var moniker: String {
get {return _storage._moniker}
set {_uniqueStorage()._moniker = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseCreateWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// load_wallet(address, passphrase): load account to memory with given
/// passphrase
public struct ForgeAbi_RequestLoadWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var passphrase: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseLoadWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// recover_wallet(data, passphrase): recover to a keystore with given
/// passphrase. data could be seed words or bytes of secret key.
public struct ForgeAbi_RequestRecoverWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var data: Data {
get {return _storage._data}
set {_uniqueStorage()._data = newValue}
}
public var type: ForgeAbi_WalletType {
get {return _storage._type ?? ForgeAbi_WalletType()}
set {_uniqueStorage()._type = newValue}
}
/// Returns true if `type` has been explicitly set.
public var hasType: Bool {return _storage._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
public mutating func clearType() {_uniqueStorage()._type = nil}
public var passphrase: String {
get {return _storage._passphrase}
set {_uniqueStorage()._passphrase = newValue}
}
public var moniker: String {
get {return _storage._moniker}
set {_uniqueStorage()._moniker = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseRecoverWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var token: String {
get {return _storage._token}
set {_uniqueStorage()._token = newValue}
}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// list_wallet(): list accounts stored in this node
public struct ForgeAbi_RequestListWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseListWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var address: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// remove_wallet(hash): remove account by hash for this node
public struct ForgeAbi_RequestRemoveWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseRemoveWallet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_RequestDeclareNode {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var validator: Bool = false
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseDeclareNode {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var wallet: ForgeAbi_WalletInfo {
get {return _storage._wallet ?? ForgeAbi_WalletInfo()}
set {_uniqueStorage()._wallet = newValue}
}
/// Returns true if `wallet` has been explicitly set.
public var hasWallet: Bool {return _storage._wallet != nil}
/// Clears the value of `wallet`. Subsequent reads from it will return its default value.
public mutating func clearWallet() {_uniqueStorage()._wallet = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// get_account_state(address, key): retrieve the current state from a list of
/// wallet addresses, return the value of the key. If key is omitted, return
/// entire account states
public struct ForgeAbi_RequestGetAccountState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetAccountState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_AccountState {
get {return _storage._state ?? ForgeAbi_AccountState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetAssetState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetAssetState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_AssetState {
get {return _storage._state ?? ForgeAbi_AssetState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetProtocolState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetProtocolState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_ProtocolState {
get {return _storage._state ?? ForgeAbi_ProtocolState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetStakeState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetStakeState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_StakeState {
get {return _storage._state ?? ForgeAbi_StakeState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// get_forge_state(key): retrieve Forge state by key. If key is omitted, return
/// entire Forge state
public struct ForgeAbi_RequestGetForgeState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetForgeState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_ForgeState {
get {return _storage._state ?? ForgeAbi_ForgeState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetTetherState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetTetherState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_TetherState {
get {return _storage._state ?? ForgeAbi_TetherState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetSwapState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetSwapState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_SwapState {
get {return _storage._state ?? ForgeAbi_SwapState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetDelegateState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: String = String()
public var keys: [String] = []
public var height: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetDelegateState {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var state: ForgeAbi_DelegateState {
get {return _storage._state ?? ForgeAbi_DelegateState()}
set {_uniqueStorage()._state = newValue}
}
/// Returns true if `state` has been explicitly set.
public var hasState: Bool {return _storage._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
public mutating func clearState() {_uniqueStorage()._state = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// store_file(chunk): store a piece of data into ipfs, return its hash address
public struct ForgeAbi_RequestStoreFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var chunk: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseStoreFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var hash: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// load_file(hash): load a hash address from ipfs and return the file content
public struct ForgeAbi_RequestLoadFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var hash: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseLoadFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var chunk: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// pin_file(hash): pin a hash address into ipfs, return ok if success
public struct ForgeAbi_RequestPinFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var hash: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponsePinFile {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// get_chain_info(): retrieve the current chain information
public struct ForgeAbi_RequestGetChainInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetChainInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var info: ForgeAbi_ChainInfo {
get {return _storage._info ?? ForgeAbi_ChainInfo()}
set {_uniqueStorage()._info = newValue}
}
/// Returns true if `info` has been explicitly set.
public var hasInfo: Bool {return _storage._info != nil}
/// Clears the value of `info`. Subsequent reads from it will return its default value.
public mutating func clearInfo() {_uniqueStorage()._info = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// get_node_info(): retrieve the current node information
public struct ForgeAbi_RequestGetNodeInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetNodeInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var info: ForgeAbi_NodeInfo {
get {return _storage._info ?? ForgeAbi_NodeInfo()}
set {_uniqueStorage()._info = newValue}
}
/// Returns true if `info` has been explicitly set.
public var hasInfo: Bool {return _storage._info != nil}
/// Clears the value of `info`. Subsequent reads from it will return its default value.
public mutating func clearInfo() {_uniqueStorage()._info = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// search(term): retrieve related transactions by a search term (prefix match)
public struct ForgeAbi_RequestSearch {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var key: String = String()
public var value: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseSearch {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var txs: [ForgeAbi_TransactionInfo] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_RequestGetUnconfirmedTxs {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseGetUnconfirmedTxs {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var unconfirmedTxs: ForgeAbi_UnconfirmedTxs {
get {return _storage._unconfirmedTxs ?? ForgeAbi_UnconfirmedTxs()}
set {_uniqueStorage()._unconfirmedTxs = newValue}
}
/// Returns true if `unconfirmedTxs` has been explicitly set.
public var hasUnconfirmedTxs: Bool {return _storage._unconfirmedTxs != nil}
/// Clears the value of `unconfirmedTxs`. Subsequent reads from it will return its default value.
public mutating func clearUnconfirmedTxs() {_uniqueStorage()._unconfirmedTxs = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetNetInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetNetInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var netInfo: ForgeAbi_NetInfo {
get {return _storage._netInfo ?? ForgeAbi_NetInfo()}
set {_uniqueStorage()._netInfo = newValue}
}
/// Returns true if `netInfo` has been explicitly set.
public var hasNetInfo: Bool {return _storage._netInfo != nil}
/// Clears the value of `netInfo`. Subsequent reads from it will return its default value.
public mutating func clearNetInfo() {_uniqueStorage()._netInfo = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetValidatorsInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetValidatorsInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var validatorsInfo: ForgeAbi_ValidatorsInfo {
get {return _storage._validatorsInfo ?? ForgeAbi_ValidatorsInfo()}
set {_uniqueStorage()._validatorsInfo = newValue}
}
/// Returns true if `validatorsInfo` has been explicitly set.
public var hasValidatorsInfo: Bool {return _storage._validatorsInfo != nil}
/// Clears the value of `validatorsInfo`. Subsequent reads from it will return its default value.
public mutating func clearValidatorsInfo() {_uniqueStorage()._validatorsInfo = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// filter could be: value.header.height > 10086 and value.byzantine_validators
/// != []
public struct ForgeAbi_RequestSubscribe {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var topic: String = String()
public var filter: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseSubscribe {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var value: OneOf_Value? {
get {return _storage._value}
set {_uniqueStorage()._value = newValue}
}
public var topic: String {
get {
if case .topic(let v)? = _storage._value {return v}
return String()
}
set {_uniqueStorage()._value = .topic(newValue)}
}
public var transfer: ForgeAbi_Transaction {
get {
if case .transfer(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .transfer(newValue)}
}
public var accountMigrate: ForgeAbi_Transaction {
get {
if case .accountMigrate(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .accountMigrate(newValue)}
}
public var confirm: ForgeAbi_Transaction {
get {
if case .confirm(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .confirm(newValue)}
}
public var createAsset: ForgeAbi_Transaction {
get {
if case .createAsset(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .createAsset(newValue)}
}
public var exchange: ForgeAbi_Transaction {
get {
if case .exchange(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .exchange(newValue)}
}
public var revoke: ForgeAbi_Transaction {
get {
if case .revoke(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .revoke(newValue)}
}
public var beginBlock: AbciVendor_RequestBeginBlock {
get {
if case .beginBlock(let v)? = _storage._value {return v}
return AbciVendor_RequestBeginBlock()
}
set {_uniqueStorage()._value = .beginBlock(newValue)}
}
public var endBlock: AbciVendor_RequestEndBlock {
get {
if case .endBlock(let v)? = _storage._value {return v}
return AbciVendor_RequestEndBlock()
}
set {_uniqueStorage()._value = .endBlock(newValue)}
}
public var declare: ForgeAbi_Transaction {
get {
if case .declare(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .declare(newValue)}
}
public var updateAsset: ForgeAbi_Transaction {
get {
if case .updateAsset(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .updateAsset(newValue)}
}
public var consensusUpgrade: ForgeAbi_Transaction {
get {
if case .consensusUpgrade(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .consensusUpgrade(newValue)}
}
public var declareFile: ForgeAbi_Transaction {
get {
if case .declareFile(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .declareFile(newValue)}
}
public var sysUpgrade: ForgeAbi_Transaction {
get {
if case .sysUpgrade(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .sysUpgrade(newValue)}
}
public var stake: ForgeAbi_Transaction {
get {
if case .stake(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .stake(newValue)}
}
public var delegate: ForgeAbi_Transaction {
get {
if case .delegate(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .delegate(newValue)}
}
public var activateProtocol: ForgeAbi_Transaction {
get {
if case .activateProtocol(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .activateProtocol(newValue)}
}
public var deactivateProtocol: ForgeAbi_Transaction {
get {
if case .deactivateProtocol(let v)? = _storage._value {return v}
return ForgeAbi_Transaction()
}
set {_uniqueStorage()._value = .deactivateProtocol(newValue)}
}
public var accountState: ForgeAbi_AccountState {
get {
if case .accountState(let v)? = _storage._value {return v}
return ForgeAbi_AccountState()
}
set {_uniqueStorage()._value = .accountState(newValue)}
}
public var assetState: ForgeAbi_AssetState {
get {
if case .assetState(let v)? = _storage._value {return v}
return ForgeAbi_AssetState()
}
set {_uniqueStorage()._value = .assetState(newValue)}
}
public var forgeState: ForgeAbi_ForgeState {
get {
if case .forgeState(let v)? = _storage._value {return v}
return ForgeAbi_ForgeState()
}
set {_uniqueStorage()._value = .forgeState(newValue)}
}
public var stakeState: ForgeAbi_StakeState {
get {
if case .stakeState(let v)? = _storage._value {return v}
return ForgeAbi_StakeState()
}
set {_uniqueStorage()._value = .stakeState(newValue)}
}
public var protocolState: ForgeAbi_ProtocolState {
get {
if case .protocolState(let v)? = _storage._value {return v}
return ForgeAbi_ProtocolState()
}
set {_uniqueStorage()._value = .protocolState(newValue)}
}
public var delegateState: ForgeAbi_DelegateState {
get {
if case .delegateState(let v)? = _storage._value {return v}
return ForgeAbi_DelegateState()
}
set {_uniqueStorage()._value = .delegateState(newValue)}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public enum OneOf_Value: Equatable {
case topic(String)
case transfer(ForgeAbi_Transaction)
case accountMigrate(ForgeAbi_Transaction)
case confirm(ForgeAbi_Transaction)
case createAsset(ForgeAbi_Transaction)
case exchange(ForgeAbi_Transaction)
case revoke(ForgeAbi_Transaction)
case beginBlock(AbciVendor_RequestBeginBlock)
case endBlock(AbciVendor_RequestEndBlock)
case declare(ForgeAbi_Transaction)
case updateAsset(ForgeAbi_Transaction)
case consensusUpgrade(ForgeAbi_Transaction)
case declareFile(ForgeAbi_Transaction)
case sysUpgrade(ForgeAbi_Transaction)
case stake(ForgeAbi_Transaction)
case delegate(ForgeAbi_Transaction)
case activateProtocol(ForgeAbi_Transaction)
case deactivateProtocol(ForgeAbi_Transaction)
case accountState(ForgeAbi_AccountState)
case assetState(ForgeAbi_AssetState)
case forgeState(ForgeAbi_ForgeState)
case stakeState(ForgeAbi_StakeState)
case protocolState(ForgeAbi_ProtocolState)
case delegateState(ForgeAbi_DelegateState)
#if !swift(>=4.1)
public static func ==(lhs: ForgeAbi_ResponseSubscribe.OneOf_Value, rhs: ForgeAbi_ResponseSubscribe.OneOf_Value) -> Bool {
switch (lhs, rhs) {
case (.topic(let l), .topic(let r)): return l == r
case (.transfer(let l), .transfer(let r)): return l == r
case (.accountMigrate(let l), .accountMigrate(let r)): return l == r
case (.confirm(let l), .confirm(let r)): return l == r
case (.createAsset(let l), .createAsset(let r)): return l == r
case (.exchange(let l), .exchange(let r)): return l == r
case (.revoke(let l), .revoke(let r)): return l == r
case (.beginBlock(let l), .beginBlock(let r)): return l == r
case (.endBlock(let l), .endBlock(let r)): return l == r
case (.declare(let l), .declare(let r)): return l == r
case (.updateAsset(let l), .updateAsset(let r)): return l == r
case (.consensusUpgrade(let l), .consensusUpgrade(let r)): return l == r
case (.declareFile(let l), .declareFile(let r)): return l == r
case (.sysUpgrade(let l), .sysUpgrade(let r)): return l == r
case (.stake(let l), .stake(let r)): return l == r
case (.delegate(let l), .delegate(let r)): return l == r
case (.activateProtocol(let l), .activateProtocol(let r)): return l == r
case (.deactivateProtocol(let l), .deactivateProtocol(let r)): return l == r
case (.accountState(let l), .accountState(let r)): return l == r
case (.assetState(let l), .assetState(let r)): return l == r
case (.forgeState(let l), .forgeState(let r)): return l == r
case (.stakeState(let l), .stakeState(let r)): return l == r
case (.protocolState(let l), .protocolState(let r)): return l == r
case (.delegateState(let l), .delegateState(let r)): return l == r
default: return false
}
}
#endif
}
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestUnsubscribe {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var topic: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseUnsubscribe {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// get config
public struct ForgeAbi_RequestGetConfig {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var parsed: Bool = false
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetConfig {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode = .ok
public var config: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ByDay {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var startDate: String = String()
public var endDate: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ByHour {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var date: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_RequestGetForgeStats {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var value: OneOf_Value? {
get {return _storage._value}
set {_uniqueStorage()._value = newValue}
}
public var dayInfo: ForgeAbi_ByDay {
get {
if case .dayInfo(let v)? = _storage._value {return v}
return ForgeAbi_ByDay()
}
set {_uniqueStorage()._value = .dayInfo(newValue)}
}
public var date: ForgeAbi_ByHour {
get {
if case .date(let v)? = _storage._value {return v}
return ForgeAbi_ByHour()
}
set {_uniqueStorage()._value = .date(newValue)}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public enum OneOf_Value: Equatable {
case dayInfo(ForgeAbi_ByDay)
case date(ForgeAbi_ByHour)
#if !swift(>=4.1)
public static func ==(lhs: ForgeAbi_RequestGetForgeStats.OneOf_Value, rhs: ForgeAbi_RequestGetForgeStats.OneOf_Value) -> Bool {
switch (lhs, rhs) {
case (.dayInfo(let l), .dayInfo(let r)): return l == r
case (.date(let l), .date(let r)): return l == r
default: return false
}
}
#endif
}
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseGetForgeStats {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var forgeStats: ForgeAbi_ForgeStats {
get {return _storage._forgeStats ?? ForgeAbi_ForgeStats()}
set {_uniqueStorage()._forgeStats = newValue}
}
/// Returns true if `forgeStats` has been explicitly set.
public var hasForgeStats: Bool {return _storage._forgeStats != nil}
/// Clears the value of `forgeStats`. Subsequent reads from it will return its default value.
public mutating func clearForgeStats() {_uniqueStorage()._forgeStats = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListTransactions {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var timeFilter: ForgeAbi_TimeFilter {
get {return _storage._timeFilter ?? ForgeAbi_TimeFilter()}
set {_uniqueStorage()._timeFilter = newValue}
}
/// Returns true if `timeFilter` has been explicitly set.
public var hasTimeFilter: Bool {return _storage._timeFilter != nil}
/// Clears the value of `timeFilter`. Subsequent reads from it will return its default value.
public mutating func clearTimeFilter() {_uniqueStorage()._timeFilter = nil}
public var addressFilter: ForgeAbi_AddressFilter {
get {return _storage._addressFilter ?? ForgeAbi_AddressFilter()}
set {_uniqueStorage()._addressFilter = newValue}
}
/// Returns true if `addressFilter` has been explicitly set.
public var hasAddressFilter: Bool {return _storage._addressFilter != nil}
/// Clears the value of `addressFilter`. Subsequent reads from it will return its default value.
public mutating func clearAddressFilter() {_uniqueStorage()._addressFilter = nil}
public var typeFilter: ForgeAbi_TypeFilter {
get {return _storage._typeFilter ?? ForgeAbi_TypeFilter()}
set {_uniqueStorage()._typeFilter = newValue}
}
/// Returns true if `typeFilter` has been explicitly set.
public var hasTypeFilter: Bool {return _storage._typeFilter != nil}
/// Clears the value of `typeFilter`. Subsequent reads from it will return its default value.
public mutating func clearTypeFilter() {_uniqueStorage()._typeFilter = nil}
public var validityFilter: ForgeAbi_ValidityFilter {
get {return _storage._validityFilter ?? ForgeAbi_ValidityFilter()}
set {_uniqueStorage()._validityFilter = newValue}
}
/// Returns true if `validityFilter` has been explicitly set.
public var hasValidityFilter: Bool {return _storage._validityFilter != nil}
/// Clears the value of `validityFilter`. Subsequent reads from it will return its default value.
public mutating func clearValidityFilter() {_uniqueStorage()._validityFilter = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListTransactions {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var transactions: [ForgeAbi_IndexedTransaction] {
get {return _storage._transactions}
set {_uniqueStorage()._transactions = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListAssets {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var ownerAddress: String {
get {return _storage._ownerAddress}
set {_uniqueStorage()._ownerAddress = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListAssets {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var assets: [ForgeAbi_IndexedAssetState] {
get {return _storage._assets}
set {_uniqueStorage()._assets = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListStakes {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var addressFilter: ForgeAbi_AddressFilter {
get {return _storage._addressFilter ?? ForgeAbi_AddressFilter()}
set {_uniqueStorage()._addressFilter = newValue}
}
/// Returns true if `addressFilter` has been explicitly set.
public var hasAddressFilter: Bool {return _storage._addressFilter != nil}
/// Clears the value of `addressFilter`. Subsequent reads from it will return its default value.
public mutating func clearAddressFilter() {_uniqueStorage()._addressFilter = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListStakes {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var stakes: [ForgeAbi_IndexedStakeState] {
get {return _storage._stakes}
set {_uniqueStorage()._stakes = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListAccount {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var ownerAddress: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseListAccount {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var account: ForgeAbi_IndexedAccountState {
get {return _storage._account ?? ForgeAbi_IndexedAccountState()}
set {_uniqueStorage()._account = newValue}
}
/// Returns true if `account` has been explicitly set.
public var hasAccount: Bool {return _storage._account != nil}
/// Clears the value of `account`. Subsequent reads from it will return its default value.
public mutating func clearAccount() {_uniqueStorage()._account = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListTopAccounts {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListTopAccounts {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var accounts: [ForgeAbi_IndexedAccountState] {
get {return _storage._accounts}
set {_uniqueStorage()._accounts = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListAssetTransactions {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var address: String {
get {return _storage._address}
set {_uniqueStorage()._address = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListAssetTransactions {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var transactions: [ForgeAbi_IndexedTransaction] {
get {return _storage._transactions}
set {_uniqueStorage()._transactions = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListBlocks {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var proposer: String {
get {return _storage._proposer}
set {_uniqueStorage()._proposer = newValue}
}
public var timeFilter: ForgeAbi_TimeFilter {
get {return _storage._timeFilter ?? ForgeAbi_TimeFilter()}
set {_uniqueStorage()._timeFilter = newValue}
}
/// Returns true if `timeFilter` has been explicitly set.
public var hasTimeFilter: Bool {return _storage._timeFilter != nil}
/// Clears the value of `timeFilter`. Subsequent reads from it will return its default value.
public mutating func clearTimeFilter() {_uniqueStorage()._timeFilter = nil}
public var heightFilter: ForgeAbi_RangeFilter {
get {return _storage._heightFilter ?? ForgeAbi_RangeFilter()}
set {_uniqueStorage()._heightFilter = newValue}
}
/// Returns true if `heightFilter` has been explicitly set.
public var hasHeightFilter: Bool {return _storage._heightFilter != nil}
/// Clears the value of `heightFilter`. Subsequent reads from it will return its default value.
public mutating func clearHeightFilter() {_uniqueStorage()._heightFilter = nil}
public var numTxsFilter: ForgeAbi_RangeFilter {
get {return _storage._numTxsFilter ?? ForgeAbi_RangeFilter()}
set {_uniqueStorage()._numTxsFilter = newValue}
}
/// Returns true if `numTxsFilter` has been explicitly set.
public var hasNumTxsFilter: Bool {return _storage._numTxsFilter != nil}
/// Clears the value of `numTxsFilter`. Subsequent reads from it will return its default value.
public mutating func clearNumTxsFilter() {_uniqueStorage()._numTxsFilter = nil}
public var numInvalidTxsFilter: ForgeAbi_RangeFilter {
get {return _storage._numInvalidTxsFilter ?? ForgeAbi_RangeFilter()}
set {_uniqueStorage()._numInvalidTxsFilter = newValue}
}
/// Returns true if `numInvalidTxsFilter` has been explicitly set.
public var hasNumInvalidTxsFilter: Bool {return _storage._numInvalidTxsFilter != nil}
/// Clears the value of `numInvalidTxsFilter`. Subsequent reads from it will return its default value.
public mutating func clearNumInvalidTxsFilter() {_uniqueStorage()._numInvalidTxsFilter = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListBlocks {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var blocks: [ForgeAbi_IndexedBlock] {
get {return _storage._blocks}
set {_uniqueStorage()._blocks = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListTethers {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var depositor: String {
get {return _storage._depositor}
set {_uniqueStorage()._depositor = newValue}
}
public var withdrawer: String {
get {return _storage._withdrawer}
set {_uniqueStorage()._withdrawer = newValue}
}
public var custodian: String {
get {return _storage._custodian}
set {_uniqueStorage()._custodian = newValue}
}
public var available: Bool {
get {return _storage._available}
set {_uniqueStorage()._available = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListTethers {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var tethers: [ForgeAbi_TetherState] {
get {return _storage._tethers}
set {_uniqueStorage()._tethers = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestListSwap {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var paging: ForgeAbi_PageInput {
get {return _storage._paging ?? ForgeAbi_PageInput()}
set {_uniqueStorage()._paging = newValue}
}
/// Returns true if `paging` has been explicitly set.
public var hasPaging: Bool {return _storage._paging != nil}
/// Clears the value of `paging`. Subsequent reads from it will return its default value.
public mutating func clearPaging() {_uniqueStorage()._paging = nil}
public var sender: String {
get {return _storage._sender}
set {_uniqueStorage()._sender = newValue}
}
public var receiver: String {
get {return _storage._receiver}
set {_uniqueStorage()._receiver = newValue}
}
public var available: Bool {
get {return _storage._available}
set {_uniqueStorage()._available = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_ResponseListSwap {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var page: ForgeAbi_PageInfo {
get {return _storage._page ?? ForgeAbi_PageInfo()}
set {_uniqueStorage()._page = newValue}
}
/// Returns true if `page` has been explicitly set.
public var hasPage: Bool {return _storage._page != nil}
/// Clears the value of `page`. Subsequent reads from it will return its default value.
public mutating func clearPage() {_uniqueStorage()._page = nil}
public var swap: [ForgeAbi_SwapState] {
get {return _storage._swap}
set {_uniqueStorage()._swap = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct ForgeAbi_RequestGetHealthStatus {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct ForgeAbi_ResponseGetHealthStatus {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: ForgeAbi_StatusCode {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
public var healthStatus: ForgeAbi_HealthStatus {
get {return _storage._healthStatus ?? ForgeAbi_HealthStatus()}
set {_uniqueStorage()._healthStatus = newValue}
}
/// Returns true if `healthStatus` has been explicitly set.
public var hasHealthStatus: Bool {return _storage._healthStatus != nil}
/// Clears the value of `healthStatus`. Subsequent reads from it will return its default value.
public mutating func clearHealthStatus() {_uniqueStorage()._healthStatus = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "forge_abi"
extension ForgeAbi_RequestCreateTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestCreateTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "itx"),
2: .same(proto: "from"),
3: .same(proto: "nonce"),
4: .same(proto: "wallet"),
5: .same(proto: "token"),
]
fileprivate class _StorageClass {
var _itx: SwiftProtobuf.Google_Protobuf_Any? = nil
var _from: String = String()
var _nonce: UInt64 = 0
var _wallet: ForgeAbi_WalletInfo? = nil
var _token: String = String()
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_itx = source._itx
_from = source._from
_nonce = source._nonce
_wallet = source._wallet
_token = source._token
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._itx)
case 2: try decoder.decodeSingularStringField(value: &_storage._from)
case 3: try decoder.decodeSingularUInt64Field(value: &_storage._nonce)
case 4: try decoder.decodeSingularMessageField(value: &_storage._wallet)
case 5: try decoder.decodeSingularStringField(value: &_storage._token)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._itx {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !_storage._from.isEmpty {
try visitor.visitSingularStringField(value: _storage._from, fieldNumber: 2)
}
if _storage._nonce != 0 {
try visitor.visitSingularUInt64Field(value: _storage._nonce, fieldNumber: 3)
}
if let v = _storage._wallet {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
}
if !_storage._token.isEmpty {
try visitor.visitSingularStringField(value: _storage._token, fieldNumber: 5)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestCreateTx, rhs: ForgeAbi_RequestCreateTx) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._itx != rhs_storage._itx {return false}
if _storage._from != rhs_storage._from {return false}
if _storage._nonce != rhs_storage._nonce {return false}
if _storage._wallet != rhs_storage._wallet {return false}
if _storage._token != rhs_storage._token {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseCreateTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseCreateTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "tx"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _tx: ForgeAbi_Transaction? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_tx = source._tx
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularMessageField(value: &_storage._tx)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if let v = _storage._tx {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseCreateTx, rhs: ForgeAbi_ResponseCreateTx) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._tx != rhs_storage._tx {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestMultisig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestMultisig"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "tx"),
2: .same(proto: "data"),
3: .same(proto: "wallet"),
4: .same(proto: "token"),
5: .same(proto: "delegatee"),
]
fileprivate class _StorageClass {
var _tx: ForgeAbi_Transaction? = nil
var _data: SwiftProtobuf.Google_Protobuf_Any? = nil
var _wallet: ForgeAbi_WalletInfo? = nil
var _token: String = String()
var _delegatee: String = String()
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_tx = source._tx
_data = source._data
_wallet = source._wallet
_token = source._token
_delegatee = source._delegatee
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._tx)
case 2: try decoder.decodeSingularMessageField(value: &_storage._data)
case 3: try decoder.decodeSingularMessageField(value: &_storage._wallet)
case 4: try decoder.decodeSingularStringField(value: &_storage._token)
case 5: try decoder.decodeSingularStringField(value: &_storage._delegatee)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._tx {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if let v = _storage._data {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if let v = _storage._wallet {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
if !_storage._token.isEmpty {
try visitor.visitSingularStringField(value: _storage._token, fieldNumber: 4)
}
if !_storage._delegatee.isEmpty {
try visitor.visitSingularStringField(value: _storage._delegatee, fieldNumber: 5)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestMultisig, rhs: ForgeAbi_RequestMultisig) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._tx != rhs_storage._tx {return false}
if _storage._data != rhs_storage._data {return false}
if _storage._wallet != rhs_storage._wallet {return false}
if _storage._token != rhs_storage._token {return false}
if _storage._delegatee != rhs_storage._delegatee {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseMultisig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseMultisig"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "tx"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _tx: ForgeAbi_Transaction? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_tx = source._tx
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularMessageField(value: &_storage._tx)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if let v = _storage._tx {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseMultisig, rhs: ForgeAbi_ResponseMultisig) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._tx != rhs_storage._tx {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestSendTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestSendTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "tx"),
2: .same(proto: "wallet"),
3: .same(proto: "token"),
4: .same(proto: "commit"),
]
fileprivate class _StorageClass {
var _tx: ForgeAbi_Transaction? = nil
var _wallet: ForgeAbi_WalletInfo? = nil
var _token: String = String()
var _commit: Bool = false
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_tx = source._tx
_wallet = source._wallet
_token = source._token
_commit = source._commit
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._tx)
case 2: try decoder.decodeSingularMessageField(value: &_storage._wallet)
case 3: try decoder.decodeSingularStringField(value: &_storage._token)
case 4: try decoder.decodeSingularBoolField(value: &_storage._commit)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._tx {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if let v = _storage._wallet {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if !_storage._token.isEmpty {
try visitor.visitSingularStringField(value: _storage._token, fieldNumber: 3)
}
if _storage._commit != false {
try visitor.visitSingularBoolField(value: _storage._commit, fieldNumber: 4)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestSendTx, rhs: ForgeAbi_RequestSendTx) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._tx != rhs_storage._tx {return false}
if _storage._wallet != rhs_storage._wallet {return false}
if _storage._token != rhs_storage._token {return false}
if _storage._commit != rhs_storage._commit {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseSendTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseSendTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "hash"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &self.code)
case 2: try decoder.decodeSingularStringField(value: &self.hash)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.code != .ok {
try visitor.visitSingularEnumField(value: self.code, fieldNumber: 1)
}
if !self.hash.isEmpty {
try visitor.visitSingularStringField(value: self.hash, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseSendTx, rhs: ForgeAbi_ResponseSendTx) -> Bool {
if lhs.code != rhs.code {return false}
if lhs.hash != rhs.hash {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestGetTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestGetTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hash"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.hash)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.hash.isEmpty {
try visitor.visitSingularStringField(value: self.hash, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestGetTx, rhs: ForgeAbi_RequestGetTx) -> Bool {
if lhs.hash != rhs.hash {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseGetTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseGetTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "info"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _info: ForgeAbi_TransactionInfo? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_info = source._info
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularMessageField(value: &_storage._info)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if let v = _storage._info {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseGetTx, rhs: ForgeAbi_ResponseGetTx) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._info != rhs_storage._info {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestGetBlock: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestGetBlock"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "height"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularUInt64Field(value: &self.height)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.height != 0 {
try visitor.visitSingularUInt64Field(value: self.height, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestGetBlock, rhs: ForgeAbi_RequestGetBlock) -> Bool {
if lhs.height != rhs.height {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseGetBlock: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseGetBlock"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "block"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _block: ForgeAbi_BlockInfo? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_block = source._block
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularMessageField(value: &_storage._block)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if let v = _storage._block {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseGetBlock, rhs: ForgeAbi_ResponseGetBlock) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._block != rhs_storage._block {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestGetBlocks: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestGetBlocks"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "paging"),
2: .standard(proto: "height_filter"),
3: .standard(proto: "empty_excluded"),
]
fileprivate class _StorageClass {
var _paging: ForgeAbi_PageInput? = nil
var _heightFilter: ForgeAbi_RangeFilter? = nil
var _emptyExcluded: Bool = false
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_paging = source._paging
_heightFilter = source._heightFilter
_emptyExcluded = source._emptyExcluded
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._paging)
case 2: try decoder.decodeSingularMessageField(value: &_storage._heightFilter)
case 3: try decoder.decodeSingularBoolField(value: &_storage._emptyExcluded)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._paging {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if let v = _storage._heightFilter {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if _storage._emptyExcluded != false {
try visitor.visitSingularBoolField(value: _storage._emptyExcluded, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestGetBlocks, rhs: ForgeAbi_RequestGetBlocks) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._paging != rhs_storage._paging {return false}
if _storage._heightFilter != rhs_storage._heightFilter {return false}
if _storage._emptyExcluded != rhs_storage._emptyExcluded {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseGetBlocks: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseGetBlocks"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "page"),
3: .same(proto: "blocks"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _page: ForgeAbi_PageInfo? = nil
var _blocks: [ForgeAbi_BlockInfoSimple] = []
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_page = source._page
_blocks = source._blocks
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularMessageField(value: &_storage._page)
case 3: try decoder.decodeRepeatedMessageField(value: &_storage._blocks)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if let v = _storage._page {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if !_storage._blocks.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._blocks, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseGetBlocks, rhs: ForgeAbi_ResponseGetBlocks) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._page != rhs_storage._page {return false}
if _storage._blocks != rhs_storage._blocks {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestCreateWallet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestCreateWallet"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "passphrase"),
2: .same(proto: "type"),
3: .same(proto: "moniker"),
]
fileprivate class _StorageClass {
var _passphrase: String = String()
var _type: ForgeAbi_WalletType? = nil
var _moniker: String = String()
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_passphrase = source._passphrase
_type = source._type
_moniker = source._moniker
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &_storage._passphrase)
case 2: try decoder.decodeSingularMessageField(value: &_storage._type)
case 3: try decoder.decodeSingularStringField(value: &_storage._moniker)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if !_storage._passphrase.isEmpty {
try visitor.visitSingularStringField(value: _storage._passphrase, fieldNumber: 1)
}
if let v = _storage._type {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if !_storage._moniker.isEmpty {
try visitor.visitSingularStringField(value: _storage._moniker, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestCreateWallet, rhs: ForgeAbi_RequestCreateWallet) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._passphrase != rhs_storage._passphrase {return false}
if _storage._type != rhs_storage._type {return false}
if _storage._moniker != rhs_storage._moniker {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseCreateWallet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseCreateWallet"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "token"),
3: .same(proto: "wallet"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _token: String = String()
var _wallet: ForgeAbi_WalletInfo? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_token = source._token
_wallet = source._wallet
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularStringField(value: &_storage._token)
case 3: try decoder.decodeSingularMessageField(value: &_storage._wallet)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if !_storage._token.isEmpty {
try visitor.visitSingularStringField(value: _storage._token, fieldNumber: 2)
}
if let v = _storage._wallet {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseCreateWallet, rhs: ForgeAbi_ResponseCreateWallet) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._code != rhs_storage._code {return false}
if _storage._token != rhs_storage._token {return false}
if _storage._wallet != rhs_storage._wallet {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_RequestLoadWallet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestLoadWallet"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "address"),
2: .same(proto: "passphrase"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.address)
case 2: try decoder.decodeSingularStringField(value: &self.passphrase)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.address.isEmpty {
try visitor.visitSingularStringField(value: self.address, fieldNumber: 1)
}
if !self.passphrase.isEmpty {
try visitor.visitSingularStringField(value: self.passphrase, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_RequestLoadWallet, rhs: ForgeAbi_RequestLoadWallet) -> Bool {
if lhs.address != rhs.address {return false}
if lhs.passphrase != rhs.passphrase {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension ForgeAbi_ResponseLoadWallet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseLoadWallet"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
2: .same(proto: "token"),
3: .same(proto: "wallet"),
]
fileprivate class _StorageClass {
var _code: ForgeAbi_StatusCode = .ok
var _token: String = String()
var _wallet: ForgeAbi_WalletInfo? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_token = source._token
_wallet = source._wallet
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularEnumField(value: &_storage._code)
case 2: try decoder.decodeSingularStringField(value: &_storage._token)
case 3: try decoder.decodeSingularMessageField(value: &_storage._wallet)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != .ok {
try visitor.visitSingularEnumField(value: _storage._code, fieldNumber: 1)
}
if !_storage._token.isEmpty {
try visitor.visitSingularStringField(value: _storage._token, fieldNumber: 2)
}
if let v = _storage._wallet {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: ForgeAbi_ResponseLoadWallet, rhs: ForgeAbi_ResponseLoadWallet) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1