@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/profile.cjs
CHANGED
|
@@ -726,6 +726,430 @@ var ABIS = {
|
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
728
|
|
|
729
|
+
// src/contracts/errors.ts
|
|
730
|
+
var contractErrors = {
|
|
731
|
+
// Access control
|
|
732
|
+
NotAdmin: "NOT_ADMIN",
|
|
733
|
+
NotSuperAdmin: "NOT_SUPER_ADMIN",
|
|
734
|
+
NotAuthorized: "NOT_AUTHORIZED",
|
|
735
|
+
NotSelf: "NOT_SELF",
|
|
736
|
+
NotWhitelisted: "NOT_WHITELISTED",
|
|
737
|
+
NotCircleAdmin: "NOT_CIRCLE_ADMIN",
|
|
738
|
+
// Circle / community management
|
|
739
|
+
InvalidName: "INVALID_NAME",
|
|
740
|
+
InvalidCommunityUrl: "INVALID_COMMUNITY_URL",
|
|
741
|
+
InvalidAdminCommunityUrl: "INVALID_ADMIN_COMMUNITY_URL",
|
|
742
|
+
AdminAlreadyHasCircle: "ADMIN_ALREADY_HAS_CIRCLE",
|
|
743
|
+
CircleNameAlreadyTaken: "CIRCLE_NAME_ALREADY_TAKEN",
|
|
744
|
+
P2PStakeConfigNotSet: "P2P_STAKE_CONFIG_NOT_SET",
|
|
745
|
+
InsufficientP2PStake: "INSUFFICIENT_P2P_STAKE",
|
|
746
|
+
P2PTokenNotSet: "P2P_TOKEN_NOT_SET",
|
|
747
|
+
P2PUnstakeRequestPending: "P2P_UNSTAKE_REQUEST_PENDING",
|
|
748
|
+
NoP2PUnstakeRequest: "NO_P2P_UNSTAKE_REQUEST",
|
|
749
|
+
P2PUnstakeCooldownNotPassed: "P2P_UNSTAKE_COOLDOWN_NOT_PASSED",
|
|
750
|
+
SlashAmountExceedsStake: "SLASH_AMOUNT_EXCEEDS_STAKE",
|
|
751
|
+
CircleNotActive: "CIRCLE_NOT_ACTIVE",
|
|
752
|
+
InvalidCircleId: "INVALID_CIRCLE_ID",
|
|
753
|
+
CurrencyMismatch: "CURRENCY_MISMATCH",
|
|
754
|
+
CircleFull: "CIRCLE_FULL",
|
|
755
|
+
CircleIdMismatch: "CIRCLE_ID_MISMATCH",
|
|
756
|
+
DuplicateAccountName: "DUPLICATE_ACCOUNT_NAME",
|
|
757
|
+
EmptyName: "EMPTY_NAME",
|
|
758
|
+
AccountBoundToAnotherCircle: "ACCOUNT_BOUND_TO_ANOTHER_CIRCLE",
|
|
759
|
+
ExitAmountExceededCircleBalance: "EXIT_AMOUNT_EXCEEDED_CIRCLE_BALANCE",
|
|
760
|
+
UndelegationAmountTooHigh: "UNDELEGATION_AMOUNT_TOO_HIGH",
|
|
761
|
+
// Exchange / order lifecycle
|
|
762
|
+
ExchangeNotOperational: "EXCHANGE_NOT_OPERATIONAL",
|
|
763
|
+
OrderNotPlaced: "ORDER_NOT_PLACED",
|
|
764
|
+
OrderNotPaid: "ORDER_NOT_PAID",
|
|
765
|
+
OrderStatusInvalid: "ORDER_STATUS_INVALID",
|
|
766
|
+
OrderExpired: "ORDER_EXPIRED",
|
|
767
|
+
OrderAlreadyPaid: "ORDER_ALREADY_PAID",
|
|
768
|
+
OrderAlreadyCompleted: "ORDER_ALREADY_COMPLETED",
|
|
769
|
+
InvalidOrderType: "INVALID_ORDER_TYPE",
|
|
770
|
+
OrderTypeIncorrect: "ORDER_TYPE_INCORRECT",
|
|
771
|
+
OrderNotAccepted: "ORDER_NOT_ACCEPTED",
|
|
772
|
+
OrderNotAssigned: "ORDER_NOT_ASSIGNED",
|
|
773
|
+
OrderAmountExceedsLimit: "ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
774
|
+
InvalidOrderAmount: "INVALID_ORDER_AMOUNT",
|
|
775
|
+
InvalidOrderAmountToCoverFee: "INVALID_ORDER_AMOUNT_TO_COVER_FEE",
|
|
776
|
+
InvalidOrderId: "INVALID_ORDER_ID",
|
|
777
|
+
OrderTooEarlyForReassignment: "ORDER_TOO_EARLY_FOR_REASSIGNMENT",
|
|
778
|
+
OrderTooLateForReassignment: "ORDER_TOO_LATE_FOR_REASSIGNMENT",
|
|
779
|
+
ReAssignmentNotRequired: "REASSIGNMENT_NOT_REQUIRED",
|
|
780
|
+
TipAlreadyGiven: "TIP_ALREADY_GIVEN",
|
|
781
|
+
CashbackTransferFailed: "CASHBACK_TRANSFER_FAILED",
|
|
782
|
+
// Order limits
|
|
783
|
+
DailyBuyOrderLimitExceeded: "DAILY_BUY_ORDER_LIMIT_EXCEEDED",
|
|
784
|
+
MonthlyBuyOrderLimitExceeded: "MONTHLY_BUY_ORDER_LIMIT_EXCEEDED",
|
|
785
|
+
SellOrderAmountLimitExceeded: "SELL_ORDER_AMOUNT_LIMIT_EXCEEDED",
|
|
786
|
+
BuyOrderAmountExceedsLimit: "BUY_ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
787
|
+
SellOrderAmountExceedsLimit: "SELL_ORDER_AMOUNT_EXCEEDS_LIMIT",
|
|
788
|
+
BuyAmountExceedsUsdcLimit: "BUY_AMOUNT_EXCEEDS_USDC_LIMIT",
|
|
789
|
+
SellAmountExceedsFiatLimit: "SELL_AMOUNT_EXCEEDS_FIAT_LIMIT",
|
|
790
|
+
DailyVolumeLimitExceeded: "DAILY_VOLUME_LIMIT_EXCEEDED",
|
|
791
|
+
MonthlyVolumeLimitExceeded: "MONTHLY_VOLUME_LIMIT_EXCEEDED",
|
|
792
|
+
UserYearlyVolumeLimitExceeded: "USER_YEARLY_VOLUME_LIMIT_EXCEEDED",
|
|
793
|
+
// Dispute
|
|
794
|
+
DisputeTimeNotReached: "DISPUTE_TIME_NOT_REACHED",
|
|
795
|
+
DisputeTimeExpired: "DISPUTE_TIME_EXPIRED",
|
|
796
|
+
InvalidOrderStatusToRaiseDispute: "INVALID_ORDER_STATUS_TO_RAISE_DISPUTE",
|
|
797
|
+
DisputeNotRaised: "DISPUTE_NOT_RAISED",
|
|
798
|
+
CannotRaiseDisputeTwice: "CANNOT_RAISE_DISPUTE_TWICE",
|
|
799
|
+
DisputeAlreadySettled: "DISPUTE_ALREADY_SETTLED",
|
|
800
|
+
TransactionIdMismatch: "TRANSACTION_ID_MISMATCH",
|
|
801
|
+
AccountNumberMismatch: "ACCOUNT_NUMBER_MISMATCH",
|
|
802
|
+
NotPaidBuyOrder: "NOT_PAID_BUY_ORDER",
|
|
803
|
+
// Payment channels
|
|
804
|
+
PaymentChannelNotFound: "PAYMENT_CHANNEL_NOT_FOUND",
|
|
805
|
+
PaymentChannelNotActive: "PAYMENT_CHANNEL_NOT_ACTIVE",
|
|
806
|
+
PaymentChannelNotApproved: "PAYMENT_CHANNEL_NOT_APPROVED",
|
|
807
|
+
PaymentChannelNotRejected: "PAYMENT_CHANNEL_NOT_REJECTED",
|
|
808
|
+
InvalidPaymentChannelId: "INVALID_PAYMENT_CHANNEL_ID",
|
|
809
|
+
DuplicatePaymentChannel: "DUPLICATE_PAYMENT_CHANNEL",
|
|
810
|
+
OldPaymentChannelNotFound: "OLD_PAYMENT_CHANNEL_NOT_FOUND",
|
|
811
|
+
NewPaymentChannelNotFound: "NEW_PAYMENT_CHANNEL_NOT_FOUND",
|
|
812
|
+
SamePaymentChannel: "SAME_PAYMENT_CHANNEL",
|
|
813
|
+
OldPaymentChannelShouldBeInactive: "OLD_PAYMENT_CHANNEL_SHOULD_BE_INACTIVE",
|
|
814
|
+
NewPaymentChannelShouldBeActive: "NEW_PAYMENT_CHANNEL_SHOULD_BE_ACTIVE",
|
|
815
|
+
OngoingOrderOnPaymentChannel: "ONGOING_ORDER_ON_PAYMENT_CHANNEL",
|
|
816
|
+
UpiAlreadySent: "UPI_ALREADY_SENT",
|
|
817
|
+
InvalidOrderUpi: "INVALID_ORDER_UPI",
|
|
818
|
+
NoFiatLiquidity: "NO_FIAT_LIQUIDITY",
|
|
819
|
+
// Merchant
|
|
820
|
+
NotEnoughEligibleMerchants: "NOT_ENOUGH_ELIGIBLE_MERCHANTS",
|
|
821
|
+
MerchantNotRegistered: "MERCHANT_NOT_REGISTERED",
|
|
822
|
+
MerchantNotApproved: "MERCHANT_NOT_APPROVED",
|
|
823
|
+
MerchantAlreadyRegistered: "MERCHANT_ALREADY_REGISTERED",
|
|
824
|
+
MerchantAlreadyRejected: "MERCHANT_ALREADY_REJECTED",
|
|
825
|
+
MerchantBlacklisted: "MERCHANT_BLACKLISTED",
|
|
826
|
+
MerchantNotBlacklisted: "MERCHANT_NOT_BLACKLISTED",
|
|
827
|
+
MerchantAlreadyBlacklisted: "MERCHANT_ALREADY_BLACKLISTED",
|
|
828
|
+
MerchantHasOngoingOrders: "MERCHANT_HAS_ONGOING_ORDERS",
|
|
829
|
+
MerchantNotFullfilledEligibilityThreshold: "MERCHANT_NOT_FULLFILLED_ELIGIBILITY_THRESHOLD",
|
|
830
|
+
InvalidMerchant: "INVALID_MERCHANT",
|
|
831
|
+
// Staking / unstaking
|
|
832
|
+
StakeAmountTooLow: "STAKE_AMOUNT_TOO_LOW",
|
|
833
|
+
AdditionalStakeNotAllowed: "ADDITIONAL_STAKE_NOT_ALLOWED",
|
|
834
|
+
UnstakeRequestPending: "UNSTAKE_REQUEST_PENDING",
|
|
835
|
+
UnstakeRequestNotPending: "UNSTAKE_REQUEST_NOT_PENDING",
|
|
836
|
+
UnstakeAmountExceeded: "UNSTAKE_AMOUNT_EXCEEDED",
|
|
837
|
+
ZeroUnstakeAmount: "ZERO_UNSTAKE_AMOUNT",
|
|
838
|
+
NoWithdrawableAmount: "NO_WITHDRAWABLE_AMOUNT",
|
|
839
|
+
NoStake: "NO_STAKE",
|
|
840
|
+
NoStakers: "NO_STAKERS",
|
|
841
|
+
InsufficientStakedAmount: "INSUFFICIENT_STAKED_AMOUNT",
|
|
842
|
+
CooldownNotPassed: "COOLDOWN_NOT_PASSED",
|
|
843
|
+
ClaimableRewardsNotAvailable: "CLAIMABLE_REWARDS_NOT_AVAILABLE",
|
|
844
|
+
// Delegation
|
|
845
|
+
ExitWouldBreachDelegationInvariant: "EXIT_WOULD_BREACH_DELEGATION_INVARIANT",
|
|
846
|
+
AggregateDelegationExceedsTotalStaked: "AGGREGATE_DELEGATION_EXCEEDS_TOTAL_STAKED",
|
|
847
|
+
InsufficientMerchantRewards: "INSUFFICIENT_MERCHANT_REWARDS",
|
|
848
|
+
// Migration
|
|
849
|
+
InvalidMigrationStatus: "INVALID_MIGRATION_STATUS",
|
|
850
|
+
MigrationRequestNotPending: "MIGRATION_REQUEST_NOT_PENDING",
|
|
851
|
+
MigrationAlreadyRequested: "MIGRATION_ALREADY_REQUESTED",
|
|
852
|
+
// Token / currency
|
|
853
|
+
TokenAlreadyExists: "TOKEN_ALREADY_EXISTS",
|
|
854
|
+
TokenNotFound: "TOKEN_NOT_FOUND",
|
|
855
|
+
TokenEmpty: "TOKEN_EMPTY",
|
|
856
|
+
CurrencyNotSupported: "CURRENCY_NOT_SUPPORTED",
|
|
857
|
+
InvalidCurrency: "INVALID_CURRENCY",
|
|
858
|
+
// USDC / transfer
|
|
859
|
+
UsdtTransferFailed: "USDC_TRANSFER_FAILED",
|
|
860
|
+
UsdtTransferFailedWithErrorMessage: "USDC_TRANSFER_FAILED_WITH_ERROR_MESSAGE",
|
|
861
|
+
UsdtTransferFailedWithPanic: "USDC_TRANSFER_FAILED_WITH_PANIC",
|
|
862
|
+
InsufficientAllowance: "INSUFFICIENT_ALLOWANCE",
|
|
863
|
+
// ZK Passport
|
|
864
|
+
ZKPassportVerifierNotSet: "ZK_PASSPORT_VERIFIER_NOT_SET",
|
|
865
|
+
ZKPassportDomainEmpty: "ZK_PASSPORT_DOMAIN_EMPTY",
|
|
866
|
+
ZKPassportScopeEmpty: "ZK_PASSPORT_SCOPE_EMPTY",
|
|
867
|
+
PassportAlreadyVerified: "PASSPORT_ALREADY_VERIFIED",
|
|
868
|
+
ZKPassportProofInvalid: "ZK_PASSPORT_PROOF_INVALID",
|
|
869
|
+
ZKPassportIdentifierAlreadyVerified: "ZK_PASSPORT_IDENTIFIER_ALREADY_VERIFIED",
|
|
870
|
+
ZKPassportInvalidScope: "ZK_PASSPORT_INVALID_SCOPE",
|
|
871
|
+
ZKPassportUnexpectedSender: "ZK_PASSPORT_UNEXPECTED_SENDER",
|
|
872
|
+
ZKPassportAgeBelowMinimum: "ZK_PASSPORT_AGE_BELOW_MINIMUM",
|
|
873
|
+
ZKPassportMinAgeTooHigh: "ZK_PASSPORT_MIN_AGE_TOO_HIGH",
|
|
874
|
+
// Chainlink / oracle
|
|
875
|
+
UnexpectedRequestId: "UNEXPECTED_REQUEST_ID",
|
|
876
|
+
OnlyRouterCanFulfill: "ONLY_ROUTER_CAN_FULFILL",
|
|
877
|
+
RequestFailed: "REQUEST_FAILED",
|
|
878
|
+
SourceCodeMismatch: "SOURCE_CODE_MISMATCH",
|
|
879
|
+
ZeroMarketPrice: "ZERO_MARKET_PRICE",
|
|
880
|
+
InvalidComputedPrices: "INVALID_COMPUTED_PRICES",
|
|
881
|
+
NotPriceUpdaterForCurrency: "NOT_PRICE_UPDATER_FOR_CURRENCY",
|
|
882
|
+
ThresholdNotConfigured: "THRESHOLD_NOT_CONFIGURED",
|
|
883
|
+
SlippageExceeded: "SLIPPAGE_EXCEEDED",
|
|
884
|
+
// Reputation / verification
|
|
885
|
+
UserHasNoReputation: "USER_HAS_NO_REPUTATION",
|
|
886
|
+
ZeroReputationPoints: "ZERO_REPUTATION_POINTS",
|
|
887
|
+
NoReputation: "NO_REPUTATION",
|
|
888
|
+
InsufficientRP: "INSUFFICIENT_RP",
|
|
889
|
+
NullifierAlreadyVerified: "NULLIFIER_ALREADY_VERIFIED",
|
|
890
|
+
VerificationFailed: "VERIFICATION_FAILED",
|
|
891
|
+
InvalidSocialPlatform: "INVALID_SOCIAL_PLATFORM",
|
|
892
|
+
SocialAlreadyVerified: "SOCIAL_ALREADY_VERIFIED",
|
|
893
|
+
YearFieldNotInProof: "YEAR_FIELD_NOT_IN_PROOF",
|
|
894
|
+
UserIdFieldNotInProof: "USER_ID_FIELD_NOT_IN_PROOF",
|
|
895
|
+
UserIdAlreadyVerified: "USER_ID_ALREADY_VERIFIED",
|
|
896
|
+
UsernameAlreadyVerified: "USERNAME_ALREADY_VERIFIED",
|
|
897
|
+
UsernameNotInProof: "USERNAME_NOT_IN_PROOF",
|
|
898
|
+
LinkedInOnlyRpUpdates: "LINKEDIN_ONLY_RP_UPDATES",
|
|
899
|
+
FacebookOnlyRpUpdates: "FACEBOOK_ONLY_RP_UPDATES",
|
|
900
|
+
// Voting / referral
|
|
901
|
+
AlreadyReferred: "ALREADY_REFERRED",
|
|
902
|
+
SelfReferralNotAllowed: "SELF_REFERRAL_NOT_ALLOWED",
|
|
903
|
+
NotEligibleToRefer: "NOT_ELIGIBLE_TO_REFER",
|
|
904
|
+
MerchantMonthlyReferralLimitReached: "MERCHANT_MONTHLY_REFERRAL_LIMIT_REACHED",
|
|
905
|
+
NoRecommender: "NO_RECOMMENDER",
|
|
906
|
+
RecommendationAlreadyClaimed: "RECOMMENDATION_ALREADY_CLAIMED",
|
|
907
|
+
CannotVoteYourself: "CANNOT_VOTE_YOURSELF",
|
|
908
|
+
VotesPerEpochExceeded: "VOTES_PER_EPOCH_EXCEEDED",
|
|
909
|
+
AlreadyVoted: "ALREADY_VOTED",
|
|
910
|
+
FunctionNotFound: "FUNCTION_NOT_FOUND",
|
|
911
|
+
// Campaign
|
|
912
|
+
CampaignNotActive: "CAMPAIGN_NOT_ACTIVE",
|
|
913
|
+
InvalidManagerDetails: "INVALID_MANAGER_DETAILS",
|
|
914
|
+
UnclaimedRewardsExist: "UNCLAIMED_REWARDS_EXIST",
|
|
915
|
+
RewardAlreadyClaimed: "REWARD_ALREADY_CLAIMED",
|
|
916
|
+
OnlyNewUsersAllowed: "ONLY_NEW_USERS_ALLOWED",
|
|
917
|
+
ManagerNotFound: "MANAGER_NOT_FOUND",
|
|
918
|
+
ManagerInactive: "MANAGER_INACTIVE",
|
|
919
|
+
NoRewards: "NO_REWARDS",
|
|
920
|
+
InvalidCampaignId: "INVALID_CAMPAIGN_ID",
|
|
921
|
+
CannotClaimRevenueForCurrentMonth: "CANNOT_CLAIM_REVENUE_FOR_CURRENT_MONTH",
|
|
922
|
+
// Referral reward config
|
|
923
|
+
RewardPercentageTooHigh: "REWARD_PERCENTAGE_TOO_HIGH",
|
|
924
|
+
// Signature / nonce
|
|
925
|
+
NonceAlreadyUsed: "NONCE_ALREADY_USED",
|
|
926
|
+
SignatureValidationFailed: "SIGNATURE_VALIDATION_FAILED",
|
|
927
|
+
// Misc
|
|
928
|
+
InvalidAddress: "INVALID_ADDRESS",
|
|
929
|
+
InvalidBlockAmount: "INVALID_BLOCK_AMOUNT",
|
|
930
|
+
InvalidAmount: "INVALID_AMOUNT",
|
|
931
|
+
InvalidInput: "INVALID_INPUT",
|
|
932
|
+
InvalidStatusTransition: "INVALID_STATUS_TRANSITION",
|
|
933
|
+
ArrayLengthMismatch: "ARRAY_LENGTH_MISMATCH",
|
|
934
|
+
UserIsBlacklisted: "USER_IS_BLACKLISTED",
|
|
935
|
+
ZeroAddress: "ZERO_ADDRESS",
|
|
936
|
+
ReentrancyGuard: "REENTRANCY_GUARD",
|
|
937
|
+
BatchTooLarge: "BATCH_TOO_LARGE",
|
|
938
|
+
UnderflowSubtraction: "UNDERFLOW_SUBTRACTION",
|
|
939
|
+
TargetLongerThanData: "TARGET_LONGER_THAN_DATA"
|
|
940
|
+
};
|
|
941
|
+
var hexContractErrors = {
|
|
942
|
+
// Access control
|
|
943
|
+
"0x7bfa4b9f": contractErrors.NotAdmin,
|
|
944
|
+
"0x16c726b1": contractErrors.NotSuperAdmin,
|
|
945
|
+
"0xea8e4eb5": contractErrors.NotAuthorized,
|
|
946
|
+
"0x29c3b7ee": contractErrors.NotSelf,
|
|
947
|
+
"0x584a7938": contractErrors.NotWhitelisted,
|
|
948
|
+
"0xa8143fbc": contractErrors.NotCircleAdmin,
|
|
949
|
+
// Circle / community management
|
|
950
|
+
"0x430f13b3": contractErrors.InvalidName,
|
|
951
|
+
"0xe7cbf75a": contractErrors.InvalidCommunityUrl,
|
|
952
|
+
"0x3762bfee": contractErrors.InvalidAdminCommunityUrl,
|
|
953
|
+
"0x201c1ffc": contractErrors.AdminAlreadyHasCircle,
|
|
954
|
+
"0x6540a51d": contractErrors.CircleNameAlreadyTaken,
|
|
955
|
+
"0xcadc6786": contractErrors.P2PStakeConfigNotSet,
|
|
956
|
+
"0x78317f44": contractErrors.InsufficientP2PStake,
|
|
957
|
+
"0x18eda032": contractErrors.P2PTokenNotSet,
|
|
958
|
+
"0xdab11ea6": contractErrors.P2PUnstakeRequestPending,
|
|
959
|
+
"0xeb1ce40b": contractErrors.NoP2PUnstakeRequest,
|
|
960
|
+
"0xbf2d0ba1": contractErrors.P2PUnstakeCooldownNotPassed,
|
|
961
|
+
"0x06b663af": contractErrors.SlashAmountExceedsStake,
|
|
962
|
+
"0xff9b022c": contractErrors.CircleNotActive,
|
|
963
|
+
"0x3d90c0a6": contractErrors.InvalidCircleId,
|
|
964
|
+
"0xfb42a67d": contractErrors.CurrencyMismatch,
|
|
965
|
+
"0xf2775265": contractErrors.CircleFull,
|
|
966
|
+
"0x784b6c3c": contractErrors.CircleIdMismatch,
|
|
967
|
+
"0xee240e49": contractErrors.DuplicateAccountName,
|
|
968
|
+
"0x2ef13105": contractErrors.EmptyName,
|
|
969
|
+
"0x1b5433c8": contractErrors.AccountBoundToAnotherCircle,
|
|
970
|
+
"0x549e2555": contractErrors.ExitAmountExceededCircleBalance,
|
|
971
|
+
"0x865b21e1": contractErrors.UndelegationAmountTooHigh,
|
|
972
|
+
// Exchange / order lifecycle
|
|
973
|
+
"0x4bbac5de": contractErrors.ExchangeNotOperational,
|
|
974
|
+
"0x58db8ed6": contractErrors.OrderNotPlaced,
|
|
975
|
+
"0x1e3b9629": contractErrors.OrderNotPaid,
|
|
976
|
+
"0x181b1b2e": contractErrors.OrderStatusInvalid,
|
|
977
|
+
"0xc56873ba": contractErrors.OrderExpired,
|
|
978
|
+
"0x7f61b868": contractErrors.OrderAlreadyPaid,
|
|
979
|
+
"0x03683687": contractErrors.OrderAlreadyCompleted,
|
|
980
|
+
"0x688c176f": contractErrors.InvalidOrderType,
|
|
981
|
+
"0x2e757a60": contractErrors.OrderTypeIncorrect,
|
|
982
|
+
"0x6b1b90b4": contractErrors.OrderNotAccepted,
|
|
983
|
+
"0x1775c43e": contractErrors.OrderNotAssigned,
|
|
984
|
+
"0xf42e41a1": contractErrors.OrderAmountExceedsLimit,
|
|
985
|
+
"0x93845d68": contractErrors.InvalidOrderAmount,
|
|
986
|
+
"0x138b9d5a": contractErrors.InvalidOrderAmountToCoverFee,
|
|
987
|
+
"0x5d706033": contractErrors.InvalidOrderId,
|
|
988
|
+
"0xbb776720": contractErrors.OrderTooEarlyForReassignment,
|
|
989
|
+
"0x20d5910f": contractErrors.OrderTooLateForReassignment,
|
|
990
|
+
"0xccd87bf0": contractErrors.ReAssignmentNotRequired,
|
|
991
|
+
"0xb20277f8": contractErrors.TipAlreadyGiven,
|
|
992
|
+
"0xdf9f707c": contractErrors.CashbackTransferFailed,
|
|
993
|
+
// Order limits
|
|
994
|
+
"0xe595a7bf": contractErrors.DailyBuyOrderLimitExceeded,
|
|
995
|
+
"0x675dbc86": contractErrors.MonthlyBuyOrderLimitExceeded,
|
|
996
|
+
"0x64301cb8": contractErrors.SellOrderAmountLimitExceeded,
|
|
997
|
+
"0x91da284f": contractErrors.BuyOrderAmountExceedsLimit,
|
|
998
|
+
"0xb407b9ec": contractErrors.SellOrderAmountExceedsLimit,
|
|
999
|
+
"0x4b29cf0a": contractErrors.BuyAmountExceedsUsdcLimit,
|
|
1000
|
+
"0xbba2edf9": contractErrors.SellAmountExceedsFiatLimit,
|
|
1001
|
+
"0x7e2ee654": contractErrors.DailyVolumeLimitExceeded,
|
|
1002
|
+
"0x49de1789": contractErrors.MonthlyVolumeLimitExceeded,
|
|
1003
|
+
"0xb14a1ff3": contractErrors.UserYearlyVolumeLimitExceeded,
|
|
1004
|
+
// Dispute
|
|
1005
|
+
"0x07a2454f": contractErrors.DisputeTimeNotReached,
|
|
1006
|
+
"0xb28c3e29": contractErrors.DisputeTimeExpired,
|
|
1007
|
+
"0x2a829f07": contractErrors.InvalidOrderStatusToRaiseDispute,
|
|
1008
|
+
"0x88d039ce": contractErrors.DisputeNotRaised,
|
|
1009
|
+
"0x3764a75c": contractErrors.CannotRaiseDisputeTwice,
|
|
1010
|
+
"0x866e9f89": contractErrors.DisputeAlreadySettled,
|
|
1011
|
+
"0x6131d13d": contractErrors.TransactionIdMismatch,
|
|
1012
|
+
"0x8ec051b8": contractErrors.AccountNumberMismatch,
|
|
1013
|
+
"0xf8bfad32": contractErrors.NotPaidBuyOrder,
|
|
1014
|
+
// Payment channels
|
|
1015
|
+
"0x552ff5ec": contractErrors.PaymentChannelNotFound,
|
|
1016
|
+
"0xfccd93cf": contractErrors.PaymentChannelNotActive,
|
|
1017
|
+
"0x6764f4d6": contractErrors.PaymentChannelNotApproved,
|
|
1018
|
+
"0xab284291": contractErrors.PaymentChannelNotRejected,
|
|
1019
|
+
"0x99c8ef4d": contractErrors.InvalidPaymentChannelId,
|
|
1020
|
+
"0x0569ab3e": contractErrors.DuplicatePaymentChannel,
|
|
1021
|
+
"0xff4f83ca": contractErrors.OldPaymentChannelNotFound,
|
|
1022
|
+
"0xb1198199": contractErrors.NewPaymentChannelNotFound,
|
|
1023
|
+
"0xc905b99a": contractErrors.SamePaymentChannel,
|
|
1024
|
+
"0xcedb41f1": contractErrors.OldPaymentChannelShouldBeInactive,
|
|
1025
|
+
"0x487add97": contractErrors.NewPaymentChannelShouldBeActive,
|
|
1026
|
+
"0x6d4c3f9e": contractErrors.OngoingOrderOnPaymentChannel,
|
|
1027
|
+
"0xc1654697": contractErrors.UpiAlreadySent,
|
|
1028
|
+
"0xaa60ec26": contractErrors.InvalidOrderUpi,
|
|
1029
|
+
"0x81c2b982": contractErrors.NoFiatLiquidity,
|
|
1030
|
+
// Merchant
|
|
1031
|
+
"0x5d04ff4c": contractErrors.NotEnoughEligibleMerchants,
|
|
1032
|
+
"0xa6af7ebe": contractErrors.MerchantNotRegistered,
|
|
1033
|
+
"0x7290a612": contractErrors.MerchantNotApproved,
|
|
1034
|
+
"0xf4a1e014": contractErrors.MerchantAlreadyRegistered,
|
|
1035
|
+
"0x8713aaba": contractErrors.MerchantAlreadyRejected,
|
|
1036
|
+
"0x9ae55bc7": contractErrors.MerchantBlacklisted,
|
|
1037
|
+
"0x0ee0b659": contractErrors.MerchantNotBlacklisted,
|
|
1038
|
+
"0x5f765689": contractErrors.MerchantAlreadyBlacklisted,
|
|
1039
|
+
"0x9c54e5a8": contractErrors.MerchantHasOngoingOrders,
|
|
1040
|
+
"0x70d753bd": contractErrors.MerchantNotFullfilledEligibilityThreshold,
|
|
1041
|
+
"0xc0b6c919": contractErrors.InvalidMerchant,
|
|
1042
|
+
// Staking / unstaking
|
|
1043
|
+
"0x3fd2347e": contractErrors.StakeAmountTooLow,
|
|
1044
|
+
"0x703cde0a": contractErrors.AdditionalStakeNotAllowed,
|
|
1045
|
+
"0xa9de99ae": contractErrors.UnstakeRequestPending,
|
|
1046
|
+
"0x0b7c70f3": contractErrors.UnstakeRequestNotPending,
|
|
1047
|
+
"0xe665491f": contractErrors.UnstakeAmountExceeded,
|
|
1048
|
+
"0x2d3087f9": contractErrors.ZeroUnstakeAmount,
|
|
1049
|
+
"0x1b1d7861": contractErrors.NoWithdrawableAmount,
|
|
1050
|
+
"0xcacf989a": contractErrors.NoStake,
|
|
1051
|
+
"0x21311aa3": contractErrors.NoStakers,
|
|
1052
|
+
"0xd06ff88e": contractErrors.InsufficientStakedAmount,
|
|
1053
|
+
"0x9ab7872d": contractErrors.CooldownNotPassed,
|
|
1054
|
+
"0x73380d99": contractErrors.ClaimableRewardsNotAvailable,
|
|
1055
|
+
// Delegation
|
|
1056
|
+
"0xec4b3ce6": contractErrors.ExitWouldBreachDelegationInvariant,
|
|
1057
|
+
"0x8f90a426": contractErrors.AggregateDelegationExceedsTotalStaked,
|
|
1058
|
+
"0x2cc11576": contractErrors.InsufficientMerchantRewards,
|
|
1059
|
+
// Migration
|
|
1060
|
+
"0x92aa7d0f": contractErrors.InvalidMigrationStatus,
|
|
1061
|
+
"0x7ff47425": contractErrors.MigrationRequestNotPending,
|
|
1062
|
+
"0x88ddec46": contractErrors.MigrationAlreadyRequested,
|
|
1063
|
+
// Token / currency
|
|
1064
|
+
"0xc991cbb1": contractErrors.TokenAlreadyExists,
|
|
1065
|
+
"0xcbdb7b30": contractErrors.TokenNotFound,
|
|
1066
|
+
"0x9f11a53f": contractErrors.TokenEmpty,
|
|
1067
|
+
"0x02a6fdd2": contractErrors.CurrencyNotSupported,
|
|
1068
|
+
"0xf5993428": contractErrors.InvalidCurrency,
|
|
1069
|
+
// USDC / transfer
|
|
1070
|
+
"0x149f9fca": contractErrors.UsdtTransferFailed,
|
|
1071
|
+
"0x47bfece5": contractErrors.UsdtTransferFailedWithErrorMessage,
|
|
1072
|
+
"0x279bbc0c": contractErrors.UsdtTransferFailedWithPanic,
|
|
1073
|
+
"0xfb8f41b2": contractErrors.InsufficientAllowance,
|
|
1074
|
+
// ZK Passport
|
|
1075
|
+
"0xfd8d4a6d": contractErrors.ZKPassportVerifierNotSet,
|
|
1076
|
+
"0xb87078f9": contractErrors.ZKPassportDomainEmpty,
|
|
1077
|
+
"0x5eadc4c2": contractErrors.ZKPassportScopeEmpty,
|
|
1078
|
+
"0x7642fe15": contractErrors.PassportAlreadyVerified,
|
|
1079
|
+
"0x1fa24b35": contractErrors.ZKPassportProofInvalid,
|
|
1080
|
+
"0x36bdb7b6": contractErrors.ZKPassportIdentifierAlreadyVerified,
|
|
1081
|
+
"0xd13a7934": contractErrors.ZKPassportInvalidScope,
|
|
1082
|
+
"0x69f5bfe7": contractErrors.ZKPassportUnexpectedSender,
|
|
1083
|
+
"0x0464115c": contractErrors.ZKPassportAgeBelowMinimum,
|
|
1084
|
+
"0x48183836": contractErrors.ZKPassportMinAgeTooHigh,
|
|
1085
|
+
// Chainlink / oracle
|
|
1086
|
+
"0x7f73f237": contractErrors.UnexpectedRequestId,
|
|
1087
|
+
"0xab948796": contractErrors.OnlyRouterCanFulfill,
|
|
1088
|
+
"0x61982c98": contractErrors.RequestFailed,
|
|
1089
|
+
"0xab66be18": contractErrors.SourceCodeMismatch,
|
|
1090
|
+
"0xff2826ef": contractErrors.ZeroMarketPrice,
|
|
1091
|
+
"0xbb6c216c": contractErrors.InvalidComputedPrices,
|
|
1092
|
+
"0x3a8fbef4": contractErrors.NotPriceUpdaterForCurrency,
|
|
1093
|
+
"0x3e2c36f2": contractErrors.ThresholdNotConfigured,
|
|
1094
|
+
"0x71c4efed": contractErrors.SlippageExceeded,
|
|
1095
|
+
// Reputation / verification
|
|
1096
|
+
"0x071ea33c": contractErrors.UserHasNoReputation,
|
|
1097
|
+
"0xd2e1e6e0": contractErrors.ZeroReputationPoints,
|
|
1098
|
+
"0x3c0ca622": contractErrors.NoReputation,
|
|
1099
|
+
"0x412dd2b1": contractErrors.InsufficientRP,
|
|
1100
|
+
"0x0f165e7b": contractErrors.NullifierAlreadyVerified,
|
|
1101
|
+
"0x439cc0cd": contractErrors.VerificationFailed,
|
|
1102
|
+
"0x2366073b": contractErrors.InvalidSocialPlatform,
|
|
1103
|
+
"0x2f850b6b": contractErrors.SocialAlreadyVerified,
|
|
1104
|
+
"0x466f52a8": contractErrors.YearFieldNotInProof,
|
|
1105
|
+
"0x4d460588": contractErrors.UserIdFieldNotInProof,
|
|
1106
|
+
"0xa18ea4e8": contractErrors.UserIdAlreadyVerified,
|
|
1107
|
+
"0x69470b13": contractErrors.UsernameAlreadyVerified,
|
|
1108
|
+
"0x8390b2dd": contractErrors.UsernameNotInProof,
|
|
1109
|
+
"0xef053cf4": contractErrors.LinkedInOnlyRpUpdates,
|
|
1110
|
+
"0x355b0709": contractErrors.FacebookOnlyRpUpdates,
|
|
1111
|
+
// Voting / referral
|
|
1112
|
+
"0x7aabdfe3": contractErrors.AlreadyReferred,
|
|
1113
|
+
"0x83463f4a": contractErrors.SelfReferralNotAllowed,
|
|
1114
|
+
"0x69f6994a": contractErrors.NotEligibleToRefer,
|
|
1115
|
+
"0x1b19ad97": contractErrors.MerchantMonthlyReferralLimitReached,
|
|
1116
|
+
"0x944a2241": contractErrors.NoRecommender,
|
|
1117
|
+
"0x0ece93a6": contractErrors.RecommendationAlreadyClaimed,
|
|
1118
|
+
"0x74785d0f": contractErrors.CannotVoteYourself,
|
|
1119
|
+
"0xc26d5f75": contractErrors.VotesPerEpochExceeded,
|
|
1120
|
+
"0x7c9a1cf9": contractErrors.AlreadyVoted,
|
|
1121
|
+
"0x403e7fa6": contractErrors.FunctionNotFound,
|
|
1122
|
+
// Campaign
|
|
1123
|
+
"0x7a551e38": contractErrors.CampaignNotActive,
|
|
1124
|
+
"0x668ca75d": contractErrors.InvalidManagerDetails,
|
|
1125
|
+
"0x2f950361": contractErrors.UnclaimedRewardsExist,
|
|
1126
|
+
"0x626b7c00": contractErrors.RewardAlreadyClaimed,
|
|
1127
|
+
"0x902ade67": contractErrors.OnlyNewUsersAllowed,
|
|
1128
|
+
"0x22a5e34b": contractErrors.ManagerNotFound,
|
|
1129
|
+
"0xa1610e37": contractErrors.ManagerInactive,
|
|
1130
|
+
"0x3fb087f4": contractErrors.NoRewards,
|
|
1131
|
+
"0x3eedee0f": contractErrors.InvalidCampaignId,
|
|
1132
|
+
"0x302c5138": contractErrors.CannotClaimRevenueForCurrentMonth,
|
|
1133
|
+
// Referral reward config
|
|
1134
|
+
"0x074a6991": contractErrors.RewardPercentageTooHigh,
|
|
1135
|
+
// Signature / nonce
|
|
1136
|
+
"0x1fb09b80": contractErrors.NonceAlreadyUsed,
|
|
1137
|
+
"0x2fdec18b": contractErrors.SignatureValidationFailed,
|
|
1138
|
+
// Misc
|
|
1139
|
+
"0xe6c4247b": contractErrors.InvalidAddress,
|
|
1140
|
+
"0x3eb17c88": contractErrors.InvalidBlockAmount,
|
|
1141
|
+
"0x2c5211c6": contractErrors.InvalidAmount,
|
|
1142
|
+
"0xb4fa3fb3": contractErrors.InvalidInput,
|
|
1143
|
+
"0x1117a646": contractErrors.InvalidStatusTransition,
|
|
1144
|
+
"0xa24a13a6": contractErrors.ArrayLengthMismatch,
|
|
1145
|
+
"0xebb6f34b": contractErrors.UserIsBlacklisted,
|
|
1146
|
+
"0xd92e233d": contractErrors.ZeroAddress,
|
|
1147
|
+
"0x8beb9d16": contractErrors.ReentrancyGuard,
|
|
1148
|
+
"0xbb1cb70b": contractErrors.BatchTooLarge,
|
|
1149
|
+
"0xd97cf1ba": contractErrors.UnderflowSubtraction,
|
|
1150
|
+
"0xc9b16952": contractErrors.TargetLongerThanData
|
|
1151
|
+
};
|
|
1152
|
+
|
|
729
1153
|
// src/contracts/order-flow/index.ts
|
|
730
1154
|
var import_neverthrow3 = require("neverthrow");
|
|
731
1155
|
|