@mainsail/contracts 0.0.1-evm.1 → 0.0.1-evm.3
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/distribution/contracts/crypto/block.d.ts +2 -2
- package/distribution/contracts/crypto/block.d.ts.map +1 -1
- package/distribution/contracts/crypto/networks.d.ts +0 -4
- package/distribution/contracts/crypto/networks.d.ts.map +1 -1
- package/distribution/contracts/evm/evm.d.ts +39 -4
- package/distribution/contracts/evm/evm.d.ts.map +1 -1
- package/distribution/contracts/evm/evm.js +1 -2
- package/distribution/contracts/evm/evm.js.map +1 -1
- package/distribution/contracts/evm/index.d.ts +1 -0
- package/distribution/contracts/evm/index.d.ts.map +1 -1
- package/distribution/contracts/evm/index.js +1 -0
- package/distribution/contracts/evm/index.js.map +1 -1
- package/distribution/contracts/evm/state.d.ts +4 -0
- package/distribution/contracts/evm/state.d.ts.map +1 -0
- package/distribution/contracts/evm/state.js +2 -0
- package/distribution/contracts/evm/state.js.map +1 -0
- package/distribution/contracts/evm/worker.d.ts +7 -1
- package/distribution/contracts/evm/worker.d.ts.map +1 -1
- package/distribution/contracts/index.d.ts +0 -1
- package/distribution/contracts/index.d.ts.map +1 -1
- package/distribution/contracts/index.js +0 -1
- package/distribution/contracts/index.js.map +1 -1
- package/distribution/contracts/network-generator.d.ts +0 -7
- package/distribution/contracts/network-generator.d.ts.map +1 -1
- package/distribution/contracts/processor.d.ts +4 -8
- package/distribution/contracts/processor.d.ts.map +1 -1
- package/distribution/contracts/serializer.d.ts +1 -1
- package/distribution/contracts/serializer.d.ts.map +1 -1
- package/distribution/contracts/state/index.d.ts +0 -7
- package/distribution/contracts/state/index.d.ts.map +1 -1
- package/distribution/contracts/state/index.js +0 -7
- package/distribution/contracts/state/index.js.map +1 -1
- package/distribution/contracts/state/store.d.ts +1 -16
- package/distribution/contracts/state/store.d.ts.map +1 -1
- package/distribution/contracts/state/wallets.d.ts +3 -105
- package/distribution/contracts/state/wallets.d.ts.map +1 -1
- package/distribution/contracts/state/wallets.js +1 -15
- package/distribution/contracts/state/wallets.js.map +1 -1
- package/distribution/contracts/transaction-pool/mempool.d.ts +4 -4
- package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts +1 -1
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/sender-state.d.ts +1 -1
- package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/worker.d.ts +0 -3
- package/distribution/contracts/transaction-pool/worker.d.ts.map +1 -1
- package/distribution/contracts/transactions.d.ts +6 -21
- package/distribution/contracts/transactions.d.ts.map +1 -1
- package/distribution/contracts/validator-set.d.ts +3 -3
- package/distribution/contracts/validator-set.d.ts.map +1 -1
- package/distribution/contracts/validator.d.ts +1 -1
- package/distribution/contracts/validator.d.ts.map +1 -1
- package/distribution/exceptions/crypto.d.ts +1 -1
- package/distribution/exceptions/crypto.d.ts.map +1 -1
- package/distribution/exceptions/crypto.js +3 -4
- package/distribution/exceptions/crypto.js.map +1 -1
- package/distribution/exceptions/processor.js +1 -1
- package/distribution/exceptions/processor.js.map +1 -1
- package/distribution/exceptions/validation.d.ts +1 -1
- package/distribution/exceptions/validation.d.ts.map +1 -1
- package/distribution/exceptions/validation.js +2 -2
- package/distribution/exceptions/validation.js.map +1 -1
- package/distribution/identifiers.d.ts +2 -36
- package/distribution/identifiers.d.ts.map +1 -1
- package/distribution/identifiers.js +2 -36
- package/distribution/identifiers.js.map +1 -1
- package/package.json +2 -2
- package/distribution/contracts/fees.d.ts +0 -10
- package/distribution/contracts/fees.d.ts.map +0 -1
- package/distribution/contracts/fees.js +0 -2
- package/distribution/contracts/fees.js.map +0 -1
- package/distribution/contracts/state/attributes.d.ts +0 -22
- package/distribution/contracts/state/attributes.d.ts.map +0 -1
- package/distribution/contracts/state/attributes.js +0 -9
- package/distribution/contracts/state/attributes.js.map +0 -1
- package/distribution/contracts/state/block-state.d.ts +0 -12
- package/distribution/contracts/state/block-state.d.ts.map +0 -1
- package/distribution/contracts/state/block-state.js +0 -2
- package/distribution/contracts/state/block-state.js.map +0 -1
- package/distribution/contracts/state/index-set.d.ts +0 -5
- package/distribution/contracts/state/index-set.d.ts.map +0 -1
- package/distribution/contracts/state/index-set.js +0 -2
- package/distribution/contracts/state/index-set.js.map +0 -1
- package/distribution/contracts/state/repository.d.ts +0 -26
- package/distribution/contracts/state/repository.d.ts.map +0 -1
- package/distribution/contracts/state/repository.js +0 -2
- package/distribution/contracts/state/repository.js.map +0 -1
- package/distribution/contracts/state/service.d.ts +0 -11
- package/distribution/contracts/state/service.d.ts.map +0 -1
- package/distribution/contracts/state/service.js +0 -2
- package/distribution/contracts/state/service.js.map +0 -1
- package/distribution/contracts/state/snapshots.d.ts +0 -13
- package/distribution/contracts/state/snapshots.d.ts.map +0 -1
- package/distribution/contracts/state/snapshots.js +0 -2
- package/distribution/contracts/state/snapshots.js.map +0 -1
- package/distribution/contracts/state/state-verifier.d.ts +0 -4
- package/distribution/contracts/state/state-verifier.d.ts.map +0 -1
- package/distribution/contracts/state/state-verifier.js +0 -2
- package/distribution/contracts/state/state-verifier.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-set.js","sourceRoot":"","sources":["../../../source/contracts/state/index-set.ts"],"names":[],"mappings":""}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { JsonObject } from "type-fest";
|
2
|
-
import { AttributeRepository } from "./attributes.js";
|
3
|
-
export interface StateRepositoryChange {
|
4
|
-
set: {
|
5
|
-
[key: string]: JsonObject;
|
6
|
-
};
|
7
|
-
forget: string[];
|
8
|
-
}
|
9
|
-
export interface StateRepository {
|
10
|
-
isChanged(): boolean;
|
11
|
-
hasAttribute(key: string): boolean;
|
12
|
-
getAttribute<T = any>(key: string, defaultValue?: T): T;
|
13
|
-
getAttributes(): Record<string, any>;
|
14
|
-
setAttribute<T = any>(key: string, value: T): void;
|
15
|
-
forgetAttribute(key: string): void;
|
16
|
-
isClone(): boolean;
|
17
|
-
commitChanges(): void;
|
18
|
-
toJson(): JsonObject;
|
19
|
-
fromJson(data: JsonObject): StateRepository;
|
20
|
-
changesToJson(): StateRepositoryChange;
|
21
|
-
applyChanges(changes: StateRepositoryChange): void;
|
22
|
-
}
|
23
|
-
export interface StateRepositoryFactory {
|
24
|
-
(attributeRepository: AttributeRepository, originalRepository?: StateRepository, initialData?: Record<string, unknown>): StateRepository;
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=repository.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../source/contracts/state/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACrC,GAAG,EAAE;QACJ,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC/B,SAAS,IAAI,OAAO,CAAC;IAErB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACnD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,OAAO,IAAI,OAAO,CAAC;IACnB,aAAa,IAAI,IAAI,CAAC;IAEtB,MAAM,IAAI,UAAU,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,eAAe,CAAC;IAE5C,aAAa,IAAI,qBAAqB,CAAC;IACvC,YAAY,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,sBAAsB;IACtC,CACC,mBAAmB,EAAE,mBAAmB,EACxC,kBAAkB,CAAC,EAAE,eAAe,EACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,eAAe,CAAC;CACnB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../source/contracts/state/repository.ts"],"names":[],"mappings":""}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { CommitHandler } from "../crypto/commit.js";
|
2
|
-
import { Store } from "./store.js";
|
3
|
-
import { WalletRepository } from "./wallets.js";
|
4
|
-
export interface Service extends CommitHandler {
|
5
|
-
getStore(): Store;
|
6
|
-
createStoreClone(): Store;
|
7
|
-
createWalletRepositoryBySender(publicKey: string): Promise<WalletRepository>;
|
8
|
-
export(height: number): Promise<void>;
|
9
|
-
restore(height: number): Promise<void>;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=service.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../source/contracts/state/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,OAAQ,SAAQ,aAAa;IAC7C,QAAQ,IAAI,KAAK,CAAC;IAClB,gBAAgB,IAAI,KAAK,CAAC;IAC1B,8BAA8B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7E,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../source/contracts/state/service.ts"],"names":[],"mappings":""}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Store } from "./store.js";
|
2
|
-
export interface Exporter {
|
3
|
-
export(store: Store, path: string): Promise<void>;
|
4
|
-
}
|
5
|
-
export interface Importer {
|
6
|
-
import(store: Store, path: string): Promise<void>;
|
7
|
-
}
|
8
|
-
export interface SnapshotService {
|
9
|
-
listSnapshots(): Promise<number[]>;
|
10
|
-
export(store: Store): Promise<void>;
|
11
|
-
import(height: number, store: Store): Promise<void>;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=snapshots.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../../../source/contracts/state/snapshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,WAAW,QAAQ;IACxB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,QAAQ;IACxB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,eAAe;IAC/B,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACnC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"snapshots.js","sourceRoot":"","sources":["../../../source/contracts/state/snapshots.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state-verifier.d.ts","sourceRoot":"","sources":["../../../source/contracts/state/state-verifier.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,wBAAwB,IAAI,IAAI,CAAC;CACjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state-verifier.js","sourceRoot":"","sources":["../../../source/contracts/state/state-verifier.ts"],"names":[],"mappings":""}
|