Namespace: utils
Type Aliases
Contract
Ƭ Contract<TAbi
>: GetContractReturnType
<TAbi
, PublicClient
, WalletClient
, Address
>
Type parameters
Name | Type |
---|---|
TAbi | extends Abi |
Defined in
packages/sdk-viem/src/utils/helpers.ts:26
Variables
MAX_UINT256
• Const
MAX_UINT256: bigint
Defined in
packages/sdk-viem/src/utils/helpers.ts:103
errorSignitures
• Const
errorSignitures: ErrorSignatures
Defined in
packages/sdk-viem/src/utils/helpers.ts:94
Functions
PromiseOnlySuccess
▸ PromiseOnlySuccess<T
>(values
): Promise
<Awaited
<T
>[]>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
values | Iterable <T | PromiseLike <T >> |
Returns
Promise
<Awaited
<T
>[]>
Defined in
packages/sdk-viem/src/utils/helpers.ts:57
checkClient
▸ checkClient(client
): asserts client is Client & Object
Parameters
Name | Type |
---|---|
client | Client |
Returns
asserts client is Client & Object
Defined in
packages/sdk-viem/src/utils/helpers.ts:44
checkPublicClient
▸ checkPublicClient(client
): asserts client is Client & Object
Parameters
Name | Type |
---|---|
client | Client |
Returns
asserts client is Client & Object
Defined in
packages/sdk-viem/src/utils/helpers.ts:33
checkWalletClient
▸ checkWalletClient(client
): asserts client is Client & Object
Parameters
Name | Type |
---|---|
client | Client |
Returns
asserts client is Client & Object
Defined in
packages/sdk-viem/src/utils/helpers.ts:38
decodeTokenId
▸ decodeTokenId(encodedId
): number
Parameters
Name | Type |
---|---|
encodedId | bigint |
Returns
number
Defined in
packages/sdk-viem/src/utils/helpers.ts:18
encodeTokenId
▸ encodeTokenId(tradingFeeRate
): bigint
Parameters
Name | Type |
---|---|
tradingFeeRate | number |
Returns
bigint
Defined in
packages/sdk-viem/src/utils/helpers.ts:51
handleBytesError
▸ handleBytesError<T
>(fn
): Promise
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | () => Promise <T > |
Returns
Promise
<T
>