Skip to content

Overview

Defined in: packages/canisters/src/cketh/minter.canister.ts:24

protected new CkEthMinterCanister(id, service, certifiedService): CkEthMinterCanister

Defined in: packages/utils/dist/services/canister.d.ts:7

Principal

_SERVICE

_SERVICE

CkEthMinterCanister

Canister<CkEthMinterService>.constructor

protected caller: (__namedParameters) => _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:9

QueryParams

_SERVICE

Canister.caller

protected readonly certifiedService: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:6

Canister.certifiedService

protected readonly service: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:5

Canister.service

get canisterId(): Principal

Defined in: packages/utils/dist/services/canister.d.ts:8

Principal

Canister.canisterId

eip1559TransactionPrice(params): Promise<Eip1559TransactionPrice>

Defined in: packages/canisters/src/cketh/minter.canister.ts:146

Estimate the price of a transaction issued by the minter when converting ckETH to ETH and ckER20 to ERC20.

Eip1559TransactionPriceParams

The parameters to get the minter info.

Promise<Eip1559TransactionPrice>

  • The estimated gas fee and limit.

getMinterInfo(params): Promise<MinterInfo>

Defined in: packages/canisters/src/cketh/minter.canister.ts:176

Returns internal minter parameters such as the minimal withdrawal amount, the last observed block number, etc.

QueryParams

The parameters to get the minter info.

Promise<MinterInfo>

getSmartContractAddress(params): Promise<string>

Defined in: packages/canisters/src/cketh/minter.canister.ts:43

The address of the helper smart contract may change in the future when the minter is upgraded. Please verify the address of the helper contract before any important transfer by querying the minter as follows.

QueryParams = {}

The parameters to resolve the ckETH smart contract address.

Promise<string>

Address of the helper smart contract.

retrieveEthStatus(blockIndex): Promise<RetrieveEthStatus>

Defined in: packages/canisters/src/cketh/minter.canister.ts:161

Retrieve the status of a withdrawal request.

bigint

Promise<RetrieveEthStatus>

The current status of an Ethereum transaction for a block index resulting from a withdrawal.

withdrawErc20(params): Promise<RetrieveErc20Request>

Defined in: packages/canisters/src/cketh/minter.canister.ts:105

Submits a request to convert ckErc20 to Erc20 - e.g. ckUSDC to USDC - after making ICRC-2 approvals for the ckETH and related ckErc20 ledgers.

Preconditions:

The caller allowed the minter’s principal to spend its funds using [icrc2_approve] on the ckErc20 ledger and to burn some of the user’s ckETH tokens to pay for the transaction fees on the CkEth ledger.

The parameters to withdrawal ckErc20 to Erc20.

string

The destination ETH address.

bigint

The ETH amount in wei.

Subaccount

Subaccount

The optional subaccount to burn ckETH from to pay for the transaction fee.

Principal

Promise<RetrieveErc20Request>

The successful result or the operation.

withdrawEth(params): Promise<RetrieveEthRequest>

Defined in: packages/canisters/src/cketh/minter.canister.ts:64

Submits a request to convert ckETH to ETH after making an ICRC-2 approval.

Preconditions:

The caller allowed the minter’s principal to spend its funds using [icrc2_approve] on the ckETH ledger.

The parameters to withdrawal ckETH to ETH.

string

The destination ETH address.

bigint

The ETH amount in wei.

Subaccount

The optional subaccount to burn ckETH from.

Promise<RetrieveEthRequest>

The successful result or the operation.

static create(options): CkEthMinterCanister

Defined in: packages/canisters/src/cketh/minter.canister.ts:25

CkEthMinterCanisterOptions<_SERVICE>

CkEthMinterCanister


Defined in: packages/canisters/src/cketh/orchestrator.canister.ts:15

Class representing the CkEth Orchestrator Canister, which manages the Ledger and Index canisters of ckERC20 tokens.

Code

protected new CkEthOrchestratorCanister(id, service, certifiedService): CkEthOrchestratorCanister

Defined in: packages/utils/dist/services/canister.d.ts:7

Principal

_SERVICE

_SERVICE

CkEthOrchestratorCanister

Canister<CkEthOrchestratorService>.constructor

protected caller: (__namedParameters) => _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:9

QueryParams

_SERVICE

Canister.caller

protected readonly certifiedService: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:6

Canister.certifiedService

protected readonly service: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:5

Canister.service

get canisterId(): Principal

Defined in: packages/utils/dist/services/canister.d.ts:8

Principal

Canister.canisterId

getOrchestratorInfo(params?): Promise<OrchestratorInfo>

Defined in: packages/canisters/src/cketh/orchestrator.canister.ts:40

Retrieves orchestrator information, which contains the list of existing ckERC20 Ledger and Index canisters.

QueryParams = {}

The query parameters.

Promise<OrchestratorInfo>

A promise that resolves to the orchestrator information.

static create(options): CkEthOrchestratorCanister

Defined in: packages/canisters/src/cketh/orchestrator.canister.ts:21

Creates an instance of CkEthOrchestratorCanister.

CkEthOrchestratorCanisterOptions<_SERVICE>

Options for creating the canister.

CkEthOrchestratorCanister

A new instance of CkEthOrchestratorCanister.


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:4

  • Error

T

new DetailedError<T>(__namedParameters): DetailedError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

DetailedError<T>

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:30

T

new LedgerAmountTooLowError<T>(__namedParameters): LedgerAmountTooLowError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerAmountTooLowError<T>

LedgerError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

LedgerError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

LedgerError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

LedgerError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

LedgerError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

LedgerError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

LedgerError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

LedgerError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

LedgerError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

