@junobuild/functions 0.4.0 → 0.4.1-next-2025-11-24
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/canisters/_canister.d.ts +17 -0
- package/canisters/_constants.d.ts +3 -0
- package/canisters/cmc/cmc.canister.d.ts +28 -0
- package/canisters/cmc/index.d.ts +2 -0
- package/canisters/declarations/_idl.d.ts +4 -0
- package/canisters/declarations/_types.d.ts +4 -0
- package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
- package/canisters/declarations/index.d.ts +2 -0
- package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
- package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
- package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
- package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
- package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
- package/canisters/index.d.ts +1 -0
- package/canisters/ledger/icp/index.d.ts +2 -0
- package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
- package/canisters/ledger/icrc/index.d.ts +3 -0
- package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
- package/canisters/ledger/icrc/schemas.d.ts +11 -0
- package/canisters/schemas.d.ts +11 -0
- package/package.json +21 -5
- package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
- package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
- package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
- package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* @see CanisterParameters
|
|
5
|
+
*/
|
|
6
|
+
export declare const CanisterParametersSchema: z.ZodObject<{
|
|
7
|
+
canisterId: z.ZodCustom<Principal, Principal>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
/**
|
|
10
|
+
* The parameters that define a canister.
|
|
11
|
+
*/
|
|
12
|
+
export type CanisterParameters = z.infer<typeof CanisterParametersSchema>;
|
|
13
|
+
export declare abstract class Canister {
|
|
14
|
+
#private;
|
|
15
|
+
protected constructor({ canisterId }: CanisterParameters);
|
|
16
|
+
get canisterId(): Principal;
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Canister } from '../_canister';
|
|
2
|
+
import { type CmcDid } from '../declarations';
|
|
3
|
+
import { type CanisterOptions } from '../schemas';
|
|
4
|
+
/**
|
|
5
|
+
* Provides a simple interface to interact with the Cycle Minting Canister,
|
|
6
|
+
* when developing Juno Serverless Functions in TypeScript.
|
|
7
|
+
*
|
|
8
|
+
* @param {CanisterOptions} [options] - Optional custom canister ID.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CMCCanister extends Canister {
|
|
11
|
+
constructor(options?: CanisterOptions);
|
|
12
|
+
/**
|
|
13
|
+
* Notifies the Cycle Minting Canister (CMC) that a top-up transfer has been completed.
|
|
14
|
+
*
|
|
15
|
+
* After sending ICP to the CMC top-up account for a canister, the transfer is recorded
|
|
16
|
+
* on the ledger. The CMC does not automatically convert that ICP into cycles — you
|
|
17
|
+
* must call this function to let the CMC know which transaction to process.
|
|
18
|
+
*
|
|
19
|
+
* The CMC will then convert the ICP from the given ledger block into cycles and add
|
|
20
|
+
* them to the specified canister.
|
|
21
|
+
*
|
|
22
|
+
* @param {CmcDid.NotifyTopUpArg} args - Arguments containing the ledger block index and the canister ID that should receive the cycles.
|
|
23
|
+
* @returns {Promise<CmcDid.NotifyTopUpResult>} The result of the CMC conversion and deposit.
|
|
24
|
+
*/
|
|
25
|
+
notifyTopUp: ({ args }: {
|
|
26
|
+
args: CmcDid.NotifyTopUpArg;
|
|
27
|
+
}) => Promise<CmcDid.NotifyTopUpResult>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const ExchangeRateCanister: IDL.VariantClass;
|
|
2
|
+
export const AccountIdentifier: IDL.TextClass;
|
|
3
|
+
export const CyclesCanisterInitPayload: IDL.RecordClass;
|
|
4
|
+
export const SubnetListWithType: IDL.RecordClass;
|
|
5
|
+
export const ChangeSubnetTypeAssignmentArgs: IDL.VariantClass;
|
|
6
|
+
export const SubnetFilter: IDL.RecordClass;
|
|
7
|
+
export const SubnetSelection: IDL.VariantClass;
|
|
8
|
+
export const environment_variable: IDL.RecordClass;
|
|
9
|
+
export const log_visibility: IDL.VariantClass;
|
|
10
|
+
export const CanisterSettings: IDL.RecordClass;
|
|
11
|
+
export const CreateCanisterArg: IDL.RecordClass;
|
|
12
|
+
export const CreateCanisterError: IDL.VariantClass;
|
|
13
|
+
export const CreateCanisterResult: IDL.VariantClass;
|
|
14
|
+
export const IcpXdrConversionRate: IDL.RecordClass;
|
|
15
|
+
export const IcpXdrConversionRateResponse: IDL.RecordClass;
|
|
16
|
+
export const PrincipalsAuthorizedToCreateCanistersToSubnetsResponse: IDL.RecordClass;
|
|
17
|
+
export const SubnetTypesToSubnetsResponse: IDL.RecordClass;
|
|
18
|
+
export const BlockIndex: IDL.FixedNatClass;
|
|
19
|
+
export const NotifyCreateCanisterArg: IDL.RecordClass;
|
|
20
|
+
export const NotifyError: IDL.VariantClass;
|
|
21
|
+
export const NotifyCreateCanisterResult: IDL.VariantClass;
|
|
22
|
+
export const Memo: IDL.OptClass<(number | bigint)[]>;
|
|
23
|
+
export const Subaccount: IDL.OptClass<(number | bigint)[]>;
|
|
24
|
+
export const NotifyMintCyclesArg: IDL.RecordClass;
|
|
25
|
+
export const NotifyMintCyclesSuccess: IDL.RecordClass;
|
|
26
|
+
export const NotifyMintCyclesResult: IDL.VariantClass;
|
|
27
|
+
export const NotifyTopUpArg: IDL.RecordClass;
|
|
28
|
+
export const Cycles: IDL.NatClass;
|
|
29
|
+
export const NotifyTopUpResult: IDL.VariantClass;
|
|
30
|
+
export const SetAuthorizedSubnetworkListArgs: IDL.RecordClass;
|
|
31
|
+
export const UpdateSubnetTypeArgs: IDL.VariantClass;
|
|
32
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
33
|
+
change_subnet_type_assignment: IDL.FuncClass<[IDL.VariantClass], []>;
|
|
34
|
+
create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
35
|
+
get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
36
|
+
get_default_subnets: IDL.FuncClass<[], [IDL.VecClass<import("@dfinity/principal").Principal>]>;
|
|
37
|
+
get_icp_xdr_conversion_rate: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
38
|
+
get_principals_authorized_to_create_canisters_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
39
|
+
get_subnet_types_to_subnets: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
40
|
+
notify_create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
41
|
+
notify_mint_cycles: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
42
|
+
notify_top_up: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
43
|
+
set_authorized_subnetwork_list: IDL.FuncClass<[IDL.RecordClass], []>;
|
|
44
|
+
update_subnet_type: IDL.FuncClass<[IDL.VariantClass], []>;
|
|
45
|
+
}>;
|
|
46
|
+
export const idlInitArgs: IDL.OptClass<Record<string, any>>[];
|
|
47
|
+
export function idlFactory({ IDL }: {
|
|
48
|
+
IDL: any;
|
|
49
|
+
}): any;
|
|
50
|
+
export function init({ IDL }: {
|
|
51
|
+
IDL: any;
|
|
52
|
+
}): any[];
|
|
53
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const InitArg: IDL.RecordClass;
|
|
2
|
+
export const GetAccountIdentifierTransactionsArgs: IDL.RecordClass;
|
|
3
|
+
export const Tokens: IDL.RecordClass;
|
|
4
|
+
export const TimeStamp: IDL.RecordClass;
|
|
5
|
+
export const Operation: IDL.VariantClass;
|
|
6
|
+
export const Transaction: IDL.RecordClass;
|
|
7
|
+
export const TransactionWithId: IDL.RecordClass;
|
|
8
|
+
export const GetAccountIdentifierTransactionsResponse: IDL.RecordClass;
|
|
9
|
+
export const GetAccountIdentifierTransactionsError: IDL.RecordClass;
|
|
10
|
+
export const GetAccountIdentifierTransactionsResult: IDL.VariantClass;
|
|
11
|
+
export const Account: IDL.RecordClass;
|
|
12
|
+
export const GetAccountTransactionsArgs: IDL.RecordClass;
|
|
13
|
+
export const GetBlocksRequest: IDL.RecordClass;
|
|
14
|
+
export const GetBlocksResponse: IDL.RecordClass;
|
|
15
|
+
export const HttpRequest: IDL.RecordClass;
|
|
16
|
+
export const HttpResponse: IDL.RecordClass;
|
|
17
|
+
export const Status: IDL.RecordClass;
|
|
18
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
19
|
+
get_account_identifier_balance: IDL.FuncClass<[IDL.TextClass], [IDL.FixedNatClass]>;
|
|
20
|
+
get_account_identifier_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
21
|
+
get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
22
|
+
get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
23
|
+
http_request: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
24
|
+
icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.FixedNatClass]>;
|
|
25
|
+
ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
|
|
26
|
+
status: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
27
|
+
}>;
|
|
28
|
+
export const idlInitArgs: IDL.RecordClass[];
|
|
29
|
+
export function idlFactory({ IDL }: {
|
|
30
|
+
IDL: any;
|
|
31
|
+
}): any;
|
|
32
|
+
export function init({ IDL }: {
|
|
33
|
+
IDL: any;
|
|
34
|
+
}): any[];
|
|
35
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const SubAccount: IDL.VecClass<number | bigint>;
|
|
2
|
+
export const Account: IDL.RecordClass;
|
|
3
|
+
export const FeatureFlags: IDL.RecordClass;
|
|
4
|
+
export const UpgradeArgs: IDL.RecordClass;
|
|
5
|
+
export const Tokens: IDL.RecordClass;
|
|
6
|
+
export const TextAccountIdentifier: IDL.TextClass;
|
|
7
|
+
export const Duration: IDL.RecordClass;
|
|
8
|
+
export const ArchiveOptions: IDL.RecordClass;
|
|
9
|
+
export const InitArgs: IDL.RecordClass;
|
|
10
|
+
export const LedgerCanisterPayload: IDL.VariantClass;
|
|
11
|
+
export const AccountIdentifier: IDL.VecClass<number | bigint>;
|
|
12
|
+
export const AccountBalanceArgs: IDL.RecordClass;
|
|
13
|
+
export const AccountBalanceArgsDfx: IDL.RecordClass;
|
|
14
|
+
export const Archive: IDL.RecordClass;
|
|
15
|
+
export const Archives: IDL.RecordClass;
|
|
16
|
+
export const GetAllowancesArgs: IDL.RecordClass;
|
|
17
|
+
export const Allowances: IDL.VecClass<Record<string, any>>;
|
|
18
|
+
export const Icrc1Tokens: IDL.NatClass;
|
|
19
|
+
export const Value: IDL.VariantClass;
|
|
20
|
+
export const Icrc1Timestamp: IDL.FixedNatClass;
|
|
21
|
+
export const TransferArg: IDL.RecordClass;
|
|
22
|
+
export const Icrc1BlockIndex: IDL.NatClass;
|
|
23
|
+
export const Icrc1TransferError: IDL.VariantClass;
|
|
24
|
+
export const Icrc1TransferResult: IDL.VariantClass;
|
|
25
|
+
export const icrc21_consent_message_metadata: IDL.RecordClass;
|
|
26
|
+
export const icrc21_consent_message_spec: IDL.RecordClass;
|
|
27
|
+
export const icrc21_consent_message_request: IDL.RecordClass;
|
|
28
|
+
export const Icrc21Value: IDL.VariantClass;
|
|
29
|
+
export const FieldsDisplay: IDL.RecordClass;
|
|
30
|
+
export const icrc21_consent_message: IDL.VariantClass;
|
|
31
|
+
export const icrc21_consent_info: IDL.RecordClass;
|
|
32
|
+
export const icrc21_error_info: IDL.RecordClass;
|
|
33
|
+
export const icrc21_error: IDL.VariantClass;
|
|
34
|
+
export const icrc21_consent_message_response: IDL.VariantClass;
|
|
35
|
+
export const AllowanceArgs: IDL.RecordClass;
|
|
36
|
+
export const Allowance: IDL.RecordClass;
|
|
37
|
+
export const ApproveArgs: IDL.RecordClass;
|
|
38
|
+
export const ApproveError: IDL.VariantClass;
|
|
39
|
+
export const ApproveResult: IDL.VariantClass;
|
|
40
|
+
export const TransferFromArgs: IDL.RecordClass;
|
|
41
|
+
export const TransferFromError: IDL.VariantClass;
|
|
42
|
+
export const TransferFromResult: IDL.VariantClass;
|
|
43
|
+
export const BlockIndex: IDL.FixedNatClass;
|
|
44
|
+
export const GetBlocksArgs: IDL.RecordClass;
|
|
45
|
+
export const Memo: IDL.FixedNatClass;
|
|
46
|
+
export const TimeStamp: IDL.RecordClass;
|
|
47
|
+
export const Operation: IDL.VariantClass;
|
|
48
|
+
export const Transaction: IDL.RecordClass;
|
|
49
|
+
export const Block: IDL.RecordClass;
|
|
50
|
+
export const BlockRange: IDL.RecordClass;
|
|
51
|
+
export const QueryArchiveError: IDL.VariantClass;
|
|
52
|
+
export const QueryArchiveResult: IDL.VariantClass;
|
|
53
|
+
export const QueryArchiveFn: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
54
|
+
export const ArchivedBlocksRange: IDL.RecordClass;
|
|
55
|
+
export const QueryBlocksResponse: IDL.RecordClass;
|
|
56
|
+
export const ArchivedEncodedBlocksRange: IDL.RecordClass;
|
|
57
|
+
export const QueryEncodedBlocksResponse: IDL.RecordClass;
|
|
58
|
+
export const RemoveApprovalArgs: IDL.RecordClass;
|
|
59
|
+
export const SendArgs: IDL.RecordClass;
|
|
60
|
+
export const TipOfChainRes: IDL.RecordClass;
|
|
61
|
+
export const TransferArgs: IDL.RecordClass;
|
|
62
|
+
export const TransferError: IDL.VariantClass;
|
|
63
|
+
export const TransferResult: IDL.VariantClass;
|
|
64
|
+
export const TransferFeeArg: IDL.RecordClass;
|
|
65
|
+
export const TransferFee: IDL.RecordClass;
|
|
66
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
67
|
+
account_balance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
68
|
+
account_balance_dfx: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
69
|
+
account_identifier: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<number | bigint>]>;
|
|
70
|
+
archives: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
71
|
+
decimals: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
72
|
+
get_allowances: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
|
|
73
|
+
icrc10_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
74
|
+
icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
|
|
75
|
+
icrc1_decimals: IDL.FuncClass<[], [IDL.FixedNatClass]>;
|
|
76
|
+
icrc1_fee: IDL.FuncClass<[], [IDL.NatClass]>;
|
|
77
|
+
icrc1_metadata: IDL.FuncClass<[], [IDL.VecClass<any[]>]>;
|
|
78
|
+
icrc1_minting_account: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
|
|
79
|
+
icrc1_name: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
80
|
+
icrc1_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
81
|
+
icrc1_symbol: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
82
|
+
icrc1_total_supply: IDL.FuncClass<[], [IDL.NatClass]>;
|
|
83
|
+
icrc1_transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
84
|
+
icrc21_canister_call_consent_message: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
85
|
+
icrc2_allowance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
86
|
+
icrc2_approve: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
87
|
+
icrc2_transfer_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
88
|
+
is_ledger_ready: IDL.FuncClass<[], [IDL.BoolClass]>;
|
|
89
|
+
name: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
90
|
+
query_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
91
|
+
query_encoded_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
92
|
+
remove_approval: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
93
|
+
send_dfx: IDL.FuncClass<[IDL.RecordClass], [IDL.FixedNatClass]>;
|
|
94
|
+
symbol: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
95
|
+
tip_of_chain: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
96
|
+
transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
97
|
+
transfer_fee: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
98
|
+
}>;
|
|
99
|
+
export const idlInitArgs: IDL.VariantClass[];
|
|
100
|
+
export function idlFactory({ IDL }: {
|
|
101
|
+
IDL: any;
|
|
102
|
+
}): any;
|
|
103
|
+
export function init({ IDL }: {
|
|
104
|
+
IDL: any;
|
|
105
|
+
}): any[];
|
|
106
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const Value: IDL.RecClass<any>;
|
|
2
|
+
export const UpgradeArg: IDL.RecordClass;
|
|
3
|
+
export const InitArg: IDL.RecordClass;
|
|
4
|
+
export const IndexArg: IDL.VariantClass;
|
|
5
|
+
export const BlockIndex: IDL.NatClass;
|
|
6
|
+
export const SubAccount: IDL.VecClass<number | bigint>;
|
|
7
|
+
export const Account: IDL.RecordClass;
|
|
8
|
+
export const GetAccountTransactionsArgs: IDL.RecordClass;
|
|
9
|
+
export const Tokens: IDL.NatClass;
|
|
10
|
+
export const Burn: IDL.RecordClass;
|
|
11
|
+
export const Mint: IDL.RecordClass;
|
|
12
|
+
export const Approve: IDL.RecordClass;
|
|
13
|
+
export const Transfer: IDL.RecordClass;
|
|
14
|
+
export const Transaction: IDL.RecordClass;
|
|
15
|
+
export const TransactionWithId: IDL.RecordClass;
|
|
16
|
+
export const GetTransactions: IDL.RecordClass;
|
|
17
|
+
export const GetTransactionsErr: IDL.RecordClass;
|
|
18
|
+
export const GetTransactionsResult: IDL.VariantClass;
|
|
19
|
+
export const GetBlocksRequest: IDL.RecordClass;
|
|
20
|
+
export const Map: IDL.VecClass<any[]>;
|
|
21
|
+
export const Block: IDL.RecClass<any>;
|
|
22
|
+
export const GetBlocksResponse: IDL.RecordClass;
|
|
23
|
+
export const FeeCollectorRanges: IDL.RecordClass;
|
|
24
|
+
export const ListSubaccountsArgs: IDL.RecordClass;
|
|
25
|
+
export const Status: IDL.RecordClass;
|
|
26
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
27
|
+
get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
28
|
+
get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
29
|
+
get_fee_collectors_ranges: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
30
|
+
icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
|
|
31
|
+
ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
|
|
32
|
+
list_subaccounts: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<(number | bigint)[]>]>;
|
|
33
|
+
status: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
34
|
+
}>;
|
|
35
|
+
export const idlInitArgs: IDL.OptClass<{
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
}>[];
|
|
38
|
+
export function idlFactory({ IDL }: {
|
|
39
|
+
IDL: any;
|
|
40
|
+
}): any;
|
|
41
|
+
export function init({ IDL }: {
|
|
42
|
+
IDL: any;
|
|
43
|
+
}): any[];
|
|
44
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const InitArgs: IDL.RecordClass;
|
|
2
|
+
export const TxId: IDL.NatClass;
|
|
3
|
+
export const Account: IDL.RecordClass;
|
|
4
|
+
export const GetAccountTransactionsArgs: IDL.RecordClass;
|
|
5
|
+
export const Burn: IDL.RecordClass;
|
|
6
|
+
export const Mint: IDL.RecordClass;
|
|
7
|
+
export const Approve: IDL.RecordClass;
|
|
8
|
+
export const Transfer: IDL.RecordClass;
|
|
9
|
+
export const Transaction: IDL.RecordClass;
|
|
10
|
+
export const TransactionWithId: IDL.RecordClass;
|
|
11
|
+
export const GetTransactions: IDL.RecordClass;
|
|
12
|
+
export const GetTransactionsErr: IDL.RecordClass;
|
|
13
|
+
export const GetTransactionsResult: IDL.VariantClass;
|
|
14
|
+
export const SubAccount: IDL.VecClass<number | bigint>;
|
|
15
|
+
export const ListSubaccountsArgs: IDL.RecordClass;
|
|
16
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
17
|
+
get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
18
|
+
ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
|
|
19
|
+
list_subaccounts: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<(number | bigint)[]>]>;
|
|
20
|
+
}>;
|
|
21
|
+
export const idlInitArgs: IDL.RecordClass[];
|
|
22
|
+
export function idlFactory({ IDL }: {
|
|
23
|
+
IDL: any;
|
|
24
|
+
}): any;
|
|
25
|
+
export function init({ IDL }: {
|
|
26
|
+
IDL: any;
|
|
27
|
+
}): any[];
|
|
28
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export const GetBlocksResult: IDL.RecClass<any>;
|
|
2
|
+
export const ICRC3Value: IDL.RecClass<any>;
|
|
3
|
+
export const Value: IDL.RecClass<any>;
|
|
4
|
+
export const ChangeArchiveOptions: IDL.RecordClass;
|
|
5
|
+
export const MetadataValue: IDL.VariantClass;
|
|
6
|
+
export const Subaccount: IDL.VecClass<number | bigint>;
|
|
7
|
+
export const Account: IDL.RecordClass;
|
|
8
|
+
export const ChangeFeeCollector: IDL.VariantClass;
|
|
9
|
+
export const FeatureFlags: IDL.RecordClass;
|
|
10
|
+
export const UpgradeArgs: IDL.RecordClass;
|
|
11
|
+
export const InitArgs: IDL.RecordClass;
|
|
12
|
+
export const LedgerArg: IDL.VariantClass;
|
|
13
|
+
export const BlockIndex: IDL.NatClass;
|
|
14
|
+
export const ArchiveInfo: IDL.RecordClass;
|
|
15
|
+
export const GetBlocksArgs: IDL.RecordClass;
|
|
16
|
+
export const Map: IDL.VecClass<any[]>;
|
|
17
|
+
export const Block: IDL.RecClass<any>;
|
|
18
|
+
export const BlockRange: IDL.RecordClass;
|
|
19
|
+
export const QueryBlockArchiveFn: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
20
|
+
export const GetBlocksResponse: IDL.RecordClass;
|
|
21
|
+
export const DataCertificate: IDL.RecordClass;
|
|
22
|
+
export const TxIndex: IDL.NatClass;
|
|
23
|
+
export const GetTransactionsRequest: IDL.RecordClass;
|
|
24
|
+
export const Timestamp: IDL.FixedNatClass;
|
|
25
|
+
export const Burn: IDL.RecordClass;
|
|
26
|
+
export const Mint: IDL.RecordClass;
|
|
27
|
+
export const Approve: IDL.RecordClass;
|
|
28
|
+
export const Transfer: IDL.RecordClass;
|
|
29
|
+
export const Transaction: IDL.RecordClass;
|
|
30
|
+
export const TransactionRange: IDL.RecordClass;
|
|
31
|
+
export const QueryArchiveFn: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
32
|
+
export const GetTransactionsResponse: IDL.RecordClass;
|
|
33
|
+
export const GetAllowancesArgs: IDL.RecordClass;
|
|
34
|
+
export const Allowance103: IDL.RecordClass;
|
|
35
|
+
export const GetAllowancesError: IDL.VariantClass;
|
|
36
|
+
export const icrc103_get_allowances_response: IDL.VariantClass;
|
|
37
|
+
export const GetIndexPrincipalError: IDL.VariantClass;
|
|
38
|
+
export const GetIndexPrincipalResult: IDL.VariantClass;
|
|
39
|
+
export const Tokens: IDL.NatClass;
|
|
40
|
+
export const StandardRecord: IDL.RecordClass;
|
|
41
|
+
export const TransferArg: IDL.RecordClass;
|
|
42
|
+
export const TransferError: IDL.VariantClass;
|
|
43
|
+
export const TransferResult: IDL.VariantClass;
|
|
44
|
+
export const icrc21_consent_message_metadata: IDL.RecordClass;
|
|
45
|
+
export const icrc21_consent_message_spec: IDL.RecordClass;
|
|
46
|
+
export const icrc21_consent_message_request: IDL.RecordClass;
|
|
47
|
+
export const Icrc21Value: IDL.VariantClass;
|
|
48
|
+
export const FieldsDisplay: IDL.RecordClass;
|
|
49
|
+
export const icrc21_consent_message: IDL.VariantClass;
|
|
50
|
+
export const icrc21_consent_info: IDL.RecordClass;
|
|
51
|
+
export const icrc21_error_info: IDL.RecordClass;
|
|
52
|
+
export const icrc21_error: IDL.VariantClass;
|
|
53
|
+
export const icrc21_consent_message_response: IDL.VariantClass;
|
|
54
|
+
export const AllowanceArgs: IDL.RecordClass;
|
|
55
|
+
export const Allowance: IDL.RecordClass;
|
|
56
|
+
export const ApproveArgs: IDL.RecordClass;
|
|
57
|
+
export const ApproveError: IDL.VariantClass;
|
|
58
|
+
export const ApproveResult: IDL.VariantClass;
|
|
59
|
+
export const TransferFromArgs: IDL.RecordClass;
|
|
60
|
+
export const TransferFromError: IDL.VariantClass;
|
|
61
|
+
export const TransferFromResult: IDL.VariantClass;
|
|
62
|
+
export const GetArchivesArgs: IDL.RecordClass;
|
|
63
|
+
export const GetArchivesResult: IDL.VecClass<Record<string, any>>;
|
|
64
|
+
export const ICRC3DataCertificate: IDL.RecordClass;
|
|
65
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
66
|
+
archives: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
67
|
+
get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
68
|
+
get_data_certificate: IDL.FuncClass<[], [IDL.RecordClass]>;
|
|
69
|
+
get_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
70
|
+
icrc103_get_allowances: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
71
|
+
icrc106_get_index_principal: IDL.FuncClass<[], [IDL.VariantClass]>;
|
|
72
|
+
icrc10_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
73
|
+
icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
|
|
74
|
+
icrc1_decimals: IDL.FuncClass<[], [IDL.FixedNatClass]>;
|
|
75
|
+
icrc1_fee: IDL.FuncClass<[], [IDL.NatClass]>;
|
|
76
|
+
icrc1_metadata: IDL.FuncClass<[], [IDL.VecClass<any[]>]>;
|
|
77
|
+
icrc1_minting_account: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
|
|
78
|
+
icrc1_name: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
79
|
+
icrc1_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
80
|
+
icrc1_symbol: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
81
|
+
icrc1_total_supply: IDL.FuncClass<[], [IDL.NatClass]>;
|
|
82
|
+
icrc1_transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
83
|
+
icrc21_canister_call_consent_message: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
84
|
+
icrc2_allowance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
|
|
85
|
+
icrc2_approve: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
86
|
+
icrc2_transfer_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
|
|
87
|
+
icrc3_get_archives: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
|
|
88
|
+
icrc3_get_blocks: IDL.FuncClass<[IDL.VecClass<Record<string, any>>], [IDL.RecClass<any>]>;
|
|
89
|
+
icrc3_get_tip_certificate: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
|
|
90
|
+
icrc3_supported_block_types: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
|
|
91
|
+
is_ledger_ready: IDL.FuncClass<[], [IDL.BoolClass]>;
|
|
92
|
+
}>;
|
|
93
|
+
export const idlInitArgs: IDL.VariantClass[];
|
|
94
|
+
export function idlFactory({ IDL }: {
|
|
95
|
+
IDL: any;
|
|
96
|
+
}): any;
|
|
97
|
+
export function init({ IDL }: {
|
|
98
|
+
IDL: any;
|
|
99
|
+
}): any[];
|
|
100
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const Value: IDL.RecClass<any>;
|
|
2
|
+
export const Subaccount: IDL.VecClass<number | bigint>;
|
|
3
|
+
export const Account: IDL.RecordClass;
|
|
4
|
+
export const TransferArg: IDL.RecordClass;
|
|
5
|
+
export const TransferError: IDL.VariantClass;
|
|
6
|
+
export const TransferResult: IDL.VariantClass;
|
|
7
|
+
export const idlService: IDL.ServiceClass<string, {
|
|
8
|
+
icrc7_atomic_batch_transfers: IDL.FuncClass<[], [IDL.OptClass<boolean>]>;
|
|
9
|
+
icrc7_balance_of: IDL.FuncClass<[IDL.VecClass<Record<string, any>>], [IDL.VecClass<number | bigint>]>;
|
|
10
|
+
icrc7_collection_metadata: IDL.FuncClass<[], [IDL.VecClass<any[]>]>;
|
|
11
|
+
icrc7_default_take_value: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
12
|
+
icrc7_description: IDL.FuncClass<[], [IDL.OptClass<string>]>;
|
|
13
|
+
icrc7_logo: IDL.FuncClass<[], [IDL.OptClass<string>]>;
|
|
14
|
+
icrc7_max_memo_size: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
15
|
+
icrc7_max_query_batch_size: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
16
|
+
icrc7_max_take_value: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
17
|
+
icrc7_max_update_batch_size: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
18
|
+
icrc7_name: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
19
|
+
icrc7_owner_of: IDL.FuncClass<[IDL.VecClass<number | bigint>], [IDL.VecClass<[] | [Record<string, any>]>]>;
|
|
20
|
+
icrc7_permitted_drift: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
21
|
+
icrc7_supply_cap: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
22
|
+
icrc7_symbol: IDL.FuncClass<[], [IDL.TextClass]>;
|
|
23
|
+
icrc7_token_metadata: IDL.FuncClass<[IDL.VecClass<number | bigint>], [IDL.VecClass<[] | [any[][]]>]>;
|
|
24
|
+
icrc7_tokens: IDL.FuncClass<[IDL.OptClass<number | bigint>, IDL.OptClass<number | bigint>], [IDL.VecClass<number | bigint>]>;
|
|
25
|
+
icrc7_tokens_of: IDL.FuncClass<[IDL.RecordClass, IDL.OptClass<number | bigint>, IDL.OptClass<number | bigint>], [IDL.VecClass<number | bigint>]>;
|
|
26
|
+
icrc7_total_supply: IDL.FuncClass<[], [IDL.NatClass]>;
|
|
27
|
+
icrc7_transfer: IDL.FuncClass<[IDL.VecClass<Record<string, any>>], [IDL.VecClass<[] | [{
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
}]>]>;
|
|
30
|
+
icrc7_tx_window: IDL.FuncClass<[], [IDL.OptClass<number | bigint>]>;
|
|
31
|
+
}>;
|
|
32
|
+
export const idlInitArgs: any[];
|
|
33
|
+
export function idlFactory({ IDL }: {
|
|
34
|
+
IDL: any;
|
|
35
|
+
}): any;
|
|
36
|
+
export function init({ IDL }: {
|
|
37
|
+
IDL: any;
|
|
38
|
+
}): never[];
|
|
39
|
+
import { IDL } from '@icp-sdk/core/candid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schemas';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Canister } from '../../_canister';
|
|
2
|
+
import { type IcpLedgerDid } from '../../declarations';
|
|
3
|
+
import { type CanisterOptions } from '../../schemas';
|
|
4
|
+
/**
|
|
5
|
+
* Provides a simple interface to interact with the ICP Ledger,
|
|
6
|
+
* when developing Juno Serverless Functions in TypeScript.
|
|
7
|
+
*
|
|
8
|
+
* @param {CanisterOptions} [options] - Optional custom canister ID.
|
|
9
|
+
*/
|
|
10
|
+
export declare class IcpLedgerCanister extends Canister {
|
|
11
|
+
constructor(options?: CanisterOptions);
|
|
12
|
+
/**
|
|
13
|
+
* Sends ICP using the Ledger canister `transfer` method.
|
|
14
|
+
*
|
|
15
|
+
* Use this to transfer ICP from one account to another when writing
|
|
16
|
+
* Juno Serverless Functions in TypeScript.
|
|
17
|
+
*
|
|
18
|
+
* @param {IcpLedgerDid.TransferArgs} args - The ledger transfer arguments (amount, destination account, memo, fee, etc.).
|
|
19
|
+
* @returns {Promise<IcpLedgerDid.TransferResult>} The result of the ICP transfer.
|
|
20
|
+
*/
|
|
21
|
+
transfer: ({ args }: {
|
|
22
|
+
args: IcpLedgerDid.TransferArgs;
|
|
23
|
+
}) => Promise<IcpLedgerDid.TransferResult>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Canister } from '../../_canister';
|
|
2
|
+
import { type IcrcLedgerDid } from '../../declarations';
|
|
3
|
+
import { type IcrcCanisterOptions } from './schemas';
|
|
4
|
+
/**
|
|
5
|
+
* Provides a simple interface to interact with an ICRC Ledger,
|
|
6
|
+
* when developing Juno Serverless Functions in TypeScript.
|
|
7
|
+
*
|
|
8
|
+
* @param {CanisterOptions} [options] - The options providing the ICRC ledger canister ID.
|
|
9
|
+
*/
|
|
10
|
+
export declare class IcrcLedgerCanister extends Canister {
|
|
11
|
+
constructor(options: IcrcCanisterOptions);
|
|
12
|
+
/**
|
|
13
|
+
* Returns the balance of an ICRC account.
|
|
14
|
+
*
|
|
15
|
+
* @param {IcrcLedgerDid.Account} account - The account to query.
|
|
16
|
+
* @returns {Promise<IcrcLedgerDid.Tokens>} The token balance for the account.
|
|
17
|
+
*/
|
|
18
|
+
icrc1BalanceOf: ({ account }: {
|
|
19
|
+
account: IcrcLedgerDid.Account;
|
|
20
|
+
}) => Promise<IcrcLedgerDid.Tokens>;
|
|
21
|
+
/**
|
|
22
|
+
* Transfers tokens using the ICRC-1 `icrc1_transfer` method.
|
|
23
|
+
*
|
|
24
|
+
* Use this to send tokens from the caller's account to another account
|
|
25
|
+
* when writing Juno Serverless Functions in TypeScript.
|
|
26
|
+
*
|
|
27
|
+
* @param {IcrcLedgerDid.TransferArg} args - Transfer arguments (amount, fee, to, memo, created_at_time, etc.).
|
|
28
|
+
* @returns {Promise<IcrcLedgerDid.TransferResult>} The result of the transfer.
|
|
29
|
+
*/
|
|
30
|
+
icrc1Transfer: ({ args }: {
|
|
31
|
+
args: IcrcLedgerDid.TransferArg;
|
|
32
|
+
}) => Promise<IcrcLedgerDid.TransferResult>;
|
|
33
|
+
/**
|
|
34
|
+
* Transfers tokens using the ICRC-2 `icrc2_transfer_from` method.
|
|
35
|
+
*
|
|
36
|
+
* Allows transferring tokens from another user's account when an approval
|
|
37
|
+
* has previously been granted via `icrc2_approve`.
|
|
38
|
+
*
|
|
39
|
+
* @param {IcrcLedgerDid.TransferFromArgs} args - Transfer-from arguments (amount, from_subaccount, spender, etc.).
|
|
40
|
+
* @returns {Promise<IcrcLedgerDid.TransferFromResult>} The result of the transfer-from operation.
|
|
41
|
+
*/
|
|
42
|
+
icrc2TransferFrom: ({ args }: {
|
|
43
|
+
args: IcrcLedgerDid.TransferFromArgs;
|
|
44
|
+
}) => Promise<IcrcLedgerDid.TransferFromResult>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* @see CanisterOptions
|
|
4
|
+
*/
|
|
5
|
+
export declare const IcrcCanisterOptionsSchema: z.ZodObject<{
|
|
6
|
+
canisterId: z.ZodNonOptional<z.ZodOptional<z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
/**
|
|
9
|
+
* The options to initialize an Icrc canister.
|
|
10
|
+
*/
|
|
11
|
+
export type IcrcCanisterOptions = z.infer<typeof IcrcCanisterOptionsSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* @see CanisterOptions
|
|
4
|
+
*/
|
|
5
|
+
export declare const CanisterOptionsSchema: z.ZodObject<{
|
|
6
|
+
canisterId: z.ZodOptional<z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
/**
|
|
9
|
+
* The options to initialize a canister.
|
|
10
|
+
*/
|
|
11
|
+
export type CanisterOptions = z.infer<typeof CanisterOptionsSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/functions",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-next-2025-11-24",
|
|
4
4
|
"description": "JavaScript and TypeScript utilities for Juno Serverless Functions",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,22 @@
|
|
|
20
20
|
"./ic-cdk": {
|
|
21
21
|
"types": "./ic-cdk.d.ts",
|
|
22
22
|
"import": "./ic-cdk.js"
|
|
23
|
+
},
|
|
24
|
+
"./canisters": {
|
|
25
|
+
"types": "./canisters/index.d.ts",
|
|
26
|
+
"import": "./canisters/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./canisters/cmc": {
|
|
29
|
+
"types": "./canisters/cmc/index.d.ts",
|
|
30
|
+
"import": "./canisters/cmc/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./canisters/ledger/icp": {
|
|
33
|
+
"types": "./canisters/ledger/icp/index.d.ts",
|
|
34
|
+
"import": "./canisters/ledger/icp/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./canisters/ledger/icrc": {
|
|
37
|
+
"types": "./canisters/ledger/icrc/index.d.ts",
|
|
38
|
+
"import": "./canisters/ledger/icrc/index.js"
|
|
23
39
|
}
|
|
24
40
|
},
|
|
25
41
|
"files": [
|
|
@@ -57,8 +73,8 @@
|
|
|
57
73
|
],
|
|
58
74
|
"homepage": "https://juno.build",
|
|
59
75
|
"peerDependencies": {
|
|
60
|
-
"@dfinity/utils": "
|
|
61
|
-
"@icp-sdk/core": "
|
|
62
|
-
"zod": "
|
|
76
|
+
"@dfinity/utils": "*",
|
|
77
|
+
"@icp-sdk/core": "*",
|
|
78
|
+
"zod": "*"
|
|
63
79
|
}
|
|
64
|
-
}
|
|
80
|
+
}
|