Skip to content

Commit

Permalink
chore(sdk, OpenAllowList): remove redundant static props
Browse files Browse the repository at this point in the history
  • Loading branch information
sammccord committed Sep 26, 2024
1 parent 9f895bf commit f11669c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-eagles-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@boostxyz/sdk": minor
---

add `OpenAllowList`, for zero config allow list support
22 changes: 1 addition & 21 deletions packages/sdk/src/AllowLists/OpenAllowList.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -23,25 +22,6 @@ export const openAllowListAbi = simpleDenyListAbi;
* @extends {DeployableTarget<OpenAllowListPayload>}
*/
export class OpenAllowList extends SimpleDenyList<undefined> {
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
*
Expand Down

0 comments on commit f11669c

Please sign in to comment.