package
0.0.0-20230925091837-55f7a6b23beb
Repository: https://github.com/xdbfoundation/go.git
Documentation: pkg.go.dev
# Functions
Convert serializes the given goxdr value into another destination value which supports binary unmarshalling.
Dump serializes the given goxdr value into binary.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
can't add source balance to.
account has trust lines/offers.
source account has AUTH_IMMUTABLE set.
destination balance.
can't merge onto itself.
destination does not exist.
sequence number is over max allowed.
codes considered as "success" for the operation.
No description provided by the author
source account can't revoke trust,.
claimable balances can't be created.
asset is not ASSET_TYPE_ALPHANUM.
trustor does not have a trustline.
trusting self is not allowed.
codes considered as "success" for the operation.
source account does not require trust.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Trustlines are created with clawback enabled set to "true", and claimable balances created from those trustlines are created with clawback enabled set to "true".
Once set, causes all AUTH_* flags to be read-only.
Flags set on issuer accounts TrustLines are created with authorized set to "false" requiring the issuer to set it for each TrustLine.
If set, the authorized flag in TrustLines can be cleared otherwise, authorization cannot be revoked.
issuer has authorized account to perform transactions with its credit.
issuer has authorized account to maintain and reduce liabilities for its credit.
No description provided by the author
No description provided by the author
codes considered as "failure" for the operation.
No description provided by the author
codes considered as "success" for the operation.
No description provided by the author
codes considered as "failure" for the operation.
codes considered as "success" for the operation.
No description provided by the author
Asset trustline is still referenced in a pool.
cannot drop limit below balance.
not enough funds to create a new trust line,.
bad input.
could not find issuer.
Asset trustline is deauthorized.
trusting self is not allowed.
codes considered as "success" for the operation.
Asset trustline is missing for pool.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
If set, the issuer account of the asset held by the claimable balance may clawback the claimable balance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
codes considered as "failure" for the operation.
No description provided by the author
No description provided by the author
codes considered as "success" for the operation.
codes considered as "failure" for the operation.
No description provided by the author
No description provided by the author
codes considered as "success" for the operation.
No description provided by the author
No description provided by the author
account already exists.
would create an account below the min reserve.
invalid destination.
account was created.
not enough funds in source account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
At-and-after protocol 11: only updated.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
codes considered as "failure" for the operation.
codes considered as "success" for the operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Authentication failure.
Misconfiguration error.
Malformed data.
System overloaded.
Unspecific error.
No description provided by the author
gets a list of peers this guy knows about.
SCP.
No description provided by the author
gets a particular txset by hash.
new messages.
No description provided by the author
codes considered as "failure" for the operation.
codes considered as "success" for the operation.
At-and-after protocol 11: only created.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MUXED enum values for supported type are derived from the enum values above by ORing them with 0x100.
No description provided by the author
entry was added to the ledger.
entry was removed from the ledger.
value of the entry.
entry was modified in the ledger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
deposit price outside bounds.
pool share trust line doesn't.
bad input.
no trust line for one of the.
not authorized for one of the.
pool reserves are full.
codes considered as "success" for the operation.
not enough balance for one of.
No description provided by the author
No description provided by the author
would go above limit for one.
bad input.
no trust line for one of the.
codes considered as "success" for the operation.
of the assets.
not enough balance of the.
Before protocol 11: created-or-updated;.
No description provided by the author
no issuer for what we're buying.
no trust line for what we're buying.
not authorized to buy.
would cross an offer from the same user.
can't receive more of what it's buying.
not enough funds to create a new Offer.
generated offer would be invalid.
offerID does not match an existing offer.
no issuer for what we're selling.
no trust line for what we're selling.
not authorized to sell.
codes considered as "success" for the operation.
doesn't hold what it's trying to sell.
No description provided by the author
Name not a valid string.
not enough funds to create a new Data Entry.
Trying to remove a Data Entry that isn't there.
The network hasn't moved to this protocol change yet.
codes considered as "success" for the operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
no issuer for what we're buying.
no trust line for what we're buying.
not authorized to buy.
would cross an offer from the same user.
can't receive more of what it's buying.
not enough funds to create a new Offer.
generated offer would be invalid.
offerID does not match an existing offer.
no issuer for what we're selling.
no trust line for what we're selling.
not authorized to sell.
codes considered as "success" for the operation.
doesn't hold what it's trying to sell.
mask for all valid flags.
No description provided by the author
No description provided by the author
No description provided by the author
Mask for OfferEntry flags.
mask for all trustline flags.
No description provided by the author
No description provided by the author
maximum number of operations per transaction.
maximum number of signers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
At-and-after protocol 11: bucket metadata, should come first.
No description provided by the author
too few valid signatures / wrong network.
operation did too much work.
inner object result is valid.
source account was not found.
operation not supported at this time.
account is sponsoring too many entries.
max number of subentries already reached.
an offer with this flag will not act on and take a reverse offer of equal price.
No description provided by the author
dest would go above their limit.
bad input.
destination account does not exist.
missing issuer on one asset.
dest missing a trust line for asset.
dest not authorized to hold asset.
would cross one of its own offers.
could not satisfy sendmax.
no trust line on source account.
source not authorized to transfer.
success.
not enough offers to satisfy path.
not enough funds in source account.
No description provided by the author
dest would go above their limit.
bad input.
destination account does not exist.
missing issuer on one asset.
dest missing a trust line for asset.
dest not authorized to hold asset.
would cross one of its own offers.
no trust line on source account.
source not authorized to transfer.
success.
not enough offers to satisfy path.
could not satisfy destMin.
not enough funds in source account.
No description provided by the author
destination would go above their limit.
bad input.
destination account does not exist.
missing issuer on asset.
destination missing a trust line for asset.
destination not authorized to hold asset.
no trust line on source account.
source not authorized to transfer.
payment successfully completed.
not enough funds in source account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
codes considered as "failure" for the operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
codes considered as "success" for the operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
auth revocable is required for clawback.
invalid combination of clear/set flags.
signer cannot be masterkey.
can no longer change this option.
malformed home domain.
inflation account does not exist.
not enough funds to add a signer.
codes considered as "success" for the operation.
bad value for weight/threshold.
max number of signers already reached.
can't set an unknown flag.
No description provided by the author
No description provided by the author
No description provided by the author
claimable balances can't be created.
codes considered as "failure" for the operation.
No description provided by the author
codes considered as "success" for the operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
pass on a tx you have heard about.
No description provided by the author
issuer has specified that it may clawback its credit, and that claimable balances created with its credit may also be clawed back.
No description provided by the author
too few valid signatures / wrong network.
unused signatures attached to transaction.
minSeqAge or minSeqLedgerGap conditions not met.
sequence number does not match source account.
sponsorship not confirmed.
one of the operations failed (none were applied).
fee bump inner transaction failed.
fee bump inner transaction succeeded.
fee would bring account below reserve.
fee is too small.
an unknown error occurred.
precondition is invalid.
no operation was specified.
source account not found.
transaction type not supported.
all operations succeeded.
ledger closeTime before minTime.
ledger closeTime after maxTime.
# Structs
AccountEntry
Main entry representing a user in DigitalBits.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Updates the "authorized" flag of an existing trust line
this is called by the issuer of the related asset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BeginSponsoringFutureReserves
Establishes the is-sponsoring-future-reserves-for relationship between
the source account and sponsoredID
Threshold: med
Result: BeginSponsoringFutureReservesResult
*/.
No description provided by the author
No description provided by the author
No description provided by the author
Bump Sequence
increases the sequence to a given level
Threshold: low
Result: BumpSequenceResult
*/.
No description provided by the author
No description provided by the author
Creates, updates or deletes a trust line
Threshold: med
Result: ChangeTrustResult
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This result is used when offers are taken or liquidity is exchanged with a
liquidity pool during an operation
*/.
Claims a claimable balance entry
Threshold: low
Result: ClaimClaimableBalanceResult
*/.
No description provided by the author
No description provided by the author
No description provided by the author
ClaimOfferAtomV0 is a ClaimOfferAtom with the AccountID discriminant stripped off, leaving a raw ed25519 public key to identify the source account.
No description provided by the author
Claws back a claimable balance
Threshold: med
Result: ClawbackClaimableBalanceResult
*/.
No description provided by the author
Claws back an amount of an asset from an account
Threshold: med
Result: ClawbackResult
*/.
No description provided by the author
CreateAccount
Creates and funds a new account with the specified starting balance.
No description provided by the author
Creates a claimable balance entry
Threshold: med
Result: CreateClaimableBalanceResult
*/.
No description provided by the author
Creates an offer that doesn't take offers of the same price
Threshold: med
Result: CreatePassiveSellOfferResult
*/.
No description provided by the author
No description provided by the author
DataEntry
Data can be attached to accounts.
No description provided by the author
No description provided by the author
DigitalBitsValue is the value used by SCP to reach consensus on a given ledger
*/.
No description provided by the author
No description provided by the author
No description provided by the author
An ExtensionPoint is always marshaled as a 32-bit 0 value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InnerTransactionResult must be binary compatible with TransactionResult because it is be used to represent the result of a Transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The LedgerHeader is the highest level structure representing the
* state of a ledger, cryptographically linked to previous ledgers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deposit assets into a liquidity pool
Threshold: med
Result: LiquidityPoolDepositResult
*/.
No description provided by the author
No description provided by the author
No description provided by the author
Withdraw assets from a liquidity pool
Threshold: med
Result: LiquidityPoolWithdrawResult
*/.
No description provided by the author
Creates, updates or deletes an offer with amount in terms of buying asset
Threshold: med
Result: ManageBuyOfferResult
*/.
No description provided by the author
ManageData
Adds, Updates, or Deletes a key value pair associated with a particular
account.
No description provided by the author
No description provided by the author
Creates, updates or deletes an offer
Threshold: med
Result: ManageSellOfferResult
*/.
No description provided by the author
No description provided by the author
Source or destination of a payment operation.
OfferEntry
An offer is the building block of the offer book, they are automatically
claimed by payments when the price set by the owner is met.
An operation is the lowest unit of work that a transaction does */.
No description provided by the author
No description provided by the author
PathPaymentStrictReceive
send an amount to a destination account through a path.
No description provided by the author
PathPaymentStrictSend
send an amount to a destination account through a path.
No description provided by the author
Payment
Send an amount in specified asset to a destination account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
price in fractional representation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SCP history file is an array of these.
note: ledgerMessages may refer to any quorumSets encountered in the file so far, not just the one from this entry.
No description provided by the author
supports things like: A,B,C,(D,E,F),(G,H,(I,J,K,L)) only allows 2 levels of nesting.
No description provided by the author
No description provided by the author
Set Account Options
updates "AccountEntry" fields.
No description provided by the author
SetTrustLineFlagsOp
Updates the flags of an existing trust line.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
a transaction is a container for a set of operations
- is executed by an account
- fees are collected from the account
- operations are executed in order as one ACID transaction
either all operations are applied or none are
if any returns a failing code
*/.
A TransactionEnvelope wraps a transaction with signatures.
No description provided by the author
No description provided by the author
this is the meta produced when applying transactions it does not include pre-apply updates such as fees.
No description provided by the author
No description provided by the author
No description provided by the author
This struct groups together changes on a per transaction basis note however that fees and transaction application are done in separate phases.
No description provided by the author
TransactionResultSet is used to recover results between ledgers.
Transaction sets are the unit used by SCP to decide on transitions between ledgers.
No description provided by the author
TransactionV0 is a transaction with the AccountID discriminant stripped off, leaving a raw ed25519 public key to identify the source account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this represents a single upgrade that was performed as part of a ledger upgrade.
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
reserved for future use.
reserved for future use.
No description provided by the author
No description provided by the author
reserved for future use.
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
reserved for future use.
No description provided by the author
No description provided by the author
reserved for future use.
No description provided by the author
reserved for future use.
No description provided by the author
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
reserved for future use.
reserved for future use.
reserved for future use.
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
reserved for future use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
5-12 alphanumeric characters right-padded with 0 bytes.
1-4 alphanumeric characters right-padded with 0 bytes.
No description provided by the author
No description provided by the author
Entries used to define the bucket list */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
list of all envelope types used in the application those are prefixes used when building signatures for the respective envelopes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Ledger upgrades
note that the `upgrades` field from DigitalBitsValue is normalized such that
it only contains one entry per LedgerUpgradeType, and entries are sorted
in ascending order
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
High level Operation Result */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SHA256(LiquidityPoolParameters).
No description provided by the author
No description provided by the author
No description provided by the author
RevokeSponsorship
If source account is not sponsored or is sponsored by the owner of the
specified entry or sub-entry, then attempt to revoke the sponsorship.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
variable size as the size depends on the signature scheme used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
the 'Thresholds' type is packed uint8_t values defined by these indexes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author