@p2pdotme/sdk 1.1.0 → 1.1.1
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 +32 -0
- package/dist/country.cjs +1 -1
- package/dist/country.cjs.map +1 -1
- package/dist/country.mjs +1 -1
- package/dist/country.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/orders.cjs +691 -2
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.d.cts +222 -1
- package/dist/orders.d.ts +222 -1
- package/dist/orders.mjs +685 -1
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +424 -0
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.mjs +424 -0
- package/dist/prices.mjs.map +1 -1
- package/dist/profile.cjs +424 -0
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.mjs +424 -0
- package/dist/profile.mjs.map +1 -1
- package/dist/qr-parsers.cjs +82 -1
- package/dist/qr-parsers.cjs.map +1 -1
- package/dist/qr-parsers.mjs +82 -1
- package/dist/qr-parsers.mjs.map +1 -1
- package/dist/react.cjs +424 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +424 -0
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.mjs
CHANGED
|
@@ -4859,6 +4859,430 @@ function createSetSellOrderUpiAction(input) {
|
|
|
4859
4859
|
// src/orders/internal/routing/client.ts
|
|
4860
4860
|
import { stringToHex as stringToHex6 } from "viem";
|
|
4861
4861
|
|
|
4862
|
+
// src/contracts/errors.ts
|
|
4863
|
+
var contractErrors = {
|
|
4864
|
+
// Access control
|
|
4865
|
+
NotAdmin: "NOT_ADMIN",
|
|
4866
|
+
NotSuperAdmin: "NOT_SUPER_ADMIN",
|
|
4867
|
+
NotAuthorized: "NOT_AUTHORIZED",
|
|
4868
|
+
NotSelf: "NOT_SELF",
|
|
4869
|
+
NotWhitelisted: "NOT_WHITELISTED",
|
|
4870
|
+
NotCircleAdmin: "NOT_CIRCLE_ADMIN",
|
|
4871
|
+
// Circle / community management
|
|
4872
|
+
InvalidName: "INVALID_NAME",
|
|
4873
|
+
InvalidCommunityUrl: "INVALID_COMMUNITY_URL",
|
|
4874
|
+
InvalidAdminCommunityUrl: "INVALID_ADMIN_COMMUNITY_URL",
|
|
4875
|
+
AdminAlreadyHasCircle: "ADMIN_ALREADY_HAS_CIRCLE",
|
|
4876
|
+
CircleNameAlreadyTaken: "CIRCLE_NAME_ALREADY_TAKEN",
|
|
4877
|
+
P2PStakeConfigNotSet: "P2P_STAKE_CONFIG_NOT_SET",
|
|
4878
|
+
InsufficientP2PStake: "INSUFFICIENT_P2P_STAKE",
|
|
4879
|
+
P2PTokenNotSet: "P2P_TOKEN_NOT_SET",
|
|
4880
|
+
P2PUnstakeRequestPending: "P2P_UNSTAKE_REQUEST_PENDING",
|
|
4881
|
+
NoP2PUnstakeRequest: "NO_P2P_UNSTAKE_REQUEST",
|
|
4882
|
+
P2PUnstakeCooldownNotPassed: "P2P_UNSTAKE_COOLDOWN_NOT_PASSED",
|
|
4883
|
+
SlashAmountExceedsStake: "SLASH_AMOUNT_EXCEEDS_STAKE",
|
|
4884
|
+
CircleNotActive: "CIRCLE_NOT_ACTIVE",
|
|
4885
|
+
InvalidCircleId: "INVALID_CIRCLE_ID",
|
|
4886
|
+
CurrencyMismatch: "CURRENCY_MISMATCH",
|
|
4887
|
+
CircleFull: "CIRCLE_FULL",
|
|
4888
|
+
CircleIdMismatch: "CIRCLE_ID_MISMATCH",
|
|
4889
|
+
DuplicateAccountName: "DUPLICATE_ACCOUNT_NAME",
|
|
4890
|
+
EmptyName: "EMPTY_NAME",
|
|
4891
|
+
AccountBoundToAnotherCircle: "ACCOUNT_BOUND_TO_ANOTHER_CIRCLE",
|
|
4892
|
+
ExitAmountExceededCircleBalance: "EXIT_AMOUNT_EXCEEDED_CIRCLE_BALANCE",
|
|
4893
|
+
UndelegationAmountTooHigh: "UNDELEGATION_AMOUNT_TOO_HIGH",
|
|
4894
|
+
// Exchange / order lifecycle
|
|
4895
|
+
ExchangeNotOperational: "EXCHANGE_NOT_OPERATIONAL",
|
|
4896
|
+
OrderNotPlaced: "ORDER_NOT_PLACED",
|
|
4897
|
+
OrderNotPaid: "ORDER_NOT_PAID",
|
|
4898
|
+
OrderStatusInvalid: "ORDER_STATUS_INVALID",
|
|
4899
|
+
OrderExpired: "ORDER_EXPIRED",
|
|
4900
|
+
OrderAlreadyPaid: "ORDER_ALREADY_PAID",
|
|
4901
|
+
OrderAlreadyCompleted: "ORDER_ALREADY_COMPLETED",
|
|
4902
|
+
InvalidOrderType: "INVALID_ORDER_TYPE",
|
|
4903
|
+
OrderTypeIncorrect: "ORDER_TYPE_INCORRECT",
|
|
4904
|
+
OrderNotAccepted: "ORDER_NOT_ACCEPTED",
|
|
4905
|
+
OrderNotAssigned: "ORDER_NOT_ASSIGNED",
|
|
4906
|
+
OrderAmountExceedsLimit: "ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
4907
|
+
InvalidOrderAmount: "INVALID_ORDER_AMOUNT",
|
|
4908
|
+
InvalidOrderAmountToCoverFee: "INVALID_ORDER_AMOUNT_TO_COVER_FEE",
|
|
4909
|
+
InvalidOrderId: "INVALID_ORDER_ID",
|
|
4910
|
+
OrderTooEarlyForReassignment: "ORDER_TOO_EARLY_FOR_REASSIGNMENT",
|
|
4911
|
+
OrderTooLateForReassignment: "ORDER_TOO_LATE_FOR_REASSIGNMENT",
|
|
4912
|
+
ReAssignmentNotRequired: "REASSIGNMENT_NOT_REQUIRED",
|
|
4913
|
+
TipAlreadyGiven: "TIP_ALREADY_GIVEN",
|
|
4914
|
+
CashbackTransferFailed: "CASHBACK_TRANSFER_FAILED",
|
|
4915
|
+
// Order limits
|
|
4916
|
+
DailyBuyOrderLimitExceeded: "DAILY_BUY_ORDER_LIMIT_EXCEEDED",
|
|
4917
|
+
MonthlyBuyOrderLimitExceeded: "MONTHLY_BUY_ORDER_LIMIT_EXCEEDED",
|
|
4918
|
+
SellOrderAmountLimitExceeded: "SELL_ORDER_AMOUNT_LIMIT_EXCEEDED",
|
|
4919
|
+
BuyOrderAmountExceedsLimit: "BUY_ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
4920
|
+
SellOrderAmountExceedsLimit: "SELL_ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
4921
|
+
BuyAmountExceedsUsdcLimit: "BUY_AMOUNT_EXCEEDS_USDC_LIMIT",
|
|
4922
|
+
SellAmountExceedsFiatLimit: "SELL_AMOUNT_EXCEEDS_FIAT_LIMIT",
|
|
4923
|
+
DailyVolumeLimitExceeded: "DAILY_VOLUME_LIMIT_EXCEEDED",
|
|
4924
|
+
MonthlyVolumeLimitExceeded: "MONTHLY_VOLUME_LIMIT_EXCEEDED",
|
|
4925
|
+
UserYearlyVolumeLimitExceeded: "USER_YEARLY_VOLUME_LIMIT_EXCEEDED",
|
|
4926
|
+
// Dispute
|
|
4927
|
+
DisputeTimeNotReached: "DISPUTE_TIME_NOT_REACHED",
|
|
4928
|
+
DisputeTimeExpired: "DISPUTE_TIME_EXPIRED",
|
|
4929
|
+
InvalidOrderStatusToRaiseDispute: "INVALID_ORDER_STATUS_TO_RAISE_DISPUTE",
|
|
4930
|
+
DisputeNotRaised: "DISPUTE_NOT_RAISED",
|
|
4931
|
+
CannotRaiseDisputeTwice: "CANNOT_RAISE_DISPUTE_TWICE",
|
|
4932
|
+
DisputeAlreadySettled: "DISPUTE_ALREADY_SETTLED",
|
|
4933
|
+
TransactionIdMismatch: "TRANSACTION_ID_MISMATCH",
|
|
4934
|
+
AccountNumberMismatch: "ACCOUNT_NUMBER_MISMATCH",
|
|
4935
|
+
NotPaidBuyOrder: "NOT_PAID_BUY_ORDER",
|
|
4936
|
+
// Payment channels
|
|
4937
|
+
PaymentChannelNotFound: "PAYMENT_CHANNEL_NOT_FOUND",
|
|
4938
|
+
PaymentChannelNotActive: "PAYMENT_CHANNEL_NOT_ACTIVE",
|
|
4939
|
+
PaymentChannelNotApproved: "PAYMENT_CHANNEL_NOT_APPROVED",
|
|
4940
|
+
PaymentChannelNotRejected: "PAYMENT_CHANNEL_NOT_REJECTED",
|
|
4941
|
+
InvalidPaymentChannelId: "INVALID_PAYMENT_CHANNEL_ID",
|
|
4942
|
+
DuplicatePaymentChannel: "DUPLICATE_PAYMENT_CHANNEL",
|
|
4943
|
+
OldPaymentChannelNotFound: "OLD_PAYMENT_CHANNEL_NOT_FOUND",
|
|
4944
|
+
NewPaymentChannelNotFound: "NEW_PAYMENT_CHANNEL_NOT_FOUND",
|
|
4945
|
+
SamePaymentChannel: "SAME_PAYMENT_CHANNEL",
|
|
4946
|
+
OldPaymentChannelShouldBeInactive: "OLD_PAYMENT_CHANNEL_SHOULD_BE_INACTIVE",
|
|
4947
|
+
NewPaymentChannelShouldBeActive: "NEW_PAYMENT_CHANNEL_SHOULD_BE_ACTIVE",
|
|
4948
|
+
OngoingOrderOnPaymentChannel: "ONGOING_ORDER_ON_PAYMENT_CHANNEL",
|
|
4949
|
+
UpiAlreadySent: "UPI_ALREADY_SENT",
|
|
4950
|
+
InvalidOrderUpi: "INVALID_ORDER_UPI",
|
|
4951
|
+
NoFiatLiquidity: "NO_FIAT_LIQUIDITY",
|
|
4952
|
+
// Merchant
|
|
4953
|
+
NotEnoughEligibleMerchants: "NOT_ENOUGH_ELIGIBLE_MERCHANTS",
|
|
4954
|
+
MerchantNotRegistered: "MERCHANT_NOT_REGISTERED",
|
|
4955
|
+
MerchantNotApproved: "MERCHANT_NOT_APPROVED",
|
|
4956
|
+
MerchantAlreadyRegistered: "MERCHANT_ALREADY_REGISTERED",
|
|
4957
|
+
MerchantAlreadyRejected: "MERCHANT_ALREADY_REJECTED",
|
|
4958
|
+
MerchantBlacklisted: "MERCHANT_BLACKLISTED",
|
|
4959
|
+
MerchantNotBlacklisted: "MERCHANT_NOT_BLACKLISTED",
|
|
4960
|
+
MerchantAlreadyBlacklisted: "MERCHANT_ALREADY_BLACKLISTED",
|
|
4961
|
+
MerchantHasOngoingOrders: "MERCHANT_HAS_ONGOING_ORDERS",
|
|
4962
|
+
MerchantNotFullfilledEligibilityThreshold: "MERCHANT_NOT_FULLFILLED_ELIGIBILITY_THRESHOLD",
|
|
4963
|
+
InvalidMerchant: "INVALID_MERCHANT",
|
|
4964
|
+
// Staking / unstaking
|
|
4965
|
+
StakeAmountTooLow: "STAKE_AMOUNT_TOO_LOW",
|
|
4966
|
+
AdditionalStakeNotAllowed: "ADDITIONAL_STAKE_NOT_ALLOWED",
|
|
4967
|
+
UnstakeRequestPending: "UNSTAKE_REQUEST_PENDING",
|
|
4968
|
+
UnstakeRequestNotPending: "UNSTAKE_REQUEST_NOT_PENDING",
|
|
4969
|
+
UnstakeAmountExceeded: "UNSTAKE_AMOUNT_EXCEEDED",
|
|
4970
|
+
ZeroUnstakeAmount: "ZERO_UNSTAKE_AMOUNT",
|
|
4971
|
+
NoWithdrawableAmount: "NO_WITHDRAWABLE_AMOUNT",
|
|
4972
|
+
NoStake: "NO_STAKE",
|
|
4973
|
+
NoStakers: "NO_STAKERS",
|
|
4974
|
+
InsufficientStakedAmount: "INSUFFICIENT_STAKED_AMOUNT",
|
|
4975
|
+
CooldownNotPassed: "COOLDOWN_NOT_PASSED",
|
|
4976
|
+
ClaimableRewardsNotAvailable: "CLAIMABLE_REWARDS_NOT_AVAILABLE",
|
|
4977
|
+
// Delegation
|
|
4978
|
+
ExitWouldBreachDelegationInvariant: "EXIT_WOULD_BREACH_DELEGATION_INVARIANT",
|
|
4979
|
+
AggregateDelegationExceedsTotalStaked: "AGGREGATE_DELEGATION_EXCEEDS_TOTAL_STAKED",
|
|
4980
|
+
InsufficientMerchantRewards: "INSUFFICIENT_MERCHANT_REWARDS",
|
|
4981
|
+
// Migration
|
|
4982
|
+
InvalidMigrationStatus: "INVALID_MIGRATION_STATUS",
|
|
4983
|
+
MigrationRequestNotPending: "MIGRATION_REQUEST_NOT_PENDING",
|
|
4984
|
+
MigrationAlreadyRequested: "MIGRATION_ALREADY_REQUESTED",
|
|
4985
|
+
// Token / currency
|
|
4986
|
+
TokenAlreadyExists: "TOKEN_ALREADY_EXISTS",
|
|
4987
|
+
TokenNotFound: "TOKEN_NOT_FOUND",
|
|
4988
|
+
TokenEmpty: "TOKEN_EMPTY",
|
|
4989
|
+
CurrencyNotSupported: "CURRENCY_NOT_SUPPORTED",
|
|
4990
|
+
InvalidCurrency: "INVALID_CURRENCY",
|
|
4991
|
+
// USDC / transfer
|
|
4992
|
+
UsdtTransferFailed: "USDC_TRANSFER_FAILED",
|
|
4993
|
+
UsdtTransferFailedWithErrorMessage: "USDC_TRANSFER_FAILED_WITH_ERROR_MESSAGE",
|
|
4994
|
+
UsdtTransferFailedWithPanic: "USDC_TRANSFER_FAILED_WITH_PANIC",
|
|
4995
|
+
InsufficientAllowance: "INSUFFICIENT_ALLOWANCE",
|
|
4996
|
+
// ZK Passport
|
|
4997
|
+
ZKPassportVerifierNotSet: "ZK_PASSPORT_VERIFIER_NOT_SET",
|
|
4998
|
+
ZKPassportDomainEmpty: "ZK_PASSPORT_DOMAIN_EMPTY",
|
|
4999
|
+
ZKPassportScopeEmpty: "ZK_PASSPORT_SCOPE_EMPTY",
|
|
5000
|
+
PassportAlreadyVerified: "PASSPORT_ALREADY_VERIFIED",
|
|
5001
|
+
ZKPassportProofInvalid: "ZK_PASSPORT_PROOF_INVALID",
|
|
5002
|
+
ZKPassportIdentifierAlreadyVerified: "ZK_PASSPORT_IDENTIFIER_ALREADY_VERIFIED",
|
|
5003
|
+
ZKPassportInvalidScope: "ZK_PASSPORT_INVALID_SCOPE",
|
|
5004
|
+
ZKPassportUnexpectedSender: "ZK_PASSPORT_UNEXPECTED_SENDER",
|
|
5005
|
+
ZKPassportAgeBelowMinimum: "ZK_PASSPORT_AGE_BELOW_MINIMUM",
|
|
5006
|
+
ZKPassportMinAgeTooHigh: "ZK_PASSPORT_MIN_AGE_TOO_HIGH",
|
|
5007
|
+
// Chainlink / oracle
|
|
5008
|
+
UnexpectedRequestId: "UNEXPECTED_REQUEST_ID",
|
|
5009
|
+
OnlyRouterCanFulfill: "ONLY_ROUTER_CAN_FULFILL",
|
|
5010
|
+
RequestFailed: "REQUEST_FAILED",
|
|
5011
|
+
SourceCodeMismatch: "SOURCE_CODE_MISMATCH",
|
|
5012
|
+
ZeroMarketPrice: "ZERO_MARKET_PRICE",
|
|
5013
|
+
InvalidComputedPrices: "INVALID_COMPUTED_PRICES",
|
|
5014
|
+
NotPriceUpdaterForCurrency: "NOT_PRICE_UPDATER_FOR_CURRENCY",
|
|
5015
|
+
ThresholdNotConfigured: "THRESHOLD_NOT_CONFIGURED",
|
|
5016
|
+
SlippageExceeded: "SLIPPAGE_EXCEEDED",
|
|
5017
|
+
// Reputation / verification
|
|
5018
|
+
UserHasNoReputation: "USER_HAS_NO_REPUTATION",
|
|
5019
|
+
ZeroReputationPoints: "ZERO_REPUTATION_POINTS",
|
|
5020
|
+
NoReputation: "NO_REPUTATION",
|
|
5021
|
+
InsufficientRP: "INSUFFICIENT_RP",
|
|
5022
|
+
NullifierAlreadyVerified: "NULLIFIER_ALREADY_VERIFIED",
|
|
5023
|
+
VerificationFailed: "VERIFICATION_FAILED",
|
|
5024
|
+
InvalidSocialPlatform: "INVALID_SOCIAL_PLATFORM",
|
|
5025
|
+
SocialAlreadyVerified: "SOCIAL_ALREADY_VERIFIED",
|
|
5026
|
+
YearFieldNotInProof: "YEAR_FIELD_NOT_IN_PROOF",
|
|
5027
|
+
UserIdFieldNotInProof: "USER_ID_FIELD_NOT_IN_PROOF",
|
|
5028
|
+
UserIdAlreadyVerified: "USER_ID_ALREADY_VERIFIED",
|
|
5029
|
+
UsernameAlreadyVerified: "USERNAME_ALREADY_VERIFIED",
|
|
5030
|
+
UsernameNotInProof: "USERNAME_NOT_IN_PROOF",
|
|
5031
|
+
LinkedInOnlyRpUpdates: "LINKEDIN_ONLY_RP_UPDATES",
|
|
5032
|
+
FacebookOnlyRpUpdates: "FACEBOOK_ONLY_RP_UPDATES",
|
|
5033
|
+
// Voting / referral
|
|
5034
|
+
AlreadyReferred: "ALREADY_REFERRED",
|
|
5035
|
+
SelfReferralNotAllowed: "SELF_REFERRAL_NOT_ALLOWED",
|
|
5036
|
+
NotEligibleToRefer: "NOT_ELIGIBLE_TO_REFER",
|
|
5037
|
+
MerchantMonthlyReferralLimitReached: "MERCHANT_MONTHLY_REFERRAL_LIMIT_REACHED",
|
|
5038
|
+
NoRecommender: "NO_RECOMMENDER",
|
|
5039
|
+
RecommendationAlreadyClaimed: "RECOMMENDATION_ALREADY_CLAIMED",
|
|
5040
|
+
CannotVoteYourself: "CANNOT_VOTE_YOURSELF",
|
|
5041
|
+
VotesPerEpochExceeded: "VOTES_PER_EPOCH_EXCEEDED",
|
|
5042
|
+
AlreadyVoted: "ALREADY_VOTED",
|
|
5043
|
+
FunctionNotFound: "FUNCTION_NOT_FOUND",
|
|
5044
|
+
// Campaign
|
|
5045
|
+
CampaignNotActive: "CAMPAIGN_NOT_ACTIVE",
|
|
5046
|
+
InvalidManagerDetails: "INVALID_MANAGER_DETAILS",
|
|
5047
|
+
UnclaimedRewardsExist: "UNCLAIMED_REWARDS_EXIST",
|
|
5048
|
+
RewardAlreadyClaimed: "REWARD_ALREADY_CLAIMED",
|
|
5049
|
+
OnlyNewUsersAllowed: "ONLY_NEW_USERS_ALLOWED",
|
|
5050
|
+
ManagerNotFound: "MANAGER_NOT_FOUND",
|
|
5051
|
+
ManagerInactive: "MANAGER_INACTIVE",
|
|
5052
|
+
NoRewards: "NO_REWARDS",
|
|
5053
|
+
InvalidCampaignId: "INVALID_CAMPAIGN_ID",
|
|
5054
|
+
CannotClaimRevenueForCurrentMonth: "CANNOT_CLAIM_REVENUE_FOR_CURRENT_MONTH",
|
|
5055
|
+
// Referral reward config
|
|
5056
|
+
RewardPercentageTooHigh: "REWARD_PERCENTAGE_TOO_HIGH",
|
|
5057
|
+
// Signature / nonce
|
|
5058
|
+
NonceAlreadyUsed: "NONCE_ALREADY_USED",
|
|
5059
|
+
SignatureValidationFailed: "SIGNATURE_VALIDATION_FAILED",
|
|
5060
|
+
// Misc
|
|
5061
|
+
InvalidAddress: "INVALID_ADDRESS",
|
|
5062
|
+
InvalidBlockAmount: "INVALID_BLOCK_AMOUNT",
|
|
5063
|
+
InvalidAmount: "INVALID_AMOUNT",
|
|
5064
|
+
InvalidInput: "INVALID_INPUT",
|
|
5065
|
+
InvalidStatusTransition: "INVALID_STATUS_TRANSITION",
|
|
5066
|
+
ArrayLengthMismatch: "ARRAY_LENGTH_MISMATCH",
|
|
5067
|
+
UserIsBlacklisted: "USER_IS_BLACKLISTED",
|
|
5068
|
+
ZeroAddress: "ZERO_ADDRESS",
|
|
5069
|
+
ReentrancyGuard: "REENTRANCY_GUARD",
|
|
5070
|
+
BatchTooLarge: "BATCH_TOO_LARGE",
|
|
5071
|
+
UnderflowSubtraction: "UNDERFLOW_SUBTRACTION",
|
|
5072
|
+
TargetLongerThanData: "TARGET_LONGER_THAN_DATA"
|
|
5073
|
+
};
|
|
5074
|
+
var hexContractErrors = {
|
|
5075
|
+
// Access control
|
|
5076
|
+
"0x7bfa4b9f": contractErrors.NotAdmin,
|
|
5077
|
+
"0x16c726b1": contractErrors.NotSuperAdmin,
|
|
5078
|
+
"0xea8e4eb5": contractErrors.NotAuthorized,
|
|
5079
|
+
"0x29c3b7ee": contractErrors.NotSelf,
|
|
5080
|
+
"0x584a7938": contractErrors.NotWhitelisted,
|
|
5081
|
+
"0xa8143fbc": contractErrors.NotCircleAdmin,
|
|
5082
|
+
// Circle / community management
|
|
5083
|
+
"0x430f13b3": contractErrors.InvalidName,
|
|
5084
|
+
"0xe7cbf75a": contractErrors.InvalidCommunityUrl,
|
|
5085
|
+
"0x3762bfee": contractErrors.InvalidAdminCommunityUrl,
|
|
5086
|
+
"0x201c1ffc": contractErrors.AdminAlreadyHasCircle,
|
|
5087
|
+
"0x6540a51d": contractErrors.CircleNameAlreadyTaken,
|
|
5088
|
+
"0xcadc6786": contractErrors.P2PStakeConfigNotSet,
|
|
5089
|
+
"0x78317f44": contractErrors.InsufficientP2PStake,
|
|
5090
|
+
"0x18eda032": contractErrors.P2PTokenNotSet,
|
|
5091
|
+
"0xdab11ea6": contractErrors.P2PUnstakeRequestPending,
|
|
5092
|
+
"0xeb1ce40b": contractErrors.NoP2PUnstakeRequest,
|
|
5093
|
+
"0xbf2d0ba1": contractErrors.P2PUnstakeCooldownNotPassed,
|
|
5094
|
+
"0x06b663af": contractErrors.SlashAmountExceedsStake,
|
|
5095
|
+
"0xff9b022c": contractErrors.CircleNotActive,
|
|
5096
|
+
"0x3d90c0a6": contractErrors.InvalidCircleId,
|
|
5097
|
+
"0xfb42a67d": contractErrors.CurrencyMismatch,
|
|
5098
|
+
"0xf2775265": contractErrors.CircleFull,
|
|
5099
|
+
"0x784b6c3c": contractErrors.CircleIdMismatch,
|
|
5100
|
+
"0xee240e49": contractErrors.DuplicateAccountName,
|
|
5101
|
+
"0x2ef13105": contractErrors.EmptyName,
|
|
5102
|
+
"0x1b5433c8": contractErrors.AccountBoundToAnotherCircle,
|
|
5103
|
+
"0x549e2555": contractErrors.ExitAmountExceededCircleBalance,
|
|
5104
|
+
"0x865b21e1": contractErrors.UndelegationAmountTooHigh,
|
|
5105
|
+
// Exchange / order lifecycle
|
|
5106
|
+
"0x4bbac5de": contractErrors.ExchangeNotOperational,
|
|
5107
|
+
"0x58db8ed6": contractErrors.OrderNotPlaced,
|
|
5108
|
+
"0x1e3b9629": contractErrors.OrderNotPaid,
|
|
5109
|
+
"0x181b1b2e": contractErrors.OrderStatusInvalid,
|
|
5110
|
+
"0xc56873ba": contractErrors.OrderExpired,
|
|
5111
|
+
"0x7f61b868": contractErrors.OrderAlreadyPaid,
|
|
5112
|
+
"0x03683687": contractErrors.OrderAlreadyCompleted,
|
|
5113
|
+
"0x688c176f": contractErrors.InvalidOrderType,
|
|
5114
|
+
"0x2e757a60": contractErrors.OrderTypeIncorrect,
|
|
5115
|
+
"0x6b1b90b4": contractErrors.OrderNotAccepted,
|
|
5116
|
+
"0x1775c43e": contractErrors.OrderNotAssigned,
|
|
5117
|
+
"0xf42e41a1": contractErrors.OrderAmountExceedsLimit,
|
|
5118
|
+
"0x93845d68": contractErrors.InvalidOrderAmount,
|
|
5119
|
+
"0x138b9d5a": contractErrors.InvalidOrderAmountToCoverFee,
|
|
5120
|
+
"0x5d706033": contractErrors.InvalidOrderId,
|
|
5121
|
+
"0xbb776720": contractErrors.OrderTooEarlyForReassignment,
|
|
5122
|
+
"0x20d5910f": contractErrors.OrderTooLateForReassignment,
|
|
5123
|
+
"0xccd87bf0": contractErrors.ReAssignmentNotRequired,
|
|
5124
|
+
"0xb20277f8": contractErrors.TipAlreadyGiven,
|
|
5125
|
+
"0xdf9f707c": contractErrors.CashbackTransferFailed,
|
|
5126
|
+
// Order limits
|
|
5127
|
+
"0xe595a7bf": contractErrors.DailyBuyOrderLimitExceeded,
|
|
5128
|
+
"0x675dbc86": contractErrors.MonthlyBuyOrderLimitExceeded,
|
|
5129
|
+
"0x64301cb8": contractErrors.SellOrderAmountLimitExceeded,
|
|
5130
|
+
"0x91da284f": contractErrors.BuyOrderAmountExceedsLimit,
|
|
5131
|
+
"0xb407b9ec": contractErrors.SellOrderAmountExceedsLimit,
|
|
5132
|
+
"0x4b29cf0a": contractErrors.BuyAmountExceedsUsdcLimit,
|
|
5133
|
+
"0xbba2edf9": contractErrors.SellAmountExceedsFiatLimit,
|
|
5134
|
+
"0x7e2ee654": contractErrors.DailyVolumeLimitExceeded,
|
|
5135
|
+
"0x49de1789": contractErrors.MonthlyVolumeLimitExceeded,
|
|
5136
|
+
"0xb14a1ff3": contractErrors.UserYearlyVolumeLimitExceeded,
|
|
5137
|
+
// Dispute
|
|
5138
|
+
"0x07a2454f": contractErrors.DisputeTimeNotReached,
|
|
5139
|
+
"0xb28c3e29": contractErrors.DisputeTimeExpired,
|
|
5140
|
+
"0x2a829f07": contractErrors.InvalidOrderStatusToRaiseDispute,
|
|
5141
|
+
"0x88d039ce": contractErrors.DisputeNotRaised,
|
|
5142
|
+
"0x3764a75c": contractErrors.CannotRaiseDisputeTwice,
|
|
5143
|
+
"0x866e9f89": contractErrors.DisputeAlreadySettled,
|
|
5144
|
+
"0x6131d13d": contractErrors.TransactionIdMismatch,
|
|
5145
|
+
"0x8ec051b8": contractErrors.AccountNumberMismatch,
|
|
5146
|
+
"0xf8bfad32": contractErrors.NotPaidBuyOrder,
|
|
5147
|
+
// Payment channels
|
|
5148
|
+
"0x552ff5ec": contractErrors.PaymentChannelNotFound,
|
|
5149
|
+
"0xfccd93cf": contractErrors.PaymentChannelNotActive,
|
|
5150
|
+
"0x6764f4d6": contractErrors.PaymentChannelNotApproved,
|
|
5151
|
+
"0xab284291": contractErrors.PaymentChannelNotRejected,
|
|
5152
|
+
"0x99c8ef4d": contractErrors.InvalidPaymentChannelId,
|
|
5153
|
+
"0x0569ab3e": contractErrors.DuplicatePaymentChannel,
|
|
5154
|
+
"0xff4f83ca": contractErrors.OldPaymentChannelNotFound,
|
|
5155
|
+
"0xb1198199": contractErrors.NewPaymentChannelNotFound,
|
|
5156
|
+
"0xc905b99a": contractErrors.SamePaymentChannel,
|
|
5157
|
+
"0xcedb41f1": contractErrors.OldPaymentChannelShouldBeInactive,
|
|
5158
|
+
"0x487add97": contractErrors.NewPaymentChannelShouldBeActive,
|
|
5159
|
+
"0x6d4c3f9e": contractErrors.OngoingOrderOnPaymentChannel,
|
|
5160
|
+
"0xc1654697": contractErrors.UpiAlreadySent,
|
|
5161
|
+
"0xaa60ec26": contractErrors.InvalidOrderUpi,
|
|
5162
|
+
"0x81c2b982": contractErrors.NoFiatLiquidity,
|
|
5163
|
+
// Merchant
|
|
5164
|
+
"0x5d04ff4c": contractErrors.NotEnoughEligibleMerchants,
|
|
5165
|
+
"0xa6af7ebe": contractErrors.MerchantNotRegistered,
|
|
5166
|
+
"0x7290a612": contractErrors.MerchantNotApproved,
|
|
5167
|
+
"0xf4a1e014": contractErrors.MerchantAlreadyRegistered,
|
|
5168
|
+
"0x8713aaba": contractErrors.MerchantAlreadyRejected,
|
|
5169
|
+
"0x9ae55bc7": contractErrors.MerchantBlacklisted,
|
|
5170
|
+
"0x0ee0b659": contractErrors.MerchantNotBlacklisted,
|
|
5171
|
+
"0x5f765689": contractErrors.MerchantAlreadyBlacklisted,
|
|
5172
|
+
"0x9c54e5a8": contractErrors.MerchantHasOngoingOrders,
|
|
5173
|
+
"0x70d753bd": contractErrors.MerchantNotFullfilledEligibilityThreshold,
|
|
5174
|
+
"0xc0b6c919": contractErrors.InvalidMerchant,
|
|
5175
|
+
// Staking / unstaking
|
|
5176
|
+
"0x3fd2347e": contractErrors.StakeAmountTooLow,
|
|
5177
|
+
"0x703cde0a": contractErrors.AdditionalStakeNotAllowed,
|
|
5178
|
+
"0xa9de99ae": contractErrors.UnstakeRequestPending,
|
|
5179
|
+
"0x0b7c70f3": contractErrors.UnstakeRequestNotPending,
|
|
5180
|
+
"0xe665491f": contractErrors.UnstakeAmountExceeded,
|
|
5181
|
+
"0x2d3087f9": contractErrors.ZeroUnstakeAmount,
|
|
5182
|
+
"0x1b1d7861": contractErrors.NoWithdrawableAmount,
|
|
5183
|
+
"0xcacf989a": contractErrors.NoStake,
|
|
5184
|
+
"0x21311aa3": contractErrors.NoStakers,
|
|
5185
|
+
"0xd06ff88e": contractErrors.InsufficientStakedAmount,
|
|
5186
|
+
"0x9ab7872d": contractErrors.CooldownNotPassed,
|
|
5187
|
+
"0x73380d99": contractErrors.ClaimableRewardsNotAvailable,
|
|
5188
|
+
// Delegation
|
|
5189
|
+
"0xec4b3ce6": contractErrors.ExitWouldBreachDelegationInvariant,
|
|
5190
|
+
"0x8f90a426": contractErrors.AggregateDelegationExceedsTotalStaked,
|
|
5191
|
+
"0x2cc11576": contractErrors.InsufficientMerchantRewards,
|
|
5192
|
+
// Migration
|
|
5193
|
+
"0x92aa7d0f": contractErrors.InvalidMigrationStatus,
|
|
5194
|
+
"0x7ff47425": contractErrors.MigrationRequestNotPending,
|
|
5195
|
+
"0x88ddec46": contractErrors.MigrationAlreadyRequested,
|
|
5196
|
+
// Token / currency
|
|
5197
|
+
"0xc991cbb1": contractErrors.TokenAlreadyExists,
|
|
5198
|
+
"0xcbdb7b30": contractErrors.TokenNotFound,
|
|
5199
|
+
"0x9f11a53f": contractErrors.TokenEmpty,
|
|
5200
|
+
"0x02a6fdd2": contractErrors.CurrencyNotSupported,
|
|
5201
|
+
"0xf5993428": contractErrors.InvalidCurrency,
|
|
5202
|
+
// USDC / transfer
|
|
5203
|
+
"0x149f9fca": contractErrors.UsdtTransferFailed,
|
|
5204
|
+
"0x47bfece5": contractErrors.UsdtTransferFailedWithErrorMessage,
|
|
5205
|
+
"0x279bbc0c": contractErrors.UsdtTransferFailedWithPanic,
|
|
5206
|
+
"0xfb8f41b2": contractErrors.InsufficientAllowance,
|
|
5207
|
+
// ZK Passport
|
|
5208
|
+
"0xfd8d4a6d": contractErrors.ZKPassportVerifierNotSet,
|
|
5209
|
+
"0xb87078f9": contractErrors.ZKPassportDomainEmpty,
|
|
5210
|
+
"0x5eadc4c2": contractErrors.ZKPassportScopeEmpty,
|
|
5211
|
+
"0x7642fe15": contractErrors.PassportAlreadyVerified,
|
|
5212
|
+
"0x1fa24b35": contractErrors.ZKPassportProofInvalid,
|
|
5213
|
+
"0x36bdb7b6": contractErrors.ZKPassportIdentifierAlreadyVerified,
|
|
5214
|
+
"0xd13a7934": contractErrors.ZKPassportInvalidScope,
|
|
5215
|
+
"0x69f5bfe7": contractErrors.ZKPassportUnexpectedSender,
|
|
5216
|
+
"0x0464115c": contractErrors.ZKPassportAgeBelowMinimum,
|
|
5217
|
+
"0x48183836": contractErrors.ZKPassportMinAgeTooHigh,
|
|
5218
|
+
// Chainlink / oracle
|
|
5219
|
+
"0x7f73f237": contractErrors.UnexpectedRequestId,
|
|
5220
|
+
"0xab948796": contractErrors.OnlyRouterCanFulfill,
|
|
5221
|
+
"0x61982c98": contractErrors.RequestFailed,
|
|
5222
|
+
"0xab66be18": contractErrors.SourceCodeMismatch,
|
|
5223
|
+
"0xff2826ef": contractErrors.ZeroMarketPrice,
|
|
5224
|
+
"0xbb6c216c": contractErrors.InvalidComputedPrices,
|
|
5225
|
+
"0x3a8fbef4": contractErrors.NotPriceUpdaterForCurrency,
|
|
5226
|
+
"0x3e2c36f2": contractErrors.ThresholdNotConfigured,
|
|
5227
|
+
"0x71c4efed": contractErrors.SlippageExceeded,
|
|
5228
|
+
// Reputation / verification
|
|
5229
|
+
"0x071ea33c": contractErrors.UserHasNoReputation,
|
|
5230
|
+
"0xd2e1e6e0": contractErrors.ZeroReputationPoints,
|
|
5231
|
+
"0x3c0ca622": contractErrors.NoReputation,
|
|
5232
|
+
"0x412dd2b1": contractErrors.InsufficientRP,
|
|
5233
|
+
"0x0f165e7b": contractErrors.NullifierAlreadyVerified,
|
|
5234
|
+
"0x439cc0cd": contractErrors.VerificationFailed,
|
|
5235
|
+
"0x2366073b": contractErrors.InvalidSocialPlatform,
|
|
5236
|
+
"0x2f850b6b": contractErrors.SocialAlreadyVerified,
|
|
5237
|
+
"0x466f52a8": contractErrors.YearFieldNotInProof,
|
|
5238
|
+
"0x4d460588": contractErrors.UserIdFieldNotInProof,
|
|
5239
|
+
"0xa18ea4e8": contractErrors.UserIdAlreadyVerified,
|
|
5240
|
+
"0x69470b13": contractErrors.UsernameAlreadyVerified,
|
|
5241
|
+
"0x8390b2dd": contractErrors.UsernameNotInProof,
|
|
5242
|
+
"0xef053cf4": contractErrors.LinkedInOnlyRpUpdates,
|
|
5243
|
+
"0x355b0709": contractErrors.FacebookOnlyRpUpdates,
|
|
5244
|
+
// Voting / referral
|
|
5245
|
+
"0x7aabdfe3": contractErrors.AlreadyReferred,
|
|
5246
|
+
"0x83463f4a": contractErrors.SelfReferralNotAllowed,
|
|
5247
|
+
"0x69f6994a": contractErrors.NotEligibleToRefer,
|
|
5248
|
+
"0x1b19ad97": contractErrors.MerchantMonthlyReferralLimitReached,
|
|
5249
|
+
"0x944a2241": contractErrors.NoRecommender,
|
|
5250
|
+
"0x0ece93a6": contractErrors.RecommendationAlreadyClaimed,
|
|
5251
|
+
"0x74785d0f": contractErrors.CannotVoteYourself,
|
|
5252
|
+
"0xc26d5f75": contractErrors.VotesPerEpochExceeded,
|
|
5253
|
+
"0x7c9a1cf9": contractErrors.AlreadyVoted,
|
|
5254
|
+
"0x403e7fa6": contractErrors.FunctionNotFound,
|
|
5255
|
+
// Campaign
|
|
5256
|
+
"0x7a551e38": contractErrors.CampaignNotActive,
|
|
5257
|
+
"0x668ca75d": contractErrors.InvalidManagerDetails,
|
|
5258
|
+
"0x2f950361": contractErrors.UnclaimedRewardsExist,
|
|
5259
|
+
"0x626b7c00": contractErrors.RewardAlreadyClaimed,
|
|
5260
|
+
"0x902ade67": contractErrors.OnlyNewUsersAllowed,
|
|
5261
|
+
"0x22a5e34b": contractErrors.ManagerNotFound,
|
|
5262
|
+
"0xa1610e37": contractErrors.ManagerInactive,
|
|
5263
|
+
"0x3fb087f4": contractErrors.NoRewards,
|
|
5264
|
+
"0x3eedee0f": contractErrors.InvalidCampaignId,
|
|
5265
|
+
"0x302c5138": contractErrors.CannotClaimRevenueForCurrentMonth,
|
|
5266
|
+
// Referral reward config
|
|
5267
|
+
"0x074a6991": contractErrors.RewardPercentageTooHigh,
|
|
5268
|
+
// Signature / nonce
|
|
5269
|
+
"0x1fb09b80": contractErrors.NonceAlreadyUsed,
|
|
5270
|
+
"0x2fdec18b": contractErrors.SignatureValidationFailed,
|
|
5271
|
+
// Misc
|
|
5272
|
+
"0xe6c4247b": contractErrors.InvalidAddress,
|
|
5273
|
+
"0x3eb17c88": contractErrors.InvalidBlockAmount,
|
|
5274
|
+
"0x2c5211c6": contractErrors.InvalidAmount,
|
|
5275
|
+
"0xb4fa3fb3": contractErrors.InvalidInput,
|
|
5276
|
+
"0x1117a646": contractErrors.InvalidStatusTransition,
|
|
5277
|
+
"0xa24a13a6": contractErrors.ArrayLengthMismatch,
|
|
5278
|
+
"0xebb6f34b": contractErrors.UserIsBlacklisted,
|
|
5279
|
+
"0xd92e233d": contractErrors.ZeroAddress,
|
|
5280
|
+
"0x8beb9d16": contractErrors.ReentrancyGuard,
|
|
5281
|
+
"0xbb1cb70b": contractErrors.BatchTooLarge,
|
|
5282
|
+
"0xd97cf1ba": contractErrors.UnderflowSubtraction,
|
|
5283
|
+
"0xc9b16952": contractErrors.TargetLongerThanData
|
|
5284
|
+
};
|
|
5285
|
+
|
|
4862
5286
|
// src/contracts/order-flow/index.ts
|
|
4863
5287
|
import { ResultAsync as ResultAsync7 } from "neverthrow";
|
|
4864
5288
|
|