Orderly SDKs / Modules / @orderly.network/core / EtherAdapter
@orderly.network/core.EtherAdapter
• new EtherAdapter(options
)
Name | Type |
---|---|
options | WalletAdapterOptions |
packages/core/src/wallet/etherAdapter.ts:22
• Private
_address: string
packages/core/src/wallet/etherAdapter.ts:21
• Private
_chainId: number
packages/core/src/wallet/etherAdapter.ts:20
• Private
Optional
provider: BrowserProvider
packages/core/src/wallet/etherAdapter.ts:19
• get
addresses(): string
string
IWalletAdapter.addresses
packages/core/src/wallet/etherAdapter.ts:101
• get
chainId(): number
number
IWalletAdapter.chainId
packages/core/src/wallet/etherAdapter.ts:93
• set
chainId(chainId
): void
Set the chain id
Name | Type |
---|---|
chainId | number |
void
IWalletAdapter.chainId
packages/core/src/wallet/etherAdapter.ts:97
▸ call(address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
address | string |
method | string |
params | any [] |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:51
▸ callOnChain(chain
, address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
chain | NetworkInfos |
address | string |
method | string |
params | any [] |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:70
▸ deposit(from
, to
, amount
): Promise
<any
>
Name | Type |
---|---|
from | string |
to | string |
amount | string |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:47
▸ Private
estimateGas(tx
): Promise
<number
>
Name | Type |
---|---|
tx | TransactionRequest |
Promise
<number
>
packages/core/src/wallet/etherAdapter.ts:194
▸ formatUnits(amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/etherAdapter.ts:34
▸ getBalance(userAddress
): Promise
<any
>
Name | Type |
---|---|
userAddress | string |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:37
▸ getContract(address
, abi
): Contract
Name | Type |
---|---|
address | string |
abi | any |
Contract
packages/core/src/wallet/etherAdapter.ts:221
▸ getTransactionRecipect(txHash
): Promise
<void
>
Name | Type |
---|---|
txHash | string |
Promise
<void
>
WalletAdapter.getTransactionRecipect
packages/core/src/wallet/etherAdapter.ts:164
▸ off(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/etherAdapter.ts:217
▸ on(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/etherAdapter.ts:213
▸ parseUnits(amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/etherAdapter.ts:31
▸ pollTransactionReceiptWithBackoff(txHash
, baseInterval?
, maxInterval?
, maxRetries?
): Promise
<TransactionReceipt
>
Name | Type | Default value |
---|---|---|
txHash | string | undefined |
baseInterval | number | 1000 |
maxInterval | number | 6000 |
maxRetries | number | 30 |
Promise
<TransactionReceipt
>
WalletAdapter.pollTransactionReceiptWithBackoff
packages/core/src/wallet/etherAdapter.ts:170
▸ send(method
, params
): Promise
<any
>
Name | Type |
---|---|
method | string |
params | any [] | Record <string , any > |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:105
▸ sendTransaction(contractAddress
, method
, payload
, options
): Promise
<TransactionResponse
>
Name | Type |
---|---|
contractAddress | string |
method | string |
payload | Object |
payload.data | any [] |
payload.from | string |
payload.to? | string |
payload.value? | bigint |
options | Object |
options.abi | any |
Promise
<TransactionResponse
>
packages/core/src/wallet/etherAdapter.ts:112
▸ signTypedData(address
, data
): Promise
<any
>
Name | Type |
---|---|
address | string |
data | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:200
▸ verify(data
, signature
): Promise
<void
>
Name | Type |
---|---|
data | Object |
data.domain | any |
data.message | any |
data.types | any |
signature | string |
Promise
<void
>
packages/core/src/wallet/etherAdapter.ts:204
Orderly SDKs / Modules / @orderly.network/core / EtherAdapter
@orderly.network/core.EtherAdapter
• new EtherAdapter(options
)
Name | Type |
---|---|
options | WalletAdapterOptions |
packages/core/src/wallet/etherAdapter.ts:22
• Private
_address: string
packages/core/src/wallet/etherAdapter.ts:21
• Private
_chainId: number
packages/core/src/wallet/etherAdapter.ts:20
• Private
Optional
provider: BrowserProvider
packages/core/src/wallet/etherAdapter.ts:19
• get
addresses(): string
string
IWalletAdapter.addresses
packages/core/src/wallet/etherAdapter.ts:101
• get
chainId(): number
number
IWalletAdapter.chainId
packages/core/src/wallet/etherAdapter.ts:93
• set
chainId(chainId
): void
Set the chain id
Name | Type |
---|---|
chainId | number |
void
IWalletAdapter.chainId
packages/core/src/wallet/etherAdapter.ts:97
▸ call(address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
address | string |
method | string |
params | any [] |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:51
▸ callOnChain(chain
, address
, method
, params
, options
): Promise
<any
>
Name | Type |
---|---|
chain | NetworkInfos |
address | string |
method | string |
params | any [] |
options | Object |
options.abi | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:70
▸ deposit(from
, to
, amount
): Promise
<any
>
Name | Type |
---|---|
from | string |
to | string |
amount | string |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:47
▸ Private
estimateGas(tx
): Promise
<number
>
Name | Type |
---|---|
tx | TransactionRequest |
Promise
<number
>
packages/core/src/wallet/etherAdapter.ts:194
▸ formatUnits(amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/etherAdapter.ts:34
▸ getBalance(userAddress
): Promise
<any
>
Name | Type |
---|---|
userAddress | string |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:37
▸ getContract(address
, abi
): Contract
Name | Type |
---|---|
address | string |
abi | any |
Contract
packages/core/src/wallet/etherAdapter.ts:221
▸ getTransactionRecipect(txHash
): Promise
<void
>
Name | Type |
---|---|
txHash | string |
Promise
<void
>
WalletAdapter.getTransactionRecipect
packages/core/src/wallet/etherAdapter.ts:164
▸ off(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/etherAdapter.ts:217
▸ on(eventName
, listener
): void
Name | Type |
---|---|
eventName | any |
listener | any |
void
packages/core/src/wallet/etherAdapter.ts:213
▸ parseUnits(amount
): string
Name | Type |
---|---|
amount | string |
string
packages/core/src/wallet/etherAdapter.ts:31
▸ pollTransactionReceiptWithBackoff(txHash
, baseInterval?
, maxInterval?
, maxRetries?
): Promise
<TransactionReceipt
>
Name | Type | Default value |
---|---|---|
txHash | string | undefined |
baseInterval | number | 1000 |
maxInterval | number | 6000 |
maxRetries | number | 30 |
Promise
<TransactionReceipt
>
WalletAdapter.pollTransactionReceiptWithBackoff
packages/core/src/wallet/etherAdapter.ts:170
▸ send(method
, params
): Promise
<any
>
Name | Type |
---|---|
method | string |
params | any [] | Record <string , any > |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:105
▸ sendTransaction(contractAddress
, method
, payload
, options
): Promise
<TransactionResponse
>
Name | Type |
---|---|
contractAddress | string |
method | string |
payload | Object |
payload.data | any [] |
payload.from | string |
payload.to? | string |
payload.value? | bigint |
options | Object |
options.abi | any |
Promise
<TransactionResponse
>
packages/core/src/wallet/etherAdapter.ts:112
▸ signTypedData(address
, data
): Promise
<any
>
Name | Type |
---|---|
address | string |
data | any |
Promise
<any
>
packages/core/src/wallet/etherAdapter.ts:200
▸ verify(data
, signature
): Promise
<void
>
Name | Type |
---|---|
data | Object |
data.domain | any |
data.message | any |
data.types | any |
signature | string |
Promise
<void
>
packages/core/src/wallet/etherAdapter.ts:204