Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Feb 12, 2024
1 parent 27b51a0 commit 8e2a452
Show file tree
Hide file tree
Showing 80 changed files with 174 additions and 330 deletions.
88 changes: 88 additions & 0 deletions .dfx/local/canisters/icrc1_index/constructor.old.did
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
type TxId = nat;

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;
};

type GetAccountTransactionsArgs = record {
account : Account;
// The txid of the last transaction seen by the client.
// If None then the results will start from the most recent
// txid.
start : opt TxId;
// Maximum number of transactions to fetch.
max_results : nat;
};

type TransactionWithId = record {
id : TxId;
transaction : Transaction;
};

type GetTransactions = record {
transactions : vec TransactionWithId;
// The txid of the oldest transaction the account has
oldest_tx_id : opt TxId;
};

type GetTransactionsErr = record {
message : text;
};

type GetTransactionsResult = variant {
Ok : GetTransactions;
Err : GetTransactionsErr;
};

type ListSubaccountsArgs = record {
owner: principal;
start: opt SubAccount;
};

// The initialization parameters of the Index canister.
type InitArgs = record {
ledger_id : principal;
};

service : (InitArgs) -> {
get_account_transactions : (GetAccountTransactionsArgs) -> (GetTransactionsResult);
ledger_id : () -> (principal) query;
list_subaccounts : (ListSubaccountsArgs) -> (vec SubAccount) query;
}
276 changes: 0 additions & 276 deletions .dfx/local/canisters/idl/bkyz2-fmaaa-aaaaa-qaaaq-cai.did

This file was deleted.

2 changes: 1 addition & 1 deletion .dfx/network/local/ic-canister-http-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"incoming_source": {
"Path": "/tmp/ic-https-outcalls-adapter-socket.14976.1707663880"
"Path": "/tmp/ic-https-outcalls-adapter-socket.1989.1707717110"
},
"logger": {
"level": "error"
Expand Down
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-canister-http-socket-path
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/tmp/ic-https-outcalls-adapter-socket.14976.1707663880
/tmp/ic-https-outcalls-adapter-socket.1989.1707717110
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-https-outcalls-adapter-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14986
1999
2 changes: 1 addition & 1 deletion .dfx/network/local/icx-proxy-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15103
2179
2 changes: 1 addition & 1 deletion .dfx/network/local/network-id
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"created": "2024-02-11 15:04:40.057725132 +00:00:00"
"created": "2024-02-12 05:51:50.078891168 +00:00:00"
}
Loading

0 comments on commit 8e2a452

Please sign in to comment.