Commit 7296916
wallet_swapAsset v1 (#201)
* wallet_swapAsset v1
* add patterns to the user address and tokens address
* update error codes and remove referral code, also edit the value property to optional and added to the description that defaults to 0
* remove bad identation
* update api spec with the new params accordingly and remove sendTo optional param
* add schema for caip10 addresses and update address format on swap asset rpc method
* update error code
* added more error to the api spec regarding caip 10 addresses
* the swap could not be completed as requested
* add schema for Caip10Address
* remove invalid params error from the api spec
* change the code of swap not available on chain to 36000
* Update openrpc.yaml
Co-authored-by: Alex Donesky <[email protected]>
* Update openrpc.yaml
Co-authored-by: Alex Donesky <[email protected]>
---------
Co-authored-by: Alex Donesky <[email protected]>1 parent 73ffc96 commit 7296916
1 file changed
+74
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
820 | 890 | | |
821 | 891 | | |
822 | 892 | | |
| |||
1005 | 1075 | | |
1006 | 1076 | | |
1007 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1008 | 1082 | | |
1009 | 1083 | | |
1010 | 1084 | | |
| |||
0 commit comments