@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.
Files changed (99) hide show
  1. package/distribution/contracts/crypto/block.d.ts +2 -2
  2. package/distribution/contracts/crypto/block.d.ts.map +1 -1
  3. package/distribution/contracts/crypto/networks.d.ts +0 -4
  4. package/distribution/contracts/crypto/networks.d.ts.map +1 -1
  5. package/distribution/contracts/evm/evm.d.ts +39 -4
  6. package/distribution/contracts/evm/evm.d.ts.map +1 -1
  7. package/distribution/contracts/evm/evm.js +1 -2
  8. package/distribution/contracts/evm/evm.js.map +1 -1
  9. package/distribution/contracts/evm/index.d.ts +1 -0
  10. package/distribution/contracts/evm/index.d.ts.map +1 -1
  11. package/distribution/contracts/evm/index.js +1 -0
  12. package/distribution/contracts/evm/index.js.map +1 -1
  13. package/distribution/contracts/evm/state.d.ts +4 -0
  14. package/distribution/contracts/evm/state.d.ts.map +1 -0
  15. package/distribution/contracts/evm/state.js +2 -0
  16. package/distribution/contracts/evm/state.js.map +1 -0
  17. package/distribution/contracts/evm/worker.d.ts +7 -1
  18. package/distribution/contracts/evm/worker.d.ts.map +1 -1
  19. package/distribution/contracts/index.d.ts +0 -1
  20. package/distribution/contracts/index.d.ts.map +1 -1
  21. package/distribution/contracts/index.js +0 -1
  22. package/distribution/contracts/index.js.map +1 -1
  23. package/distribution/contracts/network-generator.d.ts +0 -7
  24. package/distribution/contracts/network-generator.d.ts.map +1 -1
  25. package/distribution/contracts/processor.d.ts +4 -8
  26. package/distribution/contracts/processor.d.ts.map +1 -1
  27. package/distribution/contracts/serializer.d.ts +1 -1
  28. package/distribution/contracts/serializer.d.ts.map +1 -1
  29. package/distribution/contracts/state/index.d.ts +0 -7
  30. package/distribution/contracts/state/index.d.ts.map +1 -1
  31. package/distribution/contracts/state/index.js +0 -7
  32. package/distribution/contracts/state/index.js.map +1 -1
  33. package/distribution/contracts/state/store.d.ts +1 -16
  34. package/distribution/contracts/state/store.d.ts.map +1 -1
  35. package/distribution/contracts/state/wallets.d.ts +3 -105
  36. package/distribution/contracts/state/wallets.d.ts.map +1 -1
  37. package/distribution/contracts/state/wallets.js +1 -15
  38. package/distribution/contracts/state/wallets.js.map +1 -1
  39. package/distribution/contracts/transaction-pool/mempool.d.ts +4 -4
  40. package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -1
  41. package/distribution/contracts/transaction-pool/sender-mempool.d.ts +1 -1
  42. package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -1
  43. package/distribution/contracts/transaction-pool/sender-state.d.ts +1 -1
  44. package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -1
  45. package/distribution/contracts/transaction-pool/worker.d.ts +0 -3
  46. package/distribution/contracts/transaction-pool/worker.d.ts.map +1 -1
  47. package/distribution/contracts/transactions.d.ts +6 -21
  48. package/distribution/contracts/transactions.d.ts.map +1 -1
  49. package/distribution/contracts/validator-set.d.ts +3 -3
  50. package/distribution/contracts/validator-set.d.ts.map +1 -1
  51. package/distribution/contracts/validator.d.ts +1 -1
  52. package/distribution/contracts/validator.d.ts.map +1 -1
  53. package/distribution/exceptions/crypto.d.ts +1 -1
  54. package/distribution/exceptions/crypto.d.ts.map +1 -1
  55. package/distribution/exceptions/crypto.js +3 -4
  56. package/distribution/exceptions/crypto.js.map +1 -1
  57. package/distribution/exceptions/processor.js +1 -1
  58. package/distribution/exceptions/processor.js.map +1 -1
  59. package/distribution/exceptions/validation.d.ts +1 -1
  60. package/distribution/exceptions/validation.d.ts.map +1 -1
  61. package/distribution/exceptions/validation.js +2 -2
  62. package/distribution/exceptions/validation.js.map +1 -1
  63. package/distribution/identifiers.d.ts +2 -36
  64. package/distribution/identifiers.d.ts.map +1 -1
  65. package/distribution/identifiers.js +2 -36
  66. package/distribution/identifiers.js.map +1 -1
  67. package/package.json +2 -2
  68. package/distribution/contracts/fees.d.ts +0 -10
  69. package/distribution/contracts/fees.d.ts.map +0 -1
  70. package/distribution/contracts/fees.js +0 -2
  71. package/distribution/contracts/fees.js.map +0 -1
  72. package/distribution/contracts/state/attributes.d.ts +0 -22
  73. package/distribution/contracts/state/attributes.d.ts.map +0 -1
  74. package/distribution/contracts/state/attributes.js +0 -9
  75. package/distribution/contracts/state/attributes.js.map +0 -1
  76. package/distribution/contracts/state/block-state.d.ts +0 -12
  77. package/distribution/contracts/state/block-state.d.ts.map +0 -1
  78. package/distribution/contracts/state/block-state.js +0 -2
  79. package/distribution/contracts/state/block-state.js.map +0 -1
  80. package/distribution/contracts/state/index-set.d.ts +0 -5
  81. package/distribution/contracts/state/index-set.d.ts.map +0 -1
  82. package/distribution/contracts/state/index-set.js +0 -2
  83. package/distribution/contracts/state/index-set.js.map +0 -1
  84. package/distribution/contracts/state/repository.d.ts +0 -26
  85. package/distribution/contracts/state/repository.d.ts.map +0 -1
  86. package/distribution/contracts/state/repository.js +0 -2
  87. package/distribution/contracts/state/repository.js.map +0 -1
  88. package/distribution/contracts/state/service.d.ts +0 -11
  89. package/distribution/contracts/state/service.d.ts.map +0 -1
  90. package/distribution/contracts/state/service.js +0 -2
  91. package/distribution/contracts/state/service.js.map +0 -1
  92. package/distribution/contracts/state/snapshots.d.ts +0 -13
  93. package/distribution/contracts/state/snapshots.d.ts.map +0 -1
  94. package/distribution/contracts/state/snapshots.js +0 -2
  95. package/distribution/contracts/state/snapshots.js.map +0 -1
  96. package/distribution/contracts/state/state-verifier.d.ts +0 -4
  97. package/distribution/contracts/state/state-verifier.d.ts.map +0 -1
  98. package/distribution/contracts/state/state-verifier.js +0 -2
  99. package/distribution/contracts/state/state-verifier.js.map +0 -1
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index-set.js.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=repository.js.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=service.js.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=snapshots.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshots.js","sourceRoot":"","sources":["../../../source/contracts/state/snapshots.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface StateVerifier {
2
- verifyWalletsConsistency(): void;
3
- }
4
- //# sourceMappingURL=state-verifier.d.ts.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=state-verifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-verifier.js","sourceRoot":"","sources":["../../../source/contracts/state/state-verifier.ts"],"names":[],"mappings":""}