-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type `ApiCoinSelectionChange`, along with JSON instances and roundtrip tests. Values of this type will be used to encode change outputs, within `ApiCoinSelection` objects.
- Loading branch information
1 parent
1d368b6
commit 03e2897
Showing
3 changed files
with
279 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
246 changes: 246 additions & 0 deletions
246
lib/core/test/data/Cardano/Wallet/Api/ApiCoinSelectionChangeTestnet0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
{ | ||
"seed": -8132152044144507405, | ||
"samples": [ | ||
{ | ||
"amount": { | ||
"quantity": 141, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"852", | ||
"13597", | ||
"11458", | ||
"22421", | ||
"21106", | ||
"26839", | ||
"25413", | ||
"4795", | ||
"24010", | ||
"15277", | ||
"25381", | ||
"27752", | ||
"3988", | ||
"27219", | ||
"28927", | ||
"5860", | ||
"20155", | ||
"31643", | ||
"18256", | ||
"21059" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 23, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"11665", | ||
"15069", | ||
"18615", | ||
"15382", | ||
"24988", | ||
"25011", | ||
"26605", | ||
"16166", | ||
"12632", | ||
"15123", | ||
"14126", | ||
"8442", | ||
"30703", | ||
"16135" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 134, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"19126", | ||
"7199", | ||
"15884", | ||
"27377" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 96, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"4056", | ||
"19030" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 181, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"12385", | ||
"20949", | ||
"20575", | ||
"14941", | ||
"337", | ||
"26321", | ||
"14876", | ||
"13361", | ||
"15097", | ||
"12163", | ||
"20729", | ||
"26193", | ||
"11931", | ||
"23619", | ||
"19733", | ||
"13144", | ||
"15636", | ||
"17164", | ||
"14447" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 37, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"1388", | ||
"25003", | ||
"12595", | ||
"13690", | ||
"5100", | ||
"9206", | ||
"5149", | ||
"20797", | ||
"22585", | ||
"20120", | ||
"23015", | ||
"1072", | ||
"15182", | ||
"12693", | ||
"22588", | ||
"6557", | ||
"727", | ||
"31672", | ||
"20403", | ||
"5335", | ||
"9216", | ||
"12309", | ||
"6537", | ||
"8107", | ||
"8520", | ||
"8216", | ||
"2071", | ||
"8673", | ||
"21194" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 13, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"1854" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 20, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"18343", | ||
"13012", | ||
"13333", | ||
"11303", | ||
"15402", | ||
"28235", | ||
"6016", | ||
"13367", | ||
"4861", | ||
"17945", | ||
"25861", | ||
"30290", | ||
"19896", | ||
"27940", | ||
"9264", | ||
"20206", | ||
"27381", | ||
"14735", | ||
"18547", | ||
"24626", | ||
"27896", | ||
"13277" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 103, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"18387", | ||
"23841", | ||
"6757", | ||
"17536", | ||
"27510", | ||
"8045", | ||
"5359", | ||
"25791", | ||
"24524", | ||
"1155", | ||
"27704", | ||
"9057", | ||
"2032", | ||
"8471", | ||
"8329", | ||
"21112", | ||
"18407", | ||
"9226" | ||
] | ||
}, | ||
{ | ||
"amount": { | ||
"quantity": 229, | ||
"unit": "lovelace" | ||
}, | ||
"address": "<addr>", | ||
"derivation_path": [ | ||
"10787", | ||
"16842", | ||
"14843", | ||
"20424", | ||
"28409", | ||
"974", | ||
"29142", | ||
"30947", | ||
"1892", | ||
"29095", | ||
"23095", | ||
"6255", | ||
"21037", | ||
"26751", | ||
"19270", | ||
"6415", | ||
"31235", | ||
"20766", | ||
"15900", | ||
"8107", | ||
"26036", | ||
"19717" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters