@rabbitholegg/questdk-plugin-utils
Advanced tools
Comparing version 1.0.0-alpha.37 to 1.0.0-alpha.38
# @rabbitholegg/questdk-plugin-utils | ||
## 1.0.0-alpha.38 | ||
### Patch Changes | ||
- [#446](https://github.com/rabbitholegg/questdk-plugins/pull/446) [`4112c0ba`](https://github.com/rabbitholegg/questdk-plugins/commit/4112c0ba11e14e320179eff2eb394a3d91a6ec62) Thanks [@jonathandiep](https://github.com/jonathandiep)! - add zora premint | ||
## 1.0.0-alpha.37 | ||
@@ -4,0 +10,0 @@ |
export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS, } from './constants/index'; | ||
export type { TestParams, TestCase } from './helpers/index'; | ||
export { chainIdToViemChain, createTestCase, getExitAddresses } from './helpers'; | ||
export type { IntentParams, MintIntentParams, SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, VoteActionParams, MintActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, FollowActionParams, RecastActionParams, CreateActionParams, CompleteActionParams, CompleteValidationParams, CompleteActionForm, CollectActionParams, CollectValidationParams, CollectActionForm, CollectActionDetail, IActionPlugin, FilterObject, BitmaskFilter, NthFilter, Filter, FilterArray, AbiFilter, AbstractAbiFilter, AbiParamFilter, ArrayOperator, LogicalOperator, NumericOperator, StringOperator, FilterOperator, TransactionFilter, DisctriminatedActionParams, Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, CreateQuestInput, QuestActionParamsByType, FollowValidationParams, FollowActionDetail, FollowActionForm, RecastValidationParams, RecastActionDetail, RecastActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, QuestCompletionPayload, } from './types'; | ||
export { ActionType, OrderType, GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, CreateQuestInputSchema, EthAddressSchema, QuestActionParamsSchema, NetworkNameSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, } from './types'; | ||
export type { IntentParams, MintIntentParams, SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, VoteActionParams, MintActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, FollowActionParams, RecastActionParams, CreateActionParams, CompleteActionParams, CompleteValidationParams, CompleteActionForm, CollectActionParams, CollectValidationParams, CollectActionForm, CollectActionDetail, IActionPlugin, FilterObject, BitmaskFilter, NthFilter, Filter, FilterArray, AbiFilter, AbstractAbiFilter, AbiParamFilter, ArrayOperator, LogicalOperator, NumericOperator, StringOperator, FilterOperator, TransactionFilter, DisctriminatedActionParams, Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, CreateQuestInput, QuestActionParamsByType, FollowValidationParams, FollowActionDetail, FollowActionForm, RecastValidationParams, RecastActionDetail, RecastActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, QuestCompletionPayload, PremintActionParams, PremintValidationParams, PremintActionDetail, PremintActionForm, } from './types'; | ||
export { ActionType, OrderType, GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, CreateQuestInputSchema, EthAddressSchema, QuestActionParamsSchema, NetworkNameSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, PremintValidationParamsSchema, PremintActionDetailSchema, PremintActionFormSchema, } from './types'; | ||
export { PluginActionNotImplementedError } from './errors'; | ||
//# sourceMappingURL=index.d.ts.map |
export type { IntentParams, MintIntentParams } from './intents'; | ||
export type { SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, MintActionParams, VoteActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, CreateActionParams, CompleteActionParams, CompleteValidationParams, CompleteActionForm, CollectActionDetail, CollectActionParams, CollectValidationParams, CollectActionForm, ActionParams, IActionPlugin, DisctriminatedActionParams, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, FollowActionParams, FollowValidationParams, FollowActionDetail, FollowActionForm, RecastActionParams, RecastValidationParams, RecastActionDetail, RecastActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, } from './actions'; | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, CreateActionFormSchema, CreateActionDetailSchema, CompleteActionFormSchema, CompleteActionDetailSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, } from './actions'; | ||
export type { SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, MintActionParams, VoteActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, CreateActionParams, CompleteActionParams, CompleteValidationParams, CompleteActionForm, CollectActionDetail, CollectActionParams, CollectValidationParams, CollectActionForm, ActionParams, IActionPlugin, DisctriminatedActionParams, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, FollowActionParams, FollowValidationParams, FollowActionDetail, FollowActionForm, RecastActionParams, RecastValidationParams, RecastActionDetail, RecastActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, PremintActionParams, PremintValidationParams, PremintActionDetail, PremintActionForm, } from './actions'; | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, CreateActionFormSchema, CreateActionDetailSchema, CompleteActionFormSchema, CompleteActionDetailSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, PremintActionFormSchema, PremintActionDetailSchema, PremintValidationParamsSchema, } from './actions'; | ||
export { EthAddressSchema, NetworkNameSchema, } from './common'; | ||
@@ -5,0 +5,0 @@ export { ActionType, OrderType } from './actions'; |
{ | ||
"name": "@rabbitholegg/questdk-plugin-utils", | ||
"version": "1.0.0-alpha.37", | ||
"version": "1.0.0-alpha.38", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ "require": "./dist/cjs/index.js", |
@@ -85,2 +85,6 @@ export { | ||
QuestCompletionPayload, | ||
PremintActionParams, | ||
PremintValidationParams, | ||
PremintActionDetail, | ||
PremintActionForm, | ||
} from './types' | ||
@@ -130,4 +134,7 @@ | ||
PluginActionValidationSchema, | ||
PremintValidationParamsSchema, | ||
PremintActionDetailSchema, | ||
PremintActionFormSchema, | ||
} from './types' | ||
export { PluginActionNotImplementedError } from './errors' |
@@ -104,2 +104,3 @@ import { | ||
| CollectActionParams | ||
| PremintActionParams | ||
@@ -293,2 +294,29 @@ export type DisctriminatedActionParams = | ||
/* | ||
PREMINT | ||
*/ | ||
export type PremintActionParams = { | ||
chainId: number | ||
createdAfter: string | ||
} | ||
export const PremintValidationParamsSchema = z.object({ | ||
actor: z.string(), | ||
}) | ||
export type PremintValidationParams = z.infer< | ||
typeof PremintValidationParamsSchema | ||
> | ||
export const PremintActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
createdAfter: z.string().datetime(), | ||
}) | ||
export type PremintActionDetail = z.infer<typeof PremintActionDetailSchema> | ||
export const PremintActionFormSchema = z.object({ | ||
chainId: z.number(), | ||
createdAfter: z.string().datetime(), | ||
}) | ||
export type PremintActionForm = z.infer<typeof PremintActionFormSchema> | ||
/* | ||
CREATE | ||
@@ -433,2 +461,3 @@ */ | ||
z.object({ type: z.literal('collect'), data: CollectActionDetailSchema }), | ||
z.object({ type: z.literal('premint'), data: PremintActionDetailSchema }), | ||
]) | ||
@@ -446,2 +475,6 @@ | ||
z.object({ type: z.literal('collect'), data: CollectValidationParamsSchema }), | ||
z.object({ | ||
type: z.literal('premint'), | ||
data: PremintValidationParamsSchema, | ||
}), | ||
]) | ||
@@ -539,2 +572,6 @@ | ||
) => Promise<boolean> | Promise<PluginActionNotImplementedError> | ||
validatePremint?: ( | ||
actionP: PremintActionParams, | ||
validateP: PremintValidationParams, | ||
) => Promise<boolean> | Promise<PluginActionNotImplementedError> | ||
canValidate?: (actionType: ActionType) => boolean | ||
@@ -604,2 +641,3 @@ } | ||
Collect = 'collect', | ||
Premint = 'premint', | ||
} | ||
@@ -606,0 +644,0 @@ |
@@ -48,2 +48,6 @@ export type { IntentParams, MintIntentParams } from './intents' | ||
PluginActionValidation, | ||
PremintActionParams, | ||
PremintValidationParams, | ||
PremintActionDetail, | ||
PremintActionForm, | ||
} from './actions' | ||
@@ -88,2 +92,5 @@ | ||
PluginActionValidationSchema, | ||
PremintActionFormSchema, | ||
PremintActionDetailSchema, | ||
PremintValidationParamsSchema, | ||
} from './actions' | ||
@@ -90,0 +97,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1289128
18898