Four trustlines from three operation sources in one transaction, one alphanum-12 at the int64-max limit
One transaction, three operation sources (alice, bob, mm), alphanum-4 and alphanum-12 assets, and a trustline limit of 922337203685.4775807 (int64 max stroops).
The shape
One transaction, three operation sources (alice, bob, mm), alphanum-4 and alphanum-12 assets, and a trustline limit of 922337203685.4775807 (int64 max stroops). Readers that attribute every operation to the transaction source, or parse the limit as a float, get it wrong.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 4,684 B | 95f6d76bd916… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 4,684 B | fadfc19e878c… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| Operation 1 has source bob. | GCDNGZ7NJFNBWBP7DXYQKJRBG2VAIR5DCCCLUDBZW5B3VGUFKDG5ALZF | constructionsnapshotcorewalker |
| Operation 3 trusts the alphanum-12 code XPFLONGCODE1 with limit 9223372036854775807 stroops. | 9223372036854775807 | constructionsnapshotcorewalker |
| A trustline for XPFLONGCODE1 is created for mm. | some change where 2 fields match | snapshotcorewalker |
Check it yourself
make verify # schema, hashes, the byte-for-byte round trip and every fact above
make oracle # the facts' values, re-read by stellar-core and the schema walkerEntry id trustline.multi-source-alphanum12-max-limit · compiled from catalog/trustline.multi-source-alphanum12-max-limit.json · entry.json
A trustline set to authorized-to-maintain-liabilities
SET_TRUST_LINE_FLAGS clears AUTHORIZED (1) and sets AUTHORIZED_TO_MAINTAIN_LIABILITIES (2) on bob's XPF trustline, which also carries TRUSTLINE_CLAWBACK_ENABLED (4) inherited from the issuer: flags go from 5 to 6.
One buy offer crosses three offers at three prices
MANAGE_BUY_OFFER claims offers 1, 2 and 3 of the same seller at prices 1, 1.1 and 1.2, the last only partly.