@cmts-dev/carmentis-sdk-core 1.2.30 → 1.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain/stateChecker/StateChecker.d.ts +6 -34
- package/dist/blockchain/stateChecker/StateChecker.d.ts.map +1 -1
- package/dist/blockchain/virtualBlockchains/ApplicationLedgerVb.d.ts +4 -9
- package/dist/blockchain/virtualBlockchains/ApplicationLedgerVb.d.ts.map +1 -1
- package/dist/carmentis-sdk-core.cjs +4 -4
- package/dist/carmentis-sdk-core.d.ts +12 -20
- package/dist/carmentis-sdk-core.d.ts.map +1 -1
- package/dist/carmentis-sdk-core.js +3581 -4041
- package/dist/proofs/AccountProofWrapper.d.ts +9 -0
- package/dist/proofs/AccountProofWrapper.d.ts.map +1 -0
- package/dist/{records/ProofDocumentVB.d.ts → proofs/AppLedgerProofVB.d.ts} +4 -4
- package/dist/proofs/AppLedgerProofVB.d.ts.map +1 -0
- package/dist/proofs/AppLedgerProofWrapper.d.ts +63 -0
- package/dist/proofs/AppLedgerProofWrapper.d.ts.map +1 -0
- package/dist/proofs/MicroblockProofWrapper.d.ts +9 -0
- package/dist/proofs/MicroblockProofWrapper.d.ts.map +1 -0
- package/dist/proofs/ProofFactory.d.ts +8 -0
- package/dist/proofs/ProofFactory.d.ts.map +1 -0
- package/dist/proofs/ProofWrapper.d.ts +22 -0
- package/dist/proofs/ProofWrapper.d.ts.map +1 -0
- package/dist/providers/IExternalProvider.d.ts +1 -0
- package/dist/providers/IExternalProvider.d.ts.map +1 -1
- package/dist/providers/IInternalProvider.d.ts.map +1 -1
- package/dist/providers/NetworkProvider.d.ts +2 -0
- package/dist/providers/NetworkProvider.d.ts.map +1 -1
- package/dist/providers/NullNetworkProvider.d.ts +1 -0
- package/dist/providers/NullNetworkProvider.d.ts.map +1 -1
- package/dist/records/MerkleLeaf.d.ts +1 -1
- package/dist/records/MerkleLeaf.d.ts.map +1 -1
- package/dist/records/PositionedLeaf.d.ts +1 -1
- package/dist/records/PositionedLeaf.d.ts.map +1 -1
- package/dist/records/ProofRecord.d.ts +2 -1
- package/dist/records/ProofRecord.d.ts.map +1 -1
- package/dist/records/Record.d.ts +2 -1
- package/dist/records/Record.d.ts.map +1 -1
- package/dist/records/RecordByChannels.d.ts +1 -1
- package/dist/records/RecordByChannels.d.ts.map +1 -1
- package/dist/trees/radixChecker.d.ts +1 -1
- package/dist/trees/radixUtils.d.ts +2 -2
- package/dist/trees/radixUtils.d.ts.map +1 -1
- package/dist/type/types.d.ts +1 -1
- package/dist/type/types.d.ts.map +1 -1
- package/dist/type/valibot/blockchain/microblock/MicroblockBody.d.ts +27 -81
- package/dist/type/valibot/blockchain/microblock/MicroblockBody.d.ts.map +1 -1
- package/dist/type/valibot/blockchain/microblock/MicroblockHeader.d.ts +5 -5
- package/dist/type/valibot/blockchain/microblock/MicroblockStruct.d.ts +32 -86
- package/dist/type/valibot/blockchain/microblock/MicroblockStruct.d.ts.map +1 -1
- package/dist/type/valibot/blockchain/section/sections.d.ts +54 -162
- package/dist/type/valibot/blockchain/section/sections.d.ts.map +1 -1
- package/dist/type/valibot/blockchain/virtualBlockchain/internalStates.d.ts +11 -11
- package/dist/type/valibot/blockchain/virtualBlockchain/virtualBlockchains.d.ts +14 -14
- package/dist/type/valibot/json/Json.d.ts +7 -0
- package/dist/type/valibot/json/Json.d.ts.map +1 -0
- package/dist/type/valibot/primitives.d.ts +8 -1
- package/dist/type/valibot/primitives.d.ts.map +1 -1
- package/dist/type/valibot/{stateProofs → proofs}/AccountProof.d.ts +75 -43
- package/dist/type/valibot/proofs/AccountProof.d.ts.map +1 -0
- package/dist/{records/types.d.ts → type/valibot/proofs/AppLedgerProof.d.ts} +47 -78
- package/dist/type/valibot/proofs/AppLedgerProof.d.ts.map +1 -0
- package/dist/type/valibot/proofs/CarmentisProof.d.ts +543 -0
- package/dist/type/valibot/proofs/CarmentisProof.d.ts.map +1 -0
- package/dist/type/valibot/{stateProofs → proofs}/MicroblockProof.d.ts +184 -142
- package/dist/type/valibot/proofs/MicroblockProof.d.ts.map +1 -0
- package/dist/type/valibot/{stateProofs → proofs}/ProofBlock.d.ts +16 -8
- package/dist/type/valibot/proofs/ProofBlock.d.ts.map +1 -0
- package/dist/type/valibot/provider/MicroblockInformationSchema.d.ts +5 -5
- package/dist/type/valibot/provider/VirtualBlockchainStatus.d.ts +7 -7
- package/dist/type/valibot/provider/abci/AbciResponse.d.ts +143 -1423
- package/dist/type/valibot/provider/abci/AbciResponse.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/blockchainOld/Account.d.ts +0 -2
- package/dist/blockchainOld/Account.d.ts.map +0 -1
- package/dist/blockchainOld/Application.d.ts +0 -2
- package/dist/blockchainOld/Application.d.ts.map +0 -1
- package/dist/blockchainOld/ApplicationLedger.d.ts +0 -2
- package/dist/blockchainOld/ApplicationLedger.d.ts.map +0 -1
- package/dist/blockchainOld/Organization.d.ts +0 -2
- package/dist/blockchainOld/Organization.d.ts.map +0 -1
- package/dist/blockchainOld/Protocol.d.ts +0 -2
- package/dist/blockchainOld/Protocol.d.ts.map +0 -1
- package/dist/blockchainOld/ValidatorNode.d.ts +0 -2
- package/dist/blockchainOld/ValidatorNode.d.ts.map +0 -1
- package/dist/blockchainOld/blockchain.d.ts +0 -2
- package/dist/blockchainOld/blockchain.d.ts.map +0 -1
- package/dist/records/ProofDocument.d.ts +0 -74
- package/dist/records/ProofDocument.d.ts.map +0 -1
- package/dist/records/ProofDocumentVB.d.ts.map +0 -1
- package/dist/records/types.d.ts.map +0 -1
- package/dist/records-old/Merklizer.d.ts +0 -12
- package/dist/records-old/Merklizer.d.ts.map +0 -1
- package/dist/records-old/PepperMerklizer.d.ts +0 -20
- package/dist/records-old/PepperMerklizer.d.ts.map +0 -1
- package/dist/records-old/SaltMerklizer.d.ts +0 -15
- package/dist/records-old/SaltMerklizer.d.ts.map +0 -1
- package/dist/records-old/intermediateRepresentation.d.ts +0 -176
- package/dist/records-old/intermediateRepresentation.d.ts.map +0 -1
- package/dist/records-old/maskManager.d.ts +0 -15
- package/dist/records-old/maskManager.d.ts.map +0 -1
- package/dist/records-old/messageManager.d.ts +0 -8
- package/dist/records-old/messageManager.d.ts.map +0 -1
- package/dist/records-old/pathManager.d.ts +0 -17
- package/dist/records-old/pathManager.d.ts.map +0 -1
- package/dist/type/valibot/stateProofs/AccountProof.d.ts.map +0 -1
- package/dist/type/valibot/stateProofs/MicroblockProof.d.ts.map +0 -1
- package/dist/type/valibot/stateProofs/ProofBlock.d.ts.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Json } from '../type/valibot/json/Json';
|
|
2
|
+
import { ProofWrapper } from './ProofWrapper';
|
|
3
|
+
import { WrappedAccountProof } from '../type/valibot/proofs/CarmentisProof';
|
|
4
|
+
export declare class AccountProofWrapper extends ProofWrapper<WrappedAccountProof> {
|
|
5
|
+
constructor(wrapper: WrappedAccountProof);
|
|
6
|
+
static createEmptyProof(): AccountProofWrapper;
|
|
7
|
+
static fromObject(json: Json): AccountProofWrapper;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=AccountProofWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountProofWrapper.d.ts","sourceRoot":"","sources":["../../src/proofs/AccountProofWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAA6B,MAAM,uCAAuC,CAAA;AAItG,qBAAa,mBAAoB,SAAQ,YAAY,CAAC,mBAAmB,CAAC;gBAC1D,OAAO,EAAE,mBAAmB;IAIxC,MAAM,CAAC,gBAAgB;IAWvB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI;CAI/B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ProofChannel, ProofMicroblock, ProofVirtualBlockchain } from '
|
|
2
|
-
export declare class
|
|
1
|
+
import { ProofChannel, ProofMicroblock, ProofVirtualBlockchain } from '../type/valibot/proofs/AppLedgerProof';
|
|
2
|
+
export declare class AppLedgerProofVB {
|
|
3
3
|
private identifier;
|
|
4
4
|
private microblocks;
|
|
5
5
|
constructor();
|
|
6
|
-
static fromObject(object: ProofVirtualBlockchain):
|
|
6
|
+
static fromObject(object: ProofVirtualBlockchain): AppLedgerProofVB;
|
|
7
7
|
toObject(): ProofVirtualBlockchain;
|
|
8
8
|
setIdentifier(identifier: string): void;
|
|
9
9
|
getIdentifier(): string;
|
|
@@ -11,4 +11,4 @@ export declare class ProofDocumentVB {
|
|
|
11
11
|
getMicroblock(height: number): ProofMicroblock;
|
|
12
12
|
getMicroblocks(): ProofMicroblock[];
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=AppLedgerProofVB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLedgerProofVB.d.ts","sourceRoot":"","sources":["../../src/proofs/AppLedgerProofVB.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,eAAe,EACf,sBAAsB,EACzB,MAAM,uCAAuC,CAAC;AAE/C,qBAAa,gBAAgB;IACzB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAoB;;IAOvC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,sBAAsB;IAShD,QAAQ,IAAI,sBAAsB;IAOlC,aAAa,CAAC,UAAU,EAAE,MAAM;IAIhC,aAAa;IAIb,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE;IAQtD,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAQ9C,cAAc,IAAI,eAAe,EAAE;CAGtC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Json } from '../type/valibot/json/Json';
|
|
2
|
+
import { ProofWrapper } from './ProofWrapper';
|
|
3
|
+
import { WrappedAppLedgerProof } from '../type/valibot/proofs/CarmentisProof';
|
|
4
|
+
import { AppLedgerProofVB } from './AppLedgerProofVB';
|
|
5
|
+
export declare class AppLedgerProofWrapper extends ProofWrapper<WrappedAppLedgerProof> {
|
|
6
|
+
constructor(wrapper: WrappedAppLedgerProof);
|
|
7
|
+
static createEmptyProof(): AppLedgerProofWrapper;
|
|
8
|
+
static fromObject(json: Json): AppLedgerProofWrapper;
|
|
9
|
+
addVirtualBlockchain(proofDocumentVB: AppLedgerProofVB): void;
|
|
10
|
+
getSingleVirtualBlockchainOrFail(): AppLedgerProofVB;
|
|
11
|
+
getVirtualBlockchain(id: string): {
|
|
12
|
+
id: string;
|
|
13
|
+
microblocks: {
|
|
14
|
+
height: number;
|
|
15
|
+
channels: {
|
|
16
|
+
id: number;
|
|
17
|
+
isPublic: boolean;
|
|
18
|
+
nLeaves: number;
|
|
19
|
+
fields: ({
|
|
20
|
+
path: (string | number)[];
|
|
21
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.Public;
|
|
22
|
+
value: string | number | boolean | null;
|
|
23
|
+
} | {
|
|
24
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.Plain;
|
|
25
|
+
salt: string;
|
|
26
|
+
value: string | number | boolean | null;
|
|
27
|
+
path: (string | number)[];
|
|
28
|
+
index: number;
|
|
29
|
+
} | {
|
|
30
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.HashableAsPlain;
|
|
31
|
+
salt: string;
|
|
32
|
+
value: string | number | boolean | null;
|
|
33
|
+
path: (string | number)[];
|
|
34
|
+
index: number;
|
|
35
|
+
} | {
|
|
36
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.HashableAsHash;
|
|
37
|
+
salt: string;
|
|
38
|
+
hash: string;
|
|
39
|
+
path: (string | number)[];
|
|
40
|
+
index: number;
|
|
41
|
+
} | {
|
|
42
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.MaskableAsAllParts;
|
|
43
|
+
vSalt: string;
|
|
44
|
+
vParts: string[];
|
|
45
|
+
hSalt: string;
|
|
46
|
+
hParts: string[];
|
|
47
|
+
path: (string | number)[];
|
|
48
|
+
index: number;
|
|
49
|
+
} | {
|
|
50
|
+
type: import("../carmentis-sdk-core").ProofFieldTypeEnum.MaskableAsVisibleParts;
|
|
51
|
+
vSalt: string;
|
|
52
|
+
vParts: string[];
|
|
53
|
+
hHash: string;
|
|
54
|
+
path: (string | number)[];
|
|
55
|
+
index: number;
|
|
56
|
+
})[];
|
|
57
|
+
witnesses: string[];
|
|
58
|
+
}[];
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
getVirtualBlockchains(): AppLedgerProofVB[];
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=AppLedgerProofWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLedgerProofWrapper.d.ts","sourceRoot":"","sources":["../../src/proofs/AppLedgerProofWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAA+B,MAAM,uCAAuC,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,qBAAa,qBAAsB,SAAQ,YAAY,CAAC,qBAAqB,CAAC;gBAC9D,OAAO,EAAE,qBAAqB;IAI1C,MAAM,CAAC,gBAAgB;IAWvB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI;IAK5B,oBAAoB,CAAC,eAAe,EAAE,gBAAgB;IAItD,gCAAgC;IAWhC,oBAAoB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ/B,qBAAqB;CAKxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Json } from '../type/valibot/json/Json';
|
|
2
|
+
import { ProofWrapper } from './ProofWrapper';
|
|
3
|
+
import { WrappedMicroblockProof } from '../type/valibot/proofs/CarmentisProof';
|
|
4
|
+
export declare class MicroblockProofWrapper extends ProofWrapper<WrappedMicroblockProof> {
|
|
5
|
+
constructor(wrapper: WrappedMicroblockProof);
|
|
6
|
+
static createEmptyProof(): MicroblockProofWrapper;
|
|
7
|
+
static fromObject(json: Json): MicroblockProofWrapper;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=MicroblockProofWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MicroblockProofWrapper.d.ts","sourceRoot":"","sources":["../../src/proofs/MicroblockProofWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAgC,MAAM,uCAAuC,CAAA;AAI5G,qBAAa,sBAAuB,SAAQ,YAAY,CAAC,sBAAsB,CAAC;gBAChE,OAAO,EAAE,sBAAsB;IAI3C,MAAM,CAAC,gBAAgB;IAWvB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI;CAI/B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WrappedProof } from '../type/valibot/proofs/CarmentisProof';
|
|
2
|
+
import { AccountProofWrapper } from './AccountProofWrapper';
|
|
3
|
+
import { AppLedgerProofWrapper } from './AppLedgerProofWrapper';
|
|
4
|
+
import { MicroblockProofWrapper } from './MicroblockProofWrapper';
|
|
5
|
+
export declare class ProofFactory {
|
|
6
|
+
static importProof(wrappedProof: WrappedProof): AppLedgerProofWrapper | AccountProofWrapper | MicroblockProofWrapper;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ProofFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProofFactory.d.ts","sourceRoot":"","sources":["../../src/proofs/ProofFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,qBAAa,YAAY;IACrB,MAAM,CAAC,WAAW,CAAC,YAAY,EAAE,YAAY;CAchD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProofInfo, WrappedProof } from '../type/valibot/proofs/CarmentisProof';
|
|
2
|
+
export declare abstract class ProofWrapper<T extends WrappedProof = WrappedProof> {
|
|
3
|
+
readonly wrapper: T;
|
|
4
|
+
private encoder;
|
|
5
|
+
constructor(wrapper: T);
|
|
6
|
+
static getDefaultInfo(version: number): ProofInfo;
|
|
7
|
+
getObject(): T;
|
|
8
|
+
setVersion(version: number): void;
|
|
9
|
+
getVersion(): number;
|
|
10
|
+
setChainId(chainId: string): void;
|
|
11
|
+
getChainId(): string;
|
|
12
|
+
setDescription(description: string): void;
|
|
13
|
+
getDescription(): string;
|
|
14
|
+
setAuthor(author: string): void;
|
|
15
|
+
getAuthor(): string;
|
|
16
|
+
setDate(date: Date): void;
|
|
17
|
+
getDate(): Date;
|
|
18
|
+
sign(issuedAt?: Date): void;
|
|
19
|
+
verifySignature(): void;
|
|
20
|
+
computeDigest(): Uint8Array<ArrayBufferLike>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ProofWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProofWrapper.d.ts","sourceRoot":"","sources":["../../src/proofs/ProofWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EACT,YAAY,EAGf,MAAM,uCAAuC,CAAA;AAK9C,8BAAsB,YAAY,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY;IACpE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,OAAO,CAAC,OAAO,CAAiC;gBAEpC,OAAO,EAAE,CAAC;IAItB,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS;IAUjD,SAAS;IAIT,UAAU,CAAC,OAAO,EAAE,MAAM;IAI1B,UAAU;IAIV,UAAU,CAAC,OAAO,EAAE,MAAM;IAI1B,UAAU;IAIV,cAAc,CAAC,WAAW,EAAE,MAAM;IAIlC,cAAc;IAId,SAAS,CAAC,MAAM,EAAE,MAAM;IAIxB,SAAS;IAIT,OAAO,CAAC,IAAI,EAAE,IAAI;IAIlB,OAAO;IAIP,IAAI,CAAC,QAAQ,GAAE,IAAe;IAqB9B,eAAe;IAKf,aAAa;CAMhB"}
|
|
@@ -2,6 +2,7 @@ import { MicroblockInformation } from '../type/valibot/provider/MicroblockInform
|
|
|
2
2
|
import { AbciRequest } from '../type/valibot/provider/abci/AbciRequest';
|
|
3
3
|
import { AbciResponse, AccountByPublicKeyHashAbciResponse, AccountHistoryAbciResponse, AccountStateAbciResponse, BlockContentAbciResponse, BlockInformationAbciResponse, ChainInformationAbciResponse, GenesisSnapshotAbciResponse, MicroblockBodysAbciResponse, ValidatorNodeByAddressAbciResponse, VirtualBlockchainUpdateAbciResponse } from '../type/valibot/provider/abci/AbciResponse';
|
|
4
4
|
export interface IExternalProvider {
|
|
5
|
+
getChainId(): Promise<string>;
|
|
5
6
|
sendSerializedMicroblock(serializedMicroblock: Uint8Array): Promise<any>;
|
|
6
7
|
awaitMicroblockAnchoring(hash: Uint8Array): Promise<MicroblockInformation>;
|
|
7
8
|
getChainInformation(): Promise<ChainInformationAbciResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IExternalProvider.d.ts","sourceRoot":"","sources":["../../src/providers/IExternalProvider.ts"],"names":[],"m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AI,CAAC,CAAC;IAEjF,0BAA0B,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpF,6BAA6B,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnG,2BAA2B,CAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,mCAAmC,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChG"}
|
|
@@ -8,8 +8,10 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
8
8
|
private logger;
|
|
9
9
|
private requestLogger;
|
|
10
10
|
private responseLogger;
|
|
11
|
+
private chainId;
|
|
11
12
|
static createFromUrl(url: string): NetworkProvider;
|
|
12
13
|
constructor(nodeUrl: string);
|
|
14
|
+
getChainId(): Promise<string>;
|
|
13
15
|
sendSerializedMicroblock(serializedMicroblock: Uint8Array): Promise<{
|
|
14
16
|
data: string;
|
|
15
17
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NetworkProvider.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,qBAAqB,EAA8B,MAAM,sDAAsD,CAAC;AACxH,OAAO,EAAC,WAAW,EAAkB,MAAM,2CAA2C,CAAC;AACvF,OAAO,EACH,Y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mB3E,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAe1F,yBAAyB,CAAC,aAAa,EAAE,UAAU;;;;IAiBnD,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAoBjF,+BAA+B,CAAC,mBAAmB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAc5G,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC;IAgBrF,0BAA0B,CAAC,mBAAmB,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU;;;;;;IAYtF,mCAAmC,CAAC,mBAAmB,EAAE,UAAU;mBAepD,KAAK;IA+CpB,WAAW,CAAC,IAAI,EAAE,UAAU;cA3Cf,MAAM;;IA8DnB,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;WAO/C,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;WAkChG,2BAA2B,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAclD,kBAAkB,IAAI,OAAO,CAAC,2BAA2B,CAAC;CAanE"}
|
|
@@ -7,6 +7,7 @@ import { AbciRequest } from '../type/valibot/provider/abci/AbciRequest';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class NullNetworkProvider implements IExternalProvider {
|
|
9
9
|
constructor();
|
|
10
|
+
getChainId(): Promise<string>;
|
|
10
11
|
sendSerializedMicroblock(serializedMicroblock: Uint8Array): Promise<any>;
|
|
11
12
|
awaitMicroblockAnchoring(hash: Uint8Array): Promise<MicroblockInformation>;
|
|
12
13
|
getChainInformation(): Promise<ChainInformationAbciResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NullNetworkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NullNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,sDAAsD,CAAC;AAE3F,OAAO,EACH,YAAY,EACZ,kCAAkC,EAClC,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,kCAAkC,EAClC,mCAAmC,EACtC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,WAAW,EAAC,MAAM,2CAA2C,CAAC;AAEtE;;GAEG;AACH,qBAAa,mBAAoB,YAAW,iBAAiB;;IAIzD,wBAAwB,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAGxE,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAG1E,mBAAmB,IAAI,OAAO,CAAC,4BAA4B,CAAC;IAG5D,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAG1E,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAGlE,yBAAyB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAG3F,eAAe,CAAC,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAG3E,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAGhI,yBAAyB,CAAC,aAAa,EAAE,UAAU,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAGjG,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-1,5 +1,5 @@
|
|
|
1
1
|
import { SaltShaker } from './SaltShaker';
|
|
2
|
-
import { Path, Item, PrimitiveValue, TypedPrimitiveValue, ProofField } from '
|
|
2
|
+
import { Path, Item, PrimitiveValue, TypedPrimitiveValue, ProofField } from '../type/valibot/proofs/AppLedgerProof';
|
|
3
3
|
export declare class MerkleLeaf {
|
|
4
4
|
private internalData;
|
|
5
5
|
private encoder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerkleLeaf.d.ts","sourceRoot":"","sources":["../../src/records/MerkleLeaf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACH,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,mBAAmB,EAMnB,UAAU,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"MerkleLeaf.d.ts","sourceRoot":"","sources":["../../src/records/MerkleLeaf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACH,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,mBAAmB,EAMnB,UAAU,EACb,MAAM,uCAAuC,CAAC;AAG/C,qBAAa,UAAU;IACnB,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,OAAO,CAAiC;IAEhD,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,UAAU;IAMxC,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,IAAI;IAMxC,MAAM,CAAC,qBAAqB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI;IAO/D,MAAM,CAAC,sBAAsB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI;IAOhE,MAAM,CAAC,sBAAsB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI;IAchE,OAAO,CAAC,sBAAsB;IAO9B,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,yBAAyB;IAgBjC,OAAO,CAAC,6BAA6B;IAYrC,WAAW;IAcX,WAAW;IAcX,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,cAAc;IAiDtB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU;IAiEpD,OAAO,CAAC,iBAAiB;IA+CzB,OAAO;IAOP,WAAW,IAAI,cAAc;IA0B7B,aAAa,IAAI,mBAAmB;CAsBvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PositionedLeaf.d.ts","sourceRoot":"","sources":["../../src/records/PositionedLeaf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"PositionedLeaf.d.ts","sourceRoot":"","sources":["../../src/records/PositionedLeaf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,uCAAuC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACd,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MerkleRecord } from './MerkleRecord';
|
|
2
|
-
import {
|
|
2
|
+
import { JsonData } from '../type/valibot/json/Json';
|
|
3
|
+
import { Path, ProofChannel } from '../type/valibot/proofs/AppLedgerProof';
|
|
3
4
|
export declare class ProofRecord {
|
|
4
5
|
private channelMap;
|
|
5
6
|
private fieldMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofRecord.d.ts","sourceRoot":"","sources":["../../src/records/ProofRecord.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACH,IAAI,EAEJ,YAAY,
|
|
1
|
+
{"version":3,"file":"ProofRecord.d.ts","sourceRoot":"","sources":["../../src/records/ProofRecord.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,QAAQ,EAAC,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACH,IAAI,EAEJ,YAAY,EAEf,MAAM,uCAAuC,CAAC;AAU/C,qBAAa,WAAW;IACpB,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,QAAQ,CAAoD;IACpE,OAAO,CAAC,cAAc,CAAc;;IAQpC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,YAAY;IAMlD,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,YAAY,EAAE;IAMtD,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,4BAA4B;IAiCpC,MAAM,CAAC,mBAAmB,GAAE,OAAe,GAAG,QAAQ;IAkCtD,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,UAAU;IASlB,WAAW,CAAC,IAAI,EAAE,IAAI;IAMtB,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAK3B,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAK3B,mBAAmB,CAAC,SAAS,EAAE,MAAM;IASrC,sBAAsB,CAAC,SAAS,EAAE,MAAM;IAMxC,eAAe,IAAI,YAAY,EAAE;CAyBpC"}
|
package/dist/records/Record.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Json } from '../type/valibot/json/Json';
|
|
2
|
+
import { MaskPart, TypeEnum, FlatItem } from '../type/valibot/proofs/AppLedgerProof';
|
|
2
3
|
export declare class Record {
|
|
3
4
|
private itemList;
|
|
4
5
|
private publicChannels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Record.d.ts","sourceRoot":"","sources":["../../src/records/Record.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,QAAQ,EAER,
|
|
1
|
+
{"version":3,"file":"Record.d.ts","sourceRoot":"","sources":["../../src/records/Record.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAEH,QAAQ,EAER,QAAQ,EAER,QAAQ,EAKX,MAAM,uCAAuC,CAAC;AAE/C,qBAAa,MAAM;IACf,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,cAAc,CAAc;;IAOpC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO;IAOjC,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAIpC,mBAAmB,CAAC,SAAS,EAAE,MAAM;IAIrC,iBAAiB;IAIjB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAOhD;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB,aAAa,CAAC,UAAU,EAAE,MAAM;IAOhC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAwCtB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;IAO5D,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM;IAO5E;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAyC7B,WAAW;IAIX,OAAO,CAAC,qBAAqB;IAiC7B,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI;IAsB/B,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,IAAI;IAQxC,OAAO,CAAC,kBAAkB;IAiC1B,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;CAM1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordByChannels.d.ts","sourceRoot":"","sources":["../../src/records/RecordByChannels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EACH,QAAQ,EACX,MAAM,
|
|
1
|
+
{"version":3,"file":"RecordByChannels.d.ts","sourceRoot":"","sources":["../../src/records/RecordByChannels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EACH,QAAQ,EACX,MAAM,uCAAuC,CAAC;AAE/C,qBAAa,gBAAgB;IACzB,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,cAAc,CAAc;;IAOpC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM;IAgBhC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;IAUtE,OAAO,CAAC,iBAAiB;IAIzB,iBAAiB;IAIjB,aAAa;IAIb,YAAY,CAAC,SAAS,EAAE,MAAM;CAOjC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Returns the root hash obtained by applying the proof, or null if the proof is inconsistent.
|
|
3
3
|
* @param key - The key of the radix item.
|
|
4
4
|
* @param value - The value of the radix item.
|
|
5
|
-
* @param proof - The proof generated by RadixTree.get()
|
|
5
|
+
* @param proof - The proof generated by RadixTree.get() on the node side.
|
|
6
6
|
*/
|
|
7
7
|
export declare function verifyRadixProof(key: Uint8Array, value: Uint8Array | null, proof: Uint8Array[]): Uint8Array<ArrayBufferLike> | null;
|
|
8
8
|
//# sourceMappingURL=radixChecker.d.ts.map
|
|
@@ -5,10 +5,10 @@ export declare const RadixUtils: {
|
|
|
5
5
|
/**
|
|
6
6
|
Tests whether the trailing key stored in an early leaf node is different from the key that's being processed.
|
|
7
7
|
*/
|
|
8
|
-
declare function keyDifference(depth:
|
|
8
|
+
declare function keyDifference(depth: number, key: Uint8Array, node: Uint8Array): boolean;
|
|
9
9
|
/**
|
|
10
10
|
Extracts all hashes stored in a standard node and return them as a list. Empty slots are filled with null.
|
|
11
11
|
*/
|
|
12
|
-
declare function getHashList(msk:
|
|
12
|
+
declare function getHashList(msk: number, node: Uint8Array): (Uint8Array | null)[];
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=radixUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radixUtils.d.ts","sourceRoot":"","sources":["../../src/trees/radixUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF;;EAEE;AACF,iBAAS,aAAa,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"radixUtils.d.ts","sourceRoot":"","sources":["../../src/trees/radixUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF;;EAEE;AACF,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAOhF;AAED;;EAEE;AACF,iBAAS,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CASzE"}
|
package/dist/type/types.d.ts
CHANGED
package/dist/type/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/type/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/type/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,UAAU,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,UAAU,CAAC;IACrB,gBAAgB,EAAE,UAAU,CAAA;CAC/B;AAED,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,UAAU,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,UAAU,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,UAAU,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,UAAU,CAAA;CAC7B;AAED,MAAM,WAAW,KAAK;IAClB,IAAI,EAAE;QACF,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,2BAA2B,EAAE,MAAM,CAAA;KACtC,CAAC;IAAC,MAAM,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,GAAG,CAAA;KACZ,EAAE,CAAA;CACN"}
|
|
@@ -112,9 +112,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
112
112
|
}>]>;
|
|
113
113
|
}, undefined>, v.ObjectSchema<{
|
|
114
114
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_TOKEN_ISSUANCE, undefined>;
|
|
115
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
116
|
-
readonly typeId: 3;
|
|
117
|
-
}>]>;
|
|
115
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
118
116
|
}, undefined>, v.ObjectSchema<{
|
|
119
117
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_CREATION, undefined>;
|
|
120
118
|
readonly sellerAccount: v.InstanceSchema<{
|
|
@@ -127,9 +125,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
127
125
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
128
126
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
129
127
|
}, undefined>;
|
|
130
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
131
|
-
readonly typeId: 3;
|
|
132
|
-
}>]>;
|
|
128
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
133
129
|
}, undefined>, v.ObjectSchema<{
|
|
134
130
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_TRANSFER, undefined>;
|
|
135
131
|
readonly account: v.InstanceSchema<{
|
|
@@ -142,9 +138,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
142
138
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
143
139
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
144
140
|
}, undefined>;
|
|
145
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
146
|
-
readonly typeId: 3;
|
|
147
|
-
}>]>;
|
|
141
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
148
142
|
readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
149
143
|
size: number;
|
|
150
144
|
readonly typeId: 2;
|
|
@@ -165,9 +159,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
165
159
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
166
160
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
167
161
|
}, undefined>;
|
|
168
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
169
|
-
readonly typeId: 3;
|
|
170
|
-
}>]>;
|
|
162
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
171
163
|
readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
172
164
|
size: number;
|
|
173
165
|
readonly typeId: 2;
|
|
@@ -176,12 +168,8 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
176
168
|
size: number;
|
|
177
169
|
readonly typeId: 2;
|
|
178
170
|
}>]>;
|
|
179
|
-
readonly cliffDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
180
|
-
|
|
181
|
-
}>]>;
|
|
182
|
-
readonly vestingDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
183
|
-
readonly typeId: 3;
|
|
184
|
-
}>]>;
|
|
171
|
+
readonly cliffDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
172
|
+
readonly vestingDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
185
173
|
}, undefined>, v.ObjectSchema<{
|
|
186
174
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_ESCROW_TRANSFER, undefined>;
|
|
187
175
|
readonly account: v.InstanceSchema<{
|
|
@@ -194,9 +182,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
194
182
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
195
183
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
196
184
|
}, undefined>;
|
|
197
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
198
|
-
readonly typeId: 3;
|
|
199
|
-
}>]>;
|
|
185
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
200
186
|
readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
201
187
|
size: number;
|
|
202
188
|
readonly typeId: 2;
|
|
@@ -225,9 +211,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
225
211
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
226
212
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
227
213
|
}, undefined>;
|
|
228
|
-
readonly durationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
229
|
-
readonly typeId: 3;
|
|
230
|
-
}>]>;
|
|
214
|
+
readonly durationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
231
215
|
}, undefined>, v.ObjectSchema<{
|
|
232
216
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_ESCROW_SETTLEMENT, undefined>;
|
|
233
217
|
readonly escrowIdentifier: v.InstanceSchema<{
|
|
@@ -245,12 +229,8 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
245
229
|
}>]>;
|
|
246
230
|
}, undefined>, v.ObjectSchema<{
|
|
247
231
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_STAKE, undefined>;
|
|
248
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
249
|
-
|
|
250
|
-
}>]>;
|
|
251
|
-
readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
252
|
-
readonly typeId: 3;
|
|
253
|
-
}>]>;
|
|
232
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
233
|
+
readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
254
234
|
readonly objectIdentifier: v.InstanceSchema<{
|
|
255
235
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
256
236
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -263,12 +243,8 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
263
243
|
}, undefined>;
|
|
264
244
|
}, undefined>, v.ObjectSchema<{
|
|
265
245
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_UNSTAKE, undefined>;
|
|
266
|
-
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
267
|
-
|
|
268
|
-
}>]>;
|
|
269
|
-
readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
270
|
-
readonly typeId: 3;
|
|
271
|
-
}>]>;
|
|
246
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
247
|
+
readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
272
248
|
readonly objectIdentifier: v.InstanceSchema<{
|
|
273
249
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
274
250
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -404,39 +380,27 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
404
380
|
}, undefined>;
|
|
405
381
|
}, undefined>, v.ObjectSchema<{
|
|
406
382
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ACTOR_CREATION, undefined>;
|
|
407
|
-
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
408
|
-
|
|
409
|
-
}>]>;
|
|
410
|
-
readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
411
|
-
readonly typeId: 3;
|
|
412
|
-
}>]>;
|
|
383
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
384
|
+
readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
413
385
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
414
386
|
size: number;
|
|
415
387
|
readonly typeId: 2;
|
|
416
388
|
}>]>;
|
|
417
389
|
}, undefined>, v.ObjectSchema<{
|
|
418
390
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_CHANNEL_CREATION, undefined>;
|
|
419
|
-
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
420
|
-
readonly typeId: 3;
|
|
421
|
-
}>]>;
|
|
391
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
422
392
|
readonly isPrivate: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.MetadataAction<boolean, {
|
|
423
393
|
readonly typeId: 4;
|
|
424
394
|
}>]>;
|
|
425
|
-
readonly creatorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
426
|
-
readonly typeId: 3;
|
|
427
|
-
}>]>;
|
|
395
|
+
readonly creatorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
428
396
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
429
397
|
size: number;
|
|
430
398
|
readonly typeId: 2;
|
|
431
399
|
}>]>;
|
|
432
400
|
}, undefined>, v.ObjectSchema<{
|
|
433
401
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_SHARED_SECRET, undefined>;
|
|
434
|
-
readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
435
|
-
|
|
436
|
-
}>]>;
|
|
437
|
-
readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
438
|
-
readonly typeId: 3;
|
|
439
|
-
}>]>;
|
|
402
|
+
readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
403
|
+
readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
440
404
|
readonly encryptedSharedKey: v.InstanceSchema<{
|
|
441
405
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
442
406
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -449,15 +413,9 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
449
413
|
}, undefined>;
|
|
450
414
|
}, undefined>, v.ObjectSchema<{
|
|
451
415
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_CHANNEL_INVITATION, undefined>;
|
|
452
|
-
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
456
|
-
readonly typeId: 3;
|
|
457
|
-
}>]>;
|
|
458
|
-
readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
459
|
-
readonly typeId: 3;
|
|
460
|
-
}>]>;
|
|
416
|
+
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
417
|
+
readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
418
|
+
readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
461
419
|
readonly encryptedChannelKey: v.InstanceSchema<{
|
|
462
420
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
463
421
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -470,12 +428,8 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
470
428
|
}, undefined>;
|
|
471
429
|
}, undefined>, v.ObjectSchema<{
|
|
472
430
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION, undefined>;
|
|
473
|
-
readonly actorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
474
|
-
|
|
475
|
-
}>]>;
|
|
476
|
-
readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
|
|
477
|
-
readonly typeId: 3;
|
|
478
|
-
}>]>;
|
|
431
|
+
readonly actorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
432
|
+
readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
479
433
|
readonly organizationId: v.InstanceSchema<{
|
|
480
434
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
481
435
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -514,9 +468,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
514
468
|
}, undefined>;
|
|
515
469
|
}, undefined>, v.ObjectSchema<{
|
|
516
470
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA, undefined>;
|
|
517
|
-
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
518
|
-
readonly typeId: 3;
|
|
519
|
-
}>]>;
|
|
471
|
+
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
520
472
|
readonly data: v.InstanceSchema<{
|
|
521
473
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
522
474
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -529,9 +481,7 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
529
481
|
}, undefined>;
|
|
530
482
|
}, undefined>, v.ObjectSchema<{
|
|
531
483
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA, undefined>;
|
|
532
|
-
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
533
|
-
readonly typeId: 3;
|
|
534
|
-
}>]>;
|
|
484
|
+
readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
535
485
|
readonly merkleRootHash: v.InstanceSchema<{
|
|
536
486
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
537
487
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
@@ -554,14 +504,10 @@ export declare const MicroblockBodySchema: v.ObjectSchema<{
|
|
|
554
504
|
}, undefined>;
|
|
555
505
|
}, undefined>, v.ObjectSchema<{
|
|
556
506
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_AUTHOR, undefined>;
|
|
557
|
-
readonly authorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
558
|
-
readonly typeId: 3;
|
|
559
|
-
}>]>;
|
|
507
|
+
readonly authorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
560
508
|
}, undefined>, v.ObjectSchema<{
|
|
561
509
|
readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ENDORSEMENT_REQUEST, undefined>;
|
|
562
|
-
readonly endorserId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.
|
|
563
|
-
readonly typeId: 3;
|
|
564
|
-
}>]>;
|
|
510
|
+
readonly endorserId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
565
511
|
readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
|
|
566
512
|
size: number;
|
|
567
513
|
readonly typeId: 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicroblockBody.d.ts","sourceRoot":"","sources":["../../../../../src/type/valibot/blockchain/microblock/MicroblockBody.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MicroblockBody.d.ts","sourceRoot":"","sources":["../../../../../src/type/valibot/blockchain/microblock/MicroblockBody.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAE/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|