create-stylus 0.1.6 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-stylus",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "author": "Q3 Labs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ss",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "private": true,
5
5
  "workspaces": {
6
6
  "packages": [
@@ -12,15 +12,17 @@ export const TransactionsTable = ({ blocks, transactionReceipts }: TransactionsT
12
12
  <div className="flex justify-center px-4 md:px-0">
13
13
  <div className="overflow-x-auto w-full p-4 shadow-2xl rounded-3xl border border-color">
14
14
  <table className="table w-full md:table-md table-sm">
15
- <tr className="rounded-xl bg-[#1B1B1B] text-white">
16
- <th className="rounded-l-xl">Transaction Hash</th>
17
- <th>Function Called</th>
18
- <th>Block Number</th>
19
- <th>Time Mined</th>
20
- <th>From</th>
21
- <th>To</th>
22
- <th className="text-end rounded-r-xl">Value ({targetNetwork.nativeCurrency.symbol})</th>
23
- </tr>
15
+ <thead>
16
+ <tr className="rounded-xl bg-[#1B1B1B] text-white">
17
+ <th className="rounded-l-xl">Transaction Hash</th>
18
+ <th>Function Called</th>
19
+ <th>Block Number</th>
20
+ <th>Time Mined</th>
21
+ <th>From</th>
22
+ <th>To</th>
23
+ <th className="text-end rounded-r-xl">Value ({targetNetwork.nativeCurrency.symbol})</th>
24
+ </tr>
25
+ </thead>
24
26
  <tbody>
25
27
  {blocks.map(block =>
26
28
  (block.transactions as TransactionWithFunction[]).map(tx => {
@@ -4,122 +4,6 @@
4
4
  */
5
5
  import { GenericContractsDeclaration } from "../utils/scaffold-eth/contract";
6
6
 
7
- const deployedContracts = {
8
- "412346": {
9
- "your-contract": {
10
- address: "0xe547a947fc6c8683c210a6a56a9de05dd87142ea",
11
- txHash: "0x7a9d0a2de8a684efeabc47d502c6480da156a5f5f360c2469a01a88db782fc81",
12
- abi: [
13
- {
14
- inputs: [
15
- {
16
- internalType: "address",
17
- name: "",
18
- type: "address",
19
- },
20
- ],
21
- name: "OwnableInvalidOwner",
22
- type: "error",
23
- },
24
- {
25
- inputs: [
26
- {
27
- internalType: "address",
28
- name: "",
29
- type: "address",
30
- },
31
- ],
32
- name: "OwnableUnauthorizedAccount",
33
- type: "error",
34
- },
35
- {
36
- inputs: [],
37
- name: "greeting",
38
- outputs: [
39
- {
40
- internalType: "string",
41
- name: "",
42
- type: "string",
43
- },
44
- ],
45
- stateMutability: "view",
46
- type: "function",
47
- },
48
- {
49
- inputs: [],
50
- name: "premium",
51
- outputs: [
52
- {
53
- internalType: "bool",
54
- name: "",
55
- type: "bool",
56
- },
57
- ],
58
- stateMutability: "view",
59
- type: "function",
60
- },
61
- {
62
- inputs: [],
63
- name: "receiveEther",
64
- outputs: [],
65
- stateMutability: "payable",
66
- type: "function",
67
- },
68
- {
69
- inputs: [
70
- {
71
- internalType: "string",
72
- name: "new_greeting",
73
- type: "string",
74
- },
75
- ],
76
- name: "setGreeting",
77
- outputs: [],
78
- stateMutability: "payable",
79
- type: "function",
80
- },
81
- {
82
- inputs: [],
83
- name: "totalCounter",
84
- outputs: [
85
- {
86
- internalType: "uint256",
87
- name: "",
88
- type: "uint256",
89
- },
90
- ],
91
- stateMutability: "view",
92
- type: "function",
93
- },
94
- {
95
- inputs: [
96
- {
97
- internalType: "address",
98
- name: "user",
99
- type: "address",
100
- },
101
- ],
102
- name: "userGreetingCounter",
103
- outputs: [
104
- {
105
- internalType: "uint256",
106
- name: "",
107
- type: "uint256",
108
- },
109
- ],
110
- stateMutability: "view",
111
- type: "function",
112
- },
113
- {
114
- inputs: [],
115
- name: "withdraw",
116
- outputs: [],
117
- stateMutability: "nonpayable",
118
- type: "function",
119
- },
120
- ],
121
- },
122
- },
123
- } as const;
7
+ const deployedContracts = {} as const;
124
8
 
125
9
  export default deployedContracts satisfies GenericContractsDeclaration;
@@ -29,4 +29,10 @@ export default defineConfig([
29
29
  ],
30
30
  },
31
31
  },
32
+ {
33
+ files: ["next-env.d.ts"],
34
+ rules: {
35
+ "@typescript-eslint/triple-slash-reference": "off",
36
+ },
37
+ },
32
38
  ]);
@@ -1,5 +1,6 @@
1
1
  /// <reference types="next" />
2
2
  /// <reference types="next/image-types/global" />
3
+ /// <reference path="./.next/types/routes.d.ts" />
3
4
 
4
5
  // NOTE: This file should not be edited
5
6
  // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
@@ -247,11 +247,7 @@ yarn deploy --network <network>
247
247
 
248
248
  ### Deploy to Orbit Chains
249
249
 
250
- Before deploying, you would have to ensure that your `deployStylusContract` function on your `deploy.ts` function has the `isOrbit` value set to `true` (example provided in `deploy.ts`).
251
-
252
- Your contract must have an `initialize()` function as the replacement for the constructor, since not all orbit chains support the constructor feature. Please leave it blank if you don't have any constructor.
253
-
254
- > Make sure you handle initialization properly in your contract, meaning it should only be called once and functions should not run if contract is not initialized.
250
+ Visit our [Deploy to Orbit chain documentation](https://arb-stylus.github.io/scaffold-stylus-docs/deploying/deploy-to-orbit-chains) for detailed guide
255
251
 
256
252
  ## Verify your contract (Highly Experimental)
257
253