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
3c3aa6b1
Commit
3c3aa6b1
authored
Oct 26, 2020
by
Mark Tyneway
Committed by
GitHub
Oct 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy portability (#36)
* deploy: remove dependency on tsc * deploy: fix typo * deployer: fix typo
parent
dc1247ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
deploy.js
packages/contracts/bin/deploy.js
+3
-3
package.json
packages/contracts/package.json
+1
-1
No files found.
packages/contracts/bin/deploy.
t
s
→
packages/contracts/bin/deploy.
j
s
View file @
3c3aa6b1
#!/usr/bin/env
-S node --require ts-node/register
#!/usr/bin/env
node
const
contracts
=
require
(
'
../
src/index.ts
'
);
const
contracts
=
require
(
'
../
build/src/contract-deployment/deploy
'
);
const
{
providers
,
Wallet
}
=
require
(
'
ethers
'
);
const
{
JsonRpcProvider
}
=
providers
;
...
...
@@ -59,7 +59,7 @@ const FORCE_INCLUSION_PERIOD_SECONDS = env.FORCE_INCLUSION_PERIOD_SECONDS || (30
const
out
=
{};
for
(
const
[
name
,
contract
]
of
Object
.
entries
(
result
.
contracts
))
{
out
[
name
]
=
(
contract
as
any
)
.
address
;
out
[
name
]
=
contract
.
address
;
}
console
.
log
(
JSON
.
stringify
(
out
,
null
,
2
));
})().
catch
(
err
=>
{
...
...
packages/contracts/package.json
View file @
3c3aa6b1
...
...
@@ -24,7 +24,7 @@
"lint:fix"
:
"yarn run lint:fix:typescript"
,
"lint:fix:typescript"
:
"prettier --config prettier-config.json --write
\"
buidler.config.ts
\"
\"
{src,test}/**/*.ts
\"
"
,
"clean"
:
"rm -rf ./artifacts ./build ./cache"
,
"deploy"
:
"./bin/deploy.
t
s"
"deploy"
:
"./bin/deploy.
j
s"
},
"dependencies"
:
{
"ethers"
:
"5.0.0"
...
...
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