Skip to content

Commit

Permalink
fix(types): add @ to records
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Mar 18, 2024
1 parent d8d910b commit 53601c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/common/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export type ArIOSigner = ArweaveSigner | ArconnectSigner;
export type ContractConfiguration = {
signer?: ArIOSigner; // TODO: optionally allow JWK in place of signer
} & (
| {
| {
contract?: SmartWeaveContract<unknown>;
}
| {
| {
contractTxId: string;
}
);
);

function isContractConfiguration<T>(
config: ContractConfiguration,
Expand Down
4 changes: 3 additions & 1 deletion src/contract-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ export type ANTRecord = {
ttlSeconds: number;
};

export type ANTRecords = Record<string, ANTRecord> & { '@': ANTRecord };

export type ANTState = {
owner: WalletAddress;
controllers: WalletAddress[];
name: string;
ticker: string;
records: Record<string, ANTRecord>;
records: ANTRecords;
balances: Balances;
};

0 comments on commit 53601c1

Please sign in to comment.