UNPKG

@hubbleprotocol/farms-sdk

Version:
713 lines 26.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CouldNotDeserializeScope = exports.InvalidOracleConfig = exports.ScopeOraclePriceTooOld = exports.MissingScopePrices = exports.DepositCapReached = exports.InvalidTimestamp = exports.InvalidRpsCurvePoint = exports.InvalidLockingTimestamps = exports.EarlyWithdrawalNotAllowed = exports.InvalidPenaltyPercentage = exports.InvalidConfigValue = exports.DepositZero = exports.PendingWithdrawalNotWithdrawnYet = exports.UnstakeNotElapsed = exports.FarmDelegated = exports.FarmNotDelegated = exports.AuthorityFarmDelegateMissmatch = exports.UserDelegatedFarmNonDelegatedMissmatch = exports.NothingToWithdraw = exports.RewardIndexOutOfRange = exports.InvalidGlobalConfigMode = exports.RewardAtaOwnerNotPayer = exports.RewardAtaRewardMintMissmatch = exports.TokenFarmTokenMintMissmatch = exports.UserAtaFarmTokenMintMissmatch = exports.UserAtaRewardVaultMintMissmatch = exports.RewardsTreasuryVaultHasCloseAuthority = exports.RewardsTreasuryVaultHasDelegate = exports.FarmVaultHasCloseAuthority = exports.FarmVaultHasDelegate = exports.RewardsVaultHasCloseAuthority = exports.RewardsVaultHasDelegate = exports.MinClaimDurationNotReached = exports.MathOverflow = exports.OperationForbidden = exports.UnexpectedAccount = exports.ConversionFailure = exports.IntegerOverflow = exports.NothingStaked = exports.RewardVaultAuthorityMismatch = exports.RewardVaultMismatch = exports.WrongRewardVaultAccount = exports.RewardDoesNotExist = exports.MaxRewardNumberReached = exports.RewardAlreadyInitialized = exports.NoRewardInList = exports.NoRewardToHarvest = exports.NothingToUnstake = exports.UnstakeZero = exports.StakeZero = void 0; exports.UnsupportedTokenExtension = exports.RewardScheduleCurveSet = exports.WithdrawRewardZeroAvailable = exports.RewardAtaOwnerNotAdmin = void 0; exports.fromCode = fromCode; class StakeZero extends Error { constructor(logs) { super("6000: Cannot stake 0 amount"); this.logs = logs; this.code = 6000; this.name = "StakeZero"; this.msg = "Cannot stake 0 amount"; } } exports.StakeZero = StakeZero; StakeZero.code = 6000; class UnstakeZero extends Error { constructor(logs) { super("6001: Cannot unstake 0 amount"); this.logs = logs; this.code = 6001; this.name = "UnstakeZero"; this.msg = "Cannot unstake 0 amount"; } } exports.UnstakeZero = UnstakeZero; UnstakeZero.code = 6001; class NothingToUnstake extends Error { constructor(logs) { super("6002: Nothing to unstake"); this.logs = logs; this.code = 6002; this.name = "NothingToUnstake"; this.msg = "Nothing to unstake"; } } exports.NothingToUnstake = NothingToUnstake; NothingToUnstake.code = 6002; class NoRewardToHarvest extends Error { constructor(logs) { super("6003: No reward to harvest"); this.logs = logs; this.code = 6003; this.name = "NoRewardToHarvest"; this.msg = "No reward to harvest"; } } exports.NoRewardToHarvest = NoRewardToHarvest; NoRewardToHarvest.code = 6003; class NoRewardInList extends Error { constructor(logs) { super("6004: Reward not present in reward list"); this.logs = logs; this.code = 6004; this.name = "NoRewardInList"; this.msg = "Reward not present in reward list"; } } exports.NoRewardInList = NoRewardInList; NoRewardInList.code = 6004; class RewardAlreadyInitialized extends Error { constructor(logs) { super("6005: Reward already initialized"); this.logs = logs; this.code = 6005; this.name = "RewardAlreadyInitialized"; this.msg = "Reward already initialized"; } } exports.RewardAlreadyInitialized = RewardAlreadyInitialized; RewardAlreadyInitialized.code = 6005; class MaxRewardNumberReached extends Error { constructor(logs) { super("6006: Max number of reward tokens reached"); this.logs = logs; this.code = 6006; this.name = "MaxRewardNumberReached"; this.msg = "Max number of reward tokens reached"; } } exports.MaxRewardNumberReached = MaxRewardNumberReached; MaxRewardNumberReached.code = 6006; class RewardDoesNotExist extends Error { constructor(logs) { super("6007: Reward does not exist"); this.logs = logs; this.code = 6007; this.name = "RewardDoesNotExist"; this.msg = "Reward does not exist"; } } exports.RewardDoesNotExist = RewardDoesNotExist; RewardDoesNotExist.code = 6007; class WrongRewardVaultAccount extends Error { constructor(logs) { super("6008: Reward vault exists but the account is wrong"); this.logs = logs; this.code = 6008; this.name = "WrongRewardVaultAccount"; this.msg = "Reward vault exists but the account is wrong"; } } exports.WrongRewardVaultAccount = WrongRewardVaultAccount; WrongRewardVaultAccount.code = 6008; class RewardVaultMismatch extends Error { constructor(logs) { super("6009: Reward vault pubkey does not match staking pool vault"); this.logs = logs; this.code = 6009; this.name = "RewardVaultMismatch"; this.msg = "Reward vault pubkey does not match staking pool vault"; } } exports.RewardVaultMismatch = RewardVaultMismatch; RewardVaultMismatch.code = 6009; class RewardVaultAuthorityMismatch extends Error { constructor(logs) { super("6010: Reward vault authority pubkey does not match staking pool vault"); this.logs = logs; this.code = 6010; this.name = "RewardVaultAuthorityMismatch"; this.msg = "Reward vault authority pubkey does not match staking pool vault"; } } exports.RewardVaultAuthorityMismatch = RewardVaultAuthorityMismatch; RewardVaultAuthorityMismatch.code = 6010; class NothingStaked extends Error { constructor(logs) { super("6011: Nothing staked, cannot collect any rewards"); this.logs = logs; this.code = 6011; this.name = "NothingStaked"; this.msg = "Nothing staked, cannot collect any rewards"; } } exports.NothingStaked = NothingStaked; NothingStaked.code = 6011; class IntegerOverflow extends Error { constructor(logs) { super("6012: Integer overflow"); this.logs = logs; this.code = 6012; this.name = "IntegerOverflow"; this.msg = "Integer overflow"; } } exports.IntegerOverflow = IntegerOverflow; IntegerOverflow.code = 6012; class ConversionFailure extends Error { constructor(logs) { super("6013: Conversion failure"); this.logs = logs; this.code = 6013; this.name = "ConversionFailure"; this.msg = "Conversion failure"; } } exports.ConversionFailure = ConversionFailure; ConversionFailure.code = 6013; class UnexpectedAccount extends Error { constructor(logs) { super("6014: Unexpected account in instruction"); this.logs = logs; this.code = 6014; this.name = "UnexpectedAccount"; this.msg = "Unexpected account in instruction"; } } exports.UnexpectedAccount = UnexpectedAccount; UnexpectedAccount.code = 6014; class OperationForbidden extends Error { constructor(logs) { super("6015: Operation forbidden"); this.logs = logs; this.code = 6015; this.name = "OperationForbidden"; this.msg = "Operation forbidden"; } } exports.OperationForbidden = OperationForbidden; OperationForbidden.code = 6015; class MathOverflow extends Error { constructor(logs) { super("6016: Mathematical operation with overflow"); this.logs = logs; this.code = 6016; this.name = "MathOverflow"; this.msg = "Mathematical operation with overflow"; } } exports.MathOverflow = MathOverflow; MathOverflow.code = 6016; class MinClaimDurationNotReached extends Error { constructor(logs) { super("6017: Minimum claim duration has not been reached"); this.logs = logs; this.code = 6017; this.name = "MinClaimDurationNotReached"; this.msg = "Minimum claim duration has not been reached"; } } exports.MinClaimDurationNotReached = MinClaimDurationNotReached; MinClaimDurationNotReached.code = 6017; class RewardsVaultHasDelegate extends Error { constructor(logs) { super("6018: Reward vault has a delegate"); this.logs = logs; this.code = 6018; this.name = "RewardsVaultHasDelegate"; this.msg = "Reward vault has a delegate"; } } exports.RewardsVaultHasDelegate = RewardsVaultHasDelegate; RewardsVaultHasDelegate.code = 6018; class RewardsVaultHasCloseAuthority extends Error { constructor(logs) { super("6019: Reward vault has a close authority"); this.logs = logs; this.code = 6019; this.name = "RewardsVaultHasCloseAuthority"; this.msg = "Reward vault has a close authority"; } } exports.RewardsVaultHasCloseAuthority = RewardsVaultHasCloseAuthority; RewardsVaultHasCloseAuthority.code = 6019; class FarmVaultHasDelegate extends Error { constructor(logs) { super("6020: Farm vault has a delegate"); this.logs = logs; this.code = 6020; this.name = "FarmVaultHasDelegate"; this.msg = "Farm vault has a delegate"; } } exports.FarmVaultHasDelegate = FarmVaultHasDelegate; FarmVaultHasDelegate.code = 6020; class FarmVaultHasCloseAuthority extends Error { constructor(logs) { super("6021: Farm vault has a close authority"); this.logs = logs; this.code = 6021; this.name = "FarmVaultHasCloseAuthority"; this.msg = "Farm vault has a close authority"; } } exports.FarmVaultHasCloseAuthority = FarmVaultHasCloseAuthority; FarmVaultHasCloseAuthority.code = 6021; class RewardsTreasuryVaultHasDelegate extends Error { constructor(logs) { super("6022: Reward vault has a delegate"); this.logs = logs; this.code = 6022; this.name = "RewardsTreasuryVaultHasDelegate"; this.msg = "Reward vault has a delegate"; } } exports.RewardsTreasuryVaultHasDelegate = RewardsTreasuryVaultHasDelegate; RewardsTreasuryVaultHasDelegate.code = 6022; class RewardsTreasuryVaultHasCloseAuthority extends Error { constructor(logs) { super("6023: Reward vault has a close authority"); this.logs = logs; this.code = 6023; this.name = "RewardsTreasuryVaultHasCloseAuthority"; this.msg = "Reward vault has a close authority"; } } exports.RewardsTreasuryVaultHasCloseAuthority = RewardsTreasuryVaultHasCloseAuthority; RewardsTreasuryVaultHasCloseAuthority.code = 6023; class UserAtaRewardVaultMintMissmatch extends Error { constructor(logs) { super("6024: User ata and reward vault have different mints"); this.logs = logs; this.code = 6024; this.name = "UserAtaRewardVaultMintMissmatch"; this.msg = "User ata and reward vault have different mints"; } } exports.UserAtaRewardVaultMintMissmatch = UserAtaRewardVaultMintMissmatch; UserAtaRewardVaultMintMissmatch.code = 6024; class UserAtaFarmTokenMintMissmatch extends Error { constructor(logs) { super("6025: User ata and farm token have different mints"); this.logs = logs; this.code = 6025; this.name = "UserAtaFarmTokenMintMissmatch"; this.msg = "User ata and farm token have different mints"; } } exports.UserAtaFarmTokenMintMissmatch = UserAtaFarmTokenMintMissmatch; UserAtaFarmTokenMintMissmatch.code = 6025; class TokenFarmTokenMintMissmatch extends Error { constructor(logs) { super("6026: Token mint and farm token have different mints"); this.logs = logs; this.code = 6026; this.name = "TokenFarmTokenMintMissmatch"; this.msg = "Token mint and farm token have different mints"; } } exports.TokenFarmTokenMintMissmatch = TokenFarmTokenMintMissmatch; TokenFarmTokenMintMissmatch.code = 6026; class RewardAtaRewardMintMissmatch extends Error { constructor(logs) { super("6027: Reward ata mint is different than reward mint"); this.logs = logs; this.code = 6027; this.name = "RewardAtaRewardMintMissmatch"; this.msg = "Reward ata mint is different than reward mint"; } } exports.RewardAtaRewardMintMissmatch = RewardAtaRewardMintMissmatch; RewardAtaRewardMintMissmatch.code = 6027; class RewardAtaOwnerNotPayer extends Error { constructor(logs) { super("6028: Reward ata owner is different than payer"); this.logs = logs; this.code = 6028; this.name = "RewardAtaOwnerNotPayer"; this.msg = "Reward ata owner is different than payer"; } } exports.RewardAtaOwnerNotPayer = RewardAtaOwnerNotPayer; RewardAtaOwnerNotPayer.code = 6028; class InvalidGlobalConfigMode extends Error { constructor(logs) { super("6029: Mode to update global_config is invalid"); this.logs = logs; this.code = 6029; this.name = "InvalidGlobalConfigMode"; this.msg = "Mode to update global_config is invalid"; } } exports.InvalidGlobalConfigMode = InvalidGlobalConfigMode; InvalidGlobalConfigMode.code = 6029; class RewardIndexOutOfRange extends Error { constructor(logs) { super("6030: Reward Index is higher than number of rewards"); this.logs = logs; this.code = 6030; this.name = "RewardIndexOutOfRange"; this.msg = "Reward Index is higher than number of rewards"; } } exports.RewardIndexOutOfRange = RewardIndexOutOfRange; RewardIndexOutOfRange.code = 6030; class NothingToWithdraw extends Error { constructor(logs) { super("6031: No tokens available to withdraw"); this.logs = logs; this.code = 6031; this.name = "NothingToWithdraw"; this.msg = "No tokens available to withdraw"; } } exports.NothingToWithdraw = NothingToWithdraw; NothingToWithdraw.code = 6031; class UserDelegatedFarmNonDelegatedMissmatch extends Error { constructor(logs) { super("6032: user, user_ref, authority and payer must match for non-delegated farm"); this.logs = logs; this.code = 6032; this.name = "UserDelegatedFarmNonDelegatedMissmatch"; this.msg = "user, user_ref, authority and payer must match for non-delegated farm"; } } exports.UserDelegatedFarmNonDelegatedMissmatch = UserDelegatedFarmNonDelegatedMissmatch; UserDelegatedFarmNonDelegatedMissmatch.code = 6032; class AuthorityFarmDelegateMissmatch extends Error { constructor(logs) { super("6033: Authority must match farm delegate authority"); this.logs = logs; this.code = 6033; this.name = "AuthorityFarmDelegateMissmatch"; this.msg = "Authority must match farm delegate authority"; } } exports.AuthorityFarmDelegateMissmatch = AuthorityFarmDelegateMissmatch; AuthorityFarmDelegateMissmatch.code = 6033; class FarmNotDelegated extends Error { constructor(logs) { super("6034: Farm not delegated, can not set stake"); this.logs = logs; this.code = 6034; this.name = "FarmNotDelegated"; this.msg = "Farm not delegated, can not set stake"; } } exports.FarmNotDelegated = FarmNotDelegated; FarmNotDelegated.code = 6034; class FarmDelegated extends Error { constructor(logs) { super("6035: Operation not allowed for delegated farm"); this.logs = logs; this.code = 6035; this.name = "FarmDelegated"; this.msg = "Operation not allowed for delegated farm"; } } exports.FarmDelegated = FarmDelegated; FarmDelegated.code = 6035; class UnstakeNotElapsed extends Error { constructor(logs) { super("6036: Unstake lockup period is not elapsed. Deposit is locked until end of unstake period"); this.logs = logs; this.code = 6036; this.name = "UnstakeNotElapsed"; this.msg = "Unstake lockup period is not elapsed. Deposit is locked until end of unstake period"; } } exports.UnstakeNotElapsed = UnstakeNotElapsed; UnstakeNotElapsed.code = 6036; class PendingWithdrawalNotWithdrawnYet extends Error { constructor(logs) { super("6037: Pending withdrawal already exist and not withdrawn yet"); this.logs = logs; this.code = 6037; this.name = "PendingWithdrawalNotWithdrawnYet"; this.msg = "Pending withdrawal already exist and not withdrawn yet"; } } exports.PendingWithdrawalNotWithdrawnYet = PendingWithdrawalNotWithdrawnYet; PendingWithdrawalNotWithdrawnYet.code = 6037; class DepositZero extends Error { constructor(logs) { super("6038: Cannot deposit zero amount directly to farm vault"); this.logs = logs; this.code = 6038; this.name = "DepositZero"; this.msg = "Cannot deposit zero amount directly to farm vault"; } } exports.DepositZero = DepositZero; DepositZero.code = 6038; class InvalidConfigValue extends Error { constructor(logs) { super("6039: Invalid config value"); this.logs = logs; this.code = 6039; this.name = "InvalidConfigValue"; this.msg = "Invalid config value"; } } exports.InvalidConfigValue = InvalidConfigValue; InvalidConfigValue.code = 6039; class InvalidPenaltyPercentage extends Error { constructor(logs) { super("6040: Invalid penalty percentage"); this.logs = logs; this.code = 6040; this.name = "InvalidPenaltyPercentage"; this.msg = "Invalid penalty percentage"; } } exports.InvalidPenaltyPercentage = InvalidPenaltyPercentage; InvalidPenaltyPercentage.code = 6040; class EarlyWithdrawalNotAllowed extends Error { constructor(logs) { super("6041: Early withdrawal not allowed"); this.logs = logs; this.code = 6041; this.name = "EarlyWithdrawalNotAllowed"; this.msg = "Early withdrawal not allowed"; } } exports.EarlyWithdrawalNotAllowed = EarlyWithdrawalNotAllowed; EarlyWithdrawalNotAllowed.code = 6041; class InvalidLockingTimestamps extends Error { constructor(logs) { super("6042: Invalid locking timestamps"); this.logs = logs; this.code = 6042; this.name = "InvalidLockingTimestamps"; this.msg = "Invalid locking timestamps"; } } exports.InvalidLockingTimestamps = InvalidLockingTimestamps; InvalidLockingTimestamps.code = 6042; class InvalidRpsCurvePoint extends Error { constructor(logs) { super("6043: Invalid reward rate curve point"); this.logs = logs; this.code = 6043; this.name = "InvalidRpsCurvePoint"; this.msg = "Invalid reward rate curve point"; } } exports.InvalidRpsCurvePoint = InvalidRpsCurvePoint; InvalidRpsCurvePoint.code = 6043; class InvalidTimestamp extends Error { constructor(logs) { super("6044: Invalid timestamp"); this.logs = logs; this.code = 6044; this.name = "InvalidTimestamp"; this.msg = "Invalid timestamp"; } } exports.InvalidTimestamp = InvalidTimestamp; InvalidTimestamp.code = 6044; class DepositCapReached extends Error { constructor(logs) { super("6045: Deposit cap reached"); this.logs = logs; this.code = 6045; this.name = "DepositCapReached"; this.msg = "Deposit cap reached"; } } exports.DepositCapReached = DepositCapReached; DepositCapReached.code = 6045; class MissingScopePrices extends Error { constructor(logs) { super("6046: Missing Scope Prices"); this.logs = logs; this.code = 6046; this.name = "MissingScopePrices"; this.msg = "Missing Scope Prices"; } } exports.MissingScopePrices = MissingScopePrices; MissingScopePrices.code = 6046; class ScopeOraclePriceTooOld extends Error { constructor(logs) { super("6047: Scope Oracle Price Too Old"); this.logs = logs; this.code = 6047; this.name = "ScopeOraclePriceTooOld"; this.msg = "Scope Oracle Price Too Old"; } } exports.ScopeOraclePriceTooOld = ScopeOraclePriceTooOld; ScopeOraclePriceTooOld.code = 6047; class InvalidOracleConfig extends Error { constructor(logs) { super("6048: Invalid Oracle Config"); this.logs = logs; this.code = 6048; this.name = "InvalidOracleConfig"; this.msg = "Invalid Oracle Config"; } } exports.InvalidOracleConfig = InvalidOracleConfig; InvalidOracleConfig.code = 6048; class CouldNotDeserializeScope extends Error { constructor(logs) { super("6049: Could not deserialize scope"); this.logs = logs; this.code = 6049; this.name = "CouldNotDeserializeScope"; this.msg = "Could not deserialize scope"; } } exports.CouldNotDeserializeScope = CouldNotDeserializeScope; CouldNotDeserializeScope.code = 6049; class RewardAtaOwnerNotAdmin extends Error { constructor(logs) { super("6050: Reward ata owner is different than farm admin"); this.logs = logs; this.code = 6050; this.name = "RewardAtaOwnerNotAdmin"; this.msg = "Reward ata owner is different than farm admin"; } } exports.RewardAtaOwnerNotAdmin = RewardAtaOwnerNotAdmin; RewardAtaOwnerNotAdmin.code = 6050; class WithdrawRewardZeroAvailable extends Error { constructor(logs) { super("6051: Cannot withdraw reward as available amount is zero"); this.logs = logs; this.code = 6051; this.name = "WithdrawRewardZeroAvailable"; this.msg = "Cannot withdraw reward as available amount is zero"; } } exports.WithdrawRewardZeroAvailable = WithdrawRewardZeroAvailable; WithdrawRewardZeroAvailable.code = 6051; class RewardScheduleCurveSet extends Error { constructor(logs) { super("6052: Cannot withdraw reward as reward schedule is set"); this.logs = logs; this.code = 6052; this.name = "RewardScheduleCurveSet"; this.msg = "Cannot withdraw reward as reward schedule is set"; } } exports.RewardScheduleCurveSet = RewardScheduleCurveSet; RewardScheduleCurveSet.code = 6052; class UnsupportedTokenExtension extends Error { constructor(logs) { super("6053: Cannot initialize farm while having a mint with token22 and requested extensions"); this.logs = logs; this.code = 6053; this.name = "UnsupportedTokenExtension"; this.msg = "Cannot initialize farm while having a mint with token22 and requested extensions"; } } exports.UnsupportedTokenExtension = UnsupportedTokenExtension; UnsupportedTokenExtension.code = 6053; function fromCode(code, logs) { switch (code) { case 6000: return new StakeZero(logs); case 6001: return new UnstakeZero(logs); case 6002: return new NothingToUnstake(logs); case 6003: return new NoRewardToHarvest(logs); case 6004: return new NoRewardInList(logs); case 6005: return new RewardAlreadyInitialized(logs); case 6006: return new MaxRewardNumberReached(logs); case 6007: return new RewardDoesNotExist(logs); case 6008: return new WrongRewardVaultAccount(logs); case 6009: return new RewardVaultMismatch(logs); case 6010: return new RewardVaultAuthorityMismatch(logs); case 6011: return new NothingStaked(logs); case 6012: return new IntegerOverflow(logs); case 6013: return new ConversionFailure(logs); case 6014: return new UnexpectedAccount(logs); case 6015: return new OperationForbidden(logs); case 6016: return new MathOverflow(logs); case 6017: return new MinClaimDurationNotReached(logs); case 6018: return new RewardsVaultHasDelegate(logs); case 6019: return new RewardsVaultHasCloseAuthority(logs); case 6020: return new FarmVaultHasDelegate(logs); case 6021: return new FarmVaultHasCloseAuthority(logs); case 6022: return new RewardsTreasuryVaultHasDelegate(logs); case 6023: return new RewardsTreasuryVaultHasCloseAuthority(logs); case 6024: return new UserAtaRewardVaultMintMissmatch(logs); case 6025: return new UserAtaFarmTokenMintMissmatch(logs); case 6026: return new TokenFarmTokenMintMissmatch(logs); case 6027: return new RewardAtaRewardMintMissmatch(logs); case 6028: return new RewardAtaOwnerNotPayer(logs); case 6029: return new InvalidGlobalConfigMode(logs); case 6030: return new RewardIndexOutOfRange(logs); case 6031: return new NothingToWithdraw(logs); case 6032: return new UserDelegatedFarmNonDelegatedMissmatch(logs); case 6033: return new AuthorityFarmDelegateMissmatch(logs); case 6034: return new FarmNotDelegated(logs); case 6035: return new FarmDelegated(logs); case 6036: return new UnstakeNotElapsed(logs); case 6037: return new PendingWithdrawalNotWithdrawnYet(logs); case 6038: return new DepositZero(logs); case 6039: return new InvalidConfigValue(logs); case 6040: return new InvalidPenaltyPercentage(logs); case 6041: return new EarlyWithdrawalNotAllowed(logs); case 6042: return new InvalidLockingTimestamps(logs); case 6043: return new InvalidRpsCurvePoint(logs); case 6044: return new InvalidTimestamp(logs); case 6045: return new DepositCapReached(logs); case 6046: return new MissingScopePrices(logs); case 6047: return new ScopeOraclePriceTooOld(logs); case 6048: return new InvalidOracleConfig(logs); case 6049: return new CouldNotDeserializeScope(logs); case 6050: return new RewardAtaOwnerNotAdmin(logs); case 6051: return new WithdrawRewardZeroAvailable(logs); case 6052: return new RewardScheduleCurveSet(logs); case 6053: return new UnsupportedTokenExtension(logs); } return null; } //# sourceMappingURL=custom.js.map