-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update extractors to handle v3 and v4 of 3route
- rename stub files to reflect which version it is - add new stubs - update tests
- Loading branch information
Showing
7 changed files
with
422 additions
and
10 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
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
121 changes: 121 additions & 0 deletions
121
Tests/KukaiCoreSwiftTests/Stubs/3route_v3_fa1-for-xtz.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,121 @@ | ||
[ | ||
{ | ||
"amount": "0", | ||
"counter": "24122766", | ||
"destination": "KT1JVjgXPMMSaa6FkzeJcgb8q9cUaLmwaJUX", | ||
"fee": "0", | ||
"gas_limit": "1859", | ||
"kind": "transaction", | ||
"parameters": { | ||
"entrypoint": "approve", | ||
"value": { | ||
"args": [ | ||
{ | ||
"string": "KT1R7WEtNNim3YgkxPt8wPMczjH3eyhbJMtz" | ||
}, | ||
{ | ||
"int": "6605336839045864425" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
}, | ||
"source": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi", | ||
"storage_limit": "18" | ||
}, | ||
{ | ||
"amount": "0", | ||
"counter": "24122767", | ||
"destination": "KT1R7WEtNNim3YgkxPt8wPMczjH3eyhbJMtz", | ||
"fee": "3585", | ||
"gas_limit": "28887", | ||
"kind": "transaction", | ||
"parameters": { | ||
"entrypoint": "execute", | ||
"value": { | ||
"args": [ | ||
{ | ||
"int": "77" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "9299" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"string": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi" | ||
}, | ||
{ | ||
"args": [ | ||
[ | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"args": [ | ||
{ | ||
"int": "6605336839045864425" | ||
} | ||
], | ||
"prim": "Some" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "377" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "3" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
} | ||
], | ||
{ | ||
"int": "3" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
}, | ||
"source": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi", | ||
"storage_limit": "0" | ||
} | ||
] |
Oops, something went wrong.