Search
Preparing search index...
The search index is not available
@webb-tools/protocol-solidity
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@webb-tools/protocol-solidity
Interfaces
IAnchor
Interface IAnchor
Hierarchy
IAnchor
Implemented by
Anchor
Anchors
.
VAnchor
Index
Properties
contract
denomination
deposit
History
latest
Synced
Block
signer
token
tree
Methods
bridged
Transact
bridged
Transact
Wrap
bridged
Withdraw
bridged
Withdraw
And
Unwrap
create
Resource
Id
deposit
get
Address
get
Handler
get
Handler
Proposal
Data
get
Max
Deposit
Limit
Proposal
Data
get
Merkle
Proof
get
Min
Withdrawal
Limit
Proposal
Data
get
Proposal
Data
set
Signer
setup
Withdraw
update
withdraw
wrap
And
Deposit
Properties
contract
contract
:
AnchorBase
Optional
denomination
denomination
?:
string
deposit
History
deposit
History
:
Record
<
number
,
string
>
latest
Synced
Block
latest
Synced
Block
:
number
signer
signer
:
Signer
Optional
token
token
?:
string
tree
tree
:
any
Methods
bridged
Transact
bridged
Transact
(
inputs
:
Utxo
[]
, outputs
:
Utxo
[]
, fee
:
BigNumberish
, recipient
:
string
, relayer
:
string
, merkleProofsForInputs
:
any
[]
)
:
Promise
<
ContractReceipt
>
Parameters
inputs:
Utxo
[]
outputs:
Utxo
[]
fee:
BigNumberish
recipient:
string
relayer:
string
merkleProofsForInputs:
any
[]
Returns
Promise
<
ContractReceipt
>
bridged
Transact
Wrap
bridged
Transact
Wrap
(
tokenAddress
:
string
, inputs
:
Utxo
[]
, outputs
:
Utxo
[]
, fee
:
BigNumberish
, recipient
:
string
, relayer
:
string
, merkleProofsForInputs
:
any
[]
)
:
Promise
<
ContractReceipt
>
Parameters
tokenAddress:
string
inputs:
Utxo
[]
outputs:
Utxo
[]
fee:
BigNumberish
recipient:
string
relayer:
string
merkleProofsForInputs:
any
[]
Returns
Promise
<
ContractReceipt
>
bridged
Withdraw
bridged
Withdraw
(
deposit
:
IAnchorDeposit
, merkleProof
:
any
, recipient
:
string
, relayer
:
string
, fee
:
string
, refund
:
string
, refreshCommitment
:
string
)
:
Promise
<
Event
>
Parameters
deposit:
IAnchorDeposit
merkleProof:
any
recipient:
string
relayer:
string
fee:
string
refund:
string
refreshCommitment:
string
Returns
Promise
<
Event
>
bridged
Withdraw
And
Unwrap
bridged
Withdraw
And
Unwrap
(
deposit
:
IAnchorDeposit
, merkleProof
:
any
, recipient
:
string
, relayer
:
string
, fee
:
string
, refund
:
string
, refreshCommitment
:
string
, tokenAddress
:
string
)
:
Promise
<
Event
>
Parameters
deposit:
IAnchorDeposit
merkleProof:
any
recipient:
string
relayer:
string
fee:
string
refund:
string
refreshCommitment:
string
tokenAddress:
string
Returns
Promise
<
Event
>
create
Resource
Id
create
Resource
Id
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
deposit
deposit
(
destinationChainId
:
number
)
:
Promise
<
IAnchorDeposit
>
Parameters
destinationChainId:
number
Returns
Promise
<
IAnchorDeposit
>
get
Address
get
Address
(
)
:
string
Returns
string
get
Handler
get
Handler
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Handler
Proposal
Data
get
Handler
Proposal
Data
(
newHandler
:
string
)
:
Promise
<
string
>
Parameters
newHandler:
string
Returns
Promise
<
string
>
get
Max
Deposit
Limit
Proposal
Data
get
Max
Deposit
Limit
Proposal
Data
(
_maximumDepositAmount
:
string
)
:
Promise
<
string
>
Parameters
_maximumDepositAmount:
string
Returns
Promise
<
string
>
get
Merkle
Proof
get
Merkle
Proof
(
input
:
Utxo
)
:
IMerkleProofData
Parameters
input:
Utxo
Returns
IMerkleProofData
get
Min
Withdrawal
Limit
Proposal
Data
get
Min
Withdrawal
Limit
Proposal
Data
(
_minimalWithdrawalAmount
:
string
)
:
Promise
<
string
>
Parameters
_minimalWithdrawalAmount:
string
Returns
Promise
<
string
>
get
Proposal
Data
get
Proposal
Data
(
resourceID
:
string
, leafIndex
?:
number
)
:
Promise
<
string
>
Parameters
resourceID:
string
Optional
leafIndex:
number
Returns
Promise
<
string
>
set
Signer
set
Signer
(
signer
:
Signer
)
:
any
Parameters
signer:
Signer
Returns
any
setup
Withdraw
setup
Withdraw
(
deposit
:
IAnchorDepositInfo
, index
:
number
, recipient
:
string
, relayer
:
string
, fee
:
bigint
, refreshCommitment
:
string
|
number
)
:
any
Parameters
deposit:
IAnchorDepositInfo
index:
number
recipient:
string
relayer:
string
fee:
bigint
refreshCommitment:
string
|
number
Returns
any
update
update
(
blockNumber
?:
number
)
:
Promise
<
void
>
Parameters
Optional
blockNumber:
number
Returns
Promise
<
void
>
withdraw
withdraw
(
deposit
:
IAnchorDepositInfo
, index
:
number
, recipient
:
string
, relayer
:
string
, fee
:
bigint
, refreshCommitment
:
string
|
number
)
:
Promise
<
Event
>
Parameters
deposit:
IAnchorDepositInfo
index:
number
recipient:
string
relayer:
string
fee:
bigint
refreshCommitment:
string
|
number
Returns
Promise
<
Event
>
wrap
And
Deposit
wrap
And
Deposit
(
tokenAddress
:
string
, wrappingFee
:
number
, destinationChainId
?:
number
)
:
Promise
<
IAnchorDeposit
>
Parameters
tokenAddress:
string
wrappingFee:
number
Optional
destinationChainId:
number
Returns
Promise
<
IAnchorDeposit
>
Exports
Anchors
Bridges
Contracts
Interfaces
Merkle
Tree
Tokens
Utility
VBridge
IAnchor
contract
denomination
deposit
History
latest
Synced
Block
signer
token
tree
bridged
Transact
bridged
Transact
Wrap
bridged
Withdraw
bridged
Withdraw
And
Unwrap
create
Resource
Id
deposit
get
Address
get
Handler
get
Handler
Proposal
Data
get
Max
Deposit
Limit
Proposal
Data
get
Merkle
Proof
get
Min
Withdrawal
Limit
Proposal
Data
get
Proposal
Data
set
Signer
setup
Withdraw
update
withdraw
wrap
And
Deposit
Generated using
TypeDoc