-
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.
- bug fix: 3route extractor for fa1.2 tokens
- add new testcase + sample
- Loading branch information
Showing
3 changed files
with
375 additions
and
1 deletion.
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
363 changes: 363 additions & 0 deletions
363
Tests/KukaiCoreSwiftTests/Stubs/3route-fa1-for-fa2.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,363 @@ | ||
[ | ||
{ | ||
"amount": "0", | ||
"counter": "24122684", | ||
"destination": "KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8", | ||
"fee": "0", | ||
"gas_limit": "650000", | ||
"kind": "transaction", | ||
"parameters": { | ||
"entrypoint": "approve", | ||
"value": { | ||
"args": [ | ||
{ | ||
"string": "KT1V5XKmeypanMS9pR65REpqmVejWBZURuuT" | ||
}, | ||
{ | ||
"int": "0" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
}, | ||
"source": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi", | ||
"storage_limit": "60000" | ||
}, | ||
{ | ||
"amount": "0", | ||
"counter": "24122685", | ||
"destination": "KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8", | ||
"fee": "0", | ||
"gas_limit": "650000", | ||
"kind": "transaction", | ||
"parameters": { | ||
"entrypoint": "approve", | ||
"value": { | ||
"args": [ | ||
{ | ||
"string": "KT1V5XKmeypanMS9pR65REpqmVejWBZURuuT" | ||
}, | ||
{ | ||
"int": "400000" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
}, | ||
"source": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi", | ||
"storage_limit": "60000" | ||
}, | ||
{ | ||
"amount": "0", | ||
"counter": "24122686", | ||
"destination": "KT1V5XKmeypanMS9pR65REpqmVejWBZURuuT", | ||
"fee": "0", | ||
"gas_limit": "650000", | ||
"kind": "transaction", | ||
"parameters": { | ||
"entrypoint": "execute", | ||
"value": { | ||
"args": [ | ||
{ | ||
"int": "9" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "16" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "1228276" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"string": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi" | ||
}, | ||
{ | ||
"args": [ | ||
[ | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "246" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "196000" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "1" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "250" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "7" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "2" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "65" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "3" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "64000" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "3" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "18" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "7" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "4" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "308" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "2" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "140000" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "5" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "282" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "7" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"args": [ | ||
{ | ||
"int": "0" | ||
}, | ||
{ | ||
"bytes": "" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Elt" | ||
} | ||
], | ||
{ | ||
"int": "0" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
], | ||
"prim": "Pair" | ||
} | ||
}, | ||
"source": "tz1Nzj8BKu3F6KhyaJYZXEfXkyN51HBNJixi", | ||
"storage_limit": "60000" | ||
} | ||
] |