Orderly SDKs / Modules / @orderly.network/core / utils
@orderly.network/core.utils
Ƭ SignatureDomain: Object
Name | Type |
---|---|
chainId | number |
name | string |
verifyingContract | string |
version | string |
▸ base64url(aStr
): string
Name | Type |
---|---|
aStr | string |
string
▸ calculateStringHash(input
): string
Name | Type |
---|---|
input | string |
string
▸ formatByUnits(amount
, unit?
): string
Name | Type | Default value |
---|---|---|
amount | string | undefined |
unit | number | "ether" | "gwei" | "ether" |
string
▸ getGlobalObject(): typeof globalThis
typeof globalThis
▸ getTimestamp(): number
number
▸ isHex(value
): boolean
Name | Type |
---|---|
value | string |
boolean
▸ isHexString(value
): boolean
Name | Type |
---|---|
value | string |
boolean
▸ parseAccountId(userAddress
, brokerId
): string
Name | Type |
---|---|
userAddress | string |
brokerId | string |
string
▸ parseBrokerHash(brokerId
): string
Name | Type |
---|---|
brokerId | string |
string
▸ parseTokenHash(tokenSymbol
): string
Name | Type |
---|---|
tokenSymbol | string |
string
▸ parseUnits(value
, unit?
): bigint
Converts the //decimal string// %%value%% to a BigInt, assuming
%%unit%% decimal places. The %%unit%% may the number of decimal places
or the name of a unit (e.g. "gwei"
for 9 decimal places).
Name | Type |
---|---|
value | string |
unit? | string | Numeric |
bigint
node_modules/.pnpm/ethers@6.12.1/node_modules/ethers/lib.commonjs/utils/units.d.ts:14