Skip to content

Commit

Permalink
Merge pull request #51 from moreal/remove-timestamp
Browse files Browse the repository at this point in the history
Dont use timestamp
  • Loading branch information
moreal authored Nov 22, 2023
2 parents 4d88c75 + 6dcf3cf commit 94b17bb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/graphql/GetAssetTransferred.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ query GetAssetTransferred($blockIndex: Long!) {
limit: 1
) {
id
timestamp
actions {
raw
}
Expand Down
1 change: 0 additions & 1 deletion src/graphql/GetGarageUnloads.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ query GetGarageUnloads($startingBlockIndex: Long!) {
) {
id
signer
timestamp
actions {
raw
}
Expand Down
3 changes: 0 additions & 3 deletions src/headless-graphql-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export class HeadlessGraphQLClient implements IHeadlessGraphQLClient {
: {
txId: tx.id,
signer: tx.signer,
timestamp: tx.timestamp,
fungibleAssetValues,
fungibleItems,
memo,
Expand Down Expand Up @@ -166,7 +165,6 @@ export class HeadlessGraphQLClient implements IHeadlessGraphQLClient {
return data.data.transaction.ncTransactions
.map((tx) => {
const txId = tx.id;
const timestamp = tx.timestamp;
const action = decode(
Buffer.from(tx.actions[0].raw, "hex"),
) as Dictionary;
Expand All @@ -193,7 +191,6 @@ export class HeadlessGraphQLClient implements IHeadlessGraphQLClient {

return {
txId,
timestamp,
sender,
recipient,
amount,
Expand Down
1 change: 0 additions & 1 deletion src/observers/garage-observer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ test("notify", async () => {
blockHash: "xxx",
planetID: "odin",
signer: "0x0000000000000000000000000000000000000000",
timestamp: "2023-11-17T16:59:29.374833+00:00",
fungibleAssetValues: [
[
await account.getAddress(),
Expand Down
1 change: 0 additions & 1 deletion src/types/asset-transferred-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { TxId } from "./txid";

export interface AssetTransferredEvent {
txId: TxId;
timestamp: string;
sender: Address;
recipient: Address;
amount: FungibleAssetValue;
Expand Down
1 change: 0 additions & 1 deletion src/types/garage-unload-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { TxId } from "./txid";
export interface GarageUnloadEvent {
txId: TxId;
signer: string;
timestamp: string;
fungibleAssetValues: [Address, FungibleAssetValue][];
fungibleItems: [Address, FungibleItemId, number][];
memo: string | null;
Expand Down

0 comments on commit 94b17bb

Please sign in to comment.