Appearance
Props Diamond SDK • Docs
Constructors
new HookMiner()
new HookMiner():
HookMiner
Returns
Properties
AFTER_ADD_LIQUIDITY_FLAG
readonlystaticAFTER_ADD_LIQUIDITY_FLAG:bigint
AFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG
readonlystaticAFTER_ADD_LIQUIDITY_RETURNS_DELTA_FLAG:bigint
AFTER_DONATE_FLAG
readonlystaticAFTER_DONATE_FLAG:bigint
AFTER_INITIALIZE_FLAG
readonlystaticAFTER_INITIALIZE_FLAG:bigint
AFTER_REMOVE_LIQUIDITY_FLAG
readonlystaticAFTER_REMOVE_LIQUIDITY_FLAG:bigint
AFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG
readonlystaticAFTER_REMOVE_LIQUIDITY_RETURNS_DELTA_FLAG:bigint
AFTER_SWAP_FLAG
readonlystaticAFTER_SWAP_FLAG:bigint
AFTER_SWAP_RETURNS_DELTA_FLAG
readonlystaticAFTER_SWAP_RETURNS_DELTA_FLAG:bigint
BEFORE_ADD_LIQUIDITY_FLAG
readonlystaticBEFORE_ADD_LIQUIDITY_FLAG:bigint
BEFORE_DONATE_FLAG
readonlystaticBEFORE_DONATE_FLAG:bigint
BEFORE_INITIALIZE_FLAG
readonlystaticBEFORE_INITIALIZE_FLAG:bigint
BEFORE_REMOVE_LIQUIDITY_FLAG
readonlystaticBEFORE_REMOVE_LIQUIDITY_FLAG:bigint
BEFORE_SWAP_FLAG
readonlystaticBEFORE_SWAP_FLAG:bigint
BEFORE_SWAP_RETURNS_DELTA_FLAG
readonlystaticBEFORE_SWAP_RETURNS_DELTA_FLAG:bigint
FLAG_MASK
readonlystaticFLAG_MASK:bigint
MAX_LOOP
readonlystaticMAX_LOOP:100000000=100_000_000
Methods
computeAddress()
staticcomputeAddress(factory,salt,bytecode,entropy):Promise<string>
Parameters
• factory: string
• salt: bigint
• bytecode: string
• entropy: Uint8Array<ArrayBufferLike> = ...
Returns
Promise<string>
find()
staticfind(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()
staticgetAllHookPermissionFlags():bigint
Returns
bigint