Preparing search index...
The search index is not available
handle-sdk
handle-sdk
CollateralsSDK
Class CollateralsSDK
Hierarchy
CollateralsSDK
Index
Constructors
constructor
Properties
config
graph
tokens
Methods
find
Available
get
Collateral
get
Collateral
Contract
get
Collateral
Multicall
get
Collaterals
get
Deposit
Allowance
get
Indexed
Collaterals
get
Single
Collateral
Deposit
Allowance
indexed
To
Collateral
set
Deposit
Allowance
set
Single
Collateral
Deposit
Allowance
to
Collateral
Constructors
constructor
new
CollateralsSDK
(
c
?
)
:
CollateralsSDK
Parameters
Optional
c
:
CollateralsConfig
Optional
Returns
CollateralsSDK
Properties
Private
config
config
:
CollateralsConfig
Private
graph
graph
:
GraphSDK
tokens
tokens
:
CollateralToken
[]
Methods
Private
find
Available
find
Available
(
collateralSymbol
)
:
CollateralToken
Parameters
collateralSymbol
:
CollateralSymbol
Returns
CollateralToken
get
Collateral
get
Collateral
(
collateralSymbol
,
provider
)
:
Promise
<
Collateral
>
Parameters
collateralSymbol
:
CollateralSymbol
provider
:
Provider
Returns
Promise
<
Collateral
>
Private
get
Collateral
Contract
get
Collateral
Contract
(
collateralSymbol
,
signer
)
:
ERC20
Parameters
collateralSymbol
:
CollateralSymbol
signer
:
Signer
Returns
ERC20
Private
get
Collateral
Multicall
get
Collateral
Multicall
(
collateralSymbol
,
provider
)
:
Promisified
<
CollateralMulticall
>
Parameters
collateralSymbol
:
CollateralSymbol
provider
:
Provider
Returns
Promisified
<
CollateralMulticall
>
get
Collaterals
get
Collaterals
(
provider
)
:
Promise
<
Collateral
[]
>
Parameters
provider
:
Provider
Returns
Promise
<
Collateral
[]
>
get
Deposit
Allowance
get
Deposit
Allowance
(
collateralSymbol
,
account
,
action
,
signer
)
:
Promise
<
BigNumber
>
Parameters
collateralSymbol
:
CollateralSymbol
account
:
string
action
:
"deposit"
|
"mintAndDeposit"
signer
:
Signer
Returns
Promise
<
BigNumber
>
get
Indexed
Collaterals
get
Indexed
Collaterals
(
)
:
Promise
<
Collateral
[]
>
Returns
Promise
<
Collateral
[]
>
get
Single
Collateral
Deposit
Allowance
get
Single
Collateral
Deposit
Allowance
(
vaultSymbol
,
account
,
network
,
signer
)
:
Promise
<
BigNumber
>
Parameters
vaultSymbol
:
SingleCollateralVaultSymbol
account
:
string
network
:
"arbitrum"
|
"polygon"
signer
:
Signer
Returns
Promise
<
BigNumber
>
Private
indexed
To
Collateral
indexed
To
Collateral
(
collateral
)
:
Collateral
Parameters
collateral
:
IndexedCollateral
Returns
Collateral
set
Deposit
Allowance
set
Deposit
Allowance
(
collateralSymbol
,
amount
,
action
,
signer
,
options
?
)
:
Promise
<
ContractTransaction
>
Parameters
collateralSymbol
:
CollateralSymbol
amount
:
BigNumber
action
:
"deposit"
|
"mintAndDeposit"
signer
:
Signer
options
:
Overrides
= {}
Returns
Promise
<
ContractTransaction
>
set
Single
Collateral
Deposit
Allowance
set
Single
Collateral
Deposit
Allowance
(
vaultSymbol
,
amount
,
network
,
signer
,
options
?
)
:
Promise
<
ContractTransaction
>
Parameters
vaultSymbol
:
SingleCollateralVaultSymbol
amount
:
BigNumber
network
:
"arbitrum"
|
"polygon"
signer
:
Signer
options
:
Overrides
= {}
Returns
Promise
<
ContractTransaction
>
Private
to
Collateral
to
Collateral
(
token
,
collateral
)
:
Collateral
Parameters
token
:
CollateralToken
collateral
:
CollateralMulticall
Returns
Collateral
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
config
graph
tokens
find
Available
get
Collateral
get
Collateral
Contract
get
Collateral
Multicall
get
Collaterals
get
Deposit
Allowance
get
Indexed
Collaterals
get
Single
Collateral
Deposit
Allowance
indexed
To
Collateral
set
Deposit
Allowance
set
Single
Collateral
Deposit
Allowance
to
Collateral
handle-
sdk
Price
Point
Quote
fetch
Token
Price
Usd
Convert
Utils
governance
h2so
incentives
prices
referrals
rewards
trade
utils
BridgeSDK
CollateralsSDK
ConvertSDK
Fx
Keeper
PoolSDK
Fx
TokensSDK
GraphSDK
Handle
Token
Manager
Lp
StakingSDK
ProtocolSDK
Single
Collateral
Vault
Controller
Token
Manager
Vault
Controller
VaultsSDK
Token
Info
Token
List
Any
Lp
Staking
Bridge
Network
Bridge
Network
Map
Collateral
Collateral
Symbol
Collateral
Symbol
With
Native
Fx
Keeper
Pool
Pool
Fx
Token
Fx
Token
Symbol
Governance
Lock
Data
Indexed
Fx
Keeper
Pool
Indexed
Fx
Token
Indexed
Vault
Kashi
Pool
Config
Lp
Lp
Data
Lp
Platform
Lp
Staking
Data
Lp
Staking
Name
Network
Network
Map
Pending
Withdrawal
Protocol
Parameters
Reward
Pool
Data
Reward
Pool
Raw
Single
Collateral
Vault
Single
Collateral
Vault
Network
Single
Collateral
Vault
Network
Map
Single
Collateral
Vault
Symbol
Vault
H2SO_
API_
WS_
URL
H2SO_
PRICE_
DECIMALS
NETWORK_
NAMES
NETWORK_
NAME_
TO_
CHAIN_
ID
SECONDS_
IN_
A_
YEAR_
BN
SINGLE_
COLLATERAL_
NETWORK_
NAMES
config
vault
Utils
get
Is
Kashi
Approved
get
Network
Name
sign
Kashi
Approval
Generated using
TypeDoc