@reyaxyz/common 0.343.1 → 0.344.1-perpob.135
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/README.md +1 -1
- package/dist/commands/exposure/command.js +8 -22
- package/dist/commands/exposure/command.js.map +1 -1
- package/dist/incentives-api-types.js.map +1 -1
- package/dist/rest/helpers/constants.js +12 -0
- package/dist/rest/helpers/constants.js.map +1 -1
- package/dist/trading-api-types.js.map +1 -1
- package/dist/transactions/abis/Errors.json +276 -1
- package/dist/transactions/abis/OrdersGateway.json +691 -119
- package/dist/transactions/abis/PassivePerpProxy.json +537 -0
- package/dist/transactions/buildMulticallTx.js.map +1 -1
- package/dist/transactions/contractAddresses.js +33 -4
- package/dist/transactions/contractAddresses.js.map +1 -1
- package/dist/transactions/executeTransaction.js +8 -123
- package/dist/transactions/executeTransaction.js.map +1 -1
- package/dist/transactions/sign.js +234 -1
- package/dist/transactions/sign.js.map +1 -1
- package/dist/types/commands/exposure/command.d.ts +8 -7
- package/dist/types/commands/exposure/command.d.ts.map +1 -1
- package/dist/types/incentives-api-types.d.ts +6 -2
- package/dist/types/incentives-api-types.d.ts.map +1 -1
- package/dist/types/rest/helpers/constants.d.ts +1 -1
- package/dist/types/rest/helpers/constants.d.ts.map +1 -1
- package/dist/types/trading-api-types.d.ts +129 -31
- package/dist/types/trading-api-types.d.ts.map +1 -1
- package/dist/types/transactions/buildMulticallTx.d.ts +1 -0
- package/dist/types/transactions/buildMulticallTx.d.ts.map +1 -1
- package/dist/types/transactions/contractAddresses.d.ts +1 -1
- package/dist/types/transactions/contractAddresses.d.ts.map +1 -1
- package/dist/types/transactions/executeTransaction.d.ts +2 -15
- package/dist/types/transactions/executeTransaction.d.ts.map +1 -1
- package/dist/types/transactions/sign.d.ts +38 -1
- package/dist/types/transactions/sign.d.ts.map +1 -1
- package/dist/types/types.d.ts +44 -18
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/calculate.d.ts +14 -2
- package/dist/types/utils/calculate.d.ts.map +1 -1
- package/dist/types/utils/layerzero.d.ts +22 -0
- package/dist/types/utils/layerzero.d.ts.map +1 -0
- package/dist/types/utils/token/batch-token-getters.d.ts +0 -5
- package/dist/types/utils/token/batch-token-getters.d.ts.map +1 -1
- package/dist/types/utils/token/token-getters.d.ts +0 -2
- package/dist/types/utils/token/token-getters.d.ts.map +1 -1
- package/dist/types.js +51 -7
- package/dist/types.js.map +1 -1
- package/dist/utils/calculate.js +137 -16
- package/dist/utils/calculate.js.map +1 -1
- package/dist/utils/layerzero.js +31 -0
- package/dist/utils/layerzero.js.map +1 -0
- package/dist/utils/token/batch-token-getters.js +13 -64
- package/dist/utils/token/batch-token-getters.js.map +1 -1
- package/dist/utils/token/token-getters.js +1 -42
- package/dist/utils/token/token-getters.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/exposure/command.ts +8 -38
- package/src/incentives-api-types.ts +11 -5
- package/src/rest/helpers/constants.ts +22 -0
- package/src/trading-api-types.ts +134 -47
- package/src/transactions/abis/Errors.json +4148 -3873
- package/src/transactions/abis/OrdersGateway.json +692 -120
- package/src/transactions/abis/PassivePerpProxy.json +537 -0
- package/src/transactions/buildMulticallTx.ts +4 -0
- package/src/transactions/contractAddresses.ts +34 -4
- package/src/transactions/executeTransaction.ts +2 -130
- package/src/transactions/sign.ts +302 -0
- package/src/types.ts +70 -19
- package/src/utils/calculate.ts +181 -21
- package/src/utils/layerzero.ts +66 -0
- package/src/utils/token/batch-token-getters.ts +0 -28
- package/src/utils/token/token-getters.ts +0 -29
- package/dist/types/utils/layerzero/index.d.ts +0 -3
- package/dist/types/utils/layerzero/index.d.ts.map +0 -1
- package/dist/types/utils/layerzero/oft-config.d.ts +0 -4
- package/dist/types/utils/layerzero/oft-config.d.ts.map +0 -1
- package/dist/types/utils/layerzero/types.d.ts +0 -23
- package/dist/types/utils/layerzero/types.d.ts.map +0 -1
- package/dist/utils/layerzero/index.js +0 -19
- package/dist/utils/layerzero/index.js.map +0 -1
- package/dist/utils/layerzero/oft-config.js +0 -29
- package/dist/utils/layerzero/oft-config.js.map +0 -1
- package/dist/utils/layerzero/types.js +0 -3
- package/dist/utils/layerzero/types.js.map +0 -1
- package/src/utils/layerzero/index.ts +0 -2
- package/src/utils/layerzero/oft-config.ts +0 -32
- package/src/utils/layerzero/types.ts +0 -25
|
@@ -3858,7 +3858,8 @@
|
|
|
3858
3858
|
"internalType": "uint256"
|
|
3859
3859
|
}
|
|
3860
3860
|
]
|
|
3861
|
-
},
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3862
3863
|
"type": "error",
|
|
3863
3864
|
"name": "CamelotSwapMinAmountOutBreached",
|
|
3864
3865
|
"inputs": [
|
|
@@ -3931,6 +3932,280 @@
|
|
|
3931
3932
|
"type": "uint256"
|
|
3932
3933
|
}
|
|
3933
3934
|
]
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
"type": "error",
|
|
3938
|
+
"name": "BaseDeltaWrongSpacing",
|
|
3939
|
+
"inputs": [
|
|
3940
|
+
{
|
|
3941
|
+
"name": "baseDelta",
|
|
3942
|
+
"type": "int256",
|
|
3943
|
+
"internalType": "SD59x18"
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
"name": "baseSpacing",
|
|
3947
|
+
"type": "uint256",
|
|
3948
|
+
"internalType": "UD60x18"
|
|
3949
|
+
}
|
|
3950
|
+
]
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
"type": "error",
|
|
3954
|
+
"name": "CoreOutputLengthMismatch",
|
|
3955
|
+
"inputs": []
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"type": "error",
|
|
3959
|
+
"name": "CounterpartyCannotBeReduceOnly",
|
|
3960
|
+
"inputs": []
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
"type": "error",
|
|
3964
|
+
"name": "CounterpartyWrongDirection",
|
|
3965
|
+
"inputs": []
|
|
3966
|
+
},
|
|
3967
|
+
{
|
|
3968
|
+
"type": "error",
|
|
3969
|
+
"name": "FillExceedsOrderBaseDelta",
|
|
3970
|
+
"inputs": [
|
|
3971
|
+
{
|
|
3972
|
+
"name": "fillAmount",
|
|
3973
|
+
"type": "int256",
|
|
3974
|
+
"internalType": "SD59x18"
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
"name": "orderBaseDelta",
|
|
3978
|
+
"type": "int256",
|
|
3979
|
+
"internalType": "SD59x18"
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"name": "isCounterparty",
|
|
3983
|
+
"type": "bool",
|
|
3984
|
+
"internalType": "bool"
|
|
3985
|
+
}
|
|
3986
|
+
]
|
|
3987
|
+
},
|
|
3988
|
+
{
|
|
3989
|
+
"type": "error",
|
|
3990
|
+
"name": "InvalidFillPrice",
|
|
3991
|
+
"inputs": [
|
|
3992
|
+
{
|
|
3993
|
+
"name": "fillPrice",
|
|
3994
|
+
"type": "uint256",
|
|
3995
|
+
"internalType": "UD60x18"
|
|
3996
|
+
},
|
|
3997
|
+
{
|
|
3998
|
+
"name": "orderPrice",
|
|
3999
|
+
"type": "uint256",
|
|
4000
|
+
"internalType": "UD60x18"
|
|
4001
|
+
}
|
|
4002
|
+
]
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
"type": "error",
|
|
4006
|
+
"name": "InvalidTimeInForce",
|
|
4007
|
+
"inputs": [
|
|
4008
|
+
{
|
|
4009
|
+
"name": "timeInForce",
|
|
4010
|
+
"type": "uint8",
|
|
4011
|
+
"internalType": "uint8"
|
|
4012
|
+
}
|
|
4013
|
+
]
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"type": "error",
|
|
4017
|
+
"name": "InvalidTriggerPrice",
|
|
4018
|
+
"inputs": [
|
|
4019
|
+
{
|
|
4020
|
+
"name": "orderType",
|
|
4021
|
+
"type": "uint8",
|
|
4022
|
+
"internalType": "enum OrderType"
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "triggerPrice",
|
|
4026
|
+
"type": "uint256",
|
|
4027
|
+
"internalType": "uint256"
|
|
4028
|
+
}
|
|
4029
|
+
]
|
|
4030
|
+
},
|
|
4031
|
+
{
|
|
4032
|
+
"type": "error",
|
|
4033
|
+
"name": "MarketIdMismatch",
|
|
4034
|
+
"inputs": [
|
|
4035
|
+
{
|
|
4036
|
+
"name": "accountOrderMarketId",
|
|
4037
|
+
"type": "uint128",
|
|
4038
|
+
"internalType": "uint128"
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
"name": "counterpartyOrderMarketId",
|
|
4042
|
+
"type": "uint128",
|
|
4043
|
+
"internalType": "uint128"
|
|
4044
|
+
}
|
|
4045
|
+
]
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
"type": "error",
|
|
4049
|
+
"name": "MarketSpacingNotConfigured",
|
|
4050
|
+
"inputs": []
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"type": "error",
|
|
4054
|
+
"name": "MarketTypeMismatch",
|
|
4055
|
+
"inputs": [
|
|
4056
|
+
{
|
|
4057
|
+
"name": "accountMarketType",
|
|
4058
|
+
"type": "uint8",
|
|
4059
|
+
"internalType": "enum MarketType"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"name": "counterpartyMarketType",
|
|
4063
|
+
"type": "uint8",
|
|
4064
|
+
"internalType": "enum MarketType"
|
|
4065
|
+
}
|
|
4066
|
+
]
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"type": "error",
|
|
4070
|
+
"name": "MaxQuantityExceeded",
|
|
4071
|
+
"inputs": [
|
|
4072
|
+
{
|
|
4073
|
+
"name": "amount",
|
|
4074
|
+
"type": "uint256",
|
|
4075
|
+
"internalType": "uint256"
|
|
4076
|
+
},
|
|
4077
|
+
{
|
|
4078
|
+
"name": "maxQuantity",
|
|
4079
|
+
"type": "uint256",
|
|
4080
|
+
"internalType": "uint256"
|
|
4081
|
+
}
|
|
4082
|
+
]
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"type": "error",
|
|
4086
|
+
"name": "OrderExpired",
|
|
4087
|
+
"inputs": [
|
|
4088
|
+
{
|
|
4089
|
+
"name": "expiresAfter",
|
|
4090
|
+
"type": "uint256",
|
|
4091
|
+
"internalType": "uint256"
|
|
4092
|
+
}
|
|
4093
|
+
]
|
|
4094
|
+
},
|
|
4095
|
+
{
|
|
4096
|
+
"type": "error",
|
|
4097
|
+
"name": "PriceWrongSpacing",
|
|
4098
|
+
"inputs": [
|
|
4099
|
+
{
|
|
4100
|
+
"name": "price",
|
|
4101
|
+
"type": "uint256",
|
|
4102
|
+
"internalType": "UD60x18"
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"name": "priceSpacing",
|
|
4106
|
+
"type": "uint256",
|
|
4107
|
+
"internalType": "UD60x18"
|
|
4108
|
+
}
|
|
4109
|
+
]
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"type": "error",
|
|
4113
|
+
"name": "SameOrderId",
|
|
4114
|
+
"inputs": []
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
"type": "error",
|
|
4118
|
+
"name": "SignerNonceAlreadyUsed",
|
|
4119
|
+
"inputs": [
|
|
4120
|
+
{
|
|
4121
|
+
"name": "signer",
|
|
4122
|
+
"type": "address",
|
|
4123
|
+
"internalType": "address"
|
|
4124
|
+
},
|
|
4125
|
+
{
|
|
4126
|
+
"name": "nonce",
|
|
4127
|
+
"type": "uint256",
|
|
4128
|
+
"internalType": "uint256"
|
|
4129
|
+
}
|
|
4130
|
+
]
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
"type": "error",
|
|
4134
|
+
"name": "UnauthorizedMatchingEnginePublisher",
|
|
4135
|
+
"inputs": [
|
|
4136
|
+
{
|
|
4137
|
+
"name": "publisher",
|
|
4138
|
+
"type": "address",
|
|
4139
|
+
"internalType": "address"
|
|
4140
|
+
}
|
|
4141
|
+
]
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
"type": "error",
|
|
4145
|
+
"name": "UnauthorizedSigner",
|
|
4146
|
+
"inputs": [
|
|
4147
|
+
{
|
|
4148
|
+
"name": "addr",
|
|
4149
|
+
"type": "address",
|
|
4150
|
+
"internalType": "address"
|
|
4151
|
+
}
|
|
4152
|
+
]
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"type": "error",
|
|
4156
|
+
"name": "UnsupportedOrderConfiguration",
|
|
4157
|
+
"inputs": [
|
|
4158
|
+
{
|
|
4159
|
+
"name": "marketType",
|
|
4160
|
+
"type": "uint8",
|
|
4161
|
+
"internalType": "enum MarketType"
|
|
4162
|
+
},
|
|
4163
|
+
{
|
|
4164
|
+
"name": "orderType",
|
|
4165
|
+
"type": "uint8",
|
|
4166
|
+
"internalType": "enum OrderType"
|
|
4167
|
+
},
|
|
4168
|
+
{
|
|
4169
|
+
"name": "reduceOnly",
|
|
4170
|
+
"type": "bool",
|
|
4171
|
+
"internalType": "bool"
|
|
4172
|
+
}
|
|
4173
|
+
]
|
|
4174
|
+
},
|
|
4175
|
+
{
|
|
4176
|
+
"type": "error",
|
|
4177
|
+
"name": "ZeroAccountId",
|
|
4178
|
+
"inputs": []
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
"type": "error",
|
|
4182
|
+
"name": "ZeroAmountIncrementNonce",
|
|
4183
|
+
"inputs": []
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
"type": "error",
|
|
4187
|
+
"name": "ZeroBaseDelta",
|
|
4188
|
+
"inputs": []
|
|
4189
|
+
},
|
|
4190
|
+
{
|
|
4191
|
+
"type": "error",
|
|
4192
|
+
"name": "ZeroMarketId",
|
|
4193
|
+
"inputs": []
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
"type": "error",
|
|
4197
|
+
"name": "ZeroOrderId",
|
|
4198
|
+
"inputs": []
|
|
4199
|
+
},
|
|
4200
|
+
{
|
|
4201
|
+
"type": "error",
|
|
4202
|
+
"name": "ZeroPrice",
|
|
4203
|
+
"inputs": []
|
|
4204
|
+
},
|
|
4205
|
+
{
|
|
4206
|
+
"type": "error",
|
|
4207
|
+
"name": "ZeroQuantity",
|
|
4208
|
+
"inputs": []
|
|
3934
4209
|
}
|
|
3935
4210
|
]
|
|
3936
4211
|
}
|