@zoralabs/cli 0.1.0 → 0.2.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/LICENSE +1 -1
- package/dist/index.js +2936 -9
- package/package.json +47 -29
- package/README.md +0 -55
- package/bin/zora +0 -2
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -13
- package/dist/cli.js.map +0 -1
- package/dist/commands/default.d.ts +0 -2
- package/dist/commands/default.js +0 -10
- package/dist/commands/default.js.map +0 -1
- package/dist/commands/mint/default.d.ts +0 -2
- package/dist/commands/mint/default.js +0 -6
- package/dist/commands/mint/default.js.map +0 -1
- package/dist/commands/mint/file.d.ts +0 -4
- package/dist/commands/mint/file.js +0 -22
- package/dist/commands/mint/file.js.map +0 -1
- package/dist/commands/mint/uri.d.ts +0 -15
- package/dist/commands/mint/uri.js +0 -132
- package/dist/commands/mint/uri.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,38 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "Zora CLI tool",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"zora": "./dist/index.js"
|
|
8
|
+
},
|
|
7
9
|
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
"bin"
|
|
10
|
+
"dist"
|
|
10
11
|
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
13
14
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@inkjs/ui": "^2.0.0",
|
|
17
|
+
"@inquirer/confirm": "^6.0.8",
|
|
18
|
+
"@inquirer/core": "^11.1.5",
|
|
19
|
+
"@inquirer/password": "^5.0.8",
|
|
20
|
+
"@inquirer/select": "^5.1.0",
|
|
21
|
+
"commander": "^13.1.0",
|
|
22
|
+
"date-fns": "^4.1.0",
|
|
23
|
+
"ink": "^6.8.0",
|
|
24
|
+
"ink-spinner": "^5.0.0",
|
|
25
|
+
"posthog-node": "^5.28.4",
|
|
26
|
+
"react": "^19.2.4",
|
|
27
|
+
"viem": "2.22.12",
|
|
28
|
+
"@zoralabs/coins-sdk": "0.5.1"
|
|
17
29
|
},
|
|
18
|
-
"repository": "git@github.com:ourzora/cli.git",
|
|
19
|
-
"author": "Zora",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"private": false,
|
|
22
30
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
31
|
+
"@types/node": "^22.13.0",
|
|
32
|
+
"@types/react": "^19.2.14",
|
|
33
|
+
"ink-testing-library": "^4.0.0",
|
|
34
|
+
"react-devtools-core": "^7.0.1",
|
|
35
|
+
"tsup": "^8.4.0",
|
|
36
|
+
"tsx": "^4.21.0",
|
|
37
|
+
"typescript": "^5.7.0",
|
|
38
|
+
"vitest": "^4.0.18"
|
|
27
39
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=24"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"build:js": "tsup",
|
|
46
|
+
"zora": "tsx src/index.tsx",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"build:binary": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora",
|
|
49
|
+
"build:binary:all": "pnpm run build:binary:mac-arm64 && pnpm run build:binary:mac-x64 && pnpm run build:binary:linux-x64 && pnpm run build:binary:linux-arm64 && pnpm run build:binary:windows-x64",
|
|
50
|
+
"build:binary:mac-arm64": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --target=bun-darwin-arm64 --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora-darwin-arm64",
|
|
51
|
+
"build:binary:mac-x64": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --target=bun-darwin-x64 --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora-darwin-x64",
|
|
52
|
+
"build:binary:linux-x64": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --target=bun-linux-x64 --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora-linux-x64",
|
|
53
|
+
"build:binary:linux-arm64": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --target=bun-linux-arm64 --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora-linux-arm64",
|
|
54
|
+
"build:binary:windows-x64": "V=$(node -p \"require('./package.json').version\") && bun build ./src/index.tsx --compile --target=bun-windows-x64 --define \"PKG_VERSION=\\\"$V\\\"\" --outfile ./bin/zora-windows-x64.exe"
|
|
37
55
|
}
|
|
38
|
-
}
|
|
56
|
+
}
|
package/README.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# zora-cli
|
|
2
|
-
|
|
3
|
-
## usage
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
yarn global add @zoralabs/cli
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
### mint
|
|
10
|
-
|
|
11
|
-
#### uri
|
|
12
|
-
|
|
13
|
-
Mint new zNFTs on the Zora Protocol from a contentURI and metadataURI.
|
|
14
|
-
|
|
15
|
-
##### local blockchain
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
zora mint uri --rpc-url http://localhost:8545 \
|
|
19
|
-
--wallet-mnemonic 'concert load couple harbor equip island argue ramp clarify fence smart topic' \
|
|
20
|
-
--chain-id 1337 \
|
|
21
|
-
--media-address 0x1D7022f5B17d2F8B695918FB48fa1089C9f85401 \
|
|
22
|
-
--market-address 0x1dC4c1cEFEF38a777b15aA20260a54E584b16C48 \
|
|
23
|
-
--content-uri https://ipfs.io/ipfs/bafybeiacyrrjel6qq2mdv6to6fvbzsg64y3g4kbp32h55zfmesx2oe7cwi \
|
|
24
|
-
--metadata-uri https://ipfs.io/ipfs/bafybeifvmzeyggdi36igqjiub5bq6vbpn5ebihxgqjbrk5ibqculk4upoy \
|
|
25
|
-
--creator-share 10 \
|
|
26
|
-
--timeout 10000
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
##### rinkeby
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
zora mint uri --rpc-url <infura or alchemy node> \
|
|
33
|
-
--wallet-mnemonic 'concert load couple harbor equip island argue ramp clarify fence smart topic' \
|
|
34
|
-
--chain-id 4 \
|
|
35
|
-
--content-uri https://ipfs.io/ipfs/bafybeiacyrrjel6qq2mdv6to6fvbzsg64y3g4kbp32h55zfmesx2oe7cwi \
|
|
36
|
-
--metadata-uri https://ipfs.io/ipfs/bafybeifvmzeyggdi36igqjiub5bq6vbpn5ebihxgqjbrk5ibqculk4upoy \
|
|
37
|
-
--creator-share 10 \
|
|
38
|
-
--timeout 10000
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
##### mainnet
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
zora mint uri --rpc-url <infura or alchemy node> \
|
|
45
|
-
--wallet-mnemonic 'concert load couple harbor equip island argue ramp clarify fence smart topic' \
|
|
46
|
-
--chain-id 1 \
|
|
47
|
-
--content-uri https://ipfs.io/ipfs/bafybeiacyrrjel6qq2mdv6to6fvbzsg64y3g4kbp32h55zfmesx2oe7cwi \
|
|
48
|
-
--metadata-uri https://ipfs.io/ipfs/bafybeifvmzeyggdi36igqjiub5bq6vbpn5ebihxgqjbrk5ibqculk4upoy \
|
|
49
|
-
--creator-share 10 \
|
|
50
|
-
--timeout 10000
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
#### file
|
|
54
|
-
|
|
55
|
-
Coming Soon.
|
package/bin/zora
DELETED
package/dist/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function run(): void;
|
package/dist/cli.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.run = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const Path = tslib_1.__importStar(require("path"));
|
|
6
|
-
const clime_1 = require("clime");
|
|
7
|
-
function run() {
|
|
8
|
-
let cli = new clime_1.CLI('zora', Path.join(__dirname, 'commands'));
|
|
9
|
-
let shim = new clime_1.Shim(cli);
|
|
10
|
-
shim.execute(process.argv);
|
|
11
|
-
}
|
|
12
|
-
exports.run = run;
|
|
13
|
-
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;AAAA,mDAA4B;AAC5B,iCAAiC;AAEjC,SAAgB,GAAG;IACjB,IAAI,GAAG,GAAG,IAAI,WAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;IAC3D,IAAI,IAAI,GAAG,IAAI,YAAI,CAAC,GAAG,CAAC,CAAA;IACxB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC;AAJD,kBAIC"}
|
package/dist/commands/default.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subcommands = void 0;
|
|
4
|
-
exports.subcommands = [
|
|
5
|
-
{
|
|
6
|
-
name: 'mint',
|
|
7
|
-
brief: 'This group of subcommands will mint new zNFTs on the Zora Protocol. Type `zora mint --help` for more.',
|
|
8
|
-
},
|
|
9
|
-
];
|
|
10
|
-
//# sourceMappingURL=default.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/commands/default.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAA2B;IAC/C;QACI,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,uGAAuG;KACjH;CACJ,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.brief = exports.description = void 0;
|
|
4
|
-
exports.description = 'this group of subcommands will mint new zNFTs on the Zora Protocol';
|
|
5
|
-
exports.brief = 'this group of subcommands will mint new zNFTs on the Zora Protocol';
|
|
6
|
-
//# sourceMappingURL=default.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/commands/mint/default.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,oEAAoE,CAAC;AACnF,QAAA,KAAK,GAAG,oEAAoE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const clime_1 = require("clime");
|
|
5
|
-
let default_1 = class default_1 extends clime_1.Command {
|
|
6
|
-
execute() {
|
|
7
|
-
return console.log("\nNOT IMPLEMENTED YET.\n");
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
clime_1.metadata,
|
|
12
|
-
tslib_1.__metadata("design:type", Function),
|
|
13
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
14
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
15
|
-
], default_1.prototype, "execute", null);
|
|
16
|
-
default_1 = tslib_1.__decorate([
|
|
17
|
-
clime_1.command({
|
|
18
|
-
description: '[COMING SOON] This command will mint a new zNFT on the Zora Protocol from a file on your computer. Type `zora mint file --help` for more.'
|
|
19
|
-
})
|
|
20
|
-
], default_1);
|
|
21
|
-
exports.default = default_1;
|
|
22
|
-
//# sourceMappingURL=file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../src/commands/mint/file.ts"],"names":[],"mappings":";;;AAAA,iCAAkD;AAMlD,gBAAA,eAAqB,SAAQ,eAAO;IAEhC,OAAO;QACH,OAAO,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAA;IAClD,CAAC;CACJ,CAAA;AAHG;IADC,gBAAQ;;;;wCAGR;AAJL;IAJC,eAAO,CAAC;QACL,WAAW,EACP,2IAA2I;KAClJ,CAAC;aAMD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Command, Options } from 'clime';
|
|
2
|
-
export declare class MintURIOptions extends Options {
|
|
3
|
-
rpcURL: string;
|
|
4
|
-
walletMnemonic: string;
|
|
5
|
-
chainId: number;
|
|
6
|
-
contentURI: string;
|
|
7
|
-
metadataURI: string;
|
|
8
|
-
creatorShare: number;
|
|
9
|
-
mediaAddress: string;
|
|
10
|
-
marketAddress: string;
|
|
11
|
-
timeout: number;
|
|
12
|
-
}
|
|
13
|
-
export default class extends Command {
|
|
14
|
-
execute(options: MintURIOptions): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MintURIOptions = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const clime_1 = require("clime");
|
|
6
|
-
const zdk_1 = require("@zoralabs/zdk");
|
|
7
|
-
const providers_1 = require("@ethersproject/providers");
|
|
8
|
-
const ethers_1 = require("ethers");
|
|
9
|
-
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
10
|
-
class MintURIOptions extends clime_1.Options {
|
|
11
|
-
}
|
|
12
|
-
tslib_1.__decorate([
|
|
13
|
-
clime_1.option({
|
|
14
|
-
flag: 'r',
|
|
15
|
-
required: true,
|
|
16
|
-
description: '[required] rpc endpoint for eth node'
|
|
17
|
-
}),
|
|
18
|
-
tslib_1.__metadata("design:type", String)
|
|
19
|
-
], MintURIOptions.prototype, "rpcURL", void 0);
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
clime_1.option({
|
|
22
|
-
flag: 'w',
|
|
23
|
-
required: true,
|
|
24
|
-
description: '[required] wallet mnemonic'
|
|
25
|
-
}),
|
|
26
|
-
tslib_1.__metadata("design:type", String)
|
|
27
|
-
], MintURIOptions.prototype, "walletMnemonic", void 0);
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
clime_1.option({
|
|
30
|
-
flag: 'i',
|
|
31
|
-
required: true,
|
|
32
|
-
description: '[required] chainId for the cli to connect to.'
|
|
33
|
-
// TODO: validate chainID 1, 4, 50
|
|
34
|
-
}),
|
|
35
|
-
tslib_1.__metadata("design:type", Number)
|
|
36
|
-
], MintURIOptions.prototype, "chainId", void 0);
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
clime_1.option({
|
|
39
|
-
flag: 'c',
|
|
40
|
-
required: true,
|
|
41
|
-
description: '[required] uri where the content is located'
|
|
42
|
-
}),
|
|
43
|
-
tslib_1.__metadata("design:type", String)
|
|
44
|
-
], MintURIOptions.prototype, "contentURI", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
clime_1.option({
|
|
47
|
-
flag: 'm',
|
|
48
|
-
required: true,
|
|
49
|
-
description: '[required] uri where the metadata is located'
|
|
50
|
-
}),
|
|
51
|
-
tslib_1.__metadata("design:type", String)
|
|
52
|
-
], MintURIOptions.prototype, "metadataURI", void 0);
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
clime_1.option({
|
|
55
|
-
flag: 's',
|
|
56
|
-
required: true,
|
|
57
|
-
description: "[required] creator's share (%) of future sales of the minted zNFT"
|
|
58
|
-
// TODO: require that its less than 100
|
|
59
|
-
}),
|
|
60
|
-
tslib_1.__metadata("design:type", Number)
|
|
61
|
-
], MintURIOptions.prototype, "creatorShare", void 0);
|
|
62
|
-
tslib_1.__decorate([
|
|
63
|
-
clime_1.option({
|
|
64
|
-
flag: 'a',
|
|
65
|
-
required: false,
|
|
66
|
-
description: '[optional] override address for Zora Media Contract'
|
|
67
|
-
}),
|
|
68
|
-
tslib_1.__metadata("design:type", String)
|
|
69
|
-
], MintURIOptions.prototype, "mediaAddress", void 0);
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
clime_1.option({
|
|
72
|
-
flag: 'b',
|
|
73
|
-
required: false,
|
|
74
|
-
description: '[optional] override address for Zora Market Contract'
|
|
75
|
-
}),
|
|
76
|
-
tslib_1.__metadata("design:type", String)
|
|
77
|
-
], MintURIOptions.prototype, "marketAddress", void 0);
|
|
78
|
-
tslib_1.__decorate([
|
|
79
|
-
clime_1.option({
|
|
80
|
-
flag: 't',
|
|
81
|
-
default: 10000,
|
|
82
|
-
description: '[optional] timeout (ms) for making http requests to passed uris'
|
|
83
|
-
}),
|
|
84
|
-
tslib_1.__metadata("design:type", Number)
|
|
85
|
-
], MintURIOptions.prototype, "timeout", void 0);
|
|
86
|
-
exports.MintURIOptions = MintURIOptions;
|
|
87
|
-
let default_1 = class default_1 extends clime_1.Command {
|
|
88
|
-
async execute(options) {
|
|
89
|
-
const provider = new providers_1.JsonRpcProvider(options.rpcURL, options.chainId);
|
|
90
|
-
await provider.ready;
|
|
91
|
-
const wallet = ethers_1.Wallet.fromMnemonic(options.walletMnemonic);
|
|
92
|
-
const connectedWallet = wallet.connect(provider);
|
|
93
|
-
let zora;
|
|
94
|
-
if (options.mediaAddress && options.marketAddress) {
|
|
95
|
-
zora = new zdk_1.Zora(connectedWallet, options.chainId, options.mediaAddress, options.marketAddress);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
zora = new zdk_1.Zora(connectedWallet, options.chainId);
|
|
99
|
-
}
|
|
100
|
-
const contentResp = await axios_1.default.get(options.contentURI, {
|
|
101
|
-
timeout: options.timeout,
|
|
102
|
-
responseType: 'arraybuffer'
|
|
103
|
-
});
|
|
104
|
-
const contentHash = zdk_1.sha256FromBuffer(contentResp.data);
|
|
105
|
-
const metadataResp = await axios_1.default.get(options.metadataURI, {
|
|
106
|
-
timeout: options.timeout,
|
|
107
|
-
responseType: 'arraybuffer'
|
|
108
|
-
});
|
|
109
|
-
const metadataHash = zdk_1.sha256FromBuffer(metadataResp.data);
|
|
110
|
-
const mediaData = zdk_1.constructMediaData(options.contentURI, options.metadataURI, contentHash, metadataHash);
|
|
111
|
-
const bidShares = zdk_1.constructBidShares(options.creatorShare, 100 - options.creatorShare, 0);
|
|
112
|
-
const verified = await zdk_1.isMediaDataVerified(mediaData, options.timeout);
|
|
113
|
-
if (!verified) {
|
|
114
|
-
throw new Error("MediaData is not verified");
|
|
115
|
-
}
|
|
116
|
-
const tx = await zora.mint(mediaData, bidShares);
|
|
117
|
-
console.log(`\n\nSuccessfully submitted Mint Transaction to the Zora Media Contract. \nContract Address: ${zora.mediaAddress}. \nChainId ${options.chainId}. \nTransaction Hash: ${tx.hash}.`);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
clime_1.metadata,
|
|
122
|
-
tslib_1.__metadata("design:type", Function),
|
|
123
|
-
tslib_1.__metadata("design:paramtypes", [MintURIOptions]),
|
|
124
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
125
|
-
], default_1.prototype, "execute", null);
|
|
126
|
-
default_1 = tslib_1.__decorate([
|
|
127
|
-
clime_1.command({
|
|
128
|
-
description: 'This command will mint a new zNFT on the Zora Protocol from an existing contentURI and metadataURI. Type `zora mint uri --help` for more.'
|
|
129
|
-
})
|
|
130
|
-
], default_1);
|
|
131
|
-
exports.default = default_1;
|
|
132
|
-
//# sourceMappingURL=uri.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../../src/commands/mint/uri.ts"],"names":[],"mappings":"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"}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,0DAAyB;AACzB,4DAA2B;AAC3B,+BAA2B;AAE3B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,WAAW,CAAC,gBAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;AACzF,SAAG,EAAE,CAAA"}
|