From f11669c2b9859a3bc5908eb8230e08ef5b179160 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Tue, 24 Sep 2024 15:33:37 -0600 Subject: [PATCH] chore(sdk, OpenAllowList): remove redundant static props --- .changeset/chatty-eagles-collect.md | 5 +++++ packages/sdk/src/AllowLists/OpenAllowList.ts | 22 +------------------- 2 files changed, 6 insertions(+), 21 deletions(-) create mode 100644 .changeset/chatty-eagles-collect.md diff --git a/.changeset/chatty-eagles-collect.md b/.changeset/chatty-eagles-collect.md new file mode 100644 index 00000000..09b36912 --- /dev/null +++ b/.changeset/chatty-eagles-collect.md @@ -0,0 +1,5 @@ +--- +"@boostxyz/sdk": minor +--- + +add `OpenAllowList`, for zero config allow list support diff --git a/packages/sdk/src/AllowLists/OpenAllowList.ts b/packages/sdk/src/AllowLists/OpenAllowList.ts index f60b32cb..6800a9e0 100644 --- a/packages/sdk/src/AllowLists/OpenAllowList.ts +++ b/packages/sdk/src/AllowLists/OpenAllowList.ts @@ -1,11 +1,10 @@ import { simpleDenyListAbi } from '@boostxyz/evm'; import { bytecode } from '@boostxyz/evm/artifacts/contracts/allowlists/SimpleDenyList.sol/SimpleDenyList.json'; -import { type Address, type Hex, zeroAddress } from 'viem'; +import { type Hex, zeroAddress } from 'viem'; import type { DeployableOptions, GenericDeployableParams, } from '../Deployable/Deployable'; -import { RegistryType } from '../utils'; import { SimpleDenyList, type SimpleDenyListPayload, @@ -23,25 +22,6 @@ export const openAllowListAbi = simpleDenyListAbi; * @extends {DeployableTarget} */ export class OpenAllowList extends SimpleDenyList { - public override readonly abi = openAllowListAbi; - /** - * @inheritdoc - * - * @public - * @static - * @type {Address} - */ - public static override base: Address = import.meta.env - .VITE_SIMPLE_DENYLIST_BASE; - /** - * @inheritdoc - * - * @public - * @static - * @type {RegistryType} - */ - public static override registryType: RegistryType = RegistryType.ALLOW_LIST; - /** * @inheritdoc *