@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.
- package/README.md +76 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.js +128 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +41 -0
- package/dist/jubjub.d.ts +25 -0
- package/dist/jubjub.js +121 -0
- package/dist/mimc.d.ts +4 -0
- package/dist/mimc.js +21 -0
- package/dist/note.d.ts +38 -0
- package/dist/note.js +55 -0
- package/dist/prover.d.ts +79 -0
- package/dist/prover.js +144 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/keys.d.ts +23 -0
- package/dist/utils/keys.js +28 -0
- package/dist/utils/note.d.ts +30 -0
- package/dist/utils/note.js +27 -0
- package/dist/wrappers/Account.gen.d.ts +542 -0
- package/dist/wrappers/Account.gen.js +677 -0
- package/dist/wrappers/Factory.gen.d.ts +265 -0
- package/dist/wrappers/Factory.gen.js +401 -0
- package/dist/wrappers/JettonMinter.gen.d.ts +288 -0
- package/dist/wrappers/JettonMinter.gen.js +432 -0
- package/dist/wrappers/JettonWallet.gen.d.ts +308 -0
- package/dist/wrappers/JettonWallet.gen.js +429 -0
- package/dist/wrappers/Minter.gen.d.ts +511 -0
- package/dist/wrappers/Minter.gen.js +700 -0
- package/dist/wrappers/Wallet.gen.d.ts +588 -0
- package/dist/wrappers/Wallet.gen.js +720 -0
- package/dist/wrappers/index.d.ts +15 -0
- package/dist/wrappers/index.js +21 -0
- package/package.json +26 -0
|
@@ -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
|
+
}
|