Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

238 - Interact UI #239

Draft
wants to merge 33 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
664d018
chore: create branch feature/238-interact-ui-staging
Feb 4, 2024
a06627c
feat: setup react app + ui toolkit
ByFishh Feb 4, 2024
f61335b
feat: interact panel with css
ByFishh Feb 5, 2024
1504131
feat: deploy panel with css
EnzoBonato Feb 5, 2024
05b12ac
feat: get wallets and contracts from config
ByFishh Feb 8, 2024
5e2da60
feat: change deploy button
EnzoBonato Feb 8, 2024
de3bce7
feat: refacto by using reacthookform
ByFishh Feb 13, 2024
ecaba30
feat: import deploy back functions
EnzoBonato Feb 21, 2024
690a391
feat: deploy base and select wallet
EnzoBonato Feb 28, 2024
68ddd72
feat: error handling and read
ByFishh Feb 18, 2024
2d64da0
feat: interact and display result
ByFishh Feb 29, 2024
ad66436
feat: remove rest from rebase
ByFishh Feb 29, 2024
ce5b67d
feat: add buttons to add new wallet/contract
ByFishh Feb 29, 2024
f8deb0f
feat: solved deploy functions
EnzoBonato Feb 29, 2024
2cb1547
feat: display script to deploy
EnzoBonato Mar 1, 2024
e81e6eb
feat: Remove files and change getContract function
EnzoBonato Mar 1, 2024
51b2434
feat: Remove include DeployWithParam
EnzoBonato Mar 2, 2024
247c57d
Add launch.json and update deploy.ts to handle multiple scripts in mu…
Leon-azerty Mar 3, 2024
9708396
feat: fix bugs on getContracts function
EnzoBonato Mar 5, 2024
45e9ed2
feat: Select contract to deploy
EnzoBonato Mar 6, 2024
1e14171
feat: Add button for environment on deploy with contract
EnzoBonato Mar 6, 2024
b6370c2
feat: error handling and create osmium folder if doesn't exist
ByFishh Mar 13, 2024
e23b188
feat: add and remove wallet/contract from ui
ByFishh Mar 13, 2024
421b122
feat: interact with value and gaslimit
ByFishh Mar 13, 2024
497e3ff
feat: Add check errors for gasLimit & value
EnzoBonato Mar 15, 2024
925e6b1
feat: Edit button on wallet to add or remove wallets
EnzoBonato Mar 15, 2024
888bf37
feart: display constructor params on deploy contract
EnzoBonato Mar 16, 2024
fd6f414
feat: Add Edit button to add or remove environments
EnzoBonato Mar 17, 2024
722db9b
Add environment dropdown to DeployUsingContract component
Leon-azerty Mar 18, 2024
48b70d2
Remove useless code and move code in good place
Leon-azerty Mar 18, 2024
652113e
feat: fix error on search file for environment
EnzoBonato Mar 18, 2024
3c6d3df
feat: Fix UX visuals
EnzoBonato Mar 18, 2024
2c929cd
feat(solidity/extension): correct webview actions for deploy
0xmemorygrinder Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11,749 changes: 0 additions & 11,749 deletions .pnp.cjs

This file was deleted.

2,090 changes: 0 additions & 2,090 deletions .pnp.loader.mjs

This file was deleted.

5 changes: 4 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
compressionLevel: mixed
enableGlobalCache: false

enableGlobalCache: false

nodeLinker: node-modules
1 change: 1 addition & 0 deletions remove-me-acc4544bd15e4ddda943.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
acc4544bd15e4ddda943
22 changes: 22 additions & 0 deletions toolchains/solidity/extension/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm: compile"
}
]
}
26 changes: 24 additions & 2 deletions toolchains/solidity/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,29 @@
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "sidepanel",
"title": "Osmium",
"icon": "assets/logo.png"
}
]
},
"views": {
"sidepanel": [
{
"type": "webview",
"id": "osmium.sidepanel",
"name": "Deploy/Interact"
}
]
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == solidity",
"command": "osmium.lint-sol-file",
"command": "osmium.format-sol-file",
"group": "7_modification"
}
]
Expand Down Expand Up @@ -69,7 +87,8 @@
"scripts": {
"extension:build": "yarn run compile",
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"compile": "yarn run build-front && webpack",
"build-front": "cd sidepanel && yarn run build",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"pretest": "yarn run compile && yarn run extension:lint",
Expand All @@ -79,6 +98,9 @@
"extension:publish": "yarn run package && vsce publish --no-dependencies"
},
"dependencies": {
"react-hook-form": "^7.50.1",
"toml": "^3.0.0",
"viem": "^2.0.6",
"vscode-languageclient": "^8.1.0",
"vscode-languageserver": "^8.1.0",
"vscode-languageserver-textdocument": "^1.0.8"
Expand Down
18 changes: 18 additions & 0 deletions toolchains/solidity/extension/sidepanel/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions toolchains/solidity/extension/sidepanel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
10 changes: 10 additions & 0 deletions toolchains/solidity/extension/sidepanel/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2,
"bracketSpacing": true,
"parser": "typescript",
"endOfLine": "auto"
}
12 changes: 12 additions & 0 deletions toolchains/solidity/extension/sidepanel/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading