@metoncash/sdk-v1 0.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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Contract wrappers (auto-generated by `acton wrapper --all --ts`).
3
+ *
4
+ * These are the single source of truth for deploying / initialising the on-chain
5
+ * contracts: `Wallet`, `Minter`, and `Factory`. Each exposes `fromStorage`,
6
+ * `fromAddress`, the embedded `CodeCell`, and typed `sendX` / `getX` helpers.
7
+ *
8
+ * Only the contract classes are re-exported here: every `*.gen.ts` declares its
9
+ * own `Point`/`Proof`/`CellRef`/storage interfaces, so a blanket `export *`
10
+ * would collide. Import those per-contract types directly from the `.gen` module
11
+ * when needed (e.g. `import type { WalletStorage } from "./wrappers/Wallet.gen"`).
12
+ */
13
+ export { Wallet } from "./Wallet.gen";
14
+ export { Minter } from "./Minter.gen";
15
+ export { Factory } from "./Factory.gen";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Factory = exports.Minter = exports.Wallet = void 0;
4
+ /**
5
+ * Contract wrappers (auto-generated by `acton wrapper --all --ts`).
6
+ *
7
+ * These are the single source of truth for deploying / initialising the on-chain
8
+ * contracts: `Wallet`, `Minter`, and `Factory`. Each exposes `fromStorage`,
9
+ * `fromAddress`, the embedded `CodeCell`, and typed `sendX` / `getX` helpers.
10
+ *
11
+ * Only the contract classes are re-exported here: every `*.gen.ts` declares its
12
+ * own `Point`/`Proof`/`CellRef`/storage interfaces, so a blanket `export *`
13
+ * would collide. Import those per-contract types directly from the `.gen` module
14
+ * when needed (e.g. `import type { WalletStorage } from "./wrappers/Wallet.gen"`).
15
+ */
16
+ var Wallet_gen_1 = require("./Wallet.gen");
17
+ Object.defineProperty(exports, "Wallet", { enumerable: true, get: function () { return Wallet_gen_1.Wallet; } });
18
+ var Minter_gen_1 = require("./Minter.gen");
19
+ Object.defineProperty(exports, "Minter", { enumerable: true, get: function () { return Minter_gen_1.Minter; } });
20
+ var Factory_gen_1 = require("./Factory.gen");
21
+ Object.defineProperty(exports, "Factory", { enumerable: true, get: function () { return Factory_gen_1.Factory; } });
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@metoncash/sdk-v1",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc -p tsconfig.json && node ../scripts/strip_sdk_dist.cjs",
12
+ "test": "jest",
13
+ "prepare": "npm run build"
14
+ },
15
+ "dependencies": {
16
+ "@ton/core": "^0.63.1",
17
+ "snarkjs": "^0.7.6"
18
+ },
19
+ "devDependencies": {
20
+ "@types/jest": "^30.0.0",
21
+ "@types/node": "^22.10.0",
22
+ "jest": "^30.4.2",
23
+ "ts-jest": "^29.4.11",
24
+ "typescript": "^5.7.2"
25
+ }
26
+ }