zklighter-perps 1.0.72 → 1.0.74
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/.openapi-generator/FILES +13 -0
- package/apis/BridgeApi.ts +369 -0
- package/apis/RootApi.ts +31 -0
- package/apis/index.ts +1 -0
- package/models/BridgeSupportedNetwork.ts +88 -0
- package/models/BridgeSupportedNetworks.ts +85 -0
- package/models/CreateIntentAddressResp.ts +78 -0
- package/models/Deposit.ts +150 -0
- package/models/DepositHistory.ts +94 -0
- package/models/DepositHistoryItem.ts +79 -0
- package/models/ReqGetDepositHistory.ts +69 -0
- package/models/ReqGetLatestDeposit.ts +61 -0
- package/models/ReqGetWithdrawHistory.ts +69 -0
- package/models/WithdrawHistory.ts +94 -0
- package/models/WithdrawHistoryItem.ts +79 -0
- package/models/ZkLighterInfo.ts +61 -0
- package/models/index.ts +12 -0
- package/openapi.json +567 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -739,6 +739,43 @@
|
|
|
739
739
|
"description": "Get candlesticks"
|
|
740
740
|
}
|
|
741
741
|
},
|
|
742
|
+
"/api/v1/createIntentAddress": {
|
|
743
|
+
"post": {
|
|
744
|
+
"summary": "createIntentAddress",
|
|
745
|
+
"operationId": "createIntentAddress",
|
|
746
|
+
"responses": {
|
|
747
|
+
"200": {
|
|
748
|
+
"description": "A successful response.",
|
|
749
|
+
"schema": {
|
|
750
|
+
"$ref": "#/definitions/CreateIntentAddressResp"
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
"400": {
|
|
754
|
+
"description": "Bad request",
|
|
755
|
+
"schema": {
|
|
756
|
+
"$ref": "#/definitions/ResultCode"
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"parameters": [
|
|
761
|
+
{
|
|
762
|
+
"name": "body",
|
|
763
|
+
"in": "body",
|
|
764
|
+
"required": true,
|
|
765
|
+
"schema": {
|
|
766
|
+
"$ref": "#/definitions/ReqCreateIntentAddress"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
],
|
|
770
|
+
"tags": [
|
|
771
|
+
"bridge"
|
|
772
|
+
],
|
|
773
|
+
"consumes": [
|
|
774
|
+
"multipart/form-data"
|
|
775
|
+
],
|
|
776
|
+
"description": "Create a bridge intent address for CCTP bridge"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
742
779
|
"/api/v1/currentHeight": {
|
|
743
780
|
"get": {
|
|
744
781
|
"summary": "currentHeight",
|
|
@@ -763,6 +800,143 @@
|
|
|
763
800
|
"description": "Get current height"
|
|
764
801
|
}
|
|
765
802
|
},
|
|
803
|
+
"/api/v1/deposit/cancel": {
|
|
804
|
+
"post": {
|
|
805
|
+
"summary": "deposit_cancel",
|
|
806
|
+
"operationId": "deposit_cancel",
|
|
807
|
+
"responses": {
|
|
808
|
+
"200": {
|
|
809
|
+
"description": "A successful response.",
|
|
810
|
+
"schema": {
|
|
811
|
+
"$ref": "#/definitions/ResultCode"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"400": {
|
|
815
|
+
"description": "Bad request",
|
|
816
|
+
"schema": {
|
|
817
|
+
"$ref": "#/definitions/ResultCode"
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"parameters": [
|
|
822
|
+
{
|
|
823
|
+
"name": "body",
|
|
824
|
+
"in": "body",
|
|
825
|
+
"required": true,
|
|
826
|
+
"schema": {
|
|
827
|
+
"$ref": "#/definitions/ReqCancelDeposit"
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
"tags": [
|
|
832
|
+
"bridge"
|
|
833
|
+
],
|
|
834
|
+
"consumes": [
|
|
835
|
+
"multipart/form-data"
|
|
836
|
+
],
|
|
837
|
+
"description": "Cancel bridge deposit"
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"/api/v1/deposit/history": {
|
|
841
|
+
"get": {
|
|
842
|
+
"summary": "deposit_history",
|
|
843
|
+
"operationId": "deposit_history",
|
|
844
|
+
"responses": {
|
|
845
|
+
"200": {
|
|
846
|
+
"description": "A successful response.",
|
|
847
|
+
"schema": {
|
|
848
|
+
"$ref": "#/definitions/DepositHistory"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"400": {
|
|
852
|
+
"description": "Bad request",
|
|
853
|
+
"schema": {
|
|
854
|
+
"$ref": "#/definitions/ResultCode"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"parameters": [
|
|
859
|
+
{
|
|
860
|
+
"name": "l1_address",
|
|
861
|
+
"in": "query",
|
|
862
|
+
"required": true,
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "cursor",
|
|
867
|
+
"in": "query",
|
|
868
|
+
"required": false,
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
],
|
|
872
|
+
"tags": [
|
|
873
|
+
"bridge"
|
|
874
|
+
],
|
|
875
|
+
"consumes": [
|
|
876
|
+
"multipart/form-data"
|
|
877
|
+
],
|
|
878
|
+
"description": "Get deposit history"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"/api/v1/deposit/latest": {
|
|
882
|
+
"get": {
|
|
883
|
+
"summary": "deposit_latest",
|
|
884
|
+
"operationId": "deposit_latest",
|
|
885
|
+
"responses": {
|
|
886
|
+
"200": {
|
|
887
|
+
"description": "A successful response.",
|
|
888
|
+
"schema": {
|
|
889
|
+
"$ref": "#/definitions/Deposit"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"400": {
|
|
893
|
+
"description": "Bad request",
|
|
894
|
+
"schema": {
|
|
895
|
+
"$ref": "#/definitions/ResultCode"
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"parameters": [
|
|
900
|
+
{
|
|
901
|
+
"name": "l1_address",
|
|
902
|
+
"in": "query",
|
|
903
|
+
"required": true,
|
|
904
|
+
"type": "string"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"tags": [
|
|
908
|
+
"bridge"
|
|
909
|
+
],
|
|
910
|
+
"consumes": [
|
|
911
|
+
"multipart/form-data"
|
|
912
|
+
],
|
|
913
|
+
"description": "Get most recent deposit for given l1 address"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"/api/v1/deposit/networks": {
|
|
917
|
+
"get": {
|
|
918
|
+
"summary": "deposit_networks",
|
|
919
|
+
"operationId": "deposit_networks",
|
|
920
|
+
"responses": {
|
|
921
|
+
"200": {
|
|
922
|
+
"description": "A successful response.",
|
|
923
|
+
"schema": {
|
|
924
|
+
"$ref": "#/definitions/BridgeSupportedNetworks"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"400": {
|
|
928
|
+
"description": "Bad request",
|
|
929
|
+
"schema": {
|
|
930
|
+
"$ref": "#/definitions/ResultCode"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"tags": [
|
|
935
|
+
"bridge"
|
|
936
|
+
],
|
|
937
|
+
"description": "Get deposit supporting networks"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
766
940
|
"/api/v1/exchangeStats": {
|
|
767
941
|
"get": {
|
|
768
942
|
"summary": "exchangeStats",
|
|
@@ -1820,6 +1994,71 @@
|
|
|
1820
1994
|
],
|
|
1821
1995
|
"description": "Get transactions which are already packed into blocks"
|
|
1822
1996
|
}
|
|
1997
|
+
},
|
|
1998
|
+
"/api/v1/withdraw/history": {
|
|
1999
|
+
"get": {
|
|
2000
|
+
"summary": "withdraw_history",
|
|
2001
|
+
"operationId": "withdraw_history",
|
|
2002
|
+
"responses": {
|
|
2003
|
+
"200": {
|
|
2004
|
+
"description": "A successful response.",
|
|
2005
|
+
"schema": {
|
|
2006
|
+
"$ref": "#/definitions/WithdrawHistory"
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
"400": {
|
|
2010
|
+
"description": "Bad request",
|
|
2011
|
+
"schema": {
|
|
2012
|
+
"$ref": "#/definitions/ResultCode"
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
"parameters": [
|
|
2017
|
+
{
|
|
2018
|
+
"name": "l1_address",
|
|
2019
|
+
"in": "query",
|
|
2020
|
+
"required": true,
|
|
2021
|
+
"type": "string"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"name": "cursor",
|
|
2025
|
+
"in": "query",
|
|
2026
|
+
"required": false,
|
|
2027
|
+
"type": "string"
|
|
2028
|
+
}
|
|
2029
|
+
],
|
|
2030
|
+
"tags": [
|
|
2031
|
+
"bridge"
|
|
2032
|
+
],
|
|
2033
|
+
"consumes": [
|
|
2034
|
+
"multipart/form-data"
|
|
2035
|
+
],
|
|
2036
|
+
"description": "Get withdraw history"
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"/info": {
|
|
2040
|
+
"get": {
|
|
2041
|
+
"summary": "info",
|
|
2042
|
+
"operationId": "info",
|
|
2043
|
+
"responses": {
|
|
2044
|
+
"200": {
|
|
2045
|
+
"description": "A successful response.",
|
|
2046
|
+
"schema": {
|
|
2047
|
+
"$ref": "#/definitions/ZkLighterInfo"
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
"400": {
|
|
2051
|
+
"description": "Bad request",
|
|
2052
|
+
"schema": {
|
|
2053
|
+
"$ref": "#/definitions/ResultCode"
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"tags": [
|
|
2058
|
+
"root"
|
|
2059
|
+
],
|
|
2060
|
+
"description": "Get info of zklighter"
|
|
2061
|
+
}
|
|
1823
2062
|
}
|
|
1824
2063
|
},
|
|
1825
2064
|
"definitions": {
|
|
@@ -2251,6 +2490,59 @@
|
|
|
2251
2490
|
"blocks"
|
|
2252
2491
|
]
|
|
2253
2492
|
},
|
|
2493
|
+
"BridgeSupportedNetwork": {
|
|
2494
|
+
"type": "object",
|
|
2495
|
+
"properties": {
|
|
2496
|
+
"name": {
|
|
2497
|
+
"type": "string",
|
|
2498
|
+
"example": "Arbitrum"
|
|
2499
|
+
},
|
|
2500
|
+
"chain_id": {
|
|
2501
|
+
"type": "string",
|
|
2502
|
+
"example": "4164"
|
|
2503
|
+
},
|
|
2504
|
+
"explorer": {
|
|
2505
|
+
"type": "string",
|
|
2506
|
+
"example": "https://arbiscan.io/"
|
|
2507
|
+
},
|
|
2508
|
+
"is_cex": {
|
|
2509
|
+
"type": "boolean",
|
|
2510
|
+
"format": "boolean",
|
|
2511
|
+
"example": "false"
|
|
2512
|
+
}
|
|
2513
|
+
},
|
|
2514
|
+
"title": "BridgeSupportedNetwork",
|
|
2515
|
+
"required": [
|
|
2516
|
+
"name",
|
|
2517
|
+
"chain_id",
|
|
2518
|
+
"explorer",
|
|
2519
|
+
"is_cex"
|
|
2520
|
+
]
|
|
2521
|
+
},
|
|
2522
|
+
"BridgeSupportedNetworks": {
|
|
2523
|
+
"type": "object",
|
|
2524
|
+
"properties": {
|
|
2525
|
+
"code": {
|
|
2526
|
+
"type": "integer",
|
|
2527
|
+
"format": "int32",
|
|
2528
|
+
"example": "200"
|
|
2529
|
+
},
|
|
2530
|
+
"message": {
|
|
2531
|
+
"type": "string"
|
|
2532
|
+
},
|
|
2533
|
+
"networks": {
|
|
2534
|
+
"type": "array",
|
|
2535
|
+
"items": {
|
|
2536
|
+
"$ref": "#/definitions/BridgeSupportedNetwork"
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2540
|
+
"title": "BridgeSupportedNetworks",
|
|
2541
|
+
"required": [
|
|
2542
|
+
"code",
|
|
2543
|
+
"networks"
|
|
2544
|
+
]
|
|
2545
|
+
},
|
|
2254
2546
|
"Candlestick": {
|
|
2255
2547
|
"type": "object",
|
|
2256
2548
|
"properties": {
|
|
@@ -2354,6 +2646,27 @@
|
|
|
2354
2646
|
"address"
|
|
2355
2647
|
]
|
|
2356
2648
|
},
|
|
2649
|
+
"CreateIntentAddressResp": {
|
|
2650
|
+
"type": "object",
|
|
2651
|
+
"properties": {
|
|
2652
|
+
"code": {
|
|
2653
|
+
"type": "integer",
|
|
2654
|
+
"format": "int32",
|
|
2655
|
+
"example": "200"
|
|
2656
|
+
},
|
|
2657
|
+
"message": {
|
|
2658
|
+
"type": "string"
|
|
2659
|
+
},
|
|
2660
|
+
"intent_address": {
|
|
2661
|
+
"type": "string"
|
|
2662
|
+
}
|
|
2663
|
+
},
|
|
2664
|
+
"title": "CreateIntentAddressResp",
|
|
2665
|
+
"required": [
|
|
2666
|
+
"code",
|
|
2667
|
+
"intent_address"
|
|
2668
|
+
]
|
|
2669
|
+
},
|
|
2357
2670
|
"CurrentHeight": {
|
|
2358
2671
|
"type": "object",
|
|
2359
2672
|
"properties": {
|
|
@@ -2385,6 +2698,114 @@
|
|
|
2385
2698
|
},
|
|
2386
2699
|
"title": "Cursor"
|
|
2387
2700
|
},
|
|
2701
|
+
"Deposit": {
|
|
2702
|
+
"type": "object",
|
|
2703
|
+
"properties": {
|
|
2704
|
+
"code": {
|
|
2705
|
+
"type": "integer",
|
|
2706
|
+
"format": "int32",
|
|
2707
|
+
"example": "200"
|
|
2708
|
+
},
|
|
2709
|
+
"message": {
|
|
2710
|
+
"type": "string"
|
|
2711
|
+
},
|
|
2712
|
+
"source": {
|
|
2713
|
+
"type": "string",
|
|
2714
|
+
"example": "Arbitrum"
|
|
2715
|
+
},
|
|
2716
|
+
"amount": {
|
|
2717
|
+
"type": "string"
|
|
2718
|
+
},
|
|
2719
|
+
"intent_address": {
|
|
2720
|
+
"type": "string"
|
|
2721
|
+
},
|
|
2722
|
+
"status": {
|
|
2723
|
+
"type": "string"
|
|
2724
|
+
},
|
|
2725
|
+
"step": {
|
|
2726
|
+
"type": "string"
|
|
2727
|
+
},
|
|
2728
|
+
"description": {
|
|
2729
|
+
"type": "string"
|
|
2730
|
+
},
|
|
2731
|
+
"created_at": {
|
|
2732
|
+
"type": "integer",
|
|
2733
|
+
"format": "int64"
|
|
2734
|
+
},
|
|
2735
|
+
"updated_at": {
|
|
2736
|
+
"type": "integer",
|
|
2737
|
+
"format": "int64"
|
|
2738
|
+
},
|
|
2739
|
+
"is_external_deposit": {
|
|
2740
|
+
"type": "boolean",
|
|
2741
|
+
"format": "boolean"
|
|
2742
|
+
}
|
|
2743
|
+
},
|
|
2744
|
+
"title": "Deposit",
|
|
2745
|
+
"required": [
|
|
2746
|
+
"code",
|
|
2747
|
+
"source",
|
|
2748
|
+
"amount",
|
|
2749
|
+
"intent_address",
|
|
2750
|
+
"status",
|
|
2751
|
+
"step",
|
|
2752
|
+
"description",
|
|
2753
|
+
"created_at",
|
|
2754
|
+
"updated_at",
|
|
2755
|
+
"is_external_deposit"
|
|
2756
|
+
]
|
|
2757
|
+
},
|
|
2758
|
+
"DepositHistory": {
|
|
2759
|
+
"type": "object",
|
|
2760
|
+
"properties": {
|
|
2761
|
+
"code": {
|
|
2762
|
+
"type": "integer",
|
|
2763
|
+
"format": "int32",
|
|
2764
|
+
"example": "200"
|
|
2765
|
+
},
|
|
2766
|
+
"message": {
|
|
2767
|
+
"type": "string"
|
|
2768
|
+
},
|
|
2769
|
+
"deposits": {
|
|
2770
|
+
"type": "array",
|
|
2771
|
+
"items": {
|
|
2772
|
+
"$ref": "#/definitions/DepositHistoryItem"
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
"cursor": {
|
|
2776
|
+
"type": "string"
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2779
|
+
"title": "DepositHistory",
|
|
2780
|
+
"required": [
|
|
2781
|
+
"code",
|
|
2782
|
+
"deposits",
|
|
2783
|
+
"cursor"
|
|
2784
|
+
]
|
|
2785
|
+
},
|
|
2786
|
+
"DepositHistoryItem": {
|
|
2787
|
+
"type": "object",
|
|
2788
|
+
"properties": {
|
|
2789
|
+
"id": {
|
|
2790
|
+
"type": "string"
|
|
2791
|
+
},
|
|
2792
|
+
"amount": {
|
|
2793
|
+
"type": "string",
|
|
2794
|
+
"example": "0.1"
|
|
2795
|
+
},
|
|
2796
|
+
"timestamp": {
|
|
2797
|
+
"type": "integer",
|
|
2798
|
+
"format": "int64",
|
|
2799
|
+
"example": "1640995200"
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"title": "DepositHistoryItem",
|
|
2803
|
+
"required": [
|
|
2804
|
+
"id",
|
|
2805
|
+
"amount",
|
|
2806
|
+
"timestamp"
|
|
2807
|
+
]
|
|
2808
|
+
},
|
|
2388
2809
|
"DetailedAccount": {
|
|
2389
2810
|
"type": "object",
|
|
2390
2811
|
"properties": {
|
|
@@ -4028,6 +4449,46 @@
|
|
|
4028
4449
|
"public_pools"
|
|
4029
4450
|
]
|
|
4030
4451
|
},
|
|
4452
|
+
"ReqCancelDeposit": {
|
|
4453
|
+
"type": "object",
|
|
4454
|
+
"properties": {
|
|
4455
|
+
"from_addr": {
|
|
4456
|
+
"type": "string"
|
|
4457
|
+
},
|
|
4458
|
+
"chain_id": {
|
|
4459
|
+
"type": "string"
|
|
4460
|
+
}
|
|
4461
|
+
},
|
|
4462
|
+
"title": "ReqCancelDeposit",
|
|
4463
|
+
"required": [
|
|
4464
|
+
"from_addr",
|
|
4465
|
+
"chain_id"
|
|
4466
|
+
]
|
|
4467
|
+
},
|
|
4468
|
+
"ReqCreateIntentAddress": {
|
|
4469
|
+
"type": "object",
|
|
4470
|
+
"properties": {
|
|
4471
|
+
"chain_id": {
|
|
4472
|
+
"type": "string"
|
|
4473
|
+
},
|
|
4474
|
+
"from_addr": {
|
|
4475
|
+
"type": "string"
|
|
4476
|
+
},
|
|
4477
|
+
"amount": {
|
|
4478
|
+
"type": "string"
|
|
4479
|
+
},
|
|
4480
|
+
"is_external_deposit": {
|
|
4481
|
+
"type": "boolean",
|
|
4482
|
+
"format": "boolean"
|
|
4483
|
+
}
|
|
4484
|
+
},
|
|
4485
|
+
"title": "ReqCreateIntentAddress",
|
|
4486
|
+
"required": [
|
|
4487
|
+
"chain_id",
|
|
4488
|
+
"from_addr",
|
|
4489
|
+
"amount"
|
|
4490
|
+
]
|
|
4491
|
+
},
|
|
4031
4492
|
"ReqDoFaucet": {
|
|
4032
4493
|
"type": "object",
|
|
4033
4494
|
"properties": {
|
|
@@ -4380,6 +4841,21 @@
|
|
|
4380
4841
|
"count_back"
|
|
4381
4842
|
]
|
|
4382
4843
|
},
|
|
4844
|
+
"ReqGetDepositHistory": {
|
|
4845
|
+
"type": "object",
|
|
4846
|
+
"properties": {
|
|
4847
|
+
"l1_address": {
|
|
4848
|
+
"type": "string"
|
|
4849
|
+
},
|
|
4850
|
+
"cursor": {
|
|
4851
|
+
"type": "string"
|
|
4852
|
+
}
|
|
4853
|
+
},
|
|
4854
|
+
"title": "ReqGetDepositHistory",
|
|
4855
|
+
"required": [
|
|
4856
|
+
"l1_address"
|
|
4857
|
+
]
|
|
4858
|
+
},
|
|
4383
4859
|
"ReqGetExchangeStats": {
|
|
4384
4860
|
"type": "object",
|
|
4385
4861
|
"title": "ReqGetExchangeStats"
|
|
@@ -4444,6 +4920,18 @@
|
|
|
4444
4920
|
"hash"
|
|
4445
4921
|
]
|
|
4446
4922
|
},
|
|
4923
|
+
"ReqGetLatestDeposit": {
|
|
4924
|
+
"type": "object",
|
|
4925
|
+
"properties": {
|
|
4926
|
+
"l1_address": {
|
|
4927
|
+
"type": "string"
|
|
4928
|
+
}
|
|
4929
|
+
},
|
|
4930
|
+
"title": "ReqGetLatestDeposit",
|
|
4931
|
+
"required": [
|
|
4932
|
+
"l1_address"
|
|
4933
|
+
]
|
|
4934
|
+
},
|
|
4447
4935
|
"ReqGetLeaderboard": {
|
|
4448
4936
|
"type": "object",
|
|
4449
4937
|
"properties": {
|
|
@@ -4705,6 +5193,21 @@
|
|
|
4705
5193
|
"value"
|
|
4706
5194
|
]
|
|
4707
5195
|
},
|
|
5196
|
+
"ReqGetWithdrawHistory": {
|
|
5197
|
+
"type": "object",
|
|
5198
|
+
"properties": {
|
|
5199
|
+
"l1_address": {
|
|
5200
|
+
"type": "string"
|
|
5201
|
+
},
|
|
5202
|
+
"cursor": {
|
|
5203
|
+
"type": "string"
|
|
5204
|
+
}
|
|
5205
|
+
},
|
|
5206
|
+
"title": "ReqGetWithdrawHistory",
|
|
5207
|
+
"required": [
|
|
5208
|
+
"l1_address"
|
|
5209
|
+
]
|
|
5210
|
+
},
|
|
4708
5211
|
"ReqIsWhitelisted": {
|
|
4709
5212
|
"type": "object",
|
|
4710
5213
|
"properties": {
|
|
@@ -5246,6 +5749,70 @@
|
|
|
5246
5749
|
"address",
|
|
5247
5750
|
"is_active"
|
|
5248
5751
|
]
|
|
5752
|
+
},
|
|
5753
|
+
"WithdrawHistory": {
|
|
5754
|
+
"type": "object",
|
|
5755
|
+
"properties": {
|
|
5756
|
+
"code": {
|
|
5757
|
+
"type": "integer",
|
|
5758
|
+
"format": "int32",
|
|
5759
|
+
"example": "200"
|
|
5760
|
+
},
|
|
5761
|
+
"message": {
|
|
5762
|
+
"type": "string"
|
|
5763
|
+
},
|
|
5764
|
+
"withdraws": {
|
|
5765
|
+
"type": "array",
|
|
5766
|
+
"items": {
|
|
5767
|
+
"$ref": "#/definitions/WithdrawHistoryItem"
|
|
5768
|
+
}
|
|
5769
|
+
},
|
|
5770
|
+
"cursor": {
|
|
5771
|
+
"type": "string"
|
|
5772
|
+
}
|
|
5773
|
+
},
|
|
5774
|
+
"title": "WithdrawHistory",
|
|
5775
|
+
"required": [
|
|
5776
|
+
"code",
|
|
5777
|
+
"withdraws",
|
|
5778
|
+
"cursor"
|
|
5779
|
+
]
|
|
5780
|
+
},
|
|
5781
|
+
"WithdrawHistoryItem": {
|
|
5782
|
+
"type": "object",
|
|
5783
|
+
"properties": {
|
|
5784
|
+
"id": {
|
|
5785
|
+
"type": "string"
|
|
5786
|
+
},
|
|
5787
|
+
"amount": {
|
|
5788
|
+
"type": "string",
|
|
5789
|
+
"example": "0.1"
|
|
5790
|
+
},
|
|
5791
|
+
"timestamp": {
|
|
5792
|
+
"type": "integer",
|
|
5793
|
+
"format": "int64",
|
|
5794
|
+
"example": "1640995200"
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5797
|
+
"title": "WithdrawHistoryItem",
|
|
5798
|
+
"required": [
|
|
5799
|
+
"id",
|
|
5800
|
+
"amount",
|
|
5801
|
+
"timestamp"
|
|
5802
|
+
]
|
|
5803
|
+
},
|
|
5804
|
+
"ZkLighterInfo": {
|
|
5805
|
+
"type": "object",
|
|
5806
|
+
"properties": {
|
|
5807
|
+
"contract_address": {
|
|
5808
|
+
"type": "string",
|
|
5809
|
+
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
5810
|
+
}
|
|
5811
|
+
},
|
|
5812
|
+
"title": "ZkLighterInfo",
|
|
5813
|
+
"required": [
|
|
5814
|
+
"contract_address"
|
|
5815
|
+
]
|
|
5249
5816
|
}
|
|
5250
5817
|
},
|
|
5251
5818
|
"securityDefinitions": {
|