Skip to content

Commit b9fb388

Browse files
authored
3.0.0: Correctly model blocks (#875)
1 parent 67212db commit b9fb388

File tree

15 files changed

+2499
-362
lines changed

15 files changed

+2499
-362
lines changed

src/client/v2/algod/models/types.ts

Lines changed: 77 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/v2/indexer/models/types.ts

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/v2/untypedmodel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Encodable, MsgpackEncodingData } from '../../encoding/encoding.js';
22
import { UntypedSchema } from '../../encoding/schema/index.js';
33

44
export class UntypedValue implements Encodable {
5-
static encodingSchema = new UntypedSchema();
5+
static readonly encodingSchema = new UntypedSchema();
66

77
public readonly data: MsgpackEncodingData;
88

src/encoding/encoding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export interface EncodableClass<T extends Encodable> {
233233
/**
234234
* The encoding Schema for this class, used to prepare encoding data from msgpack and JSON.
235235
*/
236-
encodingSchema: Schema;
236+
readonly encodingSchema: Schema;
237237
}
238238

239239
/**

src/encoding/schema/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ export { AddressSchema } from './address.js';
66
export { ByteArraySchema, FixedLengthByteArraySchema } from './bytearray.js';
77

88
export { ArraySchema } from './array.js';
9-
export { NamedMapSchema, NamedMapEntry, allOmitEmpty } from './map.js';
9+
export {
10+
NamedMapSchema,
11+
NamedMapEntry,
12+
allOmitEmpty,
13+
combineMaps,
14+
convertMap,
15+
Uint64MapSchema,
16+
StringMapSchema,
17+
} from './map.js';
1018
export { OptionalSchema } from './optional.js';
1119

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

0 commit comments

Comments
 (0)