@rabbitholegg/questdk-plugin-utils
Advanced tools
Comparing version 1.0.0-alpha.19 to 1.0.0-alpha.20
# @rabbitholegg/questdk-plugin-utils | ||
## 1.0.0-alpha.20 | ||
### Patch Changes | ||
- [#363](https://github.com/rabbitholegg/questdk-plugins/pull/363) [`0bbce385`](https://github.com/rabbitholegg/questdk-plugins/commit/0bbce385864b5750c08b1278a064daa371a11e25) Thanks [@Quazia](https://github.com/Quazia)! - Feat(neynar:follow): add neynar validation for the follow action | ||
## 1.0.0-alpha.19 | ||
@@ -4,0 +10,0 @@ |
@@ -12,2 +12,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "ActionParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.ActionParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "ActionType", { | ||
@@ -19,2 +25,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "ActionValidationSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.ActionValidationSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "BOOST_TREASURY_ADDRESS", { | ||
@@ -86,2 +98,20 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "FollowActionDetailSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.FollowActionDetailSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FollowActionFormSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.FollowActionFormSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FollowValidationParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.FollowValidationParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "GetQuestsResponseSchema", { | ||
@@ -141,2 +171,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "PluginActionValidationSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.PluginActionValidationSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "QuestActionParamsSchema", { | ||
@@ -196,2 +232,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "ValidationParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.ValidationParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "VoteActionDetailSchema", { | ||
@@ -198,0 +240,0 @@ enumerable: true, |
@@ -6,3 +6,5 @@ "use strict"; | ||
}); | ||
exports.VoteActionFormSchema = exports.VoteActionDetailSchema = exports.SwapActionFormSchema = exports.SwapActionDetailSchema = exports.StakeActionFormSchema = exports.StakeActionDetailSchema = exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum = exports.QuestActionParamsSchema = exports.OrderType = exports.OptionsActionFormSchema = exports.OptionsActionDetailSchema = exports.MintActionFormSchema = exports.MintActionDetailSchema = exports.DelegateActionFormSchema = exports.DelegateActionDetailSchema = exports.BridgeActionFormSchema = exports.BridgeActionDetailSchema = exports.BaseStakeActionFormaSchema = exports.ActionType = exports.ActionParamsFormSchema = void 0; | ||
exports.ActionType = exports.ActionParamsSchema = exports.ActionParamsFormSchema = void 0; | ||
exports.ActionValidationSchema = ActionValidationSchema; | ||
exports.VoteActionFormSchema = exports.VoteActionDetailSchema = exports.ValidationParamsSchema = exports.SwapActionFormSchema = exports.SwapActionDetailSchema = exports.StakeActionFormSchema = exports.StakeActionDetailSchema = exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum = exports.QuestActionParamsSchema = exports.PluginActionValidationSchema = exports.OrderType = exports.OptionsActionFormSchema = exports.OptionsActionDetailSchema = exports.MintActionFormSchema = exports.MintActionDetailSchema = exports.FollowValidationParamsSchema = exports.FollowActionFormSchema = exports.FollowActionDetailSchema = exports.DelegateActionFormSchema = exports.DelegateActionDetailSchema = exports.BridgeActionFormSchema = exports.BridgeActionDetailSchema = exports.BaseStakeActionFormaSchema = void 0; | ||
var _zod = require("zod"); | ||
@@ -82,2 +84,22 @@ var _common = require("./common"); | ||
}); | ||
/* | ||
FOLLOW | ||
*/ | ||
var FollowValidationParamsSchema = exports.FollowValidationParamsSchema = _zod.z.object({ | ||
actor: _common.EthAddressSchema, | ||
project: _common.EthAddressSchema.optional() | ||
}); | ||
var FollowActionDetailSchema = exports.FollowActionDetailSchema = _zod.z.object({ | ||
target: _zod.z.union([_zod.z.string(), _common.EthAddressSchema]), | ||
project: _zod.z.union([_zod.z.string(), _common.EthAddressSchema]).optional() | ||
}); | ||
var FollowActionFormSchema = exports.FollowActionFormSchema = _zod.z.object({ | ||
target: _zod.z.union([_zod.z.string(), _common.EthAddressSchema]) | ||
}); | ||
/* | ||
VOTE | ||
*/ | ||
var VoteActionFormSchema = exports.VoteActionFormSchema = _zod.z.object({ | ||
@@ -133,3 +155,3 @@ project: _common.EthAddressSchema, | ||
})]); | ||
var QuestActionParamsSchema = exports.QuestActionParamsSchema = _zod.z.discriminatedUnion('type', [_zod.z.object({ | ||
var ActionParamsSchema = exports.ActionParamsSchema = _zod.z.discriminatedUnion('type', [_zod.z.object({ | ||
type: _zod.z.literal('bridge'), | ||
@@ -155,3 +177,32 @@ data: BridgeActionDetailSchema | ||
data: VoteActionDetailSchema | ||
}), _zod.z.object({ | ||
type: _zod.z.literal('follow'), | ||
data: FollowActionDetailSchema | ||
})]); | ||
var QuestActionParamsSchema = exports.QuestActionParamsSchema = ActionParamsSchema; | ||
var ValidationParamsSchema = exports.ValidationParamsSchema = _zod.z.discriminatedUnion('type', [_zod.z.object({ | ||
type: _zod.z.literal('follow'), | ||
data: FollowValidationParamsSchema | ||
})]); | ||
/* | ||
ACTION VALIDATION | ||
*/ | ||
function ActionValidationSchema(actorSchema, payloadSchema) { | ||
return _zod.z.object({ | ||
actor: actorSchema, | ||
payload: payloadSchema | ||
}); | ||
} | ||
var PluginActionValidationSchema = exports.PluginActionValidationSchema = ActionValidationSchema(_zod.z.string(), _zod.z.object({ | ||
actionParams: ActionParamsSchema, | ||
validationParams: ValidationParamsSchema, | ||
questId: _zod.z.string().uuid(), | ||
taskId: _zod.z.string().uuid() | ||
})); | ||
/* | ||
ENUM TYPES | ||
*/ | ||
var ActionType = exports.ActionType = /*#__PURE__*/function (ActionType) { | ||
@@ -170,2 +221,3 @@ ActionType["Bridge"] = "bridge"; | ||
ActionType["Vote"] = "vote"; | ||
ActionType["Follow"] = "follow"; | ||
return ActionType; | ||
@@ -172,0 +224,0 @@ }({}); |
@@ -12,2 +12,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "ActionParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.ActionParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "ActionType", { | ||
@@ -19,2 +25,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "ActionValidationSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.ActionValidationSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "BaseStakeActionFormaSchema", { | ||
@@ -62,2 +74,20 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "FollowActionDetailSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.FollowActionDetailSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FollowActionFormSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.FollowActionFormSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "FollowValidationParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.FollowValidationParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "GetQuestsResponseSchema", { | ||
@@ -111,2 +141,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "PluginActionValidationSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.PluginActionValidationSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "QuestActionParamsSchema", { | ||
@@ -166,2 +202,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "ValidationParamsSchema", { | ||
enumerable: true, | ||
get: function get() { | ||
return _actions.ValidationParamsSchema; | ||
} | ||
}); | ||
Object.defineProperty(exports, "VoteActionDetailSchema", { | ||
@@ -168,0 +210,0 @@ enumerable: true, |
export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS } from './constants/index'; | ||
export { createTestCase, chainIdToViemChain } from './helpers'; | ||
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 } 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, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema } from './types'; | ||
export { PluginActionNotImplementedError } from './errors'; | ||
//# sourceMappingURL=index.js.map |
@@ -75,2 +75,22 @@ import { z } from 'zod'; | ||
}); | ||
/* | ||
FOLLOW | ||
*/ | ||
export const FollowValidationParamsSchema = z.object({ | ||
actor: EthAddressSchema, | ||
project: EthAddressSchema.optional() | ||
}); | ||
export const FollowActionDetailSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]), | ||
project: z.union([z.string(), EthAddressSchema]).optional() | ||
}); | ||
export const FollowActionFormSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]) | ||
}); | ||
/* | ||
VOTE | ||
*/ | ||
export const VoteActionFormSchema = z.object({ | ||
@@ -126,3 +146,3 @@ project: EthAddressSchema, | ||
})]); | ||
export const QuestActionParamsSchema = z.discriminatedUnion('type', [z.object({ | ||
export const ActionParamsSchema = z.discriminatedUnion('type', [z.object({ | ||
type: z.literal('bridge'), | ||
@@ -148,3 +168,32 @@ data: BridgeActionDetailSchema | ||
data: VoteActionDetailSchema | ||
}), z.object({ | ||
type: z.literal('follow'), | ||
data: FollowActionDetailSchema | ||
})]); | ||
export const QuestActionParamsSchema = ActionParamsSchema; | ||
export const ValidationParamsSchema = z.discriminatedUnion('type', [z.object({ | ||
type: z.literal('follow'), | ||
data: FollowValidationParamsSchema | ||
})]); | ||
/* | ||
ACTION VALIDATION | ||
*/ | ||
export function ActionValidationSchema(actorSchema, payloadSchema) { | ||
return z.object({ | ||
actor: actorSchema, | ||
payload: payloadSchema | ||
}); | ||
} | ||
export const PluginActionValidationSchema = ActionValidationSchema(z.string(), z.object({ | ||
actionParams: ActionParamsSchema, | ||
validationParams: ValidationParamsSchema, | ||
questId: z.string().uuid(), | ||
taskId: z.string().uuid() | ||
})); | ||
/* | ||
ENUM TYPES | ||
*/ | ||
export let ActionType = /*#__PURE__*/function (ActionType) { | ||
@@ -163,2 +212,3 @@ ActionType["Bridge"] = "bridge"; | ||
ActionType["Vote"] = "vote"; | ||
ActionType["Follow"] = "follow"; | ||
return ActionType; | ||
@@ -165,0 +215,0 @@ }({}); |
@@ -1,2 +0,2 @@ | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema } from './actions'; | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema } from './actions'; | ||
export { EthAddressSchema, NetworkNameSchema } from './common'; | ||
@@ -3,0 +3,0 @@ export { ActionType, OrderType } from './actions'; |
export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS, } from './constants/index'; | ||
export type { TestParams, TestCase } from './helpers/index'; | ||
export { createTestCase, chainIdToViemChain, } from './helpers'; | ||
export type { IntentParams, MintIntentParams, SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, VoteActionParams, MintActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, 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, } 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, } from './types'; | ||
export type { IntentParams, MintIntentParams, SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, VoteActionParams, MintActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, FollowActionParams, 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, 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, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, } from './types'; | ||
export { PluginActionNotImplementedError } from './errors'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { type PublicClient, type Address, type SimulateContractReturnType, type TransactionRequest } from 'viem'; | ||
@@ -5,3 +6,5 @@ import type { FilterOperator, TransactionFilter } from './filters'; | ||
import type { MintIntentParams } from './intents'; | ||
import { z } from 'zod'; | ||
import { ZodSchema, z } from 'zod'; | ||
import { UUID } from 'crypto'; | ||
import { QuestCompletionPayload } from './quests'; | ||
export type SwapActionParams = { | ||
@@ -73,3 +76,3 @@ chainId: number; | ||
}; | ||
export type ActionParams = SwapActionParams | StakeActionParams | BridgeActionParams | MintActionParams | DelegateActionParams | QuestActionParams | OptionsActionParams | VoteActionParams; | ||
export type ActionParams = SwapActionParams | StakeActionParams | BridgeActionParams | MintActionParams | DelegateActionParams | QuestActionParams | OptionsActionParams | VoteActionParams | FollowActionParams; | ||
export type DisctriminatedActionParams = { | ||
@@ -126,4 +129,4 @@ type: ActionType.Swap; | ||
chainId: z.ZodOptional<z.ZodNumber>; | ||
sourceTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
sourceTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
@@ -148,3 +151,3 @@ amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
export declare const DelegateActionFormSchema: z.ZodObject<{ | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
delegate: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -157,3 +160,3 @@ delegate?: `0x${string}` | undefined; | ||
chainId: z.ZodNumber; | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
delegate: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -170,4 +173,4 @@ chainId: number; | ||
chainId: z.ZodNumber; | ||
tokenOne: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
@@ -197,3 +200,3 @@ amountTwo: z.ZodOptional<z.ZodString>; | ||
destinationNetworkId: z.ZodString; | ||
tokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -216,4 +219,4 @@ amount: z.ZodOptional<z.ZodString>; | ||
export declare const SwapActionFormSchema: z.ZodObject<{ | ||
sourceTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
sourceTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -236,7 +239,7 @@ amount: z.ZodOptional<z.ZodString>; | ||
export declare const BaseStakeActionFormaSchema: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOneDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
amountOneOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -268,7 +271,7 @@ amountTwo: z.ZodOptional<z.ZodString>; | ||
export declare const StakeActionFormSchema: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOneDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
amountOneOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -300,3 +303,3 @@ amountTwo: z.ZodOptional<z.ZodString>; | ||
export declare const MintActionFormSchema: z.ZodObject<{ | ||
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
contractAddress: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
tokenId: z.ZodOptional<z.ZodNumber>; | ||
@@ -318,3 +321,3 @@ amount: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
contractAddress: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
tokenId: z.ZodOptional<z.ZodNumber>; | ||
@@ -338,4 +341,38 @@ amount: z.ZodOptional<z.ZodString>; | ||
export type MintActionForm = z.infer<typeof MintActionFormSchema>; | ||
export type FollowActionParams = { | ||
target: Address | string; | ||
project?: Address | string; | ||
}; | ||
export declare const FollowValidationParamsSchema: z.ZodObject<{ | ||
actor: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}, { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}>; | ||
export type FollowValidationParams = z.infer<typeof FollowValidationParamsSchema>; | ||
export declare const FollowActionDetailSchema: z.ZodObject<{ | ||
target: z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>; | ||
project: z.ZodOptional<z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
target: string; | ||
project?: string | undefined; | ||
}, { | ||
target: string; | ||
project?: string | undefined; | ||
}>; | ||
export type FollowActionDetail = z.infer<typeof FollowActionDetailSchema>; | ||
export declare const FollowActionFormSchema: z.ZodObject<{ | ||
target: z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>; | ||
}, "strip", z.ZodTypeAny, { | ||
target: string; | ||
}, { | ||
target: string; | ||
}>; | ||
export type FollowActionForm = z.infer<typeof FollowActionFormSchema>; | ||
export declare const VoteActionFormSchema: z.ZodObject<{ | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
@@ -354,3 +391,3 @@ support: z.ZodOptional<z.ZodBoolean>; | ||
chainId: z.ZodNumber; | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
@@ -372,7 +409,7 @@ support: z.ZodOptional<z.ZodBoolean>; | ||
export declare const OptionsActionFormSchema: z.ZodObject<{ | ||
contractAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
contractAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
recipient: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
recipient: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
@@ -396,7 +433,7 @@ }, "strip", z.ZodTypeAny, { | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
contractAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
recipient: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
recipient: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
@@ -426,3 +463,3 @@ }, "strip", z.ZodTypeAny, { | ||
destinationNetworkId: z.ZodString; | ||
tokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -465,4 +502,4 @@ amount: z.ZodOptional<z.ZodString>; | ||
data: z.ZodObject<{ | ||
sourceTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
sourceTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -505,7 +542,7 @@ amount: z.ZodOptional<z.ZodString>; | ||
data: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOneDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
amountOneOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
@@ -565,3 +602,3 @@ amountTwo: z.ZodOptional<z.ZodString>; | ||
data: z.ZodObject<{ | ||
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
contractAddress: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
tokenId: z.ZodOptional<z.ZodNumber>; | ||
@@ -600,3 +637,3 @@ amount: z.ZodOptional<z.ZodString>; | ||
data: z.ZodObject<{ | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
delegate: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -620,7 +657,7 @@ delegate?: `0x${string}` | undefined; | ||
data: z.ZodObject<{ | ||
contractAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
contractAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
recipient: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
recipient: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
@@ -665,3 +702,3 @@ }, "strip", z.ZodTypeAny, { | ||
data: z.ZodObject<{ | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
@@ -694,2 +731,305 @@ support: z.ZodOptional<z.ZodBoolean>; | ||
export type ActionParamsForm = z.infer<typeof ActionParamsFormSchema>; | ||
export declare const ActionParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"bridge">; | ||
data: z.ZodObject<{ | ||
sourceChainId: z.ZodNumber; | ||
destinationChainId: z.ZodNumber; | ||
tokenAddress: z.ZodOptional<z.ZodString>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
sourceChainId: number; | ||
destinationChainId: number; | ||
tokenAddress?: string | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
sourceChainId: number; | ||
destinationChainId: number; | ||
tokenAddress?: string | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "bridge"; | ||
data: { | ||
sourceChainId: number; | ||
destinationChainId: number; | ||
tokenAddress?: string | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "bridge"; | ||
data: { | ||
sourceChainId: number; | ||
destinationChainId: number; | ||
tokenAddress?: string | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"swap">; | ||
data: z.ZodObject<{ | ||
sourceChainId: z.ZodOptional<z.ZodNumber>; | ||
chainId: z.ZodOptional<z.ZodNumber>; | ||
sourceTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
sourceChainId?: number | undefined; | ||
chainId?: number | undefined; | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
sourceChainId?: number | undefined; | ||
chainId?: number | undefined; | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "swap"; | ||
data: { | ||
sourceChainId?: number | undefined; | ||
chainId?: number | undefined; | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "swap"; | ||
data: { | ||
sourceChainId?: number | undefined; | ||
chainId?: number | undefined; | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"delegate">; | ||
data: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
delegate: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}, { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "delegate"; | ||
data: { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}; | ||
}, { | ||
type: "delegate"; | ||
data: { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"stake">; | ||
data: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
amountTwo: z.ZodOptional<z.ZodString>; | ||
amountOneOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
amountTwoOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
amountOne?: string | undefined; | ||
amountTwo?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
chainId: number; | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
amountOne?: string | undefined; | ||
amountTwo?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "stake"; | ||
data: { | ||
chainId: number; | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
amountOne?: string | undefined; | ||
amountTwo?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "stake"; | ||
data: { | ||
chainId: number; | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
amountOne?: string | undefined; | ||
amountTwo?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"mint">; | ||
data: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
contractAddress: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
tokenId: z.ZodOptional<z.ZodNumber>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
chainId: number; | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "mint"; | ||
data: { | ||
chainId: number; | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "mint"; | ||
data: { | ||
chainId: number; | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"options">; | ||
data: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
recipient: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
contractAddress?: `0x${string}` | undefined; | ||
token?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
recipient?: `0x${string}` | undefined; | ||
orderType?: string | undefined; | ||
}, { | ||
chainId: number; | ||
contractAddress?: `0x${string}` | undefined; | ||
token?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
recipient?: `0x${string}` | undefined; | ||
orderType?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "options"; | ||
data: { | ||
chainId: number; | ||
contractAddress?: `0x${string}` | undefined; | ||
token?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
recipient?: `0x${string}` | undefined; | ||
orderType?: string | undefined; | ||
}; | ||
}, { | ||
type: "options"; | ||
data: { | ||
chainId: number; | ||
contractAddress?: `0x${string}` | undefined; | ||
token?: `0x${string}` | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
recipient?: `0x${string}` | undefined; | ||
orderType?: string | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"vote">; | ||
data: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
project: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
support: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}, { | ||
chainId: number; | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "vote"; | ||
data: { | ||
chainId: number; | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}; | ||
}, { | ||
type: "vote"; | ||
data: { | ||
chainId: number; | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"follow">; | ||
data: z.ZodObject<{ | ||
target: z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>; | ||
project: z.ZodOptional<z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
target: string; | ||
project?: string | undefined; | ||
}, { | ||
target: string; | ||
project?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "follow"; | ||
data: { | ||
target: string; | ||
project?: string | undefined; | ||
}; | ||
}, { | ||
type: "follow"; | ||
data: { | ||
target: string; | ||
project?: string | undefined; | ||
}; | ||
}>]>; | ||
export declare const QuestActionParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
@@ -739,4 +1079,4 @@ type: z.ZodLiteral<"bridge">; | ||
chainId: z.ZodOptional<z.ZodNumber>; | ||
sourceTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
sourceTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
@@ -783,3 +1123,3 @@ amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
chainId: z.ZodNumber; | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
delegate: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -808,4 +1148,4 @@ chainId: number; | ||
chainId: z.ZodNumber; | ||
tokenOne: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenOne: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amountOne: z.ZodOptional<z.ZodString>; | ||
@@ -858,3 +1198,3 @@ amountTwo: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
contractAddress: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
tokenId: z.ZodOptional<z.ZodNumber>; | ||
@@ -898,7 +1238,7 @@ amount: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
contractAddress: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
recipient: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
recipient: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
@@ -948,3 +1288,3 @@ }, "strip", z.ZodTypeAny, { | ||
chainId: z.ZodNumber; | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
@@ -979,3 +1319,53 @@ support: z.ZodOptional<z.ZodBoolean>; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"follow">; | ||
data: z.ZodObject<{ | ||
target: z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>; | ||
project: z.ZodOptional<z.ZodUnion<[z.ZodString, ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
target: string; | ||
project?: string | undefined; | ||
}, { | ||
target: string; | ||
project?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "follow"; | ||
data: { | ||
target: string; | ||
project?: string | undefined; | ||
}; | ||
}, { | ||
type: "follow"; | ||
data: { | ||
target: string; | ||
project?: string | undefined; | ||
}; | ||
}>]>; | ||
export declare const ValidationParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"follow">; | ||
data: z.ZodObject<{ | ||
actor: ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
project: z.ZodOptional<ZodSchema<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}, { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "follow"; | ||
data: { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}; | ||
}, { | ||
type: "follow"; | ||
data: { | ||
actor: `0x${string}`; | ||
project?: `0x${string}` | undefined; | ||
}; | ||
}>]>; | ||
export type ValidationParams = z.infer<typeof ValidationParamsSchema>; | ||
export interface IActionPlugin { | ||
@@ -1002,3 +1392,37 @@ pluginId: string; | ||
}>; | ||
validate?: (validationPayload: PluginActionValidation) => Promise<QuestCompletionPayload | null> | Promise<PluginActionNotImplementedError>; | ||
validateFollow?: (actionP: FollowActionParams, validateP: FollowValidationParams) => Promise<boolean> | Promise<PluginActionNotImplementedError>; | ||
canValidate?: (actionType: ActionType) => boolean; | ||
} | ||
export type ActionValidation<ActorType, ActionPayload> = { | ||
actor: ActorType; | ||
payload: ActionPayload; | ||
}; | ||
export declare function ActionValidationSchema(actorSchema: ZodSchema, payloadSchema: ZodSchema): z.ZodObject<{ | ||
actor: ZodSchema<any, z.ZodTypeDef, any>; | ||
payload: ZodSchema<any, z.ZodTypeDef, any>; | ||
}, "strip", z.ZodTypeAny, { | ||
actor?: any; | ||
payload?: any; | ||
}, { | ||
actor?: any; | ||
payload?: any; | ||
}>; | ||
export type PluginActionPayload = { | ||
actionParams: z.infer<typeof ActionParamsSchema>; | ||
validationParams: z.infer<typeof ValidationParamsSchema>; | ||
questId: UUID; | ||
taskId: UUID; | ||
}; | ||
export type PluginActionValidation = ActionValidation<Address, PluginActionPayload>; | ||
export declare const PluginActionValidationSchema: z.ZodObject<{ | ||
actor: ZodSchema<any, z.ZodTypeDef, any>; | ||
payload: ZodSchema<any, z.ZodTypeDef, any>; | ||
}, "strip", z.ZodTypeAny, { | ||
actor?: any; | ||
payload?: any; | ||
}, { | ||
actor?: any; | ||
payload?: any; | ||
}>; | ||
export declare enum ActionType { | ||
@@ -1016,3 +1440,4 @@ Bridge = "bridge", | ||
Options = "options", | ||
Vote = "vote" | ||
Vote = "vote", | ||
Follow = "follow" | ||
} | ||
@@ -1019,0 +1444,0 @@ export declare enum OrderType { |
export type { IntentParams, MintIntentParams } from './intents'; | ||
export type { SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, MintActionParams, VoteActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, IActionPlugin, DisctriminatedActionParams, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, } from './actions'; | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, } from './actions'; | ||
export type { SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, MintActionParams, VoteActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, IActionPlugin, DisctriminatedActionParams, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, FollowActionParams, FollowValidationParams, FollowActionDetail, FollowActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, } from './actions'; | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, } from './actions'; | ||
export { EthAddressSchema, NetworkNameSchema, } from './common'; | ||
export { ActionType, OrderType } from './actions'; | ||
export type { FilterObject, BitmaskFilter, NthFilter, Filter, FilterArray, AbiFilter, AbstractAbiFilter, AbiParamFilter, ArrayOperator, LogicalOperator, NumericOperator, StringOperator, FilterOperator, TransactionFilter, } from './filters'; | ||
export type { Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, CreateQuestInput, QuestActionParamsByType, } from './quests'; | ||
export type { Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, CreateQuestInput, QuestActionParamsByType, QuestCompletionPayload, } from './quests'; | ||
export { GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, CreateQuestInputSchema, } from './quests'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@rabbitholegg/questdk-plugin-utils", | ||
"version": "1.0.0-alpha.19", | ||
"version": "1.0.0-alpha.20", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ "require": "./dist/cjs/index.js", |
@@ -27,2 +27,3 @@ export { | ||
ActionParams, | ||
FollowActionParams, | ||
IActionPlugin, | ||
@@ -68,2 +69,10 @@ FilterObject, | ||
QuestActionParamsByType, | ||
FollowValidationParams, | ||
FollowActionDetail, | ||
FollowActionForm, | ||
ValidationParams, | ||
ActionValidation, | ||
PluginActionPayload, | ||
PluginActionValidation, | ||
QuestCompletionPayload, | ||
} from './types' | ||
@@ -100,4 +109,11 @@ | ||
NetworkNameSchema, | ||
FollowActionFormSchema, | ||
FollowActionDetailSchema, | ||
FollowValidationParamsSchema, | ||
ActionParamsSchema, | ||
ValidationParamsSchema, | ||
ActionValidationSchema, | ||
PluginActionValidationSchema, | ||
} from './types' | ||
export { PluginActionNotImplementedError } from './errors' |
@@ -10,4 +10,6 @@ import { | ||
import type { MintIntentParams } from './intents' | ||
import { z } from 'zod' | ||
import { ZodSchema, z } from 'zod' | ||
import { EthAddressSchema } from './common' | ||
import { UUID } from 'crypto' | ||
import { QuestCompletionPayload } from './quests' | ||
@@ -98,2 +100,3 @@ export type SwapActionParams = { | ||
| VoteActionParams | ||
| FollowActionParams | ||
@@ -219,2 +222,33 @@ export type DisctriminatedActionParams = | ||
/* | ||
FOLLOW | ||
*/ | ||
export type FollowActionParams = { | ||
target: Address | string // Might want a more precise type here for FID? | ||
project?: Address | string | ||
} | ||
export const FollowValidationParamsSchema = z.object({ | ||
actor: EthAddressSchema, | ||
project: EthAddressSchema.optional(), | ||
}) | ||
export type FollowValidationParams = z.infer< | ||
typeof FollowValidationParamsSchema | ||
> | ||
export const FollowActionDetailSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]), | ||
project: z.union([z.string(), EthAddressSchema]).optional(), | ||
}) | ||
export type FollowActionDetail = z.infer<typeof FollowActionDetailSchema> | ||
export const FollowActionFormSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]), | ||
}) | ||
export type FollowActionForm = z.infer<typeof FollowActionFormSchema> | ||
/* | ||
VOTE | ||
*/ | ||
export const VoteActionFormSchema = z.object({ | ||
@@ -270,3 +304,3 @@ project: EthAddressSchema, | ||
export const QuestActionParamsSchema = z.discriminatedUnion('type', [ | ||
export const ActionParamsSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('bridge'), data: BridgeActionDetailSchema }), | ||
@@ -279,4 +313,13 @@ z.object({ type: z.literal('swap'), data: SwapActionDetailSchema }), | ||
z.object({ type: z.literal('vote'), data: VoteActionDetailSchema }), | ||
z.object({ type: z.literal('follow'), data: FollowActionDetailSchema }), | ||
]) | ||
export const QuestActionParamsSchema = ActionParamsSchema | ||
export const ValidationParamsSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('follow'), data: FollowValidationParamsSchema }), | ||
]) | ||
export type ValidationParams = z.infer<typeof ValidationParamsSchema> | ||
export interface IActionPlugin { | ||
@@ -333,4 +376,57 @@ pluginId: string | ||
) => Promise<{ actionFee: bigint; projectFee: bigint }> | ||
validate?: ( | ||
validationPayload: PluginActionValidation, | ||
) => | ||
| Promise<QuestCompletionPayload | null> | ||
| Promise<PluginActionNotImplementedError> | ||
validateFollow?: ( | ||
actionP: FollowActionParams, | ||
validateP: FollowValidationParams, | ||
) => Promise<boolean> | Promise<PluginActionNotImplementedError> | ||
canValidate?: (actionType: ActionType) => boolean | ||
} | ||
/* | ||
ACTION VALIDATION | ||
*/ | ||
export type ActionValidation<ActorType, ActionPayload> = { | ||
actor: ActorType | ||
payload: ActionPayload | ||
} | ||
export function ActionValidationSchema( | ||
actorSchema: ZodSchema, | ||
payloadSchema: ZodSchema, | ||
) { | ||
return z.object({ | ||
actor: actorSchema, | ||
payload: payloadSchema, | ||
}) | ||
} | ||
export type PluginActionPayload = { | ||
actionParams: z.infer<typeof ActionParamsSchema> | ||
validationParams: z.infer<typeof ValidationParamsSchema> | ||
questId: UUID | ||
taskId: UUID | ||
} | ||
export type PluginActionValidation = ActionValidation< | ||
Address, | ||
PluginActionPayload | ||
> | ||
export const PluginActionValidationSchema = ActionValidationSchema( | ||
z.string(), | ||
z.object({ | ||
actionParams: ActionParamsSchema, | ||
validationParams: ValidationParamsSchema, | ||
questId: z.string().uuid(), | ||
taskId: z.string().uuid(), | ||
}), | ||
) | ||
/* | ||
ENUM TYPES | ||
*/ | ||
export enum ActionType { | ||
@@ -349,2 +445,3 @@ Bridge = 'bridge', | ||
Vote = 'vote', | ||
Follow = 'follow', | ||
} | ||
@@ -351,0 +448,0 @@ |
@@ -28,2 +28,10 @@ export type { IntentParams, MintIntentParams } from './intents' | ||
ActionParamsForm, | ||
FollowActionParams, | ||
FollowValidationParams, | ||
FollowActionDetail, | ||
FollowActionForm, | ||
ValidationParams, | ||
ActionValidation, | ||
PluginActionPayload, | ||
PluginActionValidation, | ||
} from './actions' | ||
@@ -51,2 +59,9 @@ | ||
ActionParamsFormSchema, | ||
FollowActionFormSchema, | ||
FollowActionDetailSchema, | ||
FollowValidationParamsSchema, | ||
ActionParamsSchema, | ||
ValidationParamsSchema, | ||
ActionValidationSchema, | ||
PluginActionValidationSchema, | ||
} from './actions' | ||
@@ -90,2 +105,3 @@ | ||
QuestActionParamsByType, | ||
QuestCompletionPayload, | ||
} from './quests' | ||
@@ -92,0 +108,0 @@ |
import { z } from 'zod' | ||
import { EthAddressSchema, NetworkNameSchema } from './common' | ||
import { parseEther } from 'viem' | ||
import { Address, parseEther } from 'viem' | ||
import { ActionParamsFormSchema, QuestActionParamsSchema } from './actions' | ||
import { RewardTypeSchema } from './rewards' | ||
import { UUID } from 'crypto' | ||
const NetworkSchema = z.object({ | ||
@@ -249,1 +250,9 @@ name: z.string(), | ||
export type CreateQuestInput = z.infer<typeof CreateQuestInputSchema> | ||
export type QuestCompletionPayload = { | ||
address: Address | ||
questId: UUID | ||
taskId: UUID | ||
transactionHash?: string | ||
chainId?: number | ||
} |
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 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 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 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 not supported yet
3917790
28966