Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.0: Correctly model blocks #875

Merged
merged 9 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
158 changes: 77 additions & 81 deletions src/client/v2/algod/models/types.ts
gmalouf marked this conversation as resolved.
Show resolved Hide resolved

Large diffs are not rendered by default.

122 changes: 61 additions & 61 deletions src/client/v2/indexer/models/types.ts
gmalouf marked this conversation as resolved.
Show resolved Hide resolved

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