@exodus/web3-utils
Version: 0.0.0
Interfaces
Functions
createEmptySimulationResult
variable
Type
const createEmptySimulationResult: ({ asset, baseAssetName, }: { ... }) => AggregatedTransactionSimulationResultSignature
__type({ asset, baseAssetName, }: any): AggregatedTransactionSimulationResult
Parameters:
{ asset, baseAssetName, }: any
Returns:
AggregatedTransactionSimulationResultcreateScanDomains
variable
Type
const createScanDomains: ({ url, headers }: CreateScanDomainsParams) => ScanDomainsFnSignature
__type({ url, headers }: CreateScanDomainsParams): ScanDomainsFn
Parameters:
{ url, headers }: CreateScanDomainsParams
Returns:
ScanDomainsFnhasSufficientBalance
variable
Type
const hasSufficientBalance: (asset: Asset, txFee: NumberUnit, balanceChanges: BalanceChanges, availableBalance: NumberUnit) => booleanSignature
__type(asset: Asset, txFee: NumberUnit, balanceChanges: BalanceChanges, availableBalance: NumberUnit): boolean
Parameters:
Returns:
booleanhexToBN
variable
Type
const hexToBN: (hexValue: string) => BNSignature
__type(hexValue: string): BN
Parameters:
hexValue: string
Returns:
BNtryParsingSIWE
variable
Type
const tryParsingSIWE: ({ address, message, url, simulationResult, }: { ... }) => voidSignature
__type({ address, message, url, simulationResult, }: any): void
Parameters:
{ address, message, url, simulationResult, }: any
Returns:
voidcreateCurrency
function
Signature
createCurrency(__namedParameters: CreateCurrencyParams): NumberUnit
Parameters:
__namedParameters: CreateCurrencyParams
Returns:
NumberUnitformatAmount
function
Signature
formatAmount(amount: number, denominator: number): string
Parameters:
amount: number
denominator: number
Returns:
stringmakeSimulationAPICall
function
Signature
makeSimulationAPICall(args: ScanArguments): Promise
Parameters:
args: ScanArguments
Returns:
PromiseDomainsScanAPICallParams
interface
Properties
headers?
Record
payload
ObjectWithDomainsPropertyOfTypeArray
url
string
MessageScanAPICallParams
interface
Properties
chain
string
headers?
Record
network
string
payload
ScanMessageEvmRequest
url
string
TransactionScanAPICallParams
interface
Properties
chain
string
executionMode?
ExecutionMode
headers?
Record
network
string
payload
ScanTransactionsEvmRequest | ScanTransactionsSolanaRequest
url
string
CreateCurrencyParams
type
Properties
amount
number | string
base?
string
denominator
number
symbol
string
SimulationAPICallParams
type
createCurrency
function
Signature
createCurrency(__namedParameters: CreateCurrencyParams): NumberUnit
Parameters:
__namedParameters: CreateCurrencyParams
Returns:
NumberUnitcreateEmptySimulationResult
function
Signature
createEmptySimulationResult(__namedParameters: any): AggregatedTransactionSimulationResult
Parameters:
__namedParameters: any
Returns:
AggregatedTransactionSimulationResultcreateScanDomains
function
Signature
createScanDomains(__namedParameters: CreateScanDomainsParams): ScanDomainsFn
Parameters:
__namedParameters: CreateScanDomainsParams
Returns:
ScanDomainsFnformatAmount
function
Signature
formatAmount(amount: number, denominator: number): string
Parameters:
amount: number
denominator: number
Returns:
stringhasSufficientBalance
function
Signature
hasSufficientBalance(asset: Asset, txFee: NumberUnit, balanceChanges: BalanceChanges, availableBalance: NumberUnit): boolean
Parameters:
Returns:
booleanhexToBN
function
Signature
hexToBN(hexValue: string): BN
Parameters:
hexValue: string
Returns:
BNmakeSimulationAPICall
function
Signature
makeSimulationAPICall(args: ScanArguments): Promise
Parameters:
args: ScanArguments
Returns:
PromisetryParsingSIWE
function
Signature
tryParsingSIWE(__namedParameters: any): void
Parameters:
__namedParameters: any
Returns:
voidAsset
interface
Assets Module
Properties
api
any
baseAsset
Asset
baseAssetName
string
currency
any
displayTicker
string
isCustomToken
boolean
name
string
server?
Server
ticker
string
units
Record
BalanceChanges
interface
Properties
willApprove
ApprovalBalanceChange[]
willPayFee
PayFeeBalanceChange[]
willReceive
BalanceChange[]
willSend
BalanceChange[]
DomainsScanAPICallParams
interface
Properties
headers?
Record
payload
ObjectWithDomainsPropertyOfTypeArray
url
string
MessageScanAPICallParams
interface
Properties
chain
string
headers?
Record
network
string
payload
ScanMessageEvmRequest
url
string
TransactionScanAPICallParams
interface
Properties
chain
string
executionMode?
ExecutionMode
headers?
Record
network
string
payload
ScanTransactionsEvmRequest | ScanTransactionsSolanaRequest
url
string
CreateCurrencyParams
type
Properties
amount
number | string
base?
string
denominator
number
symbol
string
SimulationAPICallParams
type
