@reyaxyz/common 0.130.0 → 0.131.0
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.
|
@@ -542,6 +542,31 @@
|
|
|
542
542
|
}
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"type": "function",
|
|
547
|
+
"name": "deposit",
|
|
548
|
+
"inputs": [
|
|
549
|
+
{
|
|
550
|
+
"name": "inputs",
|
|
551
|
+
"type": "tuple",
|
|
552
|
+
"internalType": "struct DepositInputs",
|
|
553
|
+
"components": [
|
|
554
|
+
{
|
|
555
|
+
"name": "recipient",
|
|
556
|
+
"type": "address",
|
|
557
|
+
"internalType": "address"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "token",
|
|
561
|
+
"type": "address",
|
|
562
|
+
"internalType": "address"
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"outputs": [],
|
|
568
|
+
"stateMutability": "nonpayable"
|
|
569
|
+
},
|
|
545
570
|
{
|
|
546
571
|
"type": "function",
|
|
547
572
|
"name": "depositExistingMA",
|
|
@@ -761,80 +786,6 @@
|
|
|
761
786
|
"outputs": [],
|
|
762
787
|
"stateMutability": "nonpayable"
|
|
763
788
|
},
|
|
764
|
-
{
|
|
765
|
-
"type": "function",
|
|
766
|
-
"name": "executeMatchOrders",
|
|
767
|
-
"inputs": [
|
|
768
|
-
{
|
|
769
|
-
"name": "inputs",
|
|
770
|
-
"type": "tuple",
|
|
771
|
-
"internalType": "struct PeripheryMatchOrderInputs",
|
|
772
|
-
"components": [
|
|
773
|
-
{
|
|
774
|
-
"name": "accountId",
|
|
775
|
-
"type": "uint128",
|
|
776
|
-
"internalType": "uint128"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"name": "commands",
|
|
780
|
-
"type": "tuple[]",
|
|
781
|
-
"internalType": "struct Command[]",
|
|
782
|
-
"components": [
|
|
783
|
-
{
|
|
784
|
-
"name": "commandType",
|
|
785
|
-
"type": "uint8",
|
|
786
|
-
"internalType": "enum CommandType"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"name": "inputs",
|
|
790
|
-
"type": "bytes",
|
|
791
|
-
"internalType": "bytes"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"name": "marketId",
|
|
795
|
-
"type": "uint128",
|
|
796
|
-
"internalType": "uint128"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"name": "exchangeId",
|
|
800
|
-
"type": "uint128",
|
|
801
|
-
"internalType": "uint128"
|
|
802
|
-
}
|
|
803
|
-
]
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"name": "sig",
|
|
807
|
-
"type": "tuple",
|
|
808
|
-
"internalType": "struct EIP712Signature",
|
|
809
|
-
"components": [
|
|
810
|
-
{
|
|
811
|
-
"name": "v",
|
|
812
|
-
"type": "uint8",
|
|
813
|
-
"internalType": "uint8"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"name": "r",
|
|
817
|
-
"type": "bytes32",
|
|
818
|
-
"internalType": "bytes32"
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "s",
|
|
822
|
-
"type": "bytes32",
|
|
823
|
-
"internalType": "bytes32"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"name": "deadline",
|
|
827
|
-
"type": "uint256",
|
|
828
|
-
"internalType": "uint256"
|
|
829
|
-
}
|
|
830
|
-
]
|
|
831
|
-
}
|
|
832
|
-
]
|
|
833
|
-
}
|
|
834
|
-
],
|
|
835
|
-
"outputs": [],
|
|
836
|
-
"stateMutability": "nonpayable"
|
|
837
|
-
},
|
|
838
789
|
{
|
|
839
790
|
"type": "function",
|
|
840
791
|
"name": "isCommandAllowed",
|
|
@@ -1062,6 +1013,46 @@
|
|
|
1062
1013
|
"outputs": [],
|
|
1063
1014
|
"stateMutability": "nonpayable"
|
|
1064
1015
|
},
|
|
1016
|
+
{
|
|
1017
|
+
"type": "function",
|
|
1018
|
+
"name": "withdraw",
|
|
1019
|
+
"inputs": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "inputs",
|
|
1022
|
+
"type": "tuple",
|
|
1023
|
+
"internalType": "struct WithdrawInputs",
|
|
1024
|
+
"components": [
|
|
1025
|
+
{
|
|
1026
|
+
"name": "tokenAmount",
|
|
1027
|
+
"type": "uint256",
|
|
1028
|
+
"internalType": "uint256"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "token",
|
|
1032
|
+
"type": "address",
|
|
1033
|
+
"internalType": "address"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "socketMsgGasLimit",
|
|
1037
|
+
"type": "uint256",
|
|
1038
|
+
"internalType": "uint256"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "chainId",
|
|
1042
|
+
"type": "uint256",
|
|
1043
|
+
"internalType": "uint256"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "receiver",
|
|
1047
|
+
"type": "address",
|
|
1048
|
+
"internalType": "address"
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"outputs": [],
|
|
1054
|
+
"stateMutability": "payable"
|
|
1055
|
+
},
|
|
1065
1056
|
{
|
|
1066
1057
|
"type": "function",
|
|
1067
1058
|
"name": "withdrawMA",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.131.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "pnpm@8.3.1",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4f17d053028d8d12a174d05331bf06b1d044f070"
|
|
47
47
|
}
|
|
@@ -542,6 +542,31 @@
|
|
|
542
542
|
}
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"type": "function",
|
|
547
|
+
"name": "deposit",
|
|
548
|
+
"inputs": [
|
|
549
|
+
{
|
|
550
|
+
"name": "inputs",
|
|
551
|
+
"type": "tuple",
|
|
552
|
+
"internalType": "struct DepositInputs",
|
|
553
|
+
"components": [
|
|
554
|
+
{
|
|
555
|
+
"name": "recipient",
|
|
556
|
+
"type": "address",
|
|
557
|
+
"internalType": "address"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "token",
|
|
561
|
+
"type": "address",
|
|
562
|
+
"internalType": "address"
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"outputs": [],
|
|
568
|
+
"stateMutability": "nonpayable"
|
|
569
|
+
},
|
|
545
570
|
{
|
|
546
571
|
"type": "function",
|
|
547
572
|
"name": "depositExistingMA",
|
|
@@ -761,80 +786,6 @@
|
|
|
761
786
|
"outputs": [],
|
|
762
787
|
"stateMutability": "nonpayable"
|
|
763
788
|
},
|
|
764
|
-
{
|
|
765
|
-
"type": "function",
|
|
766
|
-
"name": "executeMatchOrders",
|
|
767
|
-
"inputs": [
|
|
768
|
-
{
|
|
769
|
-
"name": "inputs",
|
|
770
|
-
"type": "tuple",
|
|
771
|
-
"internalType": "struct PeripheryMatchOrderInputs",
|
|
772
|
-
"components": [
|
|
773
|
-
{
|
|
774
|
-
"name": "accountId",
|
|
775
|
-
"type": "uint128",
|
|
776
|
-
"internalType": "uint128"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"name": "commands",
|
|
780
|
-
"type": "tuple[]",
|
|
781
|
-
"internalType": "struct Command[]",
|
|
782
|
-
"components": [
|
|
783
|
-
{
|
|
784
|
-
"name": "commandType",
|
|
785
|
-
"type": "uint8",
|
|
786
|
-
"internalType": "enum CommandType"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"name": "inputs",
|
|
790
|
-
"type": "bytes",
|
|
791
|
-
"internalType": "bytes"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"name": "marketId",
|
|
795
|
-
"type": "uint128",
|
|
796
|
-
"internalType": "uint128"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"name": "exchangeId",
|
|
800
|
-
"type": "uint128",
|
|
801
|
-
"internalType": "uint128"
|
|
802
|
-
}
|
|
803
|
-
]
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"name": "sig",
|
|
807
|
-
"type": "tuple",
|
|
808
|
-
"internalType": "struct EIP712Signature",
|
|
809
|
-
"components": [
|
|
810
|
-
{
|
|
811
|
-
"name": "v",
|
|
812
|
-
"type": "uint8",
|
|
813
|
-
"internalType": "uint8"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"name": "r",
|
|
817
|
-
"type": "bytes32",
|
|
818
|
-
"internalType": "bytes32"
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "s",
|
|
822
|
-
"type": "bytes32",
|
|
823
|
-
"internalType": "bytes32"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"name": "deadline",
|
|
827
|
-
"type": "uint256",
|
|
828
|
-
"internalType": "uint256"
|
|
829
|
-
}
|
|
830
|
-
]
|
|
831
|
-
}
|
|
832
|
-
]
|
|
833
|
-
}
|
|
834
|
-
],
|
|
835
|
-
"outputs": [],
|
|
836
|
-
"stateMutability": "nonpayable"
|
|
837
|
-
},
|
|
838
789
|
{
|
|
839
790
|
"type": "function",
|
|
840
791
|
"name": "isCommandAllowed",
|
|
@@ -1062,6 +1013,46 @@
|
|
|
1062
1013
|
"outputs": [],
|
|
1063
1014
|
"stateMutability": "nonpayable"
|
|
1064
1015
|
},
|
|
1016
|
+
{
|
|
1017
|
+
"type": "function",
|
|
1018
|
+
"name": "withdraw",
|
|
1019
|
+
"inputs": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "inputs",
|
|
1022
|
+
"type": "tuple",
|
|
1023
|
+
"internalType": "struct WithdrawInputs",
|
|
1024
|
+
"components": [
|
|
1025
|
+
{
|
|
1026
|
+
"name": "tokenAmount",
|
|
1027
|
+
"type": "uint256",
|
|
1028
|
+
"internalType": "uint256"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "token",
|
|
1032
|
+
"type": "address",
|
|
1033
|
+
"internalType": "address"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "socketMsgGasLimit",
|
|
1037
|
+
"type": "uint256",
|
|
1038
|
+
"internalType": "uint256"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "chainId",
|
|
1042
|
+
"type": "uint256",
|
|
1043
|
+
"internalType": "uint256"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "receiver",
|
|
1047
|
+
"type": "address",
|
|
1048
|
+
"internalType": "address"
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"outputs": [],
|
|
1054
|
+
"stateMutability": "payable"
|
|
1055
|
+
},
|
|
1065
1056
|
{
|
|
1066
1057
|
"type": "function",
|
|
1067
1058
|
"name": "withdrawMA",
|