Skip to content

Props Diamond SDKDocs


Constructors

new HookMiner()

new HookMiner(): HookMiner

Returns

HookMiner

Properties

AFTER_ADD_LIQUIDITY_FLAG

readonly static AFTER_ADD_LIQUIDITY_FLAG: bigint


AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG

readonly static AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG: bigint


AFTER_DONATE_FLAG

readonly static AFTER_DONATE_FLAG: bigint


AFTER_INITIALIZE_FLAG

readonly static AFTER_INITIALIZE_FLAG: bigint


AFTER_REMOVE_LIQUIDITY_FLAG

readonly static AFTER_REMOVE_LIQUIDITY_FLAG: bigint


AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG

readonly static AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG: bigint


AFTER_SWAP_FLAG

readonly static AFTER_SWAP_FLAG: bigint


AFTER_SWAP_RETURNS_DELTA_FLAG

readonly static AFTER_SWAP_RETURNS_DELTA_FLAG: bigint


BEFORE_ADD_LIQUIDITY_FLAG

readonly static BEFORE_ADD_LIQUIDITY_FLAG: bigint


BEFORE_DONATE_FLAG

readonly static BEFORE_DONATE_FLAG: bigint


BEFORE_INITIALIZE_FLAG

readonly static BEFORE_INITIALIZE_FLAG: bigint


BEFORE_REMOVE_LIQUIDITY_FLAG

readonly static BEFORE_REMOVE_LIQUIDITY_FLAG: bigint


BEFORE_SWAP_FLAG

readonly static BEFORE_SWAP_FLAG: bigint


BEFORE_SWAP_RETURNS_DELTA_FLAG

readonly static BEFORE_SWAP_RETURNS_DELTA_FLAG: bigint


FLAG_MASK

readonly static FLAG_MASK: bigint


MAX_LOOP

readonly static MAX_LOOP: 100000000 = 100_000_000

Methods

computeAddress()

static computeAddress(factory, salt, bytecode, entropy): Promise<string>

Parameters

factory: string

salt: bigint

bytecode: string

entropy: Uint8Array<ArrayBufferLike> = ...

Returns

Promise<string>


find()

static find(deployer, factory, flags, bytecode, implementation, entropy, startSalt): Promise<object>

Parameters

deployer: string

factory: string

flags: bigint

bytecode: string

implementation: string

entropy: Uint8Array<ArrayBufferLike> = ...

startSalt: bigint = ...

Returns

Promise<object>

entropy

entropy: Uint8Array<ArrayBufferLike>

hookAddress

hookAddress: string

salt

salt: bigint


getAllHookPermissionFlags()

static getAllHookPermissionFlags(): bigint

Returns

bigint