Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
ba4e2c02
Commit
ba4e2c02
authored
Apr 14, 2021
by
Liam Horne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove .js deploy file as we now have a .ts file
parent
1b221f16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
deploy.js
packages/contracts/bin/deploy.js
+0
-47
No files found.
packages/contracts/bin/deploy.js
deleted
100755 → 0
View file @
1b221f16
#!/usr/bin/env node
const
path
=
require
(
'
path
'
)
const
{
spawn
}
=
require
(
'
child_process
'
)
const
dirtree
=
require
(
'
directory-tree
'
)
const
main
=
async
()
=>
{
const
task
=
spawn
(
path
.
join
(
__dirname
,
'
deploy.ts
'
))
await
new
Promise
((
resolve
)
=>
{
task
.
on
(
'
exit
'
,
()
=>
{
resolve
()
})
})
// Stuff below this line is currently required for CI to work properly. We probably want to
// update our CI so this is no longer necessary. But I'm adding it for backwards compat so we can
// get the hardhat-deploy stuff merged. Woot.
const
nicknames
=
{
'
Lib_AddressManager
'
:
'
AddressManager
'
,
'
mockOVM_BondManager
'
:
'
OVM_BondManager
'
}
const
contracts
=
dirtree
(
path
.
resolve
(
__dirname
,
`../deployments/custom`
)
).
children
.
filter
((
child
)
=>
{
return
child
.
extension
===
'
.json
'
}).
reduce
((
contracts
,
child
)
=>
{
const
contractName
=
child
.
name
.
replace
(
'
.json
'
,
''
)
const
artifact
=
require
(
path
.
resolve
(
__dirname
,
`../deployments/custom/
${
child
.
name
}
`
))
contracts
[
nicknames
[
contractName
]
||
contractName
]
=
artifact
.
address
return
contracts
},
{})
// We *must* console.log here because CI will pipe the output of this script into an
// addresses.json file. Also something we should probably remove.
console
.
log
(
JSON
.
stringify
(
contracts
,
null
,
2
))
}
main
()
.
then
(()
=>
process
.
exit
(
0
))
.
catch
((
error
)
=>
{
console
.
log
(
JSON
.
stringify
({
error
:
error
.
message
,
stack
:
error
.
stack
},
null
,
2
)
)
process
.
exit
(
1
)
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment