Skip to content

Commit 8ccb7df

Browse files
committed
chore: removes unused types
1 parent 0549615 commit 8ccb7df

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

.changeset/sharp-chefs-fail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aave/graphql": patch
3+
"@aave/types": patch
4+
---
5+
6+
**chore:** removes unused types.

packages/graphql/src/graphql.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type {
66
Cursor,
77
DateTime,
88
EvmAddress,
9-
FixedBytes32,
109
ID,
1110
Signature,
1211
TxHash,
@@ -46,7 +45,6 @@ export const graphql = initGraphQLTada<{
4645
Cursor: Cursor;
4746
DateTime: DateTime;
4847
EvmAddress: EvmAddress;
49-
FixedBytes32: FixedBytes32;
5048
Float: number;
5149
ID: ID;
5250
Int: number;

packages/types/src/hex.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,8 @@ export const blockchainData = hexString<BlockchainData>;
4949
export type Signature = Tagged<HexString, 'Signature'>;
5050
export const signatureFrom = hexString<Signature>;
5151

52-
/**
53-
* An RLP-encoded transaction.
54-
*/
55-
export type EncodedTransaction = Tagged<HexString, 'EncodedTransaction'>;
56-
5752
/**
5853
* A transaction hash.
5954
*/
6055
export type TxHash = Tagged<HexString, 'TxHash'>;
6156
export const txHash = hexString<TxHash>;
62-
63-
/**
64-
* A fixed 32 bytes long hexadecimal string.
65-
*
66-
* Typically the result of a hash function like `keccak256`.
67-
*/
68-
export type FixedBytes32 = Tagged<HexString, 'FixedBytes32'>;
69-
export function fixedBytes32(value: string) {
70-
invariant(
71-
value.length === 66,
72-
`FixedBytes32: invalid length ${value.length}`,
73-
);
74-
return hexString<FixedBytes32>(value);
75-
}

0 commit comments

Comments
 (0)