Skip to content

Commit

Permalink
Pull latest icp canister versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Apr 30, 2024
1 parent 49b1fdd commit 4a94a22
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 146 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build: node_modules
.PHONY: install
.SILENT: install
install: build
dfx canister install identity --mode reinstall --yes
dfx canister install identity --argument '(null)' --mode reinstall --yes
$(shell make/install_ledger.sh)
$(shell make/install_ledger_index.sh)
dfx canister install github --mode reinstall --yes
Expand All @@ -31,7 +31,7 @@ install: build
.PHONY: upgrade
.SILENT: upgrade
upgrade: build
dfx canister install identity --mode=upgrade
dfx canister install identity --argument '(null)' --mode=upgrade
dfx canister install icrc1_ledger --mode=upgrade
dfx canister install icrc1_index --mode=upgrade
dfx canister install github --mode=upgrade
Expand All @@ -41,6 +41,8 @@ upgrade: build
.SILENT: clean
clean:
rm -fr .dfx
rm -fr node_modules
rm -fr target

# tests
.PHONY: test-1
Expand Down
Binary file modified icp/icrc1/index/ic-icrc1-index.wasm.gz
Binary file not shown.
78 changes: 43 additions & 35 deletions icp/icrc1/index/index.did
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,48 @@ type Account = record { owner : principal; subaccount : opt blob };
type SubAccount = blob;

type Transaction = record {
kind : text;
mint : opt record {
amount : nat;
to : Account;
memo : opt blob;
created_at_time : opt nat64;
};
burn : opt record {
amount : nat;
from : Account;
spender : opt Account;
memo : opt blob;
created_at_time : opt nat64;
};
transfer : opt record {
amount : nat;
from : Account;
to : Account;
spender : opt Account;
memo : opt blob;
created_at_time : opt nat64;
fee : opt nat;
};
approve : opt record {
amount : nat;
from : Account;
spender : opt Account;
expected_allowance : opt nat;
expires_at : opt nat64;
memo : opt blob;
created_at_time : opt nat64;
fee : opt nat;
};
timestamp : nat64;
burn : opt Burn;
kind : text;
mint : opt Mint;
approve : opt Approve;
timestamp : nat64;
transfer : opt Transfer;
};

type Approve = record {
fee : opt nat;
from : Account;
memo : opt vec nat8;
created_at_time : opt nat64;
amount : nat;
expected_allowance : opt nat;
expires_at : opt nat64;
spender : Account;
};

type Burn = record {
from : Account;
memo : opt vec nat8;
created_at_time : opt nat64;
amount : nat;
spender : opt Account;
};

type Mint = record {
to : Account;
memo : opt vec nat8;
created_at_time : opt nat64;
amount : nat;
};

type Transfer = record {
to : Account;
fee : opt nat;
from : Account;
memo : opt vec nat8;
created_at_time : opt nat64;
amount : nat;
spender : opt Account;
};

type GetAccountTransactionsArgs = record {
Expand Down Expand Up @@ -85,4 +93,4 @@ service : (InitArgs) -> {
get_account_transactions : (GetAccountTransactionsArgs) -> (GetTransactionsResult);
ledger_id : () -> (principal) query;
list_subaccounts : (ListSubaccountsArgs) -> (vec SubAccount) query;
}
}
Binary file modified icp/icrc1/ledger/ic-icrc1-ledger.wasm.gz
Binary file not shown.
Loading

0 comments on commit 4a94a22

Please sign in to comment.