@midnight-ntwrk/midnight-js-protocol 4.1.0
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/README.md +62 -0
- package/dist/compact-js-effect-contract.cjs +13 -0
- package/dist/compact-js-effect-contract.cjs.map +1 -0
- package/dist/compact-js-effect-contract.d.cts +1 -0
- package/dist/compact-js-effect-contract.d.mts +1 -0
- package/dist/compact-js-effect-contract.d.ts +2 -0
- package/dist/compact-js-effect-contract.d.ts.map +1 -0
- package/dist/compact-js-effect-contract.mjs +2 -0
- package/dist/compact-js-effect-contract.mjs.map +1 -0
- package/dist/compact-js-effect.cjs +13 -0
- package/dist/compact-js-effect.cjs.map +1 -0
- package/dist/compact-js-effect.d.cts +1 -0
- package/dist/compact-js-effect.d.mts +1 -0
- package/dist/compact-js-effect.d.ts +2 -0
- package/dist/compact-js-effect.d.ts.map +1 -0
- package/dist/compact-js-effect.mjs +2 -0
- package/dist/compact-js-effect.mjs.map +1 -0
- package/dist/compact-js.cjs +13 -0
- package/dist/compact-js.cjs.map +1 -0
- package/dist/compact-js.d.cts +1 -0
- package/dist/compact-js.d.mts +1 -0
- package/dist/compact-js.d.ts +2 -0
- package/dist/compact-js.d.ts.map +1 -0
- package/dist/compact-js.mjs +2 -0
- package/dist/compact-js.mjs.map +1 -0
- package/dist/compact-runtime.cjs +13 -0
- package/dist/compact-runtime.cjs.map +1 -0
- package/dist/compact-runtime.d.cts +1 -0
- package/dist/compact-runtime.d.mts +1 -0
- package/dist/compact-runtime.d.ts +2 -0
- package/dist/compact-runtime.d.ts.map +1 -0
- package/dist/compact-runtime.mjs +2 -0
- package/dist/compact-runtime.mjs.map +1 -0
- package/dist/index.cjs +39 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -0
- package/dist/ledger.cjs +13 -0
- package/dist/ledger.cjs.map +1 -0
- package/dist/ledger.d.cts +1 -0
- package/dist/ledger.d.mts +1 -0
- package/dist/ledger.d.ts +2 -0
- package/dist/ledger.d.ts.map +1 -0
- package/dist/ledger.mjs +2 -0
- package/dist/ledger.mjs.map +1 -0
- package/dist/onchain-runtime.cjs +13 -0
- package/dist/onchain-runtime.cjs.map +1 -0
- package/dist/onchain-runtime.d.cts +1 -0
- package/dist/onchain-runtime.d.mts +1 -0
- package/dist/onchain-runtime.d.ts +2 -0
- package/dist/onchain-runtime.d.ts.map +1 -0
- package/dist/onchain-runtime.mjs +2 -0
- package/dist/onchain-runtime.mjs.map +1 -0
- package/dist/platform-effect-configuration.cjs +13 -0
- package/dist/platform-effect-configuration.cjs.map +1 -0
- package/dist/platform-effect-configuration.d.cts +1 -0
- package/dist/platform-effect-configuration.d.mts +1 -0
- package/dist/platform-effect-configuration.d.ts +2 -0
- package/dist/platform-effect-configuration.d.ts.map +1 -0
- package/dist/platform-effect-configuration.mjs +2 -0
- package/dist/platform-effect-configuration.mjs.map +1 -0
- package/dist/platform-effect-contract-address.cjs +13 -0
- package/dist/platform-effect-contract-address.cjs.map +1 -0
- package/dist/platform-effect-contract-address.d.cts +1 -0
- package/dist/platform-effect-contract-address.d.mts +1 -0
- package/dist/platform-effect-contract-address.d.ts +1 -0
- package/dist/platform-effect-contract-address.d.ts.map +1 -0
- package/dist/platform-effect-contract-address.mjs +2 -0
- package/dist/platform-effect-contract-address.mjs.map +1 -0
- package/dist/platform.cjs +13 -0
- package/dist/platform.cjs.map +1 -0
- package/dist/platform.d.cts +1 -0
- package/dist/platform.d.mts +1 -0
- package/dist/platform.d.ts +2 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.mjs +2 -0
- package/dist/platform.mjs.map +1 -0
- package/package.json +122 -0
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Protocol
|
|
2
|
+
|
|
3
|
+
Version-agnostic re-exports of Midnight protocol packages. Decouples framework consumers from specific protocol version numbers, so that protocol upgrades require changes only in this package.
|
|
4
|
+
|
|
5
|
+
## Versioning Contract
|
|
6
|
+
|
|
7
|
+
**This package must never include a protocol version number in its name.** The package name `@midnight-ntwrk/midnight-js-protocol` is permanent. If the package were renamed to `midnight-js-protocol-v2` or similar, every consumer import would need updating, defeating the purpose of this abstraction.
|
|
8
|
+
|
|
9
|
+
Protocol version changes are handled through:
|
|
10
|
+
- **semver** (npm package version): major bump when underlying protocol packages change in a breaking way
|
|
11
|
+
- **internal re-exports**: this package updates which concrete protocol packages it re-exports
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @midnight-ntwrk/midnight-js-protocol
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Import protocol types through version-agnostic subpaths:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { type ContractAddress } from '@midnight-ntwrk/midnight-js-protocol/ledger';
|
|
25
|
+
import { type CompactRuntime } from '@midnight-ntwrk/midnight-js-protocol/compact-runtime';
|
|
26
|
+
import { Contract } from '@midnight-ntwrk/midnight-js-protocol/compact-js';
|
|
27
|
+
import { type OnChainRuntime } from '@midnight-ntwrk/midnight-js-protocol/onchain-runtime';
|
|
28
|
+
import { createPlatform } from '@midnight-ntwrk/midnight-js-protocol/platform-js';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Sub-path Exports
|
|
32
|
+
|
|
33
|
+
| Sub-path | Re-exports | Description |
|
|
34
|
+
| -------- | ---------- | ----------- |
|
|
35
|
+
| `./ledger` | `@midnight-ntwrk/ledger-v8` | Ledger types and transaction primitives |
|
|
36
|
+
| `./compact-runtime` | `@midnight-ntwrk/compact-runtime` | Compact contract runtime utilities |
|
|
37
|
+
| `./compact-js` | `@midnight-ntwrk/compact-js` | Compact JS bindings |
|
|
38
|
+
| `./compact-js/effect` | `@midnight-ntwrk/compact-js/effect` | Effect-based Compact bindings |
|
|
39
|
+
| `./compact-js/effect/Contract` | `@midnight-ntwrk/compact-js/effect/Contract` | Effect-based Contract module |
|
|
40
|
+
| `./onchain-runtime` | `@midnight-ntwrk/onchain-runtime-v3` | On-chain runtime (Impact VM) |
|
|
41
|
+
| `./platform-js` | `@midnight-ntwrk/platform-js` | Platform services |
|
|
42
|
+
| `./platform-js/effect/Configuration` | `@midnight-ntwrk/platform-js/effect/Configuration` | Effect-based configuration |
|
|
43
|
+
| `./platform-js/effect/ContractAddress` | `@midnight-ntwrk/platform-js/effect/ContractAddress` | Effect-based contract address resolution |
|
|
44
|
+
|
|
45
|
+
## ESLint Enforcement
|
|
46
|
+
|
|
47
|
+
An ESLint `no-restricted-imports` rule prevents direct imports of the underlying protocol packages outside of this package. If you see an error like:
|
|
48
|
+
|
|
49
|
+
> Import from `@midnight-ntwrk/midnight-js-protocol/ledger` instead.
|
|
50
|
+
|
|
51
|
+
Replace the direct protocol import with the corresponding subpath from this package.
|
|
52
|
+
|
|
53
|
+
## Resources
|
|
54
|
+
|
|
55
|
+
- [Midnight Network](https://midnight.network)
|
|
56
|
+
- [Developer Hub](https://midnight.network/developer-hub)
|
|
57
|
+
|
|
58
|
+
## Terms & License
|
|
59
|
+
|
|
60
|
+
By using this package, you agree to [Midnight's Terms and Conditions](https://midnight.network/static/terms.pdf) and [Privacy Policy](https://midnight.network/static/privacy-policy.pdf).
|
|
61
|
+
|
|
62
|
+
Licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Contract = require('@midnight-ntwrk/compact-js/effect/Contract');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(Contract).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return Contract[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=compact-js-effect-contract.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect-contract.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js/effect/Contract';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js/effect/Contract';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect-contract.d.ts","sourceRoot":"","sources":["../src/compact-js-effect-contract.ts"],"names":[],"mappings":"AAeA,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect-contract.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var effect = require('@midnight-ntwrk/compact-js/effect');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(effect).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return effect[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=compact-js-effect.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js/effect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js/effect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect.d.ts","sourceRoot":"","sources":["../src/compact-js-effect.ts"],"names":[],"mappings":"AAeA,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js-effect.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var compactJs = require('@midnight-ntwrk/compact-js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(compactJs).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return compactJs[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=compact-js.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js.d.ts","sourceRoot":"","sources":["../src/compact-js.ts"],"names":[],"mappings":"AAeA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-js.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var compactRuntime = require('@midnight-ntwrk/compact-runtime');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(compactRuntime).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return compactRuntime[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=compact-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/compact-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-runtime.d.ts","sourceRoot":"","sources":["../src/compact-runtime.ts"],"names":[],"mappings":"AAeA,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-runtime.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var compactJs = require('@midnight-ntwrk/compact-js');
|
|
4
|
+
var compactRuntime = require('@midnight-ntwrk/compact-runtime');
|
|
5
|
+
var ledgerV8 = require('@midnight-ntwrk/ledger-v8');
|
|
6
|
+
var onchainRuntimeV3 = require('@midnight-ntwrk/onchain-runtime-v3');
|
|
7
|
+
var platformJs = require('@midnight-ntwrk/platform-js');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var compactJs__namespace = /*#__PURE__*/_interopNamespaceDefault(compactJs);
|
|
27
|
+
var compactRuntime__namespace = /*#__PURE__*/_interopNamespaceDefault(compactRuntime);
|
|
28
|
+
var ledgerV8__namespace = /*#__PURE__*/_interopNamespaceDefault(ledgerV8);
|
|
29
|
+
var onchainRuntimeV3__namespace = /*#__PURE__*/_interopNamespaceDefault(onchainRuntimeV3);
|
|
30
|
+
var platformJs__namespace = /*#__PURE__*/_interopNamespaceDefault(platformJs);
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.compactJs = compactJs__namespace;
|
|
35
|
+
exports.compactRuntime = compactRuntime__namespace;
|
|
36
|
+
exports.ledger = ledgerV8__namespace;
|
|
37
|
+
exports.onchainRuntime = onchainRuntimeV3__namespace;
|
|
38
|
+
exports.platform = platformJs__namespace;
|
|
39
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as compactJs from '@midnight-ntwrk/compact-js';
|
|
2
|
+
export { compactJs };
|
|
3
|
+
import * as compactRuntime from '@midnight-ntwrk/compact-runtime';
|
|
4
|
+
export { compactRuntime };
|
|
5
|
+
import * as ledgerV8 from '@midnight-ntwrk/ledger-v8';
|
|
6
|
+
export { ledgerV8 as ledger };
|
|
7
|
+
import * as onchainRuntimeV3 from '@midnight-ntwrk/onchain-runtime-v3';
|
|
8
|
+
export { onchainRuntimeV3 as onchainRuntime };
|
|
9
|
+
import * as platformJs from '@midnight-ntwrk/platform-js';
|
|
10
|
+
export { platformJs as platform };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as compactJs from '@midnight-ntwrk/compact-js';
|
|
2
|
+
export { compactJs };
|
|
3
|
+
import * as compactRuntime from '@midnight-ntwrk/compact-runtime';
|
|
4
|
+
export { compactRuntime };
|
|
5
|
+
import * as ledgerV8 from '@midnight-ntwrk/ledger-v8';
|
|
6
|
+
export { ledgerV8 as ledger };
|
|
7
|
+
import * as onchainRuntimeV3 from '@midnight-ntwrk/onchain-runtime-v3';
|
|
8
|
+
export { onchainRuntimeV3 as onchainRuntime };
|
|
9
|
+
import * as platformJs from '@midnight-ntwrk/platform-js';
|
|
10
|
+
export { platformJs as platform };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as compactJs from '@midnight-ntwrk/compact-js';
|
|
2
|
+
export * as compactRuntime from '@midnight-ntwrk/compact-runtime';
|
|
3
|
+
export * as ledger from '@midnight-ntwrk/ledger-v8';
|
|
4
|
+
export * as onchainRuntime from '@midnight-ntwrk/onchain-runtime-v3';
|
|
5
|
+
export * as platform from '@midnight-ntwrk/platform-js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,SAAS,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,cAAc,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as compactJs from '@midnight-ntwrk/compact-js';
|
|
2
|
+
export { compactJs };
|
|
3
|
+
import * as compactRuntime from '@midnight-ntwrk/compact-runtime';
|
|
4
|
+
export { compactRuntime };
|
|
5
|
+
import * as ledgerV8 from '@midnight-ntwrk/ledger-v8';
|
|
6
|
+
export { ledgerV8 as ledger };
|
|
7
|
+
import * as onchainRuntimeV3 from '@midnight-ntwrk/onchain-runtime-v3';
|
|
8
|
+
export { onchainRuntimeV3 as onchainRuntime };
|
|
9
|
+
import * as platformJs from '@midnight-ntwrk/platform-js';
|
|
10
|
+
export { platformJs as platform };
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/ledger.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ledgerV8 = require('@midnight-ntwrk/ledger-v8');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(ledgerV8).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return ledgerV8[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=ledger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/ledger-v8';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/ledger-v8';
|
package/dist/ledger.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../src/ledger.ts"],"names":[],"mappings":"AAeA,cAAc,2BAA2B,CAAC"}
|
package/dist/ledger.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var onchainRuntimeV3 = require('@midnight-ntwrk/onchain-runtime-v3');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(onchainRuntimeV3).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return onchainRuntimeV3[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=onchain-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onchain-runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/onchain-runtime-v3';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/onchain-runtime-v3';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onchain-runtime.d.ts","sourceRoot":"","sources":["../src/onchain-runtime.ts"],"names":[],"mappings":"AAeA,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onchain-runtime.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Configuration = require('@midnight-ntwrk/platform-js/effect/Configuration');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(Configuration).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return Configuration[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=platform-effect-configuration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-configuration.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js/effect/Configuration';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js/effect/Configuration';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-configuration.d.ts","sourceRoot":"","sources":["../src/platform-effect-configuration.ts"],"names":[],"mappings":"AAeA,cAAc,kDAAkD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-configuration.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ContractAddress = require('@midnight-ntwrk/platform-js/effect/ContractAddress');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(ContractAddress).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return ContractAddress[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=platform-effect-contract-address.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-contract-address.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js/effect/ContractAddress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js/effect/ContractAddress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js/effect/ContractAddress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-contract-address.d.ts","sourceRoot":"","sources":["../src/platform-effect-contract-address.ts"],"names":[],"mappings":"AAeA,cAAc,oDAAoD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-effect-contract-address.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var platformJs = require('@midnight-ntwrk/platform-js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(platformJs).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return platformJs[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=platform.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@midnight-ntwrk/platform-js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAeA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@midnight-ntwrk/midnight-js-protocol",
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "Protocol type re-exports for midnight-js framework",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": {
|
|
11
|
+
"import": "./dist/index.d.mts",
|
|
12
|
+
"require": "./dist/index.d.cts"
|
|
13
|
+
},
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./ledger": {
|
|
18
|
+
"types": {
|
|
19
|
+
"import": "./dist/ledger.d.mts",
|
|
20
|
+
"require": "./dist/ledger.d.cts"
|
|
21
|
+
},
|
|
22
|
+
"import": "./dist/ledger.mjs",
|
|
23
|
+
"require": "./dist/ledger.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./compact-runtime": {
|
|
26
|
+
"types": {
|
|
27
|
+
"import": "./dist/compact-runtime.d.mts",
|
|
28
|
+
"require": "./dist/compact-runtime.d.cts"
|
|
29
|
+
},
|
|
30
|
+
"import": "./dist/compact-runtime.mjs",
|
|
31
|
+
"require": "./dist/compact-runtime.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./compact-js": {
|
|
34
|
+
"types": {
|
|
35
|
+
"import": "./dist/compact-js.d.mts",
|
|
36
|
+
"require": "./dist/compact-js.d.cts"
|
|
37
|
+
},
|
|
38
|
+
"import": "./dist/compact-js.mjs",
|
|
39
|
+
"require": "./dist/compact-js.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./compact-js/effect": {
|
|
42
|
+
"types": {
|
|
43
|
+
"import": "./dist/compact-js-effect.d.mts",
|
|
44
|
+
"require": "./dist/compact-js-effect.d.cts"
|
|
45
|
+
},
|
|
46
|
+
"import": "./dist/compact-js-effect.mjs",
|
|
47
|
+
"require": "./dist/compact-js-effect.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./compact-js/effect/Contract": {
|
|
50
|
+
"types": {
|
|
51
|
+
"import": "./dist/compact-js-effect-contract.d.mts",
|
|
52
|
+
"require": "./dist/compact-js-effect-contract.d.cts"
|
|
53
|
+
},
|
|
54
|
+
"import": "./dist/compact-js-effect-contract.mjs",
|
|
55
|
+
"require": "./dist/compact-js-effect-contract.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./onchain-runtime": {
|
|
58
|
+
"types": {
|
|
59
|
+
"import": "./dist/onchain-runtime.d.mts",
|
|
60
|
+
"require": "./dist/onchain-runtime.d.cts"
|
|
61
|
+
},
|
|
62
|
+
"import": "./dist/onchain-runtime.mjs",
|
|
63
|
+
"require": "./dist/onchain-runtime.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./platform-js": {
|
|
66
|
+
"types": {
|
|
67
|
+
"import": "./dist/platform.d.mts",
|
|
68
|
+
"require": "./dist/platform.d.cts"
|
|
69
|
+
},
|
|
70
|
+
"import": "./dist/platform.mjs",
|
|
71
|
+
"require": "./dist/platform.cjs"
|
|
72
|
+
},
|
|
73
|
+
"./platform-js/effect/Configuration": {
|
|
74
|
+
"types": {
|
|
75
|
+
"import": "./dist/platform-effect-configuration.d.mts",
|
|
76
|
+
"require": "./dist/platform-effect-configuration.d.cts"
|
|
77
|
+
},
|
|
78
|
+
"import": "./dist/platform-effect-configuration.mjs",
|
|
79
|
+
"require": "./dist/platform-effect-configuration.cjs"
|
|
80
|
+
},
|
|
81
|
+
"./platform-js/effect/ContractAddress": {
|
|
82
|
+
"types": {
|
|
83
|
+
"import": "./dist/platform-effect-contract-address.d.mts",
|
|
84
|
+
"require": "./dist/platform-effect-contract-address.d.cts"
|
|
85
|
+
},
|
|
86
|
+
"import": "./dist/platform-effect-contract-address.mjs",
|
|
87
|
+
"require": "./dist/platform-effect-contract-address.cjs"
|
|
88
|
+
},
|
|
89
|
+
"./package.json": "./package.json"
|
|
90
|
+
},
|
|
91
|
+
"sideEffects": false,
|
|
92
|
+
"repository": "git@github.com:midnight-ntwrk/artifacts",
|
|
93
|
+
"packageManager": "yarn@4.12.0",
|
|
94
|
+
"author": "IOHK",
|
|
95
|
+
"license": "Apache-2.0",
|
|
96
|
+
"scripts": {
|
|
97
|
+
"clean": "rm -rf dist tsconfig.build.tsbuildinfo .rollup.cache reports coverage",
|
|
98
|
+
"build": "rollup -c rollup.config.mjs",
|
|
99
|
+
"lint": "eslint src/",
|
|
100
|
+
"test": "vitest run",
|
|
101
|
+
"deploy": "yarn npm publish --tolerate-republish"
|
|
102
|
+
},
|
|
103
|
+
"files": [
|
|
104
|
+
"dist/"
|
|
105
|
+
],
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@midnight-ntwrk/compact-js": "2.5.1",
|
|
108
|
+
"@midnight-ntwrk/compact-runtime": "0.16.0",
|
|
109
|
+
"@midnight-ntwrk/ledger-v8": "8.0.3",
|
|
110
|
+
"@midnight-ntwrk/onchain-runtime-v3": "3.0.0",
|
|
111
|
+
"@midnight-ntwrk/platform-js": "2.2.4"
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
115
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
116
|
+
"eslint": "^10.1.0",
|
|
117
|
+
"rollup": "^4.60.1",
|
|
118
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
119
|
+
"typescript": "^6.0.2",
|
|
120
|
+
"vitest": "^4.1.2"
|
|
121
|
+
}
|
|
122
|
+
}
|