Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
俞永鹏
openzeppelin-contracts-upgradeable
Commits
e527c876
Commit
e527c876
authored
Nov 11, 2020
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
1b6b9f00
parent
d14638e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
transpile.yml
.github/workflows/transpile.yml
+1
-1
CHANGELOG.md
CHANGELOG.md
+12
-0
transpile-onto.sh
scripts/upgrade-safe/transpile-onto.sh
+17
-7
No files found.
.github/workflows/transpile.yml
View file @
e527c876
...
@@ -29,5 +29,5 @@ jobs:
...
@@ -29,5 +29,5 @@ jobs:
-
run
:
npm ci
-
run
:
npm ci
if
:
steps.cache.outputs.cache-hit != 'true'
if
:
steps.cache.outputs.cache-hit != 'true'
-
run
:
bash scripts/upgrade-safe/git-user-config.sh
-
run
:
bash scripts/upgrade-safe/git-user-config.sh
-
run
:
bash scripts/upgrade-safe/transpile-
branch
.sh master origin/master
-
run
:
bash scripts/upgrade-safe/transpile-
onto
.sh master origin/master
-
run
:
git push origin master
-
run
:
git push origin master
CHANGELOG.md
View file @
e527c876
# Changelog for Upgrade Safe variant
## 3.2.0 (2020-11-11)
*
First release of Upgrade Safe variant, replacing Ethereum Package variant which is now deprecated.
### Upgrading from OpenZeppelin Contracts Ethereum Package
*
Previously only contracts were renamed with the
`UpgradeSafe`
suffix. In order to improve compatibility between
Upgrade Safe variant and the vanila OpenZeppelin Contracts package, now all contracts, interfaces, and libraries have
the
`UpgradeSafe`
suffix. The only exception is the
`Initializable`
contract which retains its original name.
# Changelog
# Changelog
## Unreleased
## Unreleased
...
...
scripts/upgrade-safe/transpile-
branch
.sh
→
scripts/upgrade-safe/transpile-
onto
.sh
View file @
e527c876
...
@@ -3,26 +3,36 @@
...
@@ -3,26 +3,36 @@
set
-euo
pipefail
set
-euo
pipefail
if
[
$#
-lt
1
]
;
then
if
[
$#
-lt
1
]
;
then
echo
"usage: bash
$0
<
branch
> [base]"
>
&2
echo
"usage: bash
$0
<
target
> [base]"
>
&2
exit
1
exit
1
fi
fi
set
-x
set
-x
branch
=
"
$1
"
target
=
"
$1
"
base
=
"
${
2
:
-}
"
base
=
"
${
2
-
}
"
bash scripts/upgrade-safe/transpile.sh
bash scripts/upgrade-safe/transpile.sh
commit
=
"
$(
git rev-parse
--short
HEAD
)
"
commit
=
"
$(
git rev-parse
--short
HEAD
)
"
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
git add contracts
git add contracts
git checkout
--orphan
"
$branch
"
if
[
-n
"
$base
"
]
;
then
git checkout
--quiet
--detach
git reset
--soft
"
$base
"
if
git rev-parse
--quiet
--verify
"
$target
"
;
then
git reset
--soft
"
$target
"
git checkout
"
$target
"
else
git checkout
--orphan
"
$target
"
if
[
-n
"
$base
"
]
;
then
git reset
--soft
"
$base
"
fi
fi
fi
if
!
git diff
--
cached
--quiet
;
then
if
!
git diff
--
quiet
--cached
;
then
git commit
-m
"Transpile
$commit
"
git commit
-m
"Transpile
$commit
"
fi
fi
git checkout
"
$branch
"
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