MCPcopy Create free account
hub / github.com/dfinity/orbit / deploy_icrc1_token

Function deploy_icrc1_token

tests/integration/src/interfaces.rs:139–156  ·  view source on GitHub ↗
(
    env: &mut PocketIc,
    controller: Principal,
    init: Icrc1LedgerInitArgs,
)

Source from the content-addressed store, hash-verified

137}
138
139pub fn deploy_icrc1_token(
140 env: &mut PocketIc,
141 controller: Principal,
142 init: Icrc1LedgerInitArgs,
143) -> Principal {
144 let wasm_module = get_canister_wasm("icrc1_ledger").to_vec();
145
146 let canister_id = create_canister_with_cycles(env, controller, 1_000_000_000_000);
147
148 env.install_canister(
149 canister_id,
150 wasm_module,
151 Encode!(&Icrc1LedgerArgument::Init(init)).unwrap(),
152 Some(controller),
153 );
154
155 canister_id
156}
157
158pub fn mint_icrc1_tokens(
159 env: &PocketIc,

Callers 1

make_icrc1_transferFunction · 0.85

Calls 4

get_canister_wasmFunction · 0.85
to_vecMethod · 0.80
install_canisterMethod · 0.80

Tested by 1

make_icrc1_transferFunction · 0.68