Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Breaking: Add importTime property to InternalAccount metadata (#289)
Browse files Browse the repository at this point in the history
feat: add new property importTime to metadata
  • Loading branch information
montelaidev authored Apr 16, 2024
1 parent 23a1c0a commit ff2b2b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/internal/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('InternalAccount', () => {
type: 'Test Keyring',
},
name: 'Account 1',
importTime: 1713153716,
},
};

Expand All @@ -31,6 +32,7 @@ describe('InternalAccount', () => {
metadata: {
keyring: {},
name: 'Account 1',
importTime: 1713153716,
},
};

Expand All @@ -48,6 +50,7 @@ describe('InternalAccount', () => {
type: 'eip155:eoa',
metadata: {
name: 'Account 1',
importTime: 1713153716,
},
};

Expand Down Expand Up @@ -82,6 +85,7 @@ describe('InternalAccount', () => {
type: 'Test Keyring',
},
name: 'Account 1',
importTime: 1713153716,
extra: 'field',
},
};
Expand All @@ -103,6 +107,7 @@ describe('InternalAccount', () => {
type: 'Test Keyring',
},
name: 'Account 1',
importTime: 1713153716,
snap: {
id: 'test-snap',
enabled: true,
Expand All @@ -128,6 +133,7 @@ describe('InternalAccount', () => {
type: 'Test Keyring',
},
name: 'Account 1',
importTime: 1713153716,
snap: {
id: 'test-snap',
enabled: true,
Expand Down
1 change: 1 addition & 0 deletions src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const InternalAccountStruct = object({
}),
),
lastSelected: exactOptional(number()),
importTime: number(),
keyring: object({
type: string(),
}),
Expand Down

0 comments on commit ff2b2b3

Please sign in to comment.