@lumenwipe/verify 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -1
- package/README.md +8 -6
- package/dist/index.cjs +35 -7
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +35 -7
- package/package.json +1 -1
- package/vectors/close-v1.json +633 -63
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,34 @@ release is cut.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.0] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Three vectors in `vectors/close-v1.json` for a multisig close's first transaction, signer
|
|
15
|
+
normalization with no merge: `multisig-normalization-first`, accepted, and its rejected
|
|
16
|
+
mutations `normalization-first-threshold-raised` and `normalization-first-signer-added`.
|
|
17
|
+
- Two `VerificationErrorCode` values: `registry_memo_type_conflict` and
|
|
18
|
+
`registry_memo_type_unconfirmed`.
|
|
19
|
+
- Vectors for a snapshot that changes a memo type: `exchange-close-with-numeric-text-memo`,
|
|
20
|
+
accepted, its rejected mutations `snapshot-changes-exchange-memo-type` and
|
|
21
|
+
`snapshot-disputes-exchange-memo-type`, and
|
|
22
|
+
`snapshot-memo-type-other-than-confirmed`, a rejected mutation of
|
|
23
|
+
`close-to-exchange-listed-by-snapshot`.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- A served registry snapshot no longer decides a memo type. A bundled exchange the snapshot
|
|
28
|
+
lists with a different `memoType` is refused with `registry_memo_type_conflict`, where the
|
|
29
|
+
snapshot's type used to be adopted. For an address only the snapshot lists, the type the user
|
|
30
|
+
confirmed is checked, and a snapshot type that differs from it is refused with
|
|
31
|
+
`registry_memo_type_unconfirmed`, where it used to replace the confirmed type. A memo with
|
|
32
|
+
no readable confirmed type to such an address is refused with `memo_type_unreadable`, where
|
|
33
|
+
the snapshot's type used to be filled in.
|
|
34
|
+
- The vector `close-to-exchange-listed-by-snapshot` now confirms an id memo, the snapshot's
|
|
35
|
+
type, instead of text, and the description of its mutation `memo-type-other-than-snapshot`
|
|
36
|
+
says so. Its code and message are unchanged.
|
|
37
|
+
|
|
10
38
|
## [0.1.0] - 2026-11-08
|
|
11
39
|
|
|
12
40
|
### Added
|
|
@@ -34,5 +62,6 @@ release is cut.
|
|
|
34
62
|
is optional, and a rejection may mutate the snapshot instead of, or with, the transaction.
|
|
35
63
|
- The package ships its `LICENSE` and this `CHANGELOG.md`.
|
|
36
64
|
|
|
37
|
-
[Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.
|
|
65
|
+
[Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.2.0...HEAD
|
|
66
|
+
[0.2.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.1.0...verify-v0.2.0
|
|
38
67
|
[0.1.0]: https://github.com/LumenWipe/lumenwipe/tree/verify-v0.1.0
|
package/README.md
CHANGED
|
@@ -92,8 +92,7 @@ because it can only make verification stricter:
|
|
|
92
92
|
- A bundled exchange is never removed, and its memo requirement and its refusal of a direct
|
|
93
93
|
merge are never turned off.
|
|
94
94
|
- An address the snapshot adds is checked as an exchange: a direct merge into it is refused if it
|
|
95
|
-
needs the intermediary, a memo is required if it needs one
|
|
96
|
-
transfer to it is refused.
|
|
95
|
+
needs the intermediary, a memo is required if it needs one, and a transfer to it is refused.
|
|
97
96
|
- It never enables the mediated hand-off: that stays limited to the exchanges bundled here
|
|
98
97
|
(`requiresMediator`, which takes no snapshot). An address only the snapshot lists as needing the
|
|
99
98
|
intermediary refuses both a direct merge and the hand-off until you upgrade. Accepting the
|
|
@@ -104,10 +103,13 @@ because it can only make verification stricter:
|
|
|
104
103
|
`entries` list, or no `lastVerified` or `validUntil` string) is refused with
|
|
105
104
|
`registry_snapshot_invalid` rather than ignored.
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
- It never decides a memo type, because a memo sent under the wrong type reaches the exchange
|
|
107
|
+
and is credited to nobody. A bundled exchange it lists with a different `memoType` refuses the
|
|
108
|
+
close with `registry_memo_type_conflict` until you upgrade. For an address only the snapshot
|
|
109
|
+
lists, the type the user confirmed is the one checked, and a snapshot type that differs from
|
|
110
|
+
it refuses the close with `registry_memo_type_unconfirmed`.
|
|
111
|
+
|
|
112
|
+
An entry's `name` is taken from it, as in the web app, and used only in refusal messages.
|
|
111
113
|
|
|
112
114
|
Without a snapshot:
|
|
113
115
|
|
package/dist/index.cjs
CHANGED
|
@@ -187,9 +187,10 @@ function tightenedOver(embeddedEntry, servedEntry) {
|
|
|
187
187
|
...servedEntry,
|
|
188
188
|
requiresMemo: embeddedEntry.requiresMemo || servedEntry.requiresMemo,
|
|
189
189
|
requiresMediator: embeddedEntry.requiresMediator || servedEntry.requiresMediator,
|
|
190
|
-
//
|
|
191
|
-
//
|
|
192
|
-
|
|
190
|
+
// Never taken from the served copy. A memo sent under the wrong type reaches the right
|
|
191
|
+
// address and is credited to nobody, so a served type that differs is recorded as a dispute
|
|
192
|
+
// (`mergeServedRegistry`) and the close is refused until the bundled copy is updated.
|
|
193
|
+
memoType: embeddedEntry.memoType
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
196
|
var MAX_EXTENSION_DAYS = 120;
|
|
@@ -209,8 +210,12 @@ function mergeServedRegistry(floor, body) {
|
|
|
209
210
|
}
|
|
210
211
|
const embeddedByAddress = new Map(floor.entries.map((e) => [e.address, e]));
|
|
211
212
|
const merged = new Map(embeddedByAddress);
|
|
213
|
+
const disputes = /* @__PURE__ */ new Set();
|
|
212
214
|
for (const servedEntry of served.entries.filter(isUsableEntry)) {
|
|
213
215
|
const embeddedEntry = embeddedByAddress.get(servedEntry.address);
|
|
216
|
+
if (embeddedEntry && embeddedEntry.memoType !== servedEntry.memoType) {
|
|
217
|
+
disputes.add(servedEntry.address);
|
|
218
|
+
}
|
|
214
219
|
merged.set(
|
|
215
220
|
servedEntry.address,
|
|
216
221
|
embeddedEntry ? tightenedOver(embeddedEntry, servedEntry) : servedEntry
|
|
@@ -219,7 +224,8 @@ function mergeServedRegistry(floor, body) {
|
|
|
219
224
|
return {
|
|
220
225
|
entries: [...merged.values()],
|
|
221
226
|
lastVerified: served.lastVerified,
|
|
222
|
-
validUntil: boundedValidUntil(floor.validUntil, served.validUntil)
|
|
227
|
+
validUntil: boundedValidUntil(floor.validUntil, served.validUntil),
|
|
228
|
+
memoTypeDisputes: [...disputes]
|
|
223
229
|
};
|
|
224
230
|
}
|
|
225
231
|
function isUsableAt(validUntil, now) {
|
|
@@ -253,6 +259,9 @@ function lookupExchange(address) {
|
|
|
253
259
|
function mediatorAllowedFor(address) {
|
|
254
260
|
return EMBEDDED.entries.find((e) => e.address === address)?.requiresMediator === true;
|
|
255
261
|
}
|
|
262
|
+
function memoTypeInDispute(address) {
|
|
263
|
+
return current.memoTypeDisputes?.includes(address) ?? false;
|
|
264
|
+
}
|
|
256
265
|
function collectAddress(address, into) {
|
|
257
266
|
switch (address.type) {
|
|
258
267
|
case "scAddressTypeAccount":
|
|
@@ -1448,7 +1457,7 @@ function depositAddressesOf(transfers, lookup) {
|
|
|
1448
1457
|
}
|
|
1449
1458
|
function registryView(served) {
|
|
1450
1459
|
if (served === void 0) {
|
|
1451
|
-
return { lookup: lookupExchange, usable: () => isRegistryUsable() };
|
|
1460
|
+
return { lookup: lookupExchange, usable: () => isRegistryUsable(), memoTypeInDispute };
|
|
1452
1461
|
}
|
|
1453
1462
|
const merged = mergeServedRegistry(bundledRegistry(), served);
|
|
1454
1463
|
if (merged === null) {
|
|
@@ -1458,11 +1467,30 @@ function registryView(served) {
|
|
|
1458
1467
|
);
|
|
1459
1468
|
}
|
|
1460
1469
|
const byAddress2 = new Map(merged.entries.map((e) => [e.address, e]));
|
|
1470
|
+
const disputes = new Set(merged.memoTypeDisputes);
|
|
1461
1471
|
return {
|
|
1462
1472
|
lookup: (address) => byAddress2.get(address) ?? null,
|
|
1463
|
-
usable: () => isUsableAt(merged.validUntil, /* @__PURE__ */ new Date())
|
|
1473
|
+
usable: () => isUsableAt(merged.validUntil, /* @__PURE__ */ new Date()),
|
|
1474
|
+
memoTypeInDispute: (address) => disputes.has(address)
|
|
1464
1475
|
};
|
|
1465
1476
|
}
|
|
1477
|
+
function listedMemoType(exchange, registry, expected) {
|
|
1478
|
+
if (registry.memoTypeInDispute(expected.destination)) {
|
|
1479
|
+
throw new VerificationError(
|
|
1480
|
+
"registry_memo_type_conflict",
|
|
1481
|
+
`The served exchange registry gives ${exchange.name} a different memo type than the bundled one, so the memo this close needs cannot be checked.`
|
|
1482
|
+
);
|
|
1483
|
+
}
|
|
1484
|
+
const bundled = bundledRegistry().entries.some((e) => e.address === expected.destination);
|
|
1485
|
+
if (bundled) return exchange.memoType;
|
|
1486
|
+
if (expected.memo !== null && expected.memoType !== null && expected.memoType !== exchange.memoType) {
|
|
1487
|
+
throw new VerificationError(
|
|
1488
|
+
"registry_memo_type_unconfirmed",
|
|
1489
|
+
`The served exchange registry lists ${exchange.name} with ${MEMO_TYPE_WITH_ARTICLE[exchange.memoType]} memo, not the ${expected.memoType} memo you confirmed.`
|
|
1490
|
+
);
|
|
1491
|
+
}
|
|
1492
|
+
return expected.memoType;
|
|
1493
|
+
}
|
|
1466
1494
|
function verifyCloseTransaction(opts) {
|
|
1467
1495
|
const intent = intentFromXdr(opts.unsignedXdr, NETWORK_PASSPHRASES[opts.network]);
|
|
1468
1496
|
const registry = registryView(opts.servedRegistry);
|
|
@@ -1483,7 +1511,7 @@ function verifyCloseTransaction(opts) {
|
|
|
1483
1511
|
mediatorRequired: mediatorAllowedFor(opts.expected.destination),
|
|
1484
1512
|
directMergeRefused: exchange?.requiresMediator ?? false,
|
|
1485
1513
|
memoRequired: exchange?.requiresMemo ?? false,
|
|
1486
|
-
memoType: exchange
|
|
1514
|
+
memoType: exchange === null ? opts.expected.memoType : listedMemoType(exchange, registry, opts.expected),
|
|
1487
1515
|
nowSeconds: Math.floor(Date.now() / 1e3),
|
|
1488
1516
|
preAuthorized: opts.preAuthorized === true
|
|
1489
1517
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -182,8 +182,9 @@ export declare interface CloseExpectationInput extends ExitExpectations {
|
|
|
182
182
|
nativeBalance: string;
|
|
183
183
|
/** The memo the user confirmed, or null. */
|
|
184
184
|
memo: string | null;
|
|
185
|
-
/** The type the user confirmed for `memo`, or null with no memo.
|
|
186
|
-
* type
|
|
185
|
+
/** The type the user confirmed for `memo`, or null with no memo. The bundled registry's type
|
|
186
|
+
* replaces it for an exchange the bundle lists; a served registry's type that differs from it
|
|
187
|
+
* is refused (`registry_memo_type_unconfirmed`), never adopted. */
|
|
187
188
|
memoType: "text" | "id" | "hash" | null;
|
|
188
189
|
/** Canonical `CODE:ISSUER` of each trustline a claimable balance claim may add and remove. */
|
|
189
190
|
claimTrustlineAssets: string[];
|
|
@@ -448,10 +449,12 @@ export declare function requiresMediator(address: string): boolean;
|
|
|
448
449
|
* registry lists ({@link requiresMediator}), so an address only the snapshot lists as needing
|
|
449
450
|
* the intermediary refuses both shapes until this package is updated.
|
|
450
451
|
* - Its `validUntil` may move the bundled expiry later, by at most 120 days, never earlier.
|
|
452
|
+
* - It never decides a memo type. A different type for a bundled exchange is refused with
|
|
453
|
+
* `registry_memo_type_conflict`, and a type for an address it adds that differs from the one
|
|
454
|
+
* the user confirmed is refused with `registry_memo_type_unconfirmed`. A memo sent under the
|
|
455
|
+
* wrong type reaches the exchange and is credited to nobody.
|
|
451
456
|
*
|
|
452
|
-
*
|
|
453
|
-
* text to id) and `name` (only used in refusal messages). A wrong memo type can make a deposit
|
|
454
|
-
* uncreditable, but it cannot change where funds go.
|
|
457
|
+
* An entry's `name` is taken from it, and only used in refusal messages.
|
|
455
458
|
*/
|
|
456
459
|
export declare interface ServedRegistry {
|
|
457
460
|
/** The listed exchanges. An entry that is not well formed is dropped. */
|
|
@@ -606,7 +609,7 @@ declare interface UnrecognizedDefiPosition {
|
|
|
606
609
|
* that applies to several operation kinds (the fee cap, the operation source) shares one code,
|
|
607
610
|
* since the kind is visible in the transaction itself.
|
|
608
611
|
*/
|
|
609
|
-
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
612
|
+
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
610
613
|
|
|
611
614
|
/** Thrown when a server-built close transaction fails verification. Never sign past this. */
|
|
612
615
|
export declare class VerificationError extends Error {
|
package/dist/index.d.ts
CHANGED
|
@@ -182,8 +182,9 @@ export declare interface CloseExpectationInput extends ExitExpectations {
|
|
|
182
182
|
nativeBalance: string;
|
|
183
183
|
/** The memo the user confirmed, or null. */
|
|
184
184
|
memo: string | null;
|
|
185
|
-
/** The type the user confirmed for `memo`, or null with no memo.
|
|
186
|
-
* type
|
|
185
|
+
/** The type the user confirmed for `memo`, or null with no memo. The bundled registry's type
|
|
186
|
+
* replaces it for an exchange the bundle lists; a served registry's type that differs from it
|
|
187
|
+
* is refused (`registry_memo_type_unconfirmed`), never adopted. */
|
|
187
188
|
memoType: "text" | "id" | "hash" | null;
|
|
188
189
|
/** Canonical `CODE:ISSUER` of each trustline a claimable balance claim may add and remove. */
|
|
189
190
|
claimTrustlineAssets: string[];
|
|
@@ -448,10 +449,12 @@ export declare function requiresMediator(address: string): boolean;
|
|
|
448
449
|
* registry lists ({@link requiresMediator}), so an address only the snapshot lists as needing
|
|
449
450
|
* the intermediary refuses both shapes until this package is updated.
|
|
450
451
|
* - Its `validUntil` may move the bundled expiry later, by at most 120 days, never earlier.
|
|
452
|
+
* - It never decides a memo type. A different type for a bundled exchange is refused with
|
|
453
|
+
* `registry_memo_type_conflict`, and a type for an address it adds that differs from the one
|
|
454
|
+
* the user confirmed is refused with `registry_memo_type_unconfirmed`. A memo sent under the
|
|
455
|
+
* wrong type reaches the exchange and is credited to nobody.
|
|
451
456
|
*
|
|
452
|
-
*
|
|
453
|
-
* text to id) and `name` (only used in refusal messages). A wrong memo type can make a deposit
|
|
454
|
-
* uncreditable, but it cannot change where funds go.
|
|
457
|
+
* An entry's `name` is taken from it, and only used in refusal messages.
|
|
455
458
|
*/
|
|
456
459
|
export declare interface ServedRegistry {
|
|
457
460
|
/** The listed exchanges. An entry that is not well formed is dropped. */
|
|
@@ -606,7 +609,7 @@ declare interface UnrecognizedDefiPosition {
|
|
|
606
609
|
* that applies to several operation kinds (the fee cap, the operation source) shares one code,
|
|
607
610
|
* since the kind is visible in the transaction itself.
|
|
608
611
|
*/
|
|
609
|
-
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
612
|
+
declare const VERIFICATION_ERROR_CODES: readonly ["registry_expired", "registry_snapshot_invalid", "registry_memo_type_conflict", "registry_memo_type_unconfirmed", "transaction_source_mismatch", "expiry_missing", "expiry_too_far", "fee_unreadable", "fee_above_cap", "operation_unknown", "operation_source_mismatch", "merge_multiple", "merge_direct_refused", "merge_destination_mismatch", "mediator_handoff_shape", "mediator_forward_source_mismatch", "mediator_forward_destination_mismatch", "mediator_forward_not_native", "mediator_forward_short", "transfer_not_chosen", "transfer_destination_mismatch", "transfer_to_deposit_address", "transfer_duplicate", "transfer_amount_short", "token_transfer_function_invalid", "token_transfer_from_mismatch", "token_transfer_foreign_contract", "conversion_recipient_mismatch", "conversion_not_to_xlm", "conversion_min_out_missing", "conversion_asset_not_chosen", "conversion_duplicate", "conversion_min_out_below_floor", "conversion_amount_short", "swap_quote_missing", "swap_args_unreadable", "swap_referral_recipient", "swap_route_asset_unknown", "swap_auth_unexpected_call", "swap_auth_exceeds_amount", "trustline_not_removal", "data_entry_not_removal", "offer_not_cancellation", "signer_added", "signer_unknown", "master_weight_changed", "thresholds_raised", "account_settings_changed", "invocation_not_alone", "invocation_auth_beyond_self", "invocation_address_unsupported", "invocation_foreign_account", "exit_contract_not_position", "exit_expectation_inconsistent", "exit_function_not_allowed", "exit_foreign_contract", "exit_argument_party_mismatch", "exit_request_not_allowed", "exit_unverified_spend", "exit_spend_not_repay", "exit_liquidity_auth_invalid", "exit_auth_foreign_contract", "exit_token_function_not_allowed", "exit_token_argument_count", "exit_token_recipient_mismatch", "memo_unexpected", "memo_type_unreadable", "memo_missing", "memo_value_mismatch", "memo_type_mismatch", "memo_required", "memo_invalid_text"];
|
|
610
613
|
|
|
611
614
|
/** Thrown when a server-built close transaction fails verification. Never sign past this. */
|
|
612
615
|
export declare class VerificationError extends Error {
|
package/dist/index.js
CHANGED
|
@@ -185,9 +185,10 @@ function tightenedOver(embeddedEntry, servedEntry) {
|
|
|
185
185
|
...servedEntry,
|
|
186
186
|
requiresMemo: embeddedEntry.requiresMemo || servedEntry.requiresMemo,
|
|
187
187
|
requiresMediator: embeddedEntry.requiresMediator || servedEntry.requiresMediator,
|
|
188
|
-
//
|
|
189
|
-
//
|
|
190
|
-
|
|
188
|
+
// Never taken from the served copy. A memo sent under the wrong type reaches the right
|
|
189
|
+
// address and is credited to nobody, so a served type that differs is recorded as a dispute
|
|
190
|
+
// (`mergeServedRegistry`) and the close is refused until the bundled copy is updated.
|
|
191
|
+
memoType: embeddedEntry.memoType
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
194
|
var MAX_EXTENSION_DAYS = 120;
|
|
@@ -207,8 +208,12 @@ function mergeServedRegistry(floor, body) {
|
|
|
207
208
|
}
|
|
208
209
|
const embeddedByAddress = new Map(floor.entries.map((e) => [e.address, e]));
|
|
209
210
|
const merged = new Map(embeddedByAddress);
|
|
211
|
+
const disputes = /* @__PURE__ */ new Set();
|
|
210
212
|
for (const servedEntry of served.entries.filter(isUsableEntry)) {
|
|
211
213
|
const embeddedEntry = embeddedByAddress.get(servedEntry.address);
|
|
214
|
+
if (embeddedEntry && embeddedEntry.memoType !== servedEntry.memoType) {
|
|
215
|
+
disputes.add(servedEntry.address);
|
|
216
|
+
}
|
|
212
217
|
merged.set(
|
|
213
218
|
servedEntry.address,
|
|
214
219
|
embeddedEntry ? tightenedOver(embeddedEntry, servedEntry) : servedEntry
|
|
@@ -217,7 +222,8 @@ function mergeServedRegistry(floor, body) {
|
|
|
217
222
|
return {
|
|
218
223
|
entries: [...merged.values()],
|
|
219
224
|
lastVerified: served.lastVerified,
|
|
220
|
-
validUntil: boundedValidUntil(floor.validUntil, served.validUntil)
|
|
225
|
+
validUntil: boundedValidUntil(floor.validUntil, served.validUntil),
|
|
226
|
+
memoTypeDisputes: [...disputes]
|
|
221
227
|
};
|
|
222
228
|
}
|
|
223
229
|
function isUsableAt(validUntil, now) {
|
|
@@ -251,6 +257,9 @@ function lookupExchange(address) {
|
|
|
251
257
|
function mediatorAllowedFor(address) {
|
|
252
258
|
return EMBEDDED.entries.find((e) => e.address === address)?.requiresMediator === true;
|
|
253
259
|
}
|
|
260
|
+
function memoTypeInDispute(address) {
|
|
261
|
+
return current.memoTypeDisputes?.includes(address) ?? false;
|
|
262
|
+
}
|
|
254
263
|
function collectAddress(address, into) {
|
|
255
264
|
switch (address.type) {
|
|
256
265
|
case "scAddressTypeAccount":
|
|
@@ -1446,7 +1455,7 @@ function depositAddressesOf(transfers, lookup) {
|
|
|
1446
1455
|
}
|
|
1447
1456
|
function registryView(served) {
|
|
1448
1457
|
if (served === void 0) {
|
|
1449
|
-
return { lookup: lookupExchange, usable: () => isRegistryUsable() };
|
|
1458
|
+
return { lookup: lookupExchange, usable: () => isRegistryUsable(), memoTypeInDispute };
|
|
1450
1459
|
}
|
|
1451
1460
|
const merged = mergeServedRegistry(bundledRegistry(), served);
|
|
1452
1461
|
if (merged === null) {
|
|
@@ -1456,11 +1465,30 @@ function registryView(served) {
|
|
|
1456
1465
|
);
|
|
1457
1466
|
}
|
|
1458
1467
|
const byAddress2 = new Map(merged.entries.map((e) => [e.address, e]));
|
|
1468
|
+
const disputes = new Set(merged.memoTypeDisputes);
|
|
1459
1469
|
return {
|
|
1460
1470
|
lookup: (address) => byAddress2.get(address) ?? null,
|
|
1461
|
-
usable: () => isUsableAt(merged.validUntil, /* @__PURE__ */ new Date())
|
|
1471
|
+
usable: () => isUsableAt(merged.validUntil, /* @__PURE__ */ new Date()),
|
|
1472
|
+
memoTypeInDispute: (address) => disputes.has(address)
|
|
1462
1473
|
};
|
|
1463
1474
|
}
|
|
1475
|
+
function listedMemoType(exchange, registry, expected) {
|
|
1476
|
+
if (registry.memoTypeInDispute(expected.destination)) {
|
|
1477
|
+
throw new VerificationError(
|
|
1478
|
+
"registry_memo_type_conflict",
|
|
1479
|
+
`The served exchange registry gives ${exchange.name} a different memo type than the bundled one, so the memo this close needs cannot be checked.`
|
|
1480
|
+
);
|
|
1481
|
+
}
|
|
1482
|
+
const bundled = bundledRegistry().entries.some((e) => e.address === expected.destination);
|
|
1483
|
+
if (bundled) return exchange.memoType;
|
|
1484
|
+
if (expected.memo !== null && expected.memoType !== null && expected.memoType !== exchange.memoType) {
|
|
1485
|
+
throw new VerificationError(
|
|
1486
|
+
"registry_memo_type_unconfirmed",
|
|
1487
|
+
`The served exchange registry lists ${exchange.name} with ${MEMO_TYPE_WITH_ARTICLE[exchange.memoType]} memo, not the ${expected.memoType} memo you confirmed.`
|
|
1488
|
+
);
|
|
1489
|
+
}
|
|
1490
|
+
return expected.memoType;
|
|
1491
|
+
}
|
|
1464
1492
|
function verifyCloseTransaction(opts) {
|
|
1465
1493
|
const intent = intentFromXdr(opts.unsignedXdr, NETWORK_PASSPHRASES[opts.network]);
|
|
1466
1494
|
const registry = registryView(opts.servedRegistry);
|
|
@@ -1481,7 +1509,7 @@ function verifyCloseTransaction(opts) {
|
|
|
1481
1509
|
mediatorRequired: mediatorAllowedFor(opts.expected.destination),
|
|
1482
1510
|
directMergeRefused: exchange?.requiresMediator ?? false,
|
|
1483
1511
|
memoRequired: exchange?.requiresMemo ?? false,
|
|
1484
|
-
memoType: exchange
|
|
1512
|
+
memoType: exchange === null ? opts.expected.memoType : listedMemoType(exchange, registry, opts.expected),
|
|
1485
1513
|
nowSeconds: Math.floor(Date.now() / 1e3),
|
|
1486
1514
|
preAuthorized: opts.preAuthorized === true
|
|
1487
1515
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumenwipe/verify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Reference verifier for LumenWipe close transactions, compiled from the web app's own trust anchor, with a conformance vector set.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/vectors/close-v1.json
CHANGED
|
@@ -287,6 +287,80 @@
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
|
+
{
|
|
291
|
+
"name": "multisig-normalization-first",
|
|
292
|
+
"verdict": "accept",
|
|
293
|
+
"description": "The first transaction of a 2-of-2 close: removes the co-signer and lowers the thresholds to 0/1/1, with no merge.",
|
|
294
|
+
"nowSeconds": 1793491200,
|
|
295
|
+
"input": {
|
|
296
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAAAAAAIAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAADTfLs7c2gD8hSjRB1xY6D3PugzSn2HMocPLXX1KHwLCwAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAA",
|
|
297
|
+
"network": "testnet",
|
|
298
|
+
"expected": {
|
|
299
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
300
|
+
"destination": "GCUYLAISIQV3AKD5RZXVKLV6FZYFJQUJGPIBZHHEK5B4SPXZRWWFX3H5",
|
|
301
|
+
"nativeBalance": "100.0000000",
|
|
302
|
+
"memo": null,
|
|
303
|
+
"memoType": null,
|
|
304
|
+
"claimTrustlineAssets": [],
|
|
305
|
+
"accountSigners": [
|
|
306
|
+
{
|
|
307
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
308
|
+
"weight": 1,
|
|
309
|
+
"type": "ed25519_public_key"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"key": "GDJXZOZ3ONUAH4QUUNCB24LDUD3T52BTJJ6YOMUHB4WXL5JIPQFQXBNT",
|
|
313
|
+
"weight": 1,
|
|
314
|
+
"type": "ed25519_public_key"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"accountThresholds": {
|
|
318
|
+
"low": 1,
|
|
319
|
+
"med": 2,
|
|
320
|
+
"high": 2
|
|
321
|
+
},
|
|
322
|
+
"transfers": {},
|
|
323
|
+
"tokenTransfers": {},
|
|
324
|
+
"classicConversions": {},
|
|
325
|
+
"tokenConversions": {},
|
|
326
|
+
"exitContracts": [],
|
|
327
|
+
"heldTokenContracts": [
|
|
328
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
329
|
+
],
|
|
330
|
+
"positionTokenContracts": [],
|
|
331
|
+
"exitFunctions": {},
|
|
332
|
+
"conversionContracts": [
|
|
333
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
334
|
+
],
|
|
335
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
336
|
+
"registryContracts": [
|
|
337
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
338
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
339
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
340
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
341
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
342
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
343
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
344
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
345
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
346
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
347
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
348
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
349
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
350
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
351
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
352
|
+
],
|
|
353
|
+
"protectedTokenContracts": [
|
|
354
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
355
|
+
],
|
|
356
|
+
"xbullAssets": {},
|
|
357
|
+
"ownTokensByContract": {},
|
|
358
|
+
"repayTokensByPool": {},
|
|
359
|
+
"shareTokenContracts": [],
|
|
360
|
+
"debtTokenContracts": []
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
290
364
|
{
|
|
291
365
|
"name": "direct-merge-with-id-memo",
|
|
292
366
|
"verdict": "accept",
|
|
@@ -659,7 +733,7 @@
|
|
|
659
733
|
{
|
|
660
734
|
"name": "close-to-exchange-listed-by-snapshot",
|
|
661
735
|
"verdict": "accept",
|
|
662
|
-
"description": "A direct merge to an exchange only the served snapshot lists, which accepts a merge but needs an id memo. The
|
|
736
|
+
"description": "A direct merge to an exchange only the served snapshot lists, which accepts a merge but needs an id memo. The user confirmed an id memo, the snapshot's type.",
|
|
663
737
|
"nowSeconds": 1793491200,
|
|
664
738
|
"input": {
|
|
665
739
|
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAgAAAAAAABE7AAAAAQAAAAAAAAAIAAAAAGZLzDt3k23vuVrzAa/r74xkVDQxpYZJyZREMZR2YOYYAAAAAAAAAAA=",
|
|
@@ -669,7 +743,7 @@
|
|
|
669
743
|
"destination": "GBTEXTB3O6JW335ZLLZQDL7L56GGIVBUGGSYMSOJSRCDDFDWMDTBQL3I",
|
|
670
744
|
"nativeBalance": "100.0000000",
|
|
671
745
|
"memo": "4411",
|
|
672
|
-
"memoType": "
|
|
746
|
+
"memoType": "id",
|
|
673
747
|
"claimTrustlineAssets": [],
|
|
674
748
|
"accountSigners": [
|
|
675
749
|
{
|
|
@@ -739,6 +813,75 @@
|
|
|
739
813
|
}
|
|
740
814
|
}
|
|
741
815
|
},
|
|
816
|
+
{
|
|
817
|
+
"name": "exchange-close-with-numeric-text-memo",
|
|
818
|
+
"verdict": "accept",
|
|
819
|
+
"description": "The exchange close through the intermediary, with a text memo of digits, the type the bundled registry gives the exchange.",
|
|
820
|
+
"nowSeconds": 1793491200,
|
|
821
|
+
"input": {
|
|
822
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAQ0NDExAAAAAgAAAAAAAAAIAAAAAN6x4r//5RLRqldQHAQjqtbSNcWNSsnuKy4jh5B4LoXRAAAAAQAAAADeseK//+US0apXUBwEI6rW0jXFjUrJ7isuI4eQeC6F0QAAAAEAAAAAeiXG1BBh4ZVaXHuWWT+AqkDu6mPnCmBDRgPBxykJLeYAAAAAAAAAADuaygAAAAAAAAAAAA==",
|
|
823
|
+
"network": "testnet",
|
|
824
|
+
"expected": {
|
|
825
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
826
|
+
"destination": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
827
|
+
"nativeBalance": "100.0000000",
|
|
828
|
+
"memo": "4411",
|
|
829
|
+
"memoType": "text",
|
|
830
|
+
"claimTrustlineAssets": [],
|
|
831
|
+
"accountSigners": [
|
|
832
|
+
{
|
|
833
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
834
|
+
"weight": 1,
|
|
835
|
+
"type": "ed25519_public_key"
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
"accountThresholds": {
|
|
839
|
+
"low": 0,
|
|
840
|
+
"med": 0,
|
|
841
|
+
"high": 0
|
|
842
|
+
},
|
|
843
|
+
"transfers": {},
|
|
844
|
+
"tokenTransfers": {},
|
|
845
|
+
"classicConversions": {},
|
|
846
|
+
"tokenConversions": {},
|
|
847
|
+
"exitContracts": [],
|
|
848
|
+
"heldTokenContracts": [
|
|
849
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
850
|
+
],
|
|
851
|
+
"positionTokenContracts": [],
|
|
852
|
+
"exitFunctions": {},
|
|
853
|
+
"conversionContracts": [
|
|
854
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
855
|
+
],
|
|
856
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
857
|
+
"registryContracts": [
|
|
858
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
859
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
860
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
861
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
862
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
863
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
864
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
865
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
866
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
867
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
868
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
869
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
870
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
871
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
872
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
873
|
+
],
|
|
874
|
+
"protectedTokenContracts": [
|
|
875
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
876
|
+
],
|
|
877
|
+
"xbullAssets": {},
|
|
878
|
+
"ownTokensByContract": {},
|
|
879
|
+
"repayTokensByPool": {},
|
|
880
|
+
"shareTokenContracts": [],
|
|
881
|
+
"debtTokenContracts": []
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
},
|
|
742
885
|
{
|
|
743
886
|
"name": "exchange-close-under-snapshot-with-earlier-expiry",
|
|
744
887
|
"verdict": "accept",
|
|
@@ -2520,32 +2663,37 @@
|
|
|
2520
2663
|
}
|
|
2521
2664
|
},
|
|
2522
2665
|
{
|
|
2523
|
-
"name": "
|
|
2666
|
+
"name": "normalization-first-threshold-raised",
|
|
2524
2667
|
"verdict": "reject",
|
|
2525
|
-
"base": "
|
|
2526
|
-
"mutation": "
|
|
2668
|
+
"base": "multisig-normalization-first",
|
|
2669
|
+
"mutation": "Sets the high threshold to 2 instead of 1 in the normalization transaction.",
|
|
2527
2670
|
"nowSeconds": 1793491200,
|
|
2528
2671
|
"input": {
|
|
2529
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
2672
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAAAAAAIAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAADTfLs7c2gD8hSjRB1xY6D3PugzSn2HMocPLXX1KHwLCwAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAIAAAAAAAAAAAAAAAAAAAAA",
|
|
2530
2673
|
"network": "testnet",
|
|
2531
2674
|
"expected": {
|
|
2532
2675
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2533
2676
|
"destination": "GCUYLAISIQV3AKD5RZXVKLV6FZYFJQUJGPIBZHHEK5B4SPXZRWWFX3H5",
|
|
2534
2677
|
"nativeBalance": "100.0000000",
|
|
2535
|
-
"memo":
|
|
2536
|
-
"memoType":
|
|
2678
|
+
"memo": null,
|
|
2679
|
+
"memoType": null,
|
|
2537
2680
|
"claimTrustlineAssets": [],
|
|
2538
2681
|
"accountSigners": [
|
|
2539
2682
|
{
|
|
2540
2683
|
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2541
2684
|
"weight": 1,
|
|
2542
2685
|
"type": "ed25519_public_key"
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"key": "GDJXZOZ3ONUAH4QUUNCB24LDUD3T52BTJJ6YOMUHB4WXL5JIPQFQXBNT",
|
|
2689
|
+
"weight": 1,
|
|
2690
|
+
"type": "ed25519_public_key"
|
|
2543
2691
|
}
|
|
2544
2692
|
],
|
|
2545
2693
|
"accountThresholds": {
|
|
2546
|
-
"low":
|
|
2547
|
-
"med":
|
|
2548
|
-
"high":
|
|
2694
|
+
"low": 1,
|
|
2695
|
+
"med": 2,
|
|
2696
|
+
"high": 2
|
|
2549
2697
|
},
|
|
2550
2698
|
"transfers": {},
|
|
2551
2699
|
"tokenTransfers": {},
|
|
@@ -2590,37 +2738,42 @@
|
|
|
2590
2738
|
},
|
|
2591
2739
|
"error": {
|
|
2592
2740
|
"name": "VerificationError",
|
|
2593
|
-
"code": "
|
|
2594
|
-
"message": "
|
|
2741
|
+
"code": "thresholds_raised",
|
|
2742
|
+
"message": "Account thresholds would be raised."
|
|
2595
2743
|
}
|
|
2596
2744
|
},
|
|
2597
2745
|
{
|
|
2598
|
-
"name": "
|
|
2746
|
+
"name": "normalization-first-signer-added",
|
|
2599
2747
|
"verdict": "reject",
|
|
2600
|
-
"base": "
|
|
2601
|
-
"mutation": "
|
|
2748
|
+
"base": "multisig-normalization-first",
|
|
2749
|
+
"mutation": "Adds a new signer with weight 1 in the normalization transaction.",
|
|
2602
2750
|
"nowSeconds": 1793491200,
|
|
2603
2751
|
"input": {
|
|
2604
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
2752
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAASwAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAADTfLs7c2gD8hSjRB1xY6D3PugzSn2HMocPLXX1KHwLCwAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAABqQOxqD5sSe5Gt9wgsuZ4W2t3xpScCUBHxTgsvkF+mQQAAAAEAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAA",
|
|
2605
2753
|
"network": "testnet",
|
|
2606
2754
|
"expected": {
|
|
2607
2755
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2608
2756
|
"destination": "GCUYLAISIQV3AKD5RZXVKLV6FZYFJQUJGPIBZHHEK5B4SPXZRWWFX3H5",
|
|
2609
2757
|
"nativeBalance": "100.0000000",
|
|
2610
|
-
"memo":
|
|
2611
|
-
"memoType":
|
|
2758
|
+
"memo": null,
|
|
2759
|
+
"memoType": null,
|
|
2612
2760
|
"claimTrustlineAssets": [],
|
|
2613
2761
|
"accountSigners": [
|
|
2614
2762
|
{
|
|
2615
2763
|
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2616
2764
|
"weight": 1,
|
|
2617
2765
|
"type": "ed25519_public_key"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"key": "GDJXZOZ3ONUAH4QUUNCB24LDUD3T52BTJJ6YOMUHB4WXL5JIPQFQXBNT",
|
|
2769
|
+
"weight": 1,
|
|
2770
|
+
"type": "ed25519_public_key"
|
|
2618
2771
|
}
|
|
2619
2772
|
],
|
|
2620
2773
|
"accountThresholds": {
|
|
2621
|
-
"low":
|
|
2622
|
-
"med":
|
|
2623
|
-
"high":
|
|
2774
|
+
"low": 1,
|
|
2775
|
+
"med": 2,
|
|
2776
|
+
"high": 2
|
|
2624
2777
|
},
|
|
2625
2778
|
"transfers": {},
|
|
2626
2779
|
"tokenTransfers": {},
|
|
@@ -2665,18 +2818,18 @@
|
|
|
2665
2818
|
},
|
|
2666
2819
|
"error": {
|
|
2667
2820
|
"name": "VerificationError",
|
|
2668
|
-
"code": "
|
|
2669
|
-
"message": "
|
|
2821
|
+
"code": "signer_added",
|
|
2822
|
+
"message": "A signer would be added or empowered."
|
|
2670
2823
|
}
|
|
2671
2824
|
},
|
|
2672
2825
|
{
|
|
2673
|
-
"name": "memo-
|
|
2826
|
+
"name": "memo-type-changed",
|
|
2674
2827
|
"verdict": "reject",
|
|
2675
2828
|
"base": "direct-merge-with-id-memo",
|
|
2676
|
-
"mutation": "
|
|
2829
|
+
"mutation": "Sends the same digits as a text memo.",
|
|
2677
2830
|
"nowSeconds": 1793491200,
|
|
2678
2831
|
"input": {
|
|
2679
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
2832
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAQ0NDExAAAAAQAAAAAAAAAIAAAAAKmFgRJEK7AofY5vVS6+LnBUwokz0Byc5FdDyT75jaxbAAAAAAAAAAA=",
|
|
2680
2833
|
"network": "testnet",
|
|
2681
2834
|
"expected": {
|
|
2682
2835
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
@@ -2740,25 +2893,25 @@
|
|
|
2740
2893
|
},
|
|
2741
2894
|
"error": {
|
|
2742
2895
|
"name": "VerificationError",
|
|
2743
|
-
"code": "
|
|
2744
|
-
"message": "The transaction
|
|
2896
|
+
"code": "memo_type_mismatch",
|
|
2897
|
+
"message": "The transaction would send your memo as a text memo, not the id memo you confirmed."
|
|
2745
2898
|
}
|
|
2746
2899
|
},
|
|
2747
2900
|
{
|
|
2748
|
-
"name": "
|
|
2901
|
+
"name": "memo-value-changed",
|
|
2749
2902
|
"verdict": "reject",
|
|
2750
|
-
"base": "
|
|
2751
|
-
"mutation": "
|
|
2903
|
+
"base": "direct-merge-with-id-memo",
|
|
2904
|
+
"mutation": "Sends id memo 4412.",
|
|
2752
2905
|
"nowSeconds": 1793491200,
|
|
2753
2906
|
"input": {
|
|
2754
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
2907
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAgAAAAAAABE8AAAAAQAAAAAAAAAIAAAAAKmFgRJEK7AofY5vVS6+LnBUwokz0Byc5FdDyT75jaxbAAAAAAAAAAA=",
|
|
2755
2908
|
"network": "testnet",
|
|
2756
2909
|
"expected": {
|
|
2757
2910
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2758
|
-
"destination": "
|
|
2911
|
+
"destination": "GCUYLAISIQV3AKD5RZXVKLV6FZYFJQUJGPIBZHHEK5B4SPXZRWWFX3H5",
|
|
2759
2912
|
"nativeBalance": "100.0000000",
|
|
2760
|
-
"memo": "
|
|
2761
|
-
"memoType": "
|
|
2913
|
+
"memo": "4411",
|
|
2914
|
+
"memoType": "id",
|
|
2762
2915
|
"claimTrustlineAssets": [],
|
|
2763
2916
|
"accountSigners": [
|
|
2764
2917
|
{
|
|
@@ -2815,25 +2968,25 @@
|
|
|
2815
2968
|
},
|
|
2816
2969
|
"error": {
|
|
2817
2970
|
"name": "VerificationError",
|
|
2818
|
-
"code": "
|
|
2819
|
-
"message": "
|
|
2971
|
+
"code": "memo_value_mismatch",
|
|
2972
|
+
"message": "The transaction carries a memo you did not set."
|
|
2820
2973
|
}
|
|
2821
2974
|
},
|
|
2822
2975
|
{
|
|
2823
|
-
"name": "
|
|
2976
|
+
"name": "memo-dropped",
|
|
2824
2977
|
"verdict": "reject",
|
|
2825
|
-
"base": "
|
|
2826
|
-
"mutation": "
|
|
2978
|
+
"base": "direct-merge-with-id-memo",
|
|
2979
|
+
"mutation": "Drops the memo.",
|
|
2827
2980
|
"nowSeconds": 1793491200,
|
|
2828
2981
|
"input": {
|
|
2829
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
2982
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAAAAAAEAAAAAAAAACAAAAACphYESRCuwKH2Ob1Uuvi5wVMKJM9AcnORXQ8k++Y2sWwAAAAAAAAAA",
|
|
2830
2983
|
"network": "testnet",
|
|
2831
2984
|
"expected": {
|
|
2832
2985
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
2833
|
-
"destination": "
|
|
2986
|
+
"destination": "GCUYLAISIQV3AKD5RZXVKLV6FZYFJQUJGPIBZHHEK5B4SPXZRWWFX3H5",
|
|
2834
2987
|
"nativeBalance": "100.0000000",
|
|
2835
|
-
"memo": "
|
|
2836
|
-
"memoType": "
|
|
2988
|
+
"memo": "4411",
|
|
2989
|
+
"memoType": "id",
|
|
2837
2990
|
"claimTrustlineAssets": [],
|
|
2838
2991
|
"accountSigners": [
|
|
2839
2992
|
{
|
|
@@ -2890,18 +3043,18 @@
|
|
|
2890
3043
|
},
|
|
2891
3044
|
"error": {
|
|
2892
3045
|
"name": "VerificationError",
|
|
2893
|
-
"code": "
|
|
2894
|
-
"message": "The transaction
|
|
3046
|
+
"code": "memo_missing",
|
|
3047
|
+
"message": "The transaction is missing the memo you set."
|
|
2895
3048
|
}
|
|
2896
3049
|
},
|
|
2897
3050
|
{
|
|
2898
|
-
"name": "forward-
|
|
3051
|
+
"name": "forward-short",
|
|
2899
3052
|
"verdict": "reject",
|
|
2900
3053
|
"base": "exchange-close-through-intermediary",
|
|
2901
|
-
"mutation": "
|
|
3054
|
+
"mutation": "Forwards 99.98 XLM of a 100 XLM balance, below the 0.01 XLM tolerance.",
|
|
2902
3055
|
"nowSeconds": 1793491200,
|
|
2903
3056
|
"input": {
|
|
2904
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAlkZXBvc2l0LTEAAAAAAAACAAAAAAAAAAgAAAAA3rHiv//
|
|
3057
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAlkZXBvc2l0LTEAAAAAAAACAAAAAAAAAAgAAAAA3rHiv//lEtGqV1AcBCOq1tI1xY1Kye4rLiOHkHguhdEAAAABAAAAAN6x4r//5RLRqldQHAQjqtbSNcWNSsnuKy4jh5B4LoXRAAAAAQAAAAB6JcbUEGHhlVpce5ZZP4CqQO7qY+cKYENGA8HHKQkt5gAAAAAAAAAAO5e8wAAAAAAAAAAA",
|
|
2905
3058
|
"network": "testnet",
|
|
2906
3059
|
"expected": {
|
|
2907
3060
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
@@ -2965,18 +3118,18 @@
|
|
|
2965
3118
|
},
|
|
2966
3119
|
"error": {
|
|
2967
3120
|
"name": "VerificationError",
|
|
2968
|
-
"code": "
|
|
2969
|
-
"message": "
|
|
3121
|
+
"code": "mediator_forward_short",
|
|
3122
|
+
"message": "This transaction would hand your balance to an intermediary and pass on only part of it."
|
|
2970
3123
|
}
|
|
2971
3124
|
},
|
|
2972
3125
|
{
|
|
2973
|
-
"name": "
|
|
3126
|
+
"name": "forward-elsewhere",
|
|
2974
3127
|
"verdict": "reject",
|
|
2975
3128
|
"base": "exchange-close-through-intermediary",
|
|
2976
|
-
"mutation": "
|
|
3129
|
+
"mutation": "Forwards the balance to another address.",
|
|
2977
3130
|
"nowSeconds": 1793491200,
|
|
2978
3131
|
"input": {
|
|
2979
|
-
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+
|
|
3132
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAlkZXBvc2l0LTEAAAAAAAACAAAAAAAAAAgAAAAA3rHiv//lEtGqV1AcBCOq1tI1xY1Kye4rLiOHkHguhdEAAAABAAAAAN6x4r//5RLRqldQHAQjqtbSNcWNSsnuKy4jh5B4LoXRAAAAAQAAAACrNNyWC6dCTqC7deSWID6fsO9frB4bPg4qIAj2/zlGdgAAAAAAAAAAO5rKAAAAAAAAAAAA",
|
|
2980
3133
|
"network": "testnet",
|
|
2981
3134
|
"expected": {
|
|
2982
3135
|
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
@@ -3040,16 +3193,166 @@
|
|
|
3040
3193
|
},
|
|
3041
3194
|
"error": {
|
|
3042
3195
|
"name": "VerificationError",
|
|
3043
|
-
"code": "
|
|
3044
|
-
"message": "
|
|
3196
|
+
"code": "mediator_forward_destination_mismatch",
|
|
3197
|
+
"message": "The transaction would pay funds to an unexpected address (GCVTJXEWBOTUETVAXN26JFRAH2P3B327VQPBWPQOFIQAR5X7HFDHNPXA)."
|
|
3045
3198
|
}
|
|
3046
3199
|
},
|
|
3047
3200
|
{
|
|
3048
|
-
"name": "
|
|
3201
|
+
"name": "forward-sent-by-another-account",
|
|
3049
3202
|
"verdict": "reject",
|
|
3050
|
-
"base": "
|
|
3051
|
-
"mutation": "
|
|
3052
|
-
"nowSeconds": 1793491200,
|
|
3203
|
+
"base": "exchange-close-through-intermediary",
|
|
3204
|
+
"mutation": "The forward is sent by an account other than the one the merge paid.",
|
|
3205
|
+
"nowSeconds": 1793491200,
|
|
3206
|
+
"input": {
|
|
3207
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAlkZXBvc2l0LTEAAAAAAAACAAAAAAAAAAgAAAAA3rHiv//lEtGqV1AcBCOq1tI1xY1Kye4rLiOHkHguhdEAAAABAAAAAJv/bhSryy8NrLdu9QSbvwkeAe6BYm/Ato9rvxN8IAtsAAAAAQAAAAB6JcbUEGHhlVpce5ZZP4CqQO7qY+cKYENGA8HHKQkt5gAAAAAAAAAAO5rKAAAAAAAAAAAA",
|
|
3208
|
+
"network": "testnet",
|
|
3209
|
+
"expected": {
|
|
3210
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
3211
|
+
"destination": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
3212
|
+
"nativeBalance": "100.0000000",
|
|
3213
|
+
"memo": "deposit-1",
|
|
3214
|
+
"memoType": "text",
|
|
3215
|
+
"claimTrustlineAssets": [],
|
|
3216
|
+
"accountSigners": [
|
|
3217
|
+
{
|
|
3218
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
3219
|
+
"weight": 1,
|
|
3220
|
+
"type": "ed25519_public_key"
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
"accountThresholds": {
|
|
3224
|
+
"low": 0,
|
|
3225
|
+
"med": 0,
|
|
3226
|
+
"high": 0
|
|
3227
|
+
},
|
|
3228
|
+
"transfers": {},
|
|
3229
|
+
"tokenTransfers": {},
|
|
3230
|
+
"classicConversions": {},
|
|
3231
|
+
"tokenConversions": {},
|
|
3232
|
+
"exitContracts": [],
|
|
3233
|
+
"heldTokenContracts": [
|
|
3234
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
3235
|
+
],
|
|
3236
|
+
"positionTokenContracts": [],
|
|
3237
|
+
"exitFunctions": {},
|
|
3238
|
+
"conversionContracts": [
|
|
3239
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
3240
|
+
],
|
|
3241
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
3242
|
+
"registryContracts": [
|
|
3243
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
3244
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
3245
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
3246
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
3247
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
3248
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
3249
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
3250
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
3251
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
3252
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
3253
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
3254
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
3255
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
3256
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
3257
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
3258
|
+
],
|
|
3259
|
+
"protectedTokenContracts": [
|
|
3260
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
3261
|
+
],
|
|
3262
|
+
"xbullAssets": {},
|
|
3263
|
+
"ownTokensByContract": {},
|
|
3264
|
+
"repayTokensByPool": {},
|
|
3265
|
+
"shareTokenContracts": [],
|
|
3266
|
+
"debtTokenContracts": []
|
|
3267
|
+
}
|
|
3268
|
+
},
|
|
3269
|
+
"error": {
|
|
3270
|
+
"name": "VerificationError",
|
|
3271
|
+
"code": "mediator_forward_source_mismatch",
|
|
3272
|
+
"message": "The balance would be handed to one account and forwarded by another. Nothing guarantees the account receiving your funds is the one passing them on."
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
"name": "direct-merge-into-exchange",
|
|
3277
|
+
"verdict": "reject",
|
|
3278
|
+
"base": "exchange-close-through-intermediary",
|
|
3279
|
+
"mutation": "Merges straight into the exchange, which cannot credit a merge.",
|
|
3280
|
+
"nowSeconds": 1793491200,
|
|
3281
|
+
"input": {
|
|
3282
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAlkZXBvc2l0LTEAAAAAAAABAAAAAAAAAAgAAAAAeiXG1BBh4ZVaXHuWWT+AqkDu6mPnCmBDRgPBxykJLeYAAAAAAAAAAA==",
|
|
3283
|
+
"network": "testnet",
|
|
3284
|
+
"expected": {
|
|
3285
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
3286
|
+
"destination": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
3287
|
+
"nativeBalance": "100.0000000",
|
|
3288
|
+
"memo": "deposit-1",
|
|
3289
|
+
"memoType": "text",
|
|
3290
|
+
"claimTrustlineAssets": [],
|
|
3291
|
+
"accountSigners": [
|
|
3292
|
+
{
|
|
3293
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
3294
|
+
"weight": 1,
|
|
3295
|
+
"type": "ed25519_public_key"
|
|
3296
|
+
}
|
|
3297
|
+
],
|
|
3298
|
+
"accountThresholds": {
|
|
3299
|
+
"low": 0,
|
|
3300
|
+
"med": 0,
|
|
3301
|
+
"high": 0
|
|
3302
|
+
},
|
|
3303
|
+
"transfers": {},
|
|
3304
|
+
"tokenTransfers": {},
|
|
3305
|
+
"classicConversions": {},
|
|
3306
|
+
"tokenConversions": {},
|
|
3307
|
+
"exitContracts": [],
|
|
3308
|
+
"heldTokenContracts": [
|
|
3309
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
3310
|
+
],
|
|
3311
|
+
"positionTokenContracts": [],
|
|
3312
|
+
"exitFunctions": {},
|
|
3313
|
+
"conversionContracts": [
|
|
3314
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
3315
|
+
],
|
|
3316
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
3317
|
+
"registryContracts": [
|
|
3318
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
3319
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
3320
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
3321
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
3322
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
3323
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
3324
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
3325
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
3326
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
3327
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
3328
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
3329
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
3330
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
3331
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
3332
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
3333
|
+
],
|
|
3334
|
+
"protectedTokenContracts": [
|
|
3335
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
3336
|
+
],
|
|
3337
|
+
"xbullAssets": {},
|
|
3338
|
+
"ownTokensByContract": {},
|
|
3339
|
+
"repayTokensByPool": {},
|
|
3340
|
+
"shareTokenContracts": [],
|
|
3341
|
+
"debtTokenContracts": []
|
|
3342
|
+
}
|
|
3343
|
+
},
|
|
3344
|
+
"error": {
|
|
3345
|
+
"name": "VerificationError",
|
|
3346
|
+
"code": "merge_direct_refused",
|
|
3347
|
+
"message": "This exchange cannot credit an account merge, so the balance has to reach it as a payment. This transaction would merge your account straight into it."
|
|
3348
|
+
}
|
|
3349
|
+
},
|
|
3350
|
+
{
|
|
3351
|
+
"name": "transfer-elsewhere",
|
|
3352
|
+
"verdict": "reject",
|
|
3353
|
+
"base": "transfer-to-chosen-account",
|
|
3354
|
+
"mutation": "Sends the USDC to another address.",
|
|
3355
|
+
"nowSeconds": 1793491200,
|
|
3053
3356
|
"input": {
|
|
3054
3357
|
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAASwAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAAAAAAMAAAAAAAAAAQAAAACrNNyWC6dCTqC7deSWID6fsO9frB4bPg4qIAj2/zlGdgAAAAFVU0RDAAAAAHgrQWPLBOQ+K+Sh6cVtVcdDZ7BJpiU2uheYsBesSECTAAAAAA7msoAAAAAAAAAABgAAAAFVU0RDAAAAAHgrQWPLBOQ+K+Sh6cVtVcdDZ7BJpiU2uheYsBesSECTAAAAAAAAAAAAAAAAAAAACAAAAACphYESRCuwKH2Ob1Uuvi5wVMKJM9AcnORXQ8k++Y2sWwAAAAAAAAAA",
|
|
3055
3358
|
"network": "testnet",
|
|
@@ -3738,7 +4041,7 @@
|
|
|
3738
4041
|
"name": "memo-type-other-than-snapshot",
|
|
3739
4042
|
"verdict": "reject",
|
|
3740
4043
|
"base": "close-to-exchange-listed-by-snapshot",
|
|
3741
|
-
"mutation": "Sends the memo as text
|
|
4044
|
+
"mutation": "Sends the memo as text instead of the id the user confirmed and the snapshot lists.",
|
|
3742
4045
|
"nowSeconds": 1793491200,
|
|
3743
4046
|
"input": {
|
|
3744
4047
|
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAQ0NDExAAAAAQAAAAAAAAAIAAAAAGZLzDt3k23vuVrzAa/r74xkVDQxpYZJyZREMZR2YOYYAAAAAAAAAAA=",
|
|
@@ -3748,7 +4051,7 @@
|
|
|
3748
4051
|
"destination": "GBTEXTB3O6JW335ZLLZQDL7L56GGIVBUGGSYMSOJSRCDDFDWMDTBQL3I",
|
|
3749
4052
|
"nativeBalance": "100.0000000",
|
|
3750
4053
|
"memo": "4411",
|
|
3751
|
-
"memoType": "
|
|
4054
|
+
"memoType": "id",
|
|
3752
4055
|
"claimTrustlineAssets": [],
|
|
3753
4056
|
"accountSigners": [
|
|
3754
4057
|
{
|
|
@@ -3823,6 +4126,273 @@
|
|
|
3823
4126
|
"message": "The transaction would send your memo as a text memo, not the id memo you confirmed."
|
|
3824
4127
|
}
|
|
3825
4128
|
},
|
|
4129
|
+
{
|
|
4130
|
+
"name": "snapshot-memo-type-other-than-confirmed",
|
|
4131
|
+
"verdict": "reject",
|
|
4132
|
+
"base": "close-to-exchange-listed-by-snapshot",
|
|
4133
|
+
"mutation": "Passes a snapshot listing the exchange with a text memo, though the user confirmed an id memo. A served type never replaces the confirmed one.",
|
|
4134
|
+
"nowSeconds": 1793491200,
|
|
4135
|
+
"input": {
|
|
4136
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAGQAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAgAAAAAAABE7AAAAAQAAAAAAAAAIAAAAAGZLzDt3k23vuVrzAa/r74xkVDQxpYZJyZREMZR2YOYYAAAAAAAAAAA=",
|
|
4137
|
+
"network": "testnet",
|
|
4138
|
+
"expected": {
|
|
4139
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4140
|
+
"destination": "GBTEXTB3O6JW335ZLLZQDL7L56GGIVBUGGSYMSOJSRCDDFDWMDTBQL3I",
|
|
4141
|
+
"nativeBalance": "100.0000000",
|
|
4142
|
+
"memo": "4411",
|
|
4143
|
+
"memoType": "id",
|
|
4144
|
+
"claimTrustlineAssets": [],
|
|
4145
|
+
"accountSigners": [
|
|
4146
|
+
{
|
|
4147
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4148
|
+
"weight": 1,
|
|
4149
|
+
"type": "ed25519_public_key"
|
|
4150
|
+
}
|
|
4151
|
+
],
|
|
4152
|
+
"accountThresholds": {
|
|
4153
|
+
"low": 0,
|
|
4154
|
+
"med": 0,
|
|
4155
|
+
"high": 0
|
|
4156
|
+
},
|
|
4157
|
+
"transfers": {},
|
|
4158
|
+
"tokenTransfers": {},
|
|
4159
|
+
"classicConversions": {},
|
|
4160
|
+
"tokenConversions": {},
|
|
4161
|
+
"exitContracts": [],
|
|
4162
|
+
"heldTokenContracts": [
|
|
4163
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4164
|
+
],
|
|
4165
|
+
"positionTokenContracts": [],
|
|
4166
|
+
"exitFunctions": {},
|
|
4167
|
+
"conversionContracts": [
|
|
4168
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
4169
|
+
],
|
|
4170
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
4171
|
+
"registryContracts": [
|
|
4172
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
4173
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
4174
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
4175
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
4176
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
4177
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
4178
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
4179
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
4180
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
4181
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
4182
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
4183
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
4184
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
4185
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
4186
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
4187
|
+
],
|
|
4188
|
+
"protectedTokenContracts": [
|
|
4189
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4190
|
+
],
|
|
4191
|
+
"xbullAssets": {},
|
|
4192
|
+
"ownTokensByContract": {},
|
|
4193
|
+
"repayTokensByPool": {},
|
|
4194
|
+
"shareTokenContracts": [],
|
|
4195
|
+
"debtTokenContracts": []
|
|
4196
|
+
},
|
|
4197
|
+
"servedRegistry": {
|
|
4198
|
+
"entries": [
|
|
4199
|
+
{
|
|
4200
|
+
"address": "GBTEXTB3O6JW335ZLLZQDL7L56GGIVBUGGSYMSOJSRCDDFDWMDTBQL3I",
|
|
4201
|
+
"name": "Newly Listed",
|
|
4202
|
+
"domain": "newly-listed.example",
|
|
4203
|
+
"requiresMediator": false,
|
|
4204
|
+
"requiresMemo": true,
|
|
4205
|
+
"memoType": "text"
|
|
4206
|
+
}
|
|
4207
|
+
],
|
|
4208
|
+
"lastVerified": "2026-10-25",
|
|
4209
|
+
"validUntil": "2027-01-08"
|
|
4210
|
+
}
|
|
4211
|
+
},
|
|
4212
|
+
"error": {
|
|
4213
|
+
"name": "VerificationError",
|
|
4214
|
+
"code": "registry_memo_type_unconfirmed",
|
|
4215
|
+
"message": "The served exchange registry lists Newly Listed with a text memo, not the id memo you confirmed."
|
|
4216
|
+
}
|
|
4217
|
+
},
|
|
4218
|
+
{
|
|
4219
|
+
"name": "snapshot-changes-exchange-memo-type",
|
|
4220
|
+
"verdict": "reject",
|
|
4221
|
+
"base": "exchange-close-with-numeric-text-memo",
|
|
4222
|
+
"mutation": "Passes a snapshot listing the exchange with an id memo and sends the memo as an id memo. A snapshot cannot change a bundled exchange's memo type.",
|
|
4223
|
+
"nowSeconds": 1793491200,
|
|
4224
|
+
"input": {
|
|
4225
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAgAAAAAAABE7AAAAAgAAAAAAAAAIAAAAAN6x4r//5RLRqldQHAQjqtbSNcWNSsnuKy4jh5B4LoXRAAAAAQAAAADeseK//+US0apXUBwEI6rW0jXFjUrJ7isuI4eQeC6F0QAAAAEAAAAAeiXG1BBh4ZVaXHuWWT+AqkDu6mPnCmBDRgPBxykJLeYAAAAAAAAAADuaygAAAAAAAAAAAA==",
|
|
4226
|
+
"network": "testnet",
|
|
4227
|
+
"expected": {
|
|
4228
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4229
|
+
"destination": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
4230
|
+
"nativeBalance": "100.0000000",
|
|
4231
|
+
"memo": "4411",
|
|
4232
|
+
"memoType": "text",
|
|
4233
|
+
"claimTrustlineAssets": [],
|
|
4234
|
+
"accountSigners": [
|
|
4235
|
+
{
|
|
4236
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4237
|
+
"weight": 1,
|
|
4238
|
+
"type": "ed25519_public_key"
|
|
4239
|
+
}
|
|
4240
|
+
],
|
|
4241
|
+
"accountThresholds": {
|
|
4242
|
+
"low": 0,
|
|
4243
|
+
"med": 0,
|
|
4244
|
+
"high": 0
|
|
4245
|
+
},
|
|
4246
|
+
"transfers": {},
|
|
4247
|
+
"tokenTransfers": {},
|
|
4248
|
+
"classicConversions": {},
|
|
4249
|
+
"tokenConversions": {},
|
|
4250
|
+
"exitContracts": [],
|
|
4251
|
+
"heldTokenContracts": [
|
|
4252
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4253
|
+
],
|
|
4254
|
+
"positionTokenContracts": [],
|
|
4255
|
+
"exitFunctions": {},
|
|
4256
|
+
"conversionContracts": [
|
|
4257
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
4258
|
+
],
|
|
4259
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
4260
|
+
"registryContracts": [
|
|
4261
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
4262
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
4263
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
4264
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
4265
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
4266
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
4267
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
4268
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
4269
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
4270
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
4271
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
4272
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
4273
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
4274
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
4275
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
4276
|
+
],
|
|
4277
|
+
"protectedTokenContracts": [
|
|
4278
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4279
|
+
],
|
|
4280
|
+
"xbullAssets": {},
|
|
4281
|
+
"ownTokensByContract": {},
|
|
4282
|
+
"repayTokensByPool": {},
|
|
4283
|
+
"shareTokenContracts": [],
|
|
4284
|
+
"debtTokenContracts": []
|
|
4285
|
+
},
|
|
4286
|
+
"servedRegistry": {
|
|
4287
|
+
"entries": [
|
|
4288
|
+
{
|
|
4289
|
+
"address": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
4290
|
+
"name": "Coinbase",
|
|
4291
|
+
"domain": "newly-listed.example",
|
|
4292
|
+
"requiresMediator": true,
|
|
4293
|
+
"requiresMemo": true,
|
|
4294
|
+
"memoType": "id"
|
|
4295
|
+
}
|
|
4296
|
+
],
|
|
4297
|
+
"lastVerified": "2026-10-25",
|
|
4298
|
+
"validUntil": "2027-01-08"
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4301
|
+
"error": {
|
|
4302
|
+
"name": "VerificationError",
|
|
4303
|
+
"code": "registry_memo_type_conflict",
|
|
4304
|
+
"message": "The served exchange registry gives Coinbase a different memo type than the bundled one, so the memo this close needs cannot be checked."
|
|
4305
|
+
}
|
|
4306
|
+
},
|
|
4307
|
+
{
|
|
4308
|
+
"name": "snapshot-disputes-exchange-memo-type",
|
|
4309
|
+
"verdict": "reject",
|
|
4310
|
+
"base": "exchange-close-with-numeric-text-memo",
|
|
4311
|
+
"mutation": "Passes a snapshot listing the exchange with an id memo; the close still sends the bundled text memo. A disputed memo type refuses the close whatever memo it carries.",
|
|
4312
|
+
"nowSeconds": 1793491200,
|
|
4313
|
+
"input": {
|
|
4314
|
+
"unsignedXdr": "AAAAAgAAAABmSFtLHHJl+deRfKFiyBk4nXItPhFRSrcAceUOyZ1AAwAAAMgAAAABAAAAAQAAAAEAAAAAAAAAAAAAAABq5oIsAAAAAQAAAAQ0NDExAAAAAgAAAAAAAAAIAAAAAN6x4r//5RLRqldQHAQjqtbSNcWNSsnuKy4jh5B4LoXRAAAAAQAAAADeseK//+US0apXUBwEI6rW0jXFjUrJ7isuI4eQeC6F0QAAAAEAAAAAeiXG1BBh4ZVaXHuWWT+AqkDu6mPnCmBDRgPBxykJLeYAAAAAAAAAADuaygAAAAAAAAAAAA==",
|
|
4315
|
+
"network": "testnet",
|
|
4316
|
+
"expected": {
|
|
4317
|
+
"source": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4318
|
+
"destination": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
4319
|
+
"nativeBalance": "100.0000000",
|
|
4320
|
+
"memo": "4411",
|
|
4321
|
+
"memoType": "text",
|
|
4322
|
+
"claimTrustlineAssets": [],
|
|
4323
|
+
"accountSigners": [
|
|
4324
|
+
{
|
|
4325
|
+
"key": "GBTEQW2LDRZGL6OXSF6KCYWIDE4J24RNHYIVCSVXABY6KDWJTVAAG6HD",
|
|
4326
|
+
"weight": 1,
|
|
4327
|
+
"type": "ed25519_public_key"
|
|
4328
|
+
}
|
|
4329
|
+
],
|
|
4330
|
+
"accountThresholds": {
|
|
4331
|
+
"low": 0,
|
|
4332
|
+
"med": 0,
|
|
4333
|
+
"high": 0
|
|
4334
|
+
},
|
|
4335
|
+
"transfers": {},
|
|
4336
|
+
"tokenTransfers": {},
|
|
4337
|
+
"classicConversions": {},
|
|
4338
|
+
"tokenConversions": {},
|
|
4339
|
+
"exitContracts": [],
|
|
4340
|
+
"heldTokenContracts": [
|
|
4341
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4342
|
+
],
|
|
4343
|
+
"positionTokenContracts": [],
|
|
4344
|
+
"exitFunctions": {},
|
|
4345
|
+
"conversionContracts": [
|
|
4346
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD"
|
|
4347
|
+
],
|
|
4348
|
+
"xlmContract": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
|
|
4349
|
+
"registryContracts": [
|
|
4350
|
+
"CDV6RX4CGPCOKGTBFS52V3LMWQGZN3LCQTXF5RVPOOCG4XVMHXQ4NTF6",
|
|
4351
|
+
"CBDVWXT433PRVTUNM56C3JREF3HIZHRBA64NB2C3B2UNCKIS65ZYCLZA",
|
|
4352
|
+
"CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF",
|
|
4353
|
+
"CBCFTQSPDBAIZ6R6PJQKSQWKNKWH2QIV3I4J72SHWBIK3ADRRAM5A6GD",
|
|
4354
|
+
"CDLYWB5CCSNOEXPGHSKYO4FW3R4XFQVI2HR2QC735YDVCSEQJABQDFXI",
|
|
4355
|
+
"CDDLEQE6CPQGIK3RU4MK5CX2IAWN6CXWNJ2C3VOXV4FOVF3BBQFVZDIC",
|
|
4356
|
+
"CCS6EFFKPQWG5SKMMYL4UQIXVYVDNIXAPHKHUM7IGJVN7QIAWXD2L7TO",
|
|
4357
|
+
"CDP3HMUH6SMS3S7NPGNDJLULCOXXEPSHY4JKUKMBNQMATHDHWXRRJTBY",
|
|
4358
|
+
"CCJUD55AG6W5HAI5LRVNKAE5WDP5XGZBUDS5WNTIVDU7O264UZZE7BRD",
|
|
4359
|
+
"CAAZMNZDUPXEPLLJOGVQYQOJPXFYDZRYX2AMSXFYNP7Q5IKY7WCH2ZV4",
|
|
4360
|
+
"CBETTPAGB46UYACPNU7MFH4D26TTNCDZXOKJ5N3C7PYKU22AIC4C573N",
|
|
4361
|
+
"CB7UHVINMUGNHPEFSJYTIIF67ETZAOCVHTBY7XFN5TVKNAWOMVNYIIWW",
|
|
4362
|
+
"CDQM2A7B5ZJIR5DEQF7Q63PWU2EWEJ2KXU5IPN5GY3DR67M2SLQMO7B3",
|
|
4363
|
+
"CCVEHSVGFYL5SKLO3BSRZCWRHDWKVB5KX6LYT66GX6QNCRJEPYHF6FIV",
|
|
4364
|
+
"CCELNFRXYUDJ5545AM7KIMHDHII5PQEGDVYHA3HSR7HXWUNH67EWBFXP"
|
|
4365
|
+
],
|
|
4366
|
+
"protectedTokenContracts": [
|
|
4367
|
+
"CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
4368
|
+
],
|
|
4369
|
+
"xbullAssets": {},
|
|
4370
|
+
"ownTokensByContract": {},
|
|
4371
|
+
"repayTokensByPool": {},
|
|
4372
|
+
"shareTokenContracts": [],
|
|
4373
|
+
"debtTokenContracts": []
|
|
4374
|
+
},
|
|
4375
|
+
"servedRegistry": {
|
|
4376
|
+
"entries": [
|
|
4377
|
+
{
|
|
4378
|
+
"address": "GB5CLRWUCBQ6DFK2LR5ZMWJ7QCVEB3XKMPTQUYCDIYB4DRZJBEW6M26D",
|
|
4379
|
+
"name": "Coinbase",
|
|
4380
|
+
"domain": "newly-listed.example",
|
|
4381
|
+
"requiresMediator": true,
|
|
4382
|
+
"requiresMemo": true,
|
|
4383
|
+
"memoType": "id"
|
|
4384
|
+
}
|
|
4385
|
+
],
|
|
4386
|
+
"lastVerified": "2026-10-25",
|
|
4387
|
+
"validUntil": "2027-01-08"
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
"error": {
|
|
4391
|
+
"name": "VerificationError",
|
|
4392
|
+
"code": "registry_memo_type_conflict",
|
|
4393
|
+
"message": "The served exchange registry gives Coinbase a different memo type than the bundled one, so the memo this close needs cannot be checked."
|
|
4394
|
+
}
|
|
4395
|
+
},
|
|
3826
4396
|
{
|
|
3827
4397
|
"name": "snapshot-extends-expiry-past-cap",
|
|
3828
4398
|
"verdict": "reject",
|