@rabbitholegg/questdk-plugin-utils
Advanced tools
Comparing version 1.0.0-alpha.12 to 1.0.0-alpha.13
# @rabbitholegg/questdk-plugin-utils | ||
## 1.0.0-alpha.13 | ||
### Minor Changes | ||
- [#236](https://github.com/rabbitholegg/questdk-plugins/pull/236) [`23a28603`](https://github.com/rabbitholegg/questdk-plugins/commit/23a28603c1c4f9892c9a18189df17647112397d1) Thanks [@Quazia](https://github.com/Quazia)! - Add more types/schemas and dynamic name generation for all mint plugins | ||
## 1.0.0-alpha.12 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PluginActionNotImplementedError = exports.OrderType = exports.ActionType = exports.chainIdToViemChain = exports.createTestCase = exports.BOOST_TREASURY_ADDRESS = exports.DEFAULT_ACCOUNT = exports.Chains = exports.CHAIN_TO_TOKENS = void 0; | ||
exports.PluginActionNotImplementedError = exports.NetworkNameSchema = exports.QuestActionParamsSchema = exports.EthAddressSchema = exports.CreateQuestInputSchema = exports.ActionParamsFormSchema = exports.OptionsActionDetailSchema = exports.OptionsActionFormSchema = exports.VoteActionDetailSchema = exports.VoteActionFormSchema = exports.MintActionDetailSchema = exports.MintActionFormSchema = exports.StakeActionFormSchema = exports.BaseStakeActionFormaSchema = exports.SwapActionFormSchema = exports.BridgeActionFormSchema = exports.StakeActionDetailSchema = exports.DelegateActionDetailSchema = exports.DelegateActionFormSchema = exports.SwapActionDetailSchema = exports.BridgeActionDetailSchema = exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum = exports.RewardWithClaimSchema = exports.QuestDetailsSchema = exports.NetworkWithChainIdSchema = exports.GetQuestsResponseSchema = exports.OrderType = exports.ActionType = exports.chainIdToViemChain = exports.createTestCase = exports.BOOST_TREASURY_ADDRESS = exports.DEFAULT_ACCOUNT = exports.Chains = exports.CHAIN_TO_TOKENS = void 0; | ||
var constants_1 = require("./constants"); | ||
@@ -15,4 +15,30 @@ Object.defineProperty(exports, "CHAIN_TO_TOKENS", { enumerable: true, get: function () { return constants_1.CHAIN_TO_TOKENS; } }); | ||
Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return types_1.OrderType; } }); | ||
Object.defineProperty(exports, "GetQuestsResponseSchema", { enumerable: true, get: function () { return types_1.GetQuestsResponseSchema; } }); | ||
Object.defineProperty(exports, "NetworkWithChainIdSchema", { enumerable: true, get: function () { return types_1.NetworkWithChainIdSchema; } }); | ||
Object.defineProperty(exports, "QuestDetailsSchema", { enumerable: true, get: function () { return types_1.QuestDetailsSchema; } }); | ||
Object.defineProperty(exports, "RewardWithClaimSchema", { enumerable: true, get: function () { return types_1.RewardWithClaimSchema; } }); | ||
Object.defineProperty(exports, "QuestInputActionParamsAmountOperatorEnum", { enumerable: true, get: function () { return types_1.QuestInputActionParamsAmountOperatorEnum; } }); | ||
Object.defineProperty(exports, "QuestInputActionParamsAmountOperatorWithoutAny", { enumerable: true, get: function () { return types_1.QuestInputActionParamsAmountOperatorWithoutAny; } }); | ||
Object.defineProperty(exports, "BridgeActionDetailSchema", { enumerable: true, get: function () { return types_1.BridgeActionDetailSchema; } }); | ||
Object.defineProperty(exports, "SwapActionDetailSchema", { enumerable: true, get: function () { return types_1.SwapActionDetailSchema; } }); | ||
Object.defineProperty(exports, "DelegateActionFormSchema", { enumerable: true, get: function () { return types_1.DelegateActionFormSchema; } }); | ||
Object.defineProperty(exports, "DelegateActionDetailSchema", { enumerable: true, get: function () { return types_1.DelegateActionDetailSchema; } }); | ||
Object.defineProperty(exports, "StakeActionDetailSchema", { enumerable: true, get: function () { return types_1.StakeActionDetailSchema; } }); | ||
Object.defineProperty(exports, "BridgeActionFormSchema", { enumerable: true, get: function () { return types_1.BridgeActionFormSchema; } }); | ||
Object.defineProperty(exports, "SwapActionFormSchema", { enumerable: true, get: function () { return types_1.SwapActionFormSchema; } }); | ||
Object.defineProperty(exports, "BaseStakeActionFormaSchema", { enumerable: true, get: function () { return types_1.BaseStakeActionFormaSchema; } }); | ||
Object.defineProperty(exports, "StakeActionFormSchema", { enumerable: true, get: function () { return types_1.StakeActionFormSchema; } }); | ||
Object.defineProperty(exports, "MintActionFormSchema", { enumerable: true, get: function () { return types_1.MintActionFormSchema; } }); | ||
Object.defineProperty(exports, "MintActionDetailSchema", { enumerable: true, get: function () { return types_1.MintActionDetailSchema; } }); | ||
Object.defineProperty(exports, "VoteActionFormSchema", { enumerable: true, get: function () { return types_1.VoteActionFormSchema; } }); | ||
Object.defineProperty(exports, "VoteActionDetailSchema", { enumerable: true, get: function () { return types_1.VoteActionDetailSchema; } }); | ||
Object.defineProperty(exports, "OptionsActionFormSchema", { enumerable: true, get: function () { return types_1.OptionsActionFormSchema; } }); | ||
Object.defineProperty(exports, "OptionsActionDetailSchema", { enumerable: true, get: function () { return types_1.OptionsActionDetailSchema; } }); | ||
Object.defineProperty(exports, "ActionParamsFormSchema", { enumerable: true, get: function () { return types_1.ActionParamsFormSchema; } }); | ||
Object.defineProperty(exports, "CreateQuestInputSchema", { enumerable: true, get: function () { return types_1.CreateQuestInputSchema; } }); | ||
Object.defineProperty(exports, "EthAddressSchema", { enumerable: true, get: function () { return types_1.EthAddressSchema; } }); | ||
Object.defineProperty(exports, "QuestActionParamsSchema", { enumerable: true, get: function () { return types_1.QuestActionParamsSchema; } }); | ||
Object.defineProperty(exports, "NetworkNameSchema", { enumerable: true, get: function () { return types_1.NetworkNameSchema; } }); | ||
var errors_1 = require("./errors"); | ||
Object.defineProperty(exports, "PluginActionNotImplementedError", { enumerable: true, get: function () { return errors_1.PluginActionNotImplementedError; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OrderType = exports.ActionType = void 0; | ||
exports.OrderType = exports.ActionType = exports.QuestActionParamsSchema = exports.ActionParamsFormSchema = exports.OptionsActionDetailSchema = exports.OptionsActionFormSchema = exports.VoteActionDetailSchema = exports.VoteActionFormSchema = exports.MintActionDetailSchema = exports.MintActionFormSchema = exports.StakeActionFormSchema = exports.BaseStakeActionFormaSchema = exports.SwapActionFormSchema = exports.BridgeActionFormSchema = exports.StakeActionDetailSchema = exports.DelegateActionDetailSchema = exports.DelegateActionFormSchema = exports.SwapActionDetailSchema = exports.BridgeActionDetailSchema = exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum = void 0; | ||
const zod_1 = require("zod"); | ||
const common_1 = require("./common"); | ||
exports.QuestInputActionParamsAmountOperatorEnum = zod_1.z.enum([ | ||
'any', | ||
'gt', | ||
'gte', | ||
'lt', | ||
'lte', | ||
'eq', | ||
]); | ||
exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum.exclude(['any']); | ||
exports.BridgeActionDetailSchema = zod_1.z.object({ | ||
sourceChainId: zod_1.z.number(), | ||
destinationChainId: zod_1.z.number(), | ||
tokenAddress: zod_1.z.string().optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.SwapActionDetailSchema = zod_1.z.object({ | ||
sourceChainId: zod_1.z.number().optional(), | ||
chainId: zod_1.z.number().optional(), | ||
sourceTokenAddress: common_1.EthAddressSchema.optional(), | ||
targetTokenAddress: common_1.EthAddressSchema.optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.DelegateActionFormSchema = zod_1.z.object({ | ||
delegate: common_1.EthAddressSchema.optional(), | ||
}); | ||
exports.DelegateActionDetailSchema = zod_1.z.object({ | ||
chainId: zod_1.z.number(), | ||
delegate: common_1.EthAddressSchema.optional(), | ||
}); | ||
exports.StakeActionDetailSchema = zod_1.z.object({ | ||
chainId: zod_1.z.number(), | ||
tokenOne: common_1.EthAddressSchema.optional(), | ||
tokenTwo: common_1.EthAddressSchema.optional(), | ||
amountOne: zod_1.z.string().optional(), | ||
amountTwo: zod_1.z.string().optional(), | ||
amountOneOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
amountTwoOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.BridgeActionFormSchema = zod_1.z.object({ | ||
destinationNetworkId: zod_1.z.string(), | ||
tokenAddress: common_1.EthAddressSchema.optional(), | ||
tokenDecimals: zod_1.z.number().optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.SwapActionFormSchema = zod_1.z.object({ | ||
sourceTokenAddress: common_1.EthAddressSchema.optional(), | ||
targetTokenAddress: common_1.EthAddressSchema.optional(), | ||
tokenDecimals: zod_1.z.number().optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.BaseStakeActionFormaSchema = zod_1.z.object({ | ||
tokenOne: common_1.EthAddressSchema.optional(), | ||
tokenOneDecimals: zod_1.z.number().optional(), | ||
amountOne: zod_1.z.string().optional(), | ||
amountOneOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
tokenTwo: common_1.EthAddressSchema.optional(), | ||
tokenTwoDecimals: zod_1.z.number().optional(), | ||
amountTwo: zod_1.z.string().optional(), | ||
amountTwoOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
duration: zod_1.z.number().optional(), | ||
}); | ||
exports.StakeActionFormSchema = exports.BaseStakeActionFormaSchema; | ||
exports.MintActionFormSchema = zod_1.z.object({ | ||
contractAddress: common_1.EthAddressSchema, | ||
tokenId: zod_1.z.number().optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.MintActionDetailSchema = zod_1.z.object({ | ||
chainId: zod_1.z.number(), | ||
contractAddress: common_1.EthAddressSchema, | ||
tokenId: zod_1.z.number().optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
exports.VoteActionFormSchema = zod_1.z.object({ | ||
project: common_1.EthAddressSchema, | ||
proposalId: zod_1.z.number().optional(), | ||
support: zod_1.z.boolean().optional(), | ||
}); | ||
exports.VoteActionDetailSchema = zod_1.z.object({ | ||
chainId: zod_1.z.number(), | ||
project: common_1.EthAddressSchema, | ||
proposalId: zod_1.z.number().optional(), | ||
support: zod_1.z.boolean().optional(), | ||
}); | ||
exports.OptionsActionFormSchema = zod_1.z.object({ | ||
contractAddress: common_1.EthAddressSchema.optional(), | ||
token: common_1.EthAddressSchema.optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: common_1.EthAddressSchema.optional(), | ||
orderType: zod_1.z.string().optional(), | ||
}); | ||
exports.OptionsActionDetailSchema = zod_1.z.object({ | ||
chainId: zod_1.z.number(), | ||
contractAddress: common_1.EthAddressSchema.optional(), | ||
token: common_1.EthAddressSchema.optional(), | ||
amount: zod_1.z.string().optional(), | ||
amountOperator: exports.QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: common_1.EthAddressSchema.optional(), | ||
orderType: zod_1.z.string().optional(), | ||
}); | ||
exports.ActionParamsFormSchema = zod_1.z.discriminatedUnion('type', [ | ||
zod_1.z.object({ type: zod_1.z.literal('bridge'), data: exports.BridgeActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('swap'), data: exports.SwapActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('stake'), data: exports.StakeActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('mint'), data: exports.MintActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('delegate'), data: exports.DelegateActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('options'), data: exports.OptionsActionFormSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('vote'), data: exports.VoteActionFormSchema }), | ||
]); | ||
exports.QuestActionParamsSchema = zod_1.z.discriminatedUnion('type', [ | ||
zod_1.z.object({ type: zod_1.z.literal('bridge'), data: exports.BridgeActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('swap'), data: exports.SwapActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('delegate'), data: exports.DelegateActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('stake'), data: exports.StakeActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('mint'), data: exports.MintActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('options'), data: exports.OptionsActionDetailSchema }), | ||
zod_1.z.object({ type: zod_1.z.literal('vote'), data: exports.VoteActionDetailSchema }), | ||
]); | ||
var ActionType; | ||
@@ -5,0 +132,0 @@ (function (ActionType) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OrderType = exports.ActionType = void 0; | ||
exports.CreateQuestInputSchema = exports.RewardWithClaimSchema = exports.QuestDetailsSchema = exports.NetworkWithChainIdSchema = exports.GetQuestsResponseSchema = exports.OrderType = exports.ActionType = exports.NetworkNameSchema = exports.EthAddressSchema = exports.ActionParamsFormSchema = exports.OptionsActionDetailSchema = exports.OptionsActionFormSchema = exports.VoteActionDetailSchema = exports.VoteActionFormSchema = exports.MintActionDetailSchema = exports.MintActionFormSchema = exports.StakeActionFormSchema = exports.BaseStakeActionFormaSchema = exports.SwapActionFormSchema = exports.BridgeActionFormSchema = exports.StakeActionDetailSchema = exports.DelegateActionDetailSchema = exports.DelegateActionFormSchema = exports.SwapActionDetailSchema = exports.BridgeActionDetailSchema = exports.QuestInputActionParamsAmountOperatorWithoutAny = exports.QuestInputActionParamsAmountOperatorEnum = exports.QuestActionParamsSchema = void 0; | ||
var actions_1 = require("./actions"); | ||
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return actions_1.ActionType; } }); | ||
Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return actions_1.OrderType; } }); | ||
Object.defineProperty(exports, "QuestActionParamsSchema", { enumerable: true, get: function () { return actions_1.QuestActionParamsSchema; } }); | ||
Object.defineProperty(exports, "QuestInputActionParamsAmountOperatorEnum", { enumerable: true, get: function () { return actions_1.QuestInputActionParamsAmountOperatorEnum; } }); | ||
Object.defineProperty(exports, "QuestInputActionParamsAmountOperatorWithoutAny", { enumerable: true, get: function () { return actions_1.QuestInputActionParamsAmountOperatorWithoutAny; } }); | ||
Object.defineProperty(exports, "BridgeActionDetailSchema", { enumerable: true, get: function () { return actions_1.BridgeActionDetailSchema; } }); | ||
Object.defineProperty(exports, "SwapActionDetailSchema", { enumerable: true, get: function () { return actions_1.SwapActionDetailSchema; } }); | ||
Object.defineProperty(exports, "DelegateActionFormSchema", { enumerable: true, get: function () { return actions_1.DelegateActionFormSchema; } }); | ||
Object.defineProperty(exports, "DelegateActionDetailSchema", { enumerable: true, get: function () { return actions_1.DelegateActionDetailSchema; } }); | ||
Object.defineProperty(exports, "StakeActionDetailSchema", { enumerable: true, get: function () { return actions_1.StakeActionDetailSchema; } }); | ||
Object.defineProperty(exports, "BridgeActionFormSchema", { enumerable: true, get: function () { return actions_1.BridgeActionFormSchema; } }); | ||
Object.defineProperty(exports, "SwapActionFormSchema", { enumerable: true, get: function () { return actions_1.SwapActionFormSchema; } }); | ||
Object.defineProperty(exports, "BaseStakeActionFormaSchema", { enumerable: true, get: function () { return actions_1.BaseStakeActionFormaSchema; } }); | ||
Object.defineProperty(exports, "StakeActionFormSchema", { enumerable: true, get: function () { return actions_1.StakeActionFormSchema; } }); | ||
Object.defineProperty(exports, "MintActionFormSchema", { enumerable: true, get: function () { return actions_1.MintActionFormSchema; } }); | ||
Object.defineProperty(exports, "MintActionDetailSchema", { enumerable: true, get: function () { return actions_1.MintActionDetailSchema; } }); | ||
Object.defineProperty(exports, "VoteActionFormSchema", { enumerable: true, get: function () { return actions_1.VoteActionFormSchema; } }); | ||
Object.defineProperty(exports, "VoteActionDetailSchema", { enumerable: true, get: function () { return actions_1.VoteActionDetailSchema; } }); | ||
Object.defineProperty(exports, "OptionsActionFormSchema", { enumerable: true, get: function () { return actions_1.OptionsActionFormSchema; } }); | ||
Object.defineProperty(exports, "OptionsActionDetailSchema", { enumerable: true, get: function () { return actions_1.OptionsActionDetailSchema; } }); | ||
Object.defineProperty(exports, "ActionParamsFormSchema", { enumerable: true, get: function () { return actions_1.ActionParamsFormSchema; } }); | ||
var common_1 = require("./common"); | ||
Object.defineProperty(exports, "EthAddressSchema", { enumerable: true, get: function () { return common_1.EthAddressSchema; } }); | ||
Object.defineProperty(exports, "NetworkNameSchema", { enumerable: true, get: function () { return common_1.NetworkNameSchema; } }); | ||
var actions_2 = require("./actions"); | ||
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return actions_2.ActionType; } }); | ||
Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return actions_2.OrderType; } }); | ||
var quests_1 = require("./quests"); | ||
Object.defineProperty(exports, "GetQuestsResponseSchema", { enumerable: true, get: function () { return quests_1.GetQuestsResponseSchema; } }); | ||
Object.defineProperty(exports, "NetworkWithChainIdSchema", { enumerable: true, get: function () { return quests_1.NetworkWithChainIdSchema; } }); | ||
Object.defineProperty(exports, "QuestDetailsSchema", { enumerable: true, get: function () { return quests_1.QuestDetailsSchema; } }); | ||
Object.defineProperty(exports, "RewardWithClaimSchema", { enumerable: true, get: function () { return quests_1.RewardWithClaimSchema; } }); | ||
Object.defineProperty(exports, "CreateQuestInputSchema", { enumerable: true, get: function () { return quests_1.CreateQuestInputSchema; } }); | ||
//# sourceMappingURL=index.js.map |
export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS, } from './constants'; | ||
export { createTestCase, chainIdToViemChain, } from './helpers'; | ||
export { ActionType, OrderType, } 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 { PluginActionNotImplementedError } from './errors'; | ||
//# sourceMappingURL=index.js.map |
import {} from 'viem'; | ||
import { PluginActionNotImplementedError } from '../errors'; | ||
import {} from 'viem'; | ||
import { z } from 'zod'; | ||
import { EthAddressSchema } from './common'; | ||
export const QuestInputActionParamsAmountOperatorEnum = z.enum([ | ||
'any', | ||
'gt', | ||
'gte', | ||
'lt', | ||
'lte', | ||
'eq', | ||
]); | ||
export const QuestInputActionParamsAmountOperatorWithoutAny = QuestInputActionParamsAmountOperatorEnum.exclude(['any']); | ||
export const BridgeActionDetailSchema = z.object({ | ||
sourceChainId: z.number(), | ||
destinationChainId: z.number(), | ||
tokenAddress: z.string().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const SwapActionDetailSchema = z.object({ | ||
sourceChainId: z.number().optional(), | ||
chainId: z.number().optional(), | ||
sourceTokenAddress: EthAddressSchema.optional(), | ||
targetTokenAddress: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const DelegateActionFormSchema = z.object({ | ||
delegate: EthAddressSchema.optional(), | ||
}); | ||
export const DelegateActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
delegate: EthAddressSchema.optional(), | ||
}); | ||
export const StakeActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
tokenOne: EthAddressSchema.optional(), | ||
tokenTwo: EthAddressSchema.optional(), | ||
amountOne: z.string().optional(), | ||
amountTwo: z.string().optional(), | ||
amountOneOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
amountTwoOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const BridgeActionFormSchema = z.object({ | ||
destinationNetworkId: z.string(), | ||
tokenAddress: EthAddressSchema.optional(), | ||
tokenDecimals: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const SwapActionFormSchema = z.object({ | ||
sourceTokenAddress: EthAddressSchema.optional(), | ||
targetTokenAddress: EthAddressSchema.optional(), | ||
tokenDecimals: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const BaseStakeActionFormaSchema = z.object({ | ||
tokenOne: EthAddressSchema.optional(), | ||
tokenOneDecimals: z.number().optional(), | ||
amountOne: z.string().optional(), | ||
amountOneOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
tokenTwo: EthAddressSchema.optional(), | ||
tokenTwoDecimals: z.number().optional(), | ||
amountTwo: z.string().optional(), | ||
amountTwoOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
duration: z.number().optional(), | ||
}); | ||
export const StakeActionFormSchema = BaseStakeActionFormaSchema; | ||
export const MintActionFormSchema = z.object({ | ||
contractAddress: EthAddressSchema, | ||
tokenId: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const MintActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
contractAddress: EthAddressSchema, | ||
tokenId: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}); | ||
export const VoteActionFormSchema = z.object({ | ||
project: EthAddressSchema, | ||
proposalId: z.number().optional(), | ||
support: z.boolean().optional(), | ||
}); | ||
export const VoteActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
project: EthAddressSchema, | ||
proposalId: z.number().optional(), | ||
support: z.boolean().optional(), | ||
}); | ||
export const OptionsActionFormSchema = z.object({ | ||
contractAddress: EthAddressSchema.optional(), | ||
token: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: EthAddressSchema.optional(), | ||
orderType: z.string().optional(), | ||
}); | ||
export const OptionsActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
contractAddress: EthAddressSchema.optional(), | ||
token: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: EthAddressSchema.optional(), | ||
orderType: z.string().optional(), | ||
}); | ||
export const ActionParamsFormSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('bridge'), data: BridgeActionFormSchema }), | ||
z.object({ type: z.literal('swap'), data: SwapActionFormSchema }), | ||
z.object({ type: z.literal('stake'), data: StakeActionFormSchema }), | ||
z.object({ type: z.literal('mint'), data: MintActionFormSchema }), | ||
z.object({ type: z.literal('delegate'), data: DelegateActionFormSchema }), | ||
z.object({ type: z.literal('options'), data: OptionsActionFormSchema }), | ||
z.object({ type: z.literal('vote'), data: VoteActionFormSchema }), | ||
]); | ||
export const QuestActionParamsSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('bridge'), data: BridgeActionDetailSchema }), | ||
z.object({ type: z.literal('swap'), data: SwapActionDetailSchema }), | ||
z.object({ type: z.literal('delegate'), data: DelegateActionDetailSchema }), | ||
z.object({ type: z.literal('stake'), data: StakeActionDetailSchema }), | ||
z.object({ type: z.literal('mint'), data: MintActionDetailSchema }), | ||
z.object({ type: z.literal('options'), data: OptionsActionDetailSchema }), | ||
z.object({ type: z.literal('vote'), data: VoteActionDetailSchema }), | ||
]); | ||
export var ActionType; | ||
@@ -5,0 +131,0 @@ (function (ActionType) { |
@@ -0,2 +1,5 @@ | ||
export { QuestActionParamsSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, } from './actions'; | ||
export { EthAddressSchema, NetworkNameSchema, } from './common'; | ||
export { ActionType, OrderType } from './actions'; | ||
export { GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, CreateQuestInputSchema, } from './quests'; | ||
//# sourceMappingURL=index.js.map |
export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS, } from './constants'; | ||
export { createTestCase, type TestCase, type TestParams, 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, } from './types'; | ||
export { ActionType, OrderType, } from './types'; | ||
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 { PluginActionNotImplementedError } from './errors'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { type PublicClient, type SimulateContractReturnType, type TransactionRequest } from 'viem'; | ||
import { type PublicClient, type Address, type SimulateContractReturnType, type TransactionRequest } from 'viem'; | ||
import type { FilterOperator, TransactionFilter } from './filters'; | ||
import { PluginActionNotImplementedError } from '../errors'; | ||
import { type Address } from 'viem'; | ||
import type { MintIntentParams } from './intents'; | ||
import { z } from 'zod'; | ||
export type SwapActionParams = { | ||
@@ -73,2 +73,879 @@ chainId: number; | ||
export type ActionParams = SwapActionParams | StakeActionParams | BridgeActionParams | MintActionParams | DelegateActionParams | QuestActionParams | OptionsActionParams | VoteActionParams; | ||
export type DisctriminatedActionParams = { | ||
type: ActionType.Swap; | ||
data: SwapActionParams; | ||
} | { | ||
type: ActionType.Stake; | ||
data: StakeActionParams; | ||
} | { | ||
type: ActionType.Bridge; | ||
data: BridgeActionParams; | ||
} | { | ||
type: ActionType.Mint; | ||
data: MintActionParams; | ||
} | { | ||
type: ActionType.Delegate; | ||
data: DelegateActionParams; | ||
} | { | ||
type: ActionType.Quest; | ||
data: QuestActionParams; | ||
} | { | ||
type: ActionType.Options; | ||
data: OptionsActionParams; | ||
} | { | ||
type: ActionType.Vote; | ||
data: VoteActionParams; | ||
}; | ||
export declare const QuestInputActionParamsAmountOperatorEnum: z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>; | ||
export declare const QuestInputActionParamsAmountOperatorWithoutAny: z.ZodEnum<["gt", "gte", "lt", "lte", "eq"]>; | ||
export type QuestInputActionParamsAmountOperator = z.infer<typeof QuestInputActionParamsAmountOperatorEnum>; | ||
export declare const BridgeActionDetailSchema: 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; | ||
}>; | ||
export type BridgeActionDetail = z.infer<typeof BridgeActionDetailSchema>; | ||
export declare const SwapActionDetailSchema: z.ZodObject<{ | ||
sourceChainId: z.ZodOptional<z.ZodNumber>; | ||
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}`>>; | ||
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; | ||
}>; | ||
export type SwapActionDetail = z.infer<typeof SwapActionDetailSchema>; | ||
export declare const DelegateActionFormSchema: z.ZodObject<{ | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
delegate?: `0x${string}` | undefined; | ||
}, { | ||
delegate?: `0x${string}` | undefined; | ||
}>; | ||
export declare const DelegateActionDetailSchema: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}, { | ||
chainId: number; | ||
delegate?: `0x${string}` | undefined; | ||
}>; | ||
export type DelegateActionDetail = z.infer<typeof DelegateActionDetailSchema>; | ||
export type DelegateActionForm = z.infer<typeof DelegateActionFormSchema>; | ||
export declare const StakeActionDetailSchema: z.ZodObject<{ | ||
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}`>>; | ||
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; | ||
}>; | ||
export type StakeActionDetail = z.infer<typeof StakeActionDetailSchema>; | ||
export declare const BridgeActionFormSchema: z.ZodObject<{ | ||
destinationNetworkId: z.ZodString; | ||
tokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
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}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
export declare const BaseStakeActionFormaSchema: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`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}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountTwo: z.ZodOptional<z.ZodString>; | ||
amountTwoOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
duration: z.ZodOptional<z.ZodNumber>; | ||
}, "strip", z.ZodTypeAny, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}>; | ||
export declare const StakeActionFormSchema: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`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}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountTwo: z.ZodOptional<z.ZodString>; | ||
amountTwoOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
duration: z.ZodOptional<z.ZodNumber>; | ||
}, "strip", z.ZodTypeAny, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}>; | ||
export declare const MintActionFormSchema: z.ZodObject<{ | ||
contractAddress: z.ZodType<`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, { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
export declare const MintActionDetailSchema: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
contractAddress: z.ZodType<`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; | ||
}>; | ||
export type MintActionDetail = z.infer<typeof MintActionDetailSchema>; | ||
export type MintActionForm = z.infer<typeof MintActionFormSchema>; | ||
export declare const VoteActionFormSchema: z.ZodObject<{ | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
support: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}, { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}>; | ||
export declare const VoteActionDetailSchema: z.ZodObject<{ | ||
chainId: z.ZodNumber; | ||
project: z.ZodType<`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; | ||
}>; | ||
export type VoteActionDetail = z.infer<typeof VoteActionDetailSchema>; | ||
export type VoteActionForm = z.infer<typeof VoteActionFormSchema>; | ||
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}`>>; | ||
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}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
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; | ||
}, { | ||
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; | ||
}>; | ||
export declare const OptionsActionDetailSchema: z.ZodObject<{ | ||
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}`>>; | ||
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}`>>; | ||
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; | ||
}>; | ||
export type OptionsActionDetail = z.infer<typeof OptionsActionDetailSchema>; | ||
export type OptionsActionForm = z.infer<typeof OptionsActionFormSchema>; | ||
export declare const ActionParamsFormSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"bridge">; | ||
data: z.ZodObject<{ | ||
destinationNetworkId: z.ZodString; | ||
tokenAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "bridge"; | ||
data: { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "bridge"; | ||
data: { | ||
destinationNetworkId: string; | ||
tokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"swap">; | ||
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}`>>; | ||
tokenDecimals: z.ZodOptional<z.ZodNumber>; | ||
amount: z.ZodOptional<z.ZodString>; | ||
amountOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "swap"; | ||
data: { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "swap"; | ||
data: { | ||
sourceTokenAddress?: `0x${string}` | undefined; | ||
targetTokenAddress?: `0x${string}` | undefined; | ||
tokenDecimals?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"stake">; | ||
data: z.ZodObject<{ | ||
tokenOne: z.ZodOptional<z.ZodType<`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}`>>; | ||
tokenTwoDecimals: z.ZodOptional<z.ZodNumber>; | ||
amountTwo: z.ZodOptional<z.ZodString>; | ||
amountTwoOperator: z.ZodOptional<z.ZodEnum<["any", "gt", "gte", "lt", "lte", "eq"]>>; | ||
duration: z.ZodOptional<z.ZodNumber>; | ||
}, "strip", z.ZodTypeAny, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}, { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "stake"; | ||
data: { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}; | ||
}, { | ||
type: "stake"; | ||
data: { | ||
tokenOne?: `0x${string}` | undefined; | ||
tokenOneDecimals?: number | undefined; | ||
amountOne?: string | undefined; | ||
amountOneOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
tokenTwo?: `0x${string}` | undefined; | ||
tokenTwoDecimals?: number | undefined; | ||
amountTwo?: string | undefined; | ||
amountTwoOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
duration?: number | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"mint">; | ||
data: z.ZodObject<{ | ||
contractAddress: z.ZodType<`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, { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}, { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "mint"; | ||
data: { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}, { | ||
type: "mint"; | ||
data: { | ||
contractAddress: `0x${string}`; | ||
tokenId?: number | undefined; | ||
amount?: string | undefined; | ||
amountOperator?: "any" | "gt" | "gte" | "lt" | "lte" | "eq" | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"delegate">; | ||
data: z.ZodObject<{ | ||
delegate: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
}, "strip", z.ZodTypeAny, { | ||
delegate?: `0x${string}` | undefined; | ||
}, { | ||
delegate?: `0x${string}` | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "delegate"; | ||
data: { | ||
delegate?: `0x${string}` | undefined; | ||
}; | ||
}, { | ||
type: "delegate"; | ||
data: { | ||
delegate?: `0x${string}` | undefined; | ||
}; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"options">; | ||
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}`>>; | ||
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}`>>; | ||
orderType: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
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; | ||
}, { | ||
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: { | ||
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: { | ||
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<{ | ||
project: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; | ||
proposalId: z.ZodOptional<z.ZodNumber>; | ||
support: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}, { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "vote"; | ||
data: { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}; | ||
}, { | ||
type: "vote"; | ||
data: { | ||
project: `0x${string}`; | ||
proposalId?: number | undefined; | ||
support?: boolean | undefined; | ||
}; | ||
}>]>; | ||
export type ActionParamsForm = z.infer<typeof ActionParamsFormSchema>; | ||
export declare const QuestActionParamsSchema: 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<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
targetTokenAddress: z.ZodOptional<z.ZodType<`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<z.ZodType<`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<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
tokenTwo: z.ZodOptional<z.ZodType<`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: z.ZodType<`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<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>; | ||
token: z.ZodOptional<z.ZodType<`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}`>>; | ||
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: z.ZodType<`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; | ||
}; | ||
}>]>; | ||
export interface IActionPlugin { | ||
@@ -88,2 +965,3 @@ pluginId: string; | ||
getMintIntent?: (mint: MintIntentParams) => Promise<TransactionRequest> | Promise<PluginActionNotImplementedError>; | ||
getDynamicNameParams?: (params: DisctriminatedActionParams, metadata: Record<string, unknown>) => Promise<Record<string, unknown>>; | ||
simulateMint?: (mint: MintIntentParams, value: bigint, account?: Address, client?: PublicClient) => Promise<SimulateContractReturnType>; | ||
@@ -90,0 +968,0 @@ getProjectFees?: (params: ActionParams) => Promise<bigint>; |
export type { IntentParams, MintIntentParams } from './intents'; | ||
export type { SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, MintActionParams, VoteActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, IActionPlugin, } 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, } 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 { 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.js'; | ||
export type { Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, CreateQuestInput, QuestActionParamsByType, } 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.12", | ||
"version": "1.0.0-alpha.13", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ "require": "./dist/cjs/index.js", |
@@ -41,2 +41,27 @@ export { | ||
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' | ||
@@ -47,4 +72,30 @@ | ||
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 { PluginActionNotImplementedError } from './errors' |
import { | ||
type PublicClient, | ||
type Address, | ||
type SimulateContractReturnType, | ||
@@ -8,4 +9,5 @@ type TransactionRequest, | ||
import { PluginActionNotImplementedError } from '../errors' | ||
import { type Address } from 'viem' | ||
import type { MintIntentParams } from './intents' | ||
import { z } from 'zod' | ||
import { EthAddressSchema } from './common' | ||
@@ -96,2 +98,182 @@ export type SwapActionParams = { | ||
| VoteActionParams | ||
export type DisctriminatedActionParams = | ||
| { type: ActionType.Swap; data: SwapActionParams } | ||
| { type: ActionType.Stake; data: StakeActionParams } | ||
| { type: ActionType.Bridge; data: BridgeActionParams } | ||
| { type: ActionType.Mint; data: MintActionParams } | ||
| { type: ActionType.Delegate; data: DelegateActionParams } | ||
| { type: ActionType.Quest; data: QuestActionParams } | ||
| { type: ActionType.Options; data: OptionsActionParams } | ||
| { type: ActionType.Vote; data: VoteActionParams } | ||
export const QuestInputActionParamsAmountOperatorEnum = z.enum([ | ||
'any', | ||
'gt', | ||
'gte', | ||
'lt', | ||
'lte', | ||
'eq', | ||
]) | ||
export const QuestInputActionParamsAmountOperatorWithoutAny = | ||
QuestInputActionParamsAmountOperatorEnum.exclude(['any']) | ||
export type QuestInputActionParamsAmountOperator = z.infer< | ||
typeof QuestInputActionParamsAmountOperatorEnum | ||
> | ||
export const BridgeActionDetailSchema = z.object({ | ||
sourceChainId: z.number(), | ||
destinationChainId: z.number(), | ||
tokenAddress: z.string().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export type BridgeActionDetail = z.infer<typeof BridgeActionDetailSchema> | ||
export const SwapActionDetailSchema = z.object({ | ||
sourceChainId: z.number().optional(), | ||
chainId: z.number().optional(), | ||
sourceTokenAddress: EthAddressSchema.optional(), | ||
targetTokenAddress: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export type SwapActionDetail = z.infer<typeof SwapActionDetailSchema> | ||
export const DelegateActionFormSchema = z.object({ | ||
delegate: EthAddressSchema.optional(), | ||
}) | ||
export const DelegateActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
delegate: EthAddressSchema.optional(), | ||
}) | ||
export type DelegateActionDetail = z.infer<typeof DelegateActionDetailSchema> | ||
export type DelegateActionForm = z.infer<typeof DelegateActionFormSchema> | ||
export const StakeActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
tokenOne: EthAddressSchema.optional(), | ||
tokenTwo: EthAddressSchema.optional(), | ||
amountOne: z.string().optional(), | ||
amountTwo: z.string().optional(), | ||
amountOneOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
amountTwoOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export type StakeActionDetail = z.infer<typeof StakeActionDetailSchema> | ||
export const BridgeActionFormSchema = z.object({ | ||
destinationNetworkId: z.string(), | ||
tokenAddress: EthAddressSchema.optional(), | ||
tokenDecimals: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export const SwapActionFormSchema = z.object({ | ||
sourceTokenAddress: EthAddressSchema.optional(), | ||
targetTokenAddress: EthAddressSchema.optional(), | ||
tokenDecimals: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export const BaseStakeActionFormaSchema = z.object({ | ||
tokenOne: EthAddressSchema.optional(), | ||
tokenOneDecimals: z.number().optional(), | ||
amountOne: z.string().optional(), | ||
amountOneOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
tokenTwo: EthAddressSchema.optional(), | ||
tokenTwoDecimals: z.number().optional(), | ||
amountTwo: z.string().optional(), | ||
amountTwoOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
duration: z.number().optional(), | ||
}) | ||
export const StakeActionFormSchema = BaseStakeActionFormaSchema | ||
export const MintActionFormSchema = z.object({ | ||
contractAddress: EthAddressSchema, | ||
tokenId: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export const MintActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
contractAddress: EthAddressSchema, | ||
tokenId: z.number().optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export type MintActionDetail = z.infer<typeof MintActionDetailSchema> | ||
export type MintActionForm = z.infer<typeof MintActionFormSchema> | ||
export const VoteActionFormSchema = z.object({ | ||
project: EthAddressSchema, | ||
proposalId: z.number().optional(), | ||
support: z.boolean().optional(), | ||
}) | ||
export const VoteActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
project: EthAddressSchema, | ||
proposalId: z.number().optional(), | ||
support: z.boolean().optional(), | ||
}) | ||
export type VoteActionDetail = z.infer<typeof VoteActionDetailSchema> | ||
export type VoteActionForm = z.infer<typeof VoteActionFormSchema> | ||
export const OptionsActionFormSchema = z.object({ | ||
contractAddress: EthAddressSchema.optional(), | ||
token: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: EthAddressSchema.optional(), | ||
orderType: z.string().optional(), | ||
}) | ||
export const OptionsActionDetailSchema = z.object({ | ||
chainId: z.number(), | ||
contractAddress: EthAddressSchema.optional(), | ||
token: EthAddressSchema.optional(), | ||
amount: z.string().optional(), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
recipient: EthAddressSchema.optional(), | ||
orderType: z.string().optional(), | ||
}) | ||
export type OptionsActionDetail = z.infer<typeof OptionsActionDetailSchema> | ||
export type OptionsActionForm = z.infer<typeof OptionsActionFormSchema> | ||
export const ActionParamsFormSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('bridge'), data: BridgeActionFormSchema }), | ||
z.object({ type: z.literal('swap'), data: SwapActionFormSchema }), | ||
z.object({ type: z.literal('stake'), data: StakeActionFormSchema }), | ||
z.object({ type: z.literal('mint'), data: MintActionFormSchema }), | ||
z.object({ type: z.literal('delegate'), data: DelegateActionFormSchema }), | ||
z.object({ type: z.literal('options'), data: OptionsActionFormSchema }), | ||
z.object({ type: z.literal('vote'), data: VoteActionFormSchema }), | ||
]) | ||
export type ActionParamsForm = z.infer<typeof ActionParamsFormSchema> | ||
export const QuestActionParamsSchema = z.discriminatedUnion('type', [ | ||
z.object({ type: z.literal('bridge'), data: BridgeActionDetailSchema }), | ||
z.object({ type: z.literal('swap'), data: SwapActionDetailSchema }), | ||
z.object({ type: z.literal('delegate'), data: DelegateActionDetailSchema }), | ||
z.object({ type: z.literal('stake'), data: StakeActionDetailSchema }), | ||
z.object({ type: z.literal('mint'), data: MintActionDetailSchema }), | ||
z.object({ type: z.literal('options'), data: OptionsActionDetailSchema }), | ||
z.object({ type: z.literal('vote'), data: VoteActionDetailSchema }), | ||
]) | ||
export interface IActionPlugin { | ||
@@ -134,2 +316,6 @@ pluginId: string | ||
) => Promise<TransactionRequest> | Promise<PluginActionNotImplementedError> | ||
getDynamicNameParams?: ( | ||
params: DisctriminatedActionParams, | ||
metadata: Record<string, unknown>, | ||
) => Promise<Record<string, unknown>> | ||
simulateMint?: ( | ||
@@ -136,0 +322,0 @@ mint: MintIntentParams, |
@@ -14,4 +14,45 @@ export type { IntentParams, MintIntentParams } from './intents' | ||
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 { | ||
EthAddressSchema, | ||
NetworkNameSchema, | ||
} from './common' | ||
export { ActionType, OrderType } from './actions' | ||
@@ -35,1 +76,23 @@ | ||
} from './filters.js' | ||
export type { | ||
Quest, | ||
QuestReward, | ||
QuestAndReward, | ||
RewardType, | ||
NetworkWithChainId, | ||
Reward, | ||
Task, | ||
QuestDetails, | ||
RewardWithClaim, | ||
CreateQuestInput, | ||
QuestActionParamsByType, | ||
} from './quests' | ||
export { | ||
GetQuestsResponseSchema, | ||
NetworkWithChainIdSchema, | ||
QuestDetailsSchema, | ||
RewardWithClaimSchema, | ||
CreateQuestInputSchema, | ||
} from './quests' |
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 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
1166707
152
10657