Skip to content

Commit

Permalink
3.0.0: Correctly model blocks (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos authored Jun 27, 2024
1 parent 67212db commit b9fb388
Show file tree
Hide file tree
Showing 15 changed files with 2,499 additions and 362 deletions.
158 changes: 77 additions & 81 deletions src/client/v2/algod/models/types.ts

Large diffs are not rendered by default.

122 changes: 61 additions & 61 deletions src/client/v2/indexer/models/types.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/client/v2/untypedmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Encodable, MsgpackEncodingData } from '../../encoding/encoding.js';
import { UntypedSchema } from '../../encoding/schema/index.js';

export class UntypedValue implements Encodable {
static encodingSchema = new UntypedSchema();
static readonly encodingSchema = new UntypedSchema();

public readonly data: MsgpackEncodingData;

Expand Down
2 changes: 1 addition & 1 deletion src/encoding/encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export interface EncodableClass<T extends Encodable> {
/**
* The encoding Schema for this class, used to prepare encoding data from msgpack and JSON.
*/
encodingSchema: Schema;
readonly encodingSchema: Schema;
}

/**
Expand Down
10 changes: 9 additions & 1 deletion src/encoding/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ export { AddressSchema } from './address.js';
export { ByteArraySchema, FixedLengthByteArraySchema } from './bytearray.js';

export { ArraySchema } from './array.js';
export { NamedMapSchema, NamedMapEntry, allOmitEmpty } from './map.js';
export {
NamedMapSchema,
NamedMapEntry,
allOmitEmpty,
combineMaps,
convertMap,
Uint64MapSchema,
StringMapSchema,
} from './map.js';
export { OptionalSchema } from './optional.js';

export { UntypedSchema } from './untyped.js';
Loading

0 comments on commit b9fb388

Please sign in to comment.