Skip to content

Commit 92bede9

Browse files
authored
Merge pull request #4472 from AE-0h/master
updated v4-periphery to v4-template in workspaces module
2 parents 0a5efa2 + 9b22139 commit 92bede9

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

apps/remix-ide-e2e/src/tests/workspace_git.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -370,25 +370,23 @@ module.exports = {
370370

371371
// GIT WORKSPACE E2E STARTS
372372

373-
'Should create a git workspace (uniswapV4Periphery) #group4': function (browser: NightwatchBrowser) {
373+
'Should create a git workspace (uniswapV4Template) #group4': function (browser: NightwatchBrowser) {
374374
browser
375375
.click('*[data-id="workspacesMenuDropdown"]')
376376
.click('*[data-id="workspacecreate"]')
377377
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]')
378378
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button')
379379
.click('select[id="wstemplate"]')
380-
.click('select[id="wstemplate"] option[value=uniswapV4Periphery]')
380+
.click('select[id="wstemplate"] option[value=uniswapV4Template]')
381381
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
382382
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() })
383383
.pause(100)
384-
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]')
385-
.openFile('contracts')
386-
.openFile('contracts/hooks')
387-
.openFile('contracts/hooks/examples')
388-
.openFile('contracts/hooks/examples/FullRange.sol')
384+
.waitForElementVisible('*[data-id="treeViewLitreeViewItemsrc"]')
385+
.openFile('src')
386+
.openFile('src/Counter.sol')
389387
.pause(1000)
390388
.getEditorValue((content) => {
391-
browser.assert.ok(content.indexOf(`contract FullRange is BaseHook`) !== -1,
389+
browser.assert.ok(content.indexOf(`contract Counter is BaseHook {`) !== -1,
392390
'Incorrect content')
393391
})
394392
},
@@ -406,4 +404,4 @@ url = https://github.com/bunsenstraat/empty3
406404
[submodule "testactionsub"]
407405
path = testactionsub
408406
url = https://github.com/bunsenstraat/testactions
409-
`
407+
`

apps/remix-ide/src/app/tabs/locales/en/filePanel.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"filePanel.hashchecker": "Hash Checker",
114114
"filePanel.rln": "Rate-Limiting Nullifier",
115115
"filePanel.breakthroughLabsUniswapv4Hooks": "Breakthrough-Labs Hooks",
116-
"filePanel.uniswapV4Periphery": "v4 Periphery",
116+
"filePanel.uniswapV4Template": "v4 Template",
117117
"filePanel.uniswapV4HookBookMultiSigSwapHook": "HookBook MultiSigSwapHook",
118118
"filePanel.transparent": "Transparent",
119119
"filePanel.initGitRepoTitle": "Check option to initialize workspace as a new git repository",
@@ -136,4 +136,4 @@
136136
"filePanel.movingFolderFailedMsg": "Unexpected error while moving folder: {src}",
137137
"filePanel.workspaceActions": "Workspace actions",
138138
"filePanel.saveCodeSample": "This code-sample workspace will not be persisted. Click here to save it."
139-
}
139+
}

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,8 @@ export function Workspace() {
791791
</option>
792792
</optgroup>
793793
<optgroup style={{fontSize: 'medium'}} label="Uniswap V4">
794-
<option style={{fontSize: 'small'}} value="uniswapV4Periphery">
795-
{intl.formatMessage({id: 'filePanel.uniswapV4Periphery'})}
794+
<option style={{fontSize: 'small'}} value="uniswapV4Template">
795+
{intl.formatMessage({id: 'filePanel.uniswapV4Template'})}
796796
</option>
797797
<option style={{fontSize: 'small'}} value="breakthroughLabsUniswapv4Hooks">
798798
{intl.formatMessage({id: 'filePanel.breakthroughLabsUniswapv4Hooks'})}

libs/remix-ui/workspace/src/lib/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface JSONStandardInput {
1919
}
2020
}
2121
export type MenuItems = action[]
22-
export type WorkspaceTemplate = 'gist-template' | 'code-template' | 'remixDefault' | 'blank' | 'ozerc20' | 'zeroxErc20' | 'ozerc721' | 'playground' | 'semaphore' | 'hashchecker' | 'rln' | 'breakthroughLabsUniswapv4Hooks' | 'uniswapV4Periphery' | 'uniswapV4HookBookMultiSigSwapHook'
22+
export type WorkspaceTemplate = 'gist-template' | 'code-template' | 'remixDefault' | 'blank' | 'ozerc20' | 'zeroxErc20' | 'ozerc721' | 'playground' | 'semaphore' | 'hashchecker' | 'rln' | 'breakthroughLabsUniswapv4Hooks' | 'uniswapV4Template' | 'uniswapV4HookBookMultiSigSwapHook'
2323
export interface WorkspaceProps {
2424
plugin: FilePanelType
2525
}

libs/remix-ui/workspace/src/lib/utils/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const TEMPLATE_NAMES = {
8787
'hashchecker': 'Hash Checker',
8888
'rln': 'Rate-Limiting Nullifier',
8989
'breakthroughLabsUniswapv4Hooks': 'Breakthrough-Labs Uniswapv4Hooks',
90-
'uniswapV4Periphery': 'Uniswap v4 Periphery',
90+
'uniswapV4Template': 'Uniswap v4 Template',
9191
'uniswapV4HookBookMultiSigSwapHook': 'Uniswap V4 HookBook MultiSigSwapHook',
9292
}
9393

@@ -97,9 +97,9 @@ export const TEMPLATE_METADATA: Record<string, TemplateType> = {
9797
url: 'https://github.com/Breakthrough-Labs/Uniswapv4Hooks',
9898
branch: 'foundry_pure'
9999
},
100-
'uniswapV4Periphery': {
100+
'uniswapV4Template': {
101101
type: 'git',
102-
url: 'https://github.com/Uniswap/v4-periphery',
102+
url: 'https://github.com/Breakthrough-Labs/v4-template',
103103
branch: 'main'
104104
},
105105
'uniswapV4HookBookMultiSigSwapHook': {

0 commit comments

Comments
 (0)