ALLOW_TRUST with a 12-character asset code
AllowTrustOp.asset is an AssetCode union whose arm here is ASSET_TYPE_CREDIT_ALPHANUM12 with XPFLONGCODE1.
The shape
AllowTrustOp.asset is an AssetCode union whose arm here is ASSET_TYPE_CREDIT_ALPHANUM12 with XPFLONGCODE1. SEP-0051 JSON renders the union as the bare code string, so the arm shows only in the string's length (5 to 12 characters is alphanum-12).
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 change order varies: 20 orderings in 20 runs | 21,176 B | 0ec4a1c8d0a2… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 change order varies: 2 orderings in 2 runs | 21,176 B | 38004ed92e2d… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The asset code is the 12-character XPFLONGCODE1, rendered as a bare string. p30-mainnet-generated | XPFLONGCODE1 | constructionsnapshotcorewalker |
| The asset code is the 12-character XPFLONGCODE1, rendered as a bare string. p30-testnet-generated | XPFLONGCODE1 | constructionsnapshotcorewalker |
| Operation 0 succeeds. p30-mainnet-generated | success | snapshotcorewalker |
| Operation 0 succeeds. p30-testnet-generated | success | 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 max-length.allow-trust-alphanum12 · compiled from catalog/max-length.allow-trust-alphanum12.json · entry.json
Issuer flags AUTH_REVOCABLE and AUTH_CLAWBACK_ENABLED with a 32-byte home domain
SET_OPTIONS sets issuer flags 10 (revocable | clawback enabled) and a home domain of exactly 32 bytes, the XDR maximum.
A claimable balance with the maximum 10 claimants and a predicate at the maximum depth
claimants<10> full; the first claimant's predicate nests and/or/not to depth 4, the deepest core accepts (CreateClaimableBalanceOpFrame.cpp:78).