LedgerError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:25

T

new LedgerError<T>(__namedParameters): LedgerError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerError<T>

DetailedError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

DetailedError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

DetailedError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

DetailedError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

DetailedError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

DetailedError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

DetailedError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

DetailedError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

DetailedError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

DetailedError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:23

  • Error

new LedgerGenericError(message?): LedgerGenericError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

LedgerGenericError

Error.constructor

new LedgerGenericError(message?, options?): LedgerGenericError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

LedgerGenericError

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:29

T

new LedgerInsufficientAllowanceError<T>(__namedParameters): LedgerInsufficientAllowanceError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerInsufficientAllowanceError<T>

LedgerError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

LedgerError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

LedgerError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

LedgerError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

LedgerError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

LedgerError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

LedgerError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

LedgerError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

LedgerError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

LedgerError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:31

T

new LedgerInsufficientFundsError<T>(__namedParameters): LedgerInsufficientFundsError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerInsufficientFundsError<T>

LedgerError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

LedgerError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

LedgerError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

LedgerError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

LedgerError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

LedgerError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

LedgerError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

LedgerError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

LedgerError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

LedgerError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:28

T

new LedgerTemporaryUnavailableError<T>(__namedParameters): LedgerTemporaryUnavailableError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerTemporaryUnavailableError<T>

LedgerError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

LedgerError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

LedgerError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

LedgerError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

LedgerError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

LedgerError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

LedgerError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

LedgerError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

LedgerError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

LedgerError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:27

T

new LedgerWithdrawalError<T>(__namedParameters): LedgerWithdrawalError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

LedgerWithdrawalError<T>

LedgerError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

LedgerError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

LedgerError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

LedgerError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

LedgerError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

LedgerError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

LedgerError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

LedgerError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

LedgerError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

LedgerError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:19

T

new MinterAmountTooLowError<T>(__namedParameters): MinterAmountTooLowError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterAmountTooLowError<T>

MinterError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

MinterError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:14

T

new MinterError<T>(__namedParameters): MinterError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterError<T>

DetailedError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

DetailedError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

DetailedError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

DetailedError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

DetailedError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

DetailedError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

DetailedError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

DetailedError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

DetailedError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

DetailedError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:12

  • Error

new MinterGenericError(message?): MinterGenericError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

MinterGenericError

Error.constructor

new MinterGenericError(message?, options?): MinterGenericError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

MinterGenericError

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:18

T

new MinterInsufficientAllowanceError<T>(__namedParameters): MinterInsufficientAllowanceError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterInsufficientAllowanceError<T>

MinterError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

MinterError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:17

T

new MinterInsufficientFundsError<T>(__namedParameters): MinterInsufficientFundsError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterInsufficientFundsError<T>

MinterError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

MinterError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:20

T

new MinterRecipientAddressBlockedError<T>(__namedParameters): MinterRecipientAddressBlockedError<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterRecipientAddressBlockedError<T>

MinterError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

MinterError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:16

new MinterTemporaryUnavailableError(message?): MinterTemporaryUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

MinterTemporaryUnavailableError

MinterGenericError.constructor

new MinterTemporaryUnavailableError(message?, options?): MinterTemporaryUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

MinterTemporaryUnavailableError

MinterGenericError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterGenericError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterGenericError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterGenericError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterGenericError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterGenericError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterGenericError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterGenericError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterGenericError.prepareStackTrace


Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:21

T

new MinterTokenNotSupported<T>(__namedParameters): MinterTokenNotSupported<T>

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:6

T

string

MinterTokenNotSupported<T>

MinterError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

MinterError.cause

details: T | undefined

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:5

MinterError.details

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

MinterError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

MinterError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

MinterError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

MinterError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

MinterError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

MinterError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

MinterError.prepareStackTrace

Defined in: packages/canisters/src/cketh/types/canister.options.ts:4

  • Omit<CanisterOptions<T>, "canisterId">

T

optional agent: Agent

Defined in: packages/utils/dist/types/canister.options.d.ts:4

NnsGovernanceCanisterOptions.agent

canisterId: Principal

Defined in: packages/canisters/src/cketh/types/canister.options.ts:9

optional certifiedServiceOverride: ActorSubclass<T>

Defined in: packages/utils/dist/types/canister.options.d.ts:7

Omit.certifiedServiceOverride

optional serviceOverride: ActorSubclass<T>

Defined in: packages/utils/dist/types/canister.options.d.ts:6

Omit.serviceOverride

CkEthOrchestratorCanisterOptions<T> = CkEthMinterCanisterOptions<T>

Defined in: packages/canisters/src/cketh/types/canister.options.ts:12

T


Eip1559TransactionPriceParams = object & QueryParams

Defined in: packages/canisters/src/cketh/types/minter.params.ts:5

optional ckErc20LedgerId: Principal

createWithdrawErc20Error(Err): MinterGenericError

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:71

WithdrawErc20Error

MinterGenericError


createWithdrawEthError(Err): MinterGenericError

Defined in: packages/canisters/src/cketh/errors/minter.errors.ts:33

WithdrawalError

MinterGenericError


encodePrincipalToEthAddress(principal): string

Defined in: packages/canisters/src/cketh/utils/minter.utils.ts:12

Encode a principal to a byte array as Ethereum data hex (staring with 0x). Such a conversion is required to deposit ETH to the ckETH helper contract.

Code adapted from the ckETH minter dashboard JS function: https://github.com/dfinity/ic/blob/master/rs/ethereum/cketh/minter/templates/principal_to_bytes.js

Principal

The principal to encode into a fixed 32-byte representation suitable for calling Ethereum smart contracts.

string