Skip to content

Commit

Permalink
query is reserved; recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenbuilder committed Aug 7, 2021
1 parent 57c32d9 commit 1218da8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Archive.mo
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ module ExtArchive = {

public type Date = Nat64;
public type TransactionId = Nat;
public type MintingEvent = {
minter : User;
to : User;
token : TokenIdentifier;
amount : Balance;
memo : Memo;
};
public type Transaction = {
txid : TransactionId;
request : ExtCore.TransferRequest;
data : { #ExtCore.TransferRequest; #MintingEvent; };
date : Date;
};


public type TransactionRequest = {
query : {
filter : {
#txid : TransactionId;
#user : ExtCore.User;
#date : (Date, Date); //from - to
Expand Down

0 comments on commit 1218da8

Please sign in to comment.