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

Breaking: Add importTime property to InternalAccount metadata #289

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading