Skip to content

Commit 9468608

Browse files
authored
Merge pull request #3237 from XRPLF/update_account_objects
Update account_objects docs
2 parents 207e50c + 30e6767 commit 9468608

File tree

8 files changed

+595
-1181
lines changed

8 files changed

+595
-1181
lines changed

@theme/markdoc/components.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,14 +383,15 @@ function AmendmentBadge(props: { amendment: Amendment }) {
383383

384384
export function AmendmentDisclaimer(props: {
385385
name: string,
386+
compact: boolean
386387
}) {
387388
const [amendmentStatus, setStatus] = React.useState<Amendment | null>(null);
388389
const [loading, setLoading] = React.useState(true);
389390
const [error, setError] = React.useState<string | null>(null);
390391
const { useTranslate } = useThemeHooks();
391392
const { translate } = useTranslate();
392393

393-
const link = () => <Link to={`/resources/known-amendments#${props.name.toLowerCase()}`}>{props.name} amendment</Link>
394+
const link = () => <Link to={`/resources/known-amendments#${props.name.toLowerCase()}`}>{props.name}{ props.compact ? "" : " amendment"}</Link>
394395

395396
React.useEffect(() => {
396397
const fetchAmendments = async () => {
@@ -446,6 +447,16 @@ export function AmendmentDisclaimer(props: {
446447
</em></p>
447448
)
448449
}
450+
451+
if (props.compact) {
452+
return (
453+
<>
454+
{link()}
455+
{" "}
456+
<AmendmentBadge amendment={amendmentStatus} />
457+
</>
458+
)
459+
}
449460

450461
return (
451462
<p><em>(

@theme/markdoc/schema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ export const amendmentDisclaimer: Schema & { tagName: string } = {
229229
type: 'String',
230230
required: true
231231
},
232+
compact: {
233+
type: 'Boolean',
234+
required: false,
235+
default: false
236+
}
232237
},
233238
render: 'AmendmentDisclaimer',
234239
selfClosing: true
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"result": {
3+
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
4+
"account_objects": [
5+
{
6+
"Balance": {
7+
"currency": "ASP",
8+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
9+
"value": "0"
10+
},
11+
"Flags": 65536,
12+
"HighLimit": {
13+
"currency": "ASP",
14+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
15+
"value": "0"
16+
},
17+
"HighNode": "0",
18+
"LedgerEntryType": "RippleState",
19+
"LowLimit": {
20+
"currency": "ASP",
21+
"issuer": "r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z",
22+
"value": "10"
23+
},
24+
"LowNode": "0",
25+
"PreviousTxnID": "BF7555B0F018E3C5E2A3FF9437A1A5092F32903BE246202F988181B9CED0D862",
26+
"PreviousTxnLgrSeq": 1438879,
27+
"index": "2243B0B630EA6F7330B654EFA53E27A7609D9484E535AB11B7F946DF3D247CE9"
28+
},
29+
{
30+
"Balance": {
31+
"currency": "JOE",
32+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
33+
"value": "0"
34+
},
35+
"Flags": 2228224,
36+
"HighLimit": {
37+
"currency": "JOE",
38+
"issuer": "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2",
39+
"value": "100"
40+
},
41+
"HighNode": "0",
42+
"LedgerEntryType": "RippleState",
43+
"LowLimit": {
44+
"currency": "JOE",
45+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
46+
"value": "0"
47+
},
48+
"LowNode": "0",
49+
"PreviousTxnID": "8E488B0E939D4DACD62102A5BFA2FDC63679EFCC56F2FDA2FDF45283674BB711",
50+
"PreviousTxnLgrSeq": 5989200,
51+
"index": "273BD42DD72E7D84416ED759CEC92DACCD12A4502287E50BECF816233C021ED1"
52+
},
53+
{
54+
"Balance": {
55+
"currency": "USD",
56+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
57+
"value": "0"
58+
},
59+
"Flags": 131072,
60+
"HighLimit": {
61+
"currency": "USD",
62+
"issuer": "rEhDDUUNxpXgEHVJtC2cjXAgyx5VCFxdMF",
63+
"value": "1"
64+
},
65+
"HighNode": "0",
66+
"LedgerEntryType": "RippleState",
67+
"LowLimit": {
68+
"currency": "USD",
69+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
70+
"value": "0"
71+
},
72+
"LowNode": "0",
73+
"PreviousTxnID": "B6B410172C0B65575D89E464AF5B99937CC568822929ABF87DA75CBD11911932",
74+
"PreviousTxnLgrSeq": 6592159,
75+
"index": "2CC2B211F6D1159B5CFD07AF8717A9C51C985E2497B2875C192EE87266AB0F81"
76+
},
77+
{
78+
"Balance": {
79+
"currency": "USD",
80+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
81+
"value": "5"
82+
},
83+
"Flags": 1114112,
84+
"HighLimit": {
85+
"currency": "USD",
86+
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
87+
"value": "0"
88+
},
89+
"HighNode": "0",
90+
"LedgerEntryType": "RippleState",
91+
"LowLimit": {
92+
"currency": "USD",
93+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
94+
"value": "5"
95+
},
96+
"LowNode": "0",
97+
"PreviousTxnID": "2A5C5D95880A254A2C57BB5332558205BC33B9F2B38D359A170283CB4CBD080A",
98+
"PreviousTxnLgrSeq": 39498567,
99+
"index": "2DECFAC23B77D5AEA6116C15F5C6D4669EBAEE9E7EE050A40FE2B1E47B6A9419"
100+
},
101+
{
102+
"Balance": {
103+
"currency": "EUR",
104+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
105+
"value": "0.793598266778297"
106+
},
107+
"Flags": 1114112,
108+
"HighLimit": {
109+
"currency": "EUR",
110+
"issuer": "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun",
111+
"value": "0"
112+
},
113+
"HighNode": "0",
114+
"LedgerEntryType": "RippleState",
115+
"LowLimit": {
116+
"currency": "EUR",
117+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
118+
"value": "1"
119+
},
120+
"LowNode": "0",
121+
"PreviousTxnID": "E9345D44433EA368CFE1E00D84809C8E695C87FED18859248E13662D46A0EC46",
122+
"PreviousTxnLgrSeq": 5447146,
123+
"index": "4513749B30F4AF8DA11F077C448128D6486BF12854B760E4E5808714588AA915"
124+
},
125+
{
126+
"Balance": {
127+
"currency": "CNY",
128+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
129+
"value": "0"
130+
},
131+
"Flags": 2228224,
132+
"HighLimit": {
133+
"currency": "CNY",
134+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
135+
"value": "3"
136+
},
137+
"HighNode": "0",
138+
"LedgerEntryType": "RippleState",
139+
"LowLimit": {
140+
"currency": "CNY",
141+
"issuer": "rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK",
142+
"value": "0"
143+
},
144+
"LowNode": "8",
145+
"PreviousTxnID": "2FDDC81F4394695B01A47913BEC4281AC9A283CC8F903C14ADEA970F60E57FCF",
146+
"PreviousTxnLgrSeq": 5949673,
147+
"index": "578C327DA8944BDE2E10C9BA36AFA2F43E06C8D1E8819FB225D266CBBCFDE5CE"
148+
},
149+
{
150+
"Balance": {
151+
"currency": "DYM",
152+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
153+
"value": "1.336889190631542"
154+
},
155+
"Flags": 65536,
156+
"HighLimit": {
157+
"currency": "DYM",
158+
"issuer": "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E",
159+
"value": "0"
160+
},
161+
"HighNode": "0",
162+
"LedgerEntryType": "RippleState",
163+
"LowLimit": {
164+
"currency": "DYM",
165+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
166+
"value": "3"
167+
},
168+
"LowNode": "0",
169+
"PreviousTxnID": "6DA2BD02DFB83FA4DAFC2651860B60071156171E9C021D9E0372A61A477FFBB1",
170+
"PreviousTxnLgrSeq": 8818732,
171+
"index": "5A2A5FF12E71AEE57564E624117BBA68DEF78CD564EF6259F92A011693E027C7"
172+
},
173+
{
174+
"Balance": {
175+
"currency": "BTC",
176+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
177+
"value": "0"
178+
},
179+
"Flags": 131072,
180+
"HighLimit": {
181+
"currency": "BTC",
182+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
183+
"value": "3"
184+
},
185+
"HighNode": "0",
186+
"LedgerEntryType": "RippleState",
187+
"LowLimit": {
188+
"currency": "BTC",
189+
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
190+
"value": "0"
191+
},
192+
"LowNode": "43",
193+
"PreviousTxnID": "03EDF724397D2DEE70E49D512AECD619E9EA536BE6CFD48ED167AE2596055C9A",
194+
"PreviousTxnLgrSeq": 8317037,
195+
"index": "767C12AF647CDF5FEB9019B37018748A79C50EDAF87E8D4C7F39F78AA7CA9765"
196+
},
197+
{
198+
"Balance": {
199+
"currency": "USD",
200+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
201+
"value": "-11.68225001668339"
202+
},
203+
"Flags": 131072,
204+
"HighLimit": {
205+
"currency": "USD",
206+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
207+
"value": "5000"
208+
},
209+
"HighNode": "0",
210+
"LedgerEntryType": "RippleState",
211+
"LowLimit": {
212+
"currency": "USD",
213+
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
214+
"value": "0"
215+
},
216+
"LowNode": "4a",
217+
"PreviousTxnID": "8C55AFC2A2AA42B5CE624AEECDB3ACFDD1E5379D4E5BF74A8460C5E97EF8706B",
218+
"PreviousTxnLgrSeq": 43251698,
219+
"index": "826CF5BFD28F3934B518D0BDF3231259CBD3FD0946E3C3CA0C97D2C75D2D1A09"
220+
},
221+
{
222+
"Balance": {
223+
"currency": "USD",
224+
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
225+
"value": "0"
226+
},
227+
"Flags": 2228224,
228+
"HighLimit": {
229+
"currency": "USD",
230+
"issuer": "rE6R3DWF9fBD7CyiQciePF9SqK58Ubp8o2",
231+
"value": "100"
232+
},
233+
"HighNode": "0",
234+
"LedgerEntryType": "RippleState",
235+
"LowLimit": {
236+
"currency": "USD",
237+
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
238+
"value": "0"
239+
},
240+
"LowNode": "0",
241+
"PreviousTxnID": "B1A7405C4A698E6A371E5B02836E779A942936AB754865FE82141E5280F09D1B",
242+
"PreviousTxnLgrSeq": 5718137,
243+
"index": "8DF1456AAB7470A760F6A095C156B457FF1038D43E6B11FD8011C2DF714E4FA1"
244+
}
245+
],
246+
"ledger_hash": "E471A081996BB5CBB666AC99085CB8E3CA4D59DFCEDC0060B8701DC45A0EE423",
247+
"ledger_index": 98162290,
248+
"limit": 10,
249+
"marker": "F60ADF645E78B69857D2E4AEC8B7742FEABC8431BD8611D099B428C3E816DF93,94A9F05FEF9A153229E2E997E64919FD75AAE2028C8153E8EBDB4440BD3ECBB5",
250+
"status": "success",
251+
"validated": true
252+
}
253+
}

0 commit comments

Comments
 (0)