@secondlayer/cli 0.1.0 → 0.1.1
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 +10 -21
- package/dist/cli.cjs +6 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +6 -6
- package/dist/cli.js.map +1 -1
- package/dist/core/plugin-manager.cjs.map +1 -1
- package/dist/core/plugin-manager.d.cts +1 -1
- package/dist/core/plugin-manager.d.ts +1 -1
- package/dist/core/plugin-manager.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{plugin-manager-DBXFfyFZ.d.cts → plugin-manager-Cc1rHnQS.d.cts} +3 -3
- package/dist/{plugin-manager-DBXFfyFZ.d.ts → plugin-manager-Cc1rHnQS.d.ts} +3 -3
- package/dist/plugins/index.cjs +5 -5
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.cts +9 -9
- package/dist/plugins/index.d.ts +9 -9
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/index.js.map +1 -1
- package/package.json +2 -3
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PluginFactory, c as PluginOptions, b as StacksCodegenPlugin } from '../plugin-manager-
|
|
2
|
-
export { G as GenerateContext, L as Logger, d as PluginContext, i as PluginManager, e as PluginUtils } from '../plugin-manager-
|
|
1
|
+
import { P as PluginFactory, c as PluginOptions, b as StacksCodegenPlugin } from '../plugin-manager-Cc1rHnQS.cjs';
|
|
2
|
+
export { G as GenerateContext, L as Logger, d as PluginContext, i as PluginManager, e as PluginUtils } from '../plugin-manager-Cc1rHnQS.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Clarinet Plugin for @
|
|
5
|
+
* Clarinet Plugin for @secondlayer/cli
|
|
6
6
|
* Generates type-safe contract interfaces from local Clarity contracts using Clarinet SDK
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ declare const clarinet: PluginFactory<ClarinetPluginOptions>;
|
|
|
26
26
|
declare function hasClarinetProject(path?: string): Promise<boolean>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Actions Plugin for @
|
|
29
|
+
* Actions Plugin for @secondlayer/cli
|
|
30
30
|
* Generates read and write helper functions for direct blockchain interaction
|
|
31
31
|
*/
|
|
32
32
|
|
|
@@ -48,7 +48,7 @@ interface ActionsPluginOptions {
|
|
|
48
48
|
declare const actions: PluginFactory<ActionsPluginOptions>;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* React Plugin Types for @
|
|
51
|
+
* React Plugin Types for @secondlayer/cli
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -63,7 +63,7 @@ interface ReactPluginOptions extends PluginOptions {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* React Plugin for @
|
|
66
|
+
* React Plugin for @secondlayer/cli
|
|
67
67
|
* Generates React hooks for contract interfaces and generic Stacks functionality
|
|
68
68
|
*/
|
|
69
69
|
|
|
@@ -73,7 +73,7 @@ interface ReactPluginOptions extends PluginOptions {
|
|
|
73
73
|
declare const react: PluginFactory<ReactPluginOptions>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Hiro Plugin Types for @
|
|
76
|
+
* Hiro Plugin Types for @secondlayer/cli
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -100,7 +100,7 @@ interface HiroPluginOptions extends PluginOptions {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Hiro Plugin for @
|
|
103
|
+
* Hiro Plugin for @secondlayer/cli
|
|
104
104
|
* Fetches contract ABIs from deployed contracts on mainnet/testnet using the Hiro API
|
|
105
105
|
*/
|
|
106
106
|
|
|
@@ -110,7 +110,7 @@ interface HiroPluginOptions extends PluginOptions {
|
|
|
110
110
|
declare const hiro: PluginFactory<HiroPluginOptions>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Plugin exports for @
|
|
113
|
+
* Plugin exports for @secondlayer/cli
|
|
114
114
|
* This will be expanded as plugins are implemented
|
|
115
115
|
*/
|
|
116
116
|
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PluginFactory, c as PluginOptions, b as StacksCodegenPlugin } from '../plugin-manager-
|
|
2
|
-
export { G as GenerateContext, L as Logger, d as PluginContext, i as PluginManager, e as PluginUtils } from '../plugin-manager-
|
|
1
|
+
import { P as PluginFactory, c as PluginOptions, b as StacksCodegenPlugin } from '../plugin-manager-Cc1rHnQS.js';
|
|
2
|
+
export { G as GenerateContext, L as Logger, d as PluginContext, i as PluginManager, e as PluginUtils } from '../plugin-manager-Cc1rHnQS.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Clarinet Plugin for @
|
|
5
|
+
* Clarinet Plugin for @secondlayer/cli
|
|
6
6
|
* Generates type-safe contract interfaces from local Clarity contracts using Clarinet SDK
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ declare const clarinet: PluginFactory<ClarinetPluginOptions>;
|
|
|
26
26
|
declare function hasClarinetProject(path?: string): Promise<boolean>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Actions Plugin for @
|
|
29
|
+
* Actions Plugin for @secondlayer/cli
|
|
30
30
|
* Generates read and write helper functions for direct blockchain interaction
|
|
31
31
|
*/
|
|
32
32
|
|
|
@@ -48,7 +48,7 @@ interface ActionsPluginOptions {
|
|
|
48
48
|
declare const actions: PluginFactory<ActionsPluginOptions>;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* React Plugin Types for @
|
|
51
|
+
* React Plugin Types for @secondlayer/cli
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -63,7 +63,7 @@ interface ReactPluginOptions extends PluginOptions {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* React Plugin for @
|
|
66
|
+
* React Plugin for @secondlayer/cli
|
|
67
67
|
* Generates React hooks for contract interfaces and generic Stacks functionality
|
|
68
68
|
*/
|
|
69
69
|
|
|
@@ -73,7 +73,7 @@ interface ReactPluginOptions extends PluginOptions {
|
|
|
73
73
|
declare const react: PluginFactory<ReactPluginOptions>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Hiro Plugin Types for @
|
|
76
|
+
* Hiro Plugin Types for @secondlayer/cli
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -100,7 +100,7 @@ interface HiroPluginOptions extends PluginOptions {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Hiro Plugin for @
|
|
103
|
+
* Hiro Plugin for @secondlayer/cli
|
|
104
104
|
* Fetches contract ABIs from deployed contracts on mainnet/testnet using the Hiro API
|
|
105
105
|
*/
|
|
106
106
|
|
|
@@ -110,7 +110,7 @@ interface HiroPluginOptions extends PluginOptions {
|
|
|
110
110
|
declare const hiro: PluginFactory<HiroPluginOptions>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Plugin exports for @
|
|
113
|
+
* Plugin exports for @secondlayer/cli
|
|
114
114
|
* This will be expanded as plugins are implemented
|
|
115
115
|
*/
|
|
116
116
|
|
package/dist/plugins/index.js
CHANGED
|
@@ -336,7 +336,7 @@ import { format as format2 } from "prettier";
|
|
|
336
336
|
async function generateContractInterface(contracts) {
|
|
337
337
|
const imports = `import { Cl, validateStacksAddress } from '@stacks/transactions'`;
|
|
338
338
|
const header = `/**
|
|
339
|
-
* Generated by @
|
|
339
|
+
* Generated by @secondlayer/cli
|
|
340
340
|
* DO NOT EDIT MANUALLY
|
|
341
341
|
*/`;
|
|
342
342
|
const contractsCode = contracts.map((contract) => generateContract(contract)).join("\n\n");
|
|
@@ -631,7 +631,7 @@ var clarinet = (options = {}) => {
|
|
|
631
631
|
const manifestPath = options.path || "./Clarinet.toml";
|
|
632
632
|
let simnet;
|
|
633
633
|
return {
|
|
634
|
-
name: "@
|
|
634
|
+
name: "@secondlayer/cli/plugin-clarinet",
|
|
635
635
|
version: "1.0.0",
|
|
636
636
|
async transformConfig(config) {
|
|
637
637
|
try {
|
|
@@ -981,7 +981,7 @@ async function generateActionHelpers(contract, options) {
|
|
|
981
981
|
// src/plugins/actions/index.ts
|
|
982
982
|
var actions = (options = {}) => {
|
|
983
983
|
return {
|
|
984
|
-
name: "@
|
|
984
|
+
name: "@secondlayer/cli/plugin-actions",
|
|
985
985
|
version: "1.0.0",
|
|
986
986
|
async generate(context) {
|
|
987
987
|
const { contracts } = context;
|
|
@@ -2219,7 +2219,7 @@ function generateWriteHook(func, contractName) {
|
|
|
2219
2219
|
var react = (options = {}) => {
|
|
2220
2220
|
const excludeList = options.exclude || [];
|
|
2221
2221
|
return {
|
|
2222
|
-
name: "@
|
|
2222
|
+
name: "@secondlayer/cli/plugin-react",
|
|
2223
2223
|
version: "1.0.0",
|
|
2224
2224
|
async generate(context) {
|
|
2225
2225
|
if (options.debug) {
|
|
@@ -2450,7 +2450,7 @@ var hiro = (options) => {
|
|
|
2450
2450
|
);
|
|
2451
2451
|
}
|
|
2452
2452
|
return {
|
|
2453
|
-
name: "@
|
|
2453
|
+
name: "@secondlayer/cli/plugin-hiro",
|
|
2454
2454
|
version: "1.0.0",
|
|
2455
2455
|
async transformConfig(config) {
|
|
2456
2456
|
if (options.debug) {
|