Protected
Readonly
_contractThis should not be used directly. Instead, the getter contract
should
be used to have the correct type of the wrapped contract.
Readonly
addressthe inner contract address
Readonly
chainOptional
Readonly
multicallThe Multicall
instance used by this entity.
Readonly
networkThe networkConnection
of this entity.
Static
BROADCAST_Static
Readonly
MAX_Static
Readonly
MIN_Static
Readonly
ONE_Static
Readonly
ONE_this._contract
but with the casted type.
PendleEntity#_contract
The config of this entity.
It can be used to pass as configuration for a new entity. It should be overridden in the subclass.
Merge user-defined parameters with the default parameters (from
getDefaultMetaMethodExtraParam()
) and return the result to use use in a
write method.
the type of the meta method, used to determine the correct return type of the write functions.
the user defined parameters
the merged parameters
Get the balance of an user, given the account
the account address of the user
Optional
params: MulticallStaticParamsthe additional parameters for read method.
the balance of the user
the set of parameters for an entity's write-method (that will do
a metaCall
). It should be overridden in the subclass.
Increase Lock position.
the type of the meta method. This should be infer by tsc
to
determine the correct return type. See
ERC20 contract interaction tutorial with Pendle SDK
to see the example usage with explanation.
Optional
params: MulticallStaticParams & { the additional parameters for write method.
When params
is not defined, or when params.method
is not defined, this
method will perform the transaction, and return
Promise<ethers.ContractTransaction>
.
Otherwise, params.method
's value is used to determine the return type.
See MetaMethodReturnType for the detailed explanation of the return type.
The sender
will be the one who has his lock position increased.
If params.broadcastChainIds are specified and non-empty, the
contract function increaseLockPositionAndBroadcast
is called,
otherwise increaseLockPosition
is called instead. Note that this also
affects the return type of the function, but the difference is minimal.
Increase Lock position.
the type of the meta method. This should be infer by tsc
to
determine the correct return type. See
ERC20 contract interaction tutorial with Pendle SDK
to see the example usage with explanation.
the additional parameters for write method.
When params
is not defined, or when params.method
is not defined, this
method will perform the transaction, and return
Promise<ethers.ContractTransaction>
.
Otherwise, params.method
's value is used to determine the return type.
See MetaMethodReturnType for the detailed explanation of the return type.
The sender
will be the one who has his lock position increased.
If params.broadcastChainIds are specified and non-empty, the
contract function increaseLockPositionAndBroadcast
is called,
otherwise increaseLockPosition
is called instead. Note that this also
affects the return type of the function, but the difference is minimal.
Get the user lock position.
the address of the user.
Optional
params: MulticallStaticParamsthe additional parameters for read method.
Simulate increase lock position
Optional
params: MulticallStaticParamsthe additional parameters for read method.
Get the current total supply of this VePendle token
Optional
params: MulticallStaticParamsthe additional parameters for read method.
Withdraw an expired lock position, get back all locked PENDLE
the type of the meta method. This should be infer by tsc
to
determine the correct return type. See
ERC20 contract interaction tutorial with Pendle SDK
to see the example usage with explanation.
the additional parameters for write method.
When params
is not defined, or when params.method
is not defined, this
method will perform the transaction, and return
Promise<ethers.ContractTransaction>
.
Otherwise, params.method
's value is used to determine the return type.
See MetaMethodReturnType for the detailed explanation of the return type.
The user that receives the locked PENDLED is the sender
.
Static
createCreate a VePendleMainchain object for a given the chainId.
Static
isGenerated using TypeDoc
The wrapped contract that the entity is holding.