@dfinity/ledger-icrc 6.0.0-next-2025-11-18 → 6.0.1-next-2025-11-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -511
- package/dist/candid/icrc_icrc-1.certified.idl.d.ts +2 -0
- package/dist/candid/icrc_icrc-1.certified.idl.js +68 -0
- package/dist/candid/icrc_icrc-1.d.ts +69 -0
- package/dist/candid/icrc_icrc-1.did +54 -0
- package/dist/candid/icrc_icrc-1.idl.d.ts +2 -0
- package/dist/candid/icrc_icrc-1.idl.js +72 -0
- package/dist/candid/icrc_icrc-10.certified.idl.d.ts +2 -0
- package/dist/candid/icrc_icrc-10.certified.idl.js +20 -0
- package/dist/candid/icrc_icrc-10.d.ts +21 -0
- package/dist/candid/icrc_icrc-10.did +8 -0
- package/dist/candid/icrc_icrc-10.idl.d.ts +2 -0
- package/dist/candid/icrc_icrc-10.idl.js +24 -0
- package/dist/candid/icrc_index-ng.did +1 -1
- package/dist/candid/icrc_ledger.did +1 -1
- package/dist/canister.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +4 -4
- package/dist/ledger.canister.d.ts +4 -10
- package/dist/nft-ledger.canister.d.ts +16 -0
- package/dist/types/canister.types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Nullable, type QueryParams } from "@dfinity/utils";
|
|
2
2
|
import type { Principal } from "@icp-sdk/core/principal";
|
|
3
3
|
import type { Account, Allowance, BlockIndex, GetBlocksResult, icrc21_consent_info, _SERVICE as IcrcLedgerService, StandardRecord, Tokens } from "./candid/icrc_ledger";
|
|
4
|
+
import { IcrcCanister } from "./canister";
|
|
4
5
|
import type { IcrcLedgerCanisterOptions } from "./types/canister.options";
|
|
5
|
-
import type { AllowanceParams, ApproveParams,
|
|
6
|
+
import type { AllowanceParams, ApproveParams, GetBlocksParams, Icrc21ConsentMessageParams, TransferFromParams, TransferParams } from "./types/ledger.params";
|
|
6
7
|
import type { IcrcTokenMetadataResponse } from "./types/ledger.responses";
|
|
7
|
-
export declare class IcrcLedgerCanister extends
|
|
8
|
+
export declare class IcrcLedgerCanister extends IcrcCanister<IcrcLedgerService> {
|
|
8
9
|
static create(options: IcrcLedgerCanisterOptions<IcrcLedgerService>): IcrcLedgerCanister;
|
|
9
10
|
/**
|
|
10
11
|
* The token metadata (name, symbol, etc.).
|
|
@@ -16,13 +17,6 @@ export declare class IcrcLedgerCanister extends Canister<IcrcLedgerService> {
|
|
|
16
17
|
* @returns {Tokens} The ledger transaction fees in Tokens
|
|
17
18
|
*/
|
|
18
19
|
transactionFee: (params: QueryParams) => Promise<Tokens>;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the balance for a given account provided as owner and with optional subaccount.
|
|
21
|
-
*
|
|
22
|
-
* @param {BalanceParams} params The parameters to get the balance of an account.
|
|
23
|
-
* @returns {Promise<Tokens>} The balance of the given account.
|
|
24
|
-
*/
|
|
25
|
-
balance: (params: BalanceParams) => Promise<Tokens>;
|
|
26
20
|
/**
|
|
27
21
|
* Transfers tokens from the sender to the given account.
|
|
28
22
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Canister, type QueryParams } from "@dfinity/utils";
|
|
2
|
+
import type { _SERVICE as IcrcNftLedgerService } from "./candid/icrc_nft-ledger";
|
|
3
|
+
import type { IcrcLedgerCanisterOptions } from "./types/canister.options";
|
|
4
|
+
import type { IcrcTokenMetadataResponse } from "./types/ledger.responses";
|
|
5
|
+
export declare class IcrcNftLedgerCanister extends Canister<IcrcNftLedgerService> {
|
|
6
|
+
static create(options: IcrcLedgerCanisterOptions<IcrcNftLedgerService>): IcrcNftLedgerCanister;
|
|
7
|
+
/**
|
|
8
|
+
* The collection metadata.
|
|
9
|
+
*
|
|
10
|
+
* @link https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-7/ICRC-7.md#icrc7_collection_metadata
|
|
11
|
+
*
|
|
12
|
+
* @param {QueryParams} params The parameters to get the metadata of the collection.
|
|
13
|
+
* @returns {Promise<IcrcTokenMetadataResponse>} The metadata as a list of metadata type and its value.
|
|
14
|
+
*/
|
|
15
|
+
collectionMetadata: (params: QueryParams) => Promise<IcrcTokenMetadataResponse>;
|
|
16
|
+
}
|
package/package.json
CHANGED