Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge from branch 'release/v0.2.0' #124

Merged
merged 232 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
294e143
feat: add interface for INSUnified
ducthotran2010 Sep 29, 2023
a444e8c
feat: add comments & remove unccessary enum
ducthotran2010 Sep 29, 2023
defdfc1
Merge pull request #1 from axieinfinity/feature/rns-unified-interface
Sep 29, 2023
062aa4d
forge install: contract-template
TuDo1403 Sep 29, 2023
b7dc1fe
feat: add RNSToken & RNSUnified
TuDo1403 Sep 29, 2023
d7fcde7
Update src/RNSUnified.sol
Oct 1, 2023
3158ca4
Update src/RNSUnified.sol
Oct 1, 2023
41c90db
Update src/RNSToken.sol
Oct 1, 2023
63dbec5
feat: minor optimization
TuDo1403 Oct 1, 2023
f7f1a68
format: remove remappings
TuDo1403 Oct 2, 2023
a9e4d4c
fix: revert in ownerOf
TuDo1403 Oct 2, 2023
4466319
Update src/RNSUnified.sol
Oct 2, 2023
4391e4b
[RNSUnified]: Add `RNSUnified` contract (#4)
Oct 2, 2023
286aa1d
feat: add expiry check
TuDo1403 Oct 4, 2023
425185e
format: add doc
TuDo1403 Oct 4, 2023
a841962
[Feat]: Add expiry check for `RNSUnified` (#7)
Oct 4, 2023
f45aae6
feat: remove TTL & minor improvements (#8)
ducthotran2010 Oct 4, 2023
4227444
feat: add RNSUnified.mint tests
TuDo1403 Oct 4, 2023
a18fac4
fix: rebase issue
TuDo1403 Oct 4, 2023
e944b8a
feat: add setExpiry tests
TuDo1403 Oct 4, 2023
a5c3e1e
feat: add overriden ERC721 unit tests
TuDo1403 Oct 4, 2023
45d833d
fix: add bulkSetProtected tests
TuDo1403 Oct 5, 2023
e048596
feat: add exists check and minor tests update
TuDo1403 Oct 5, 2023
ab642de
feat: minor bug fix and more unit tests for setRecord
TuDo1403 Oct 6, 2023
2efbb1c
feat: resolve issue setRecord owner
TuDo1403 Oct 6, 2023
153b255
feat: add event check
TuDo1403 Oct 6, 2023
d2aa24f
fix: fix revert wrong error code
TuDo1403 Oct 6, 2023
0b870a9
fix: minor bug fix and refactor tests
TuDo1403 Oct 6, 2023
3476223
fix: setRecord expiry
TuDo1403 Oct 6, 2023
a3754aa
feat: remove arg in error
TuDo1403 Oct 7, 2023
0c068f9
fix: fix test
TuDo1403 Oct 7, 2023
6fcdffc
fix: resolve issues
TuDo1403 Oct 9, 2023
874d5ce
format: add notice comment
TuDo1403 Oct 9, 2023
117bea6
Update src/RNSUnified.sol
Oct 9, 2023
31b42aa
Update src/RNSUnified.sol
Oct 9, 2023
ddeb1e5
Update src/RNSUnified.sol
Oct 9, 2023
58a8754
format: rename shouldUpdateProtected to shouldRemoveProtected
TuDo1403 Oct 9, 2023
0f9e10a
override ERC721::_transfer, ERC721::_burn
TuDo1403 Oct 9, 2023
fc3c865
doc: update comment
TuDo1403 Oct 9, 2023
dc150cd
fix: only remove record.mut
TuDo1403 Oct 9, 2023
0999e7e
fix: Minor logic and add unit tests for RNSUnified (#6)
Oct 10, 2023
f03cd7c
feat: Implement Reverse Registrar for RNS (#9)
ducthotran2010 Oct 10, 2023
e83c9a7
fix: ownerOf return address(0) instead of revert
TuDo1403 Oct 10, 2023
4304d42
format: minor format
TuDo1403 Oct 10, 2023
96ea8e4
chore: RNSUnified ownerOf no longer revert when expired & minor chang…
Oct 10, 2023
1ce5f17
feat: add RNSUnified into testnet v0.2.0 (#15)
Oct 10, 2023
5d2ad62
Merge branch 'release-testnet/v0.2.0' into feature/reverse-registrar
ducthotran2010 Oct 10, 2023
57803a6
feat: add Reverse Registrar into testnet v0.2.0 (#16)
Oct 10, 2023
9cdf8e1
Feature: add namehash function for `RNSUnified` (#14)
Oct 11, 2023
317fc96
feat: add Public Resolvers into testnet v0.2.0 (#17)
Oct 12, 2023
d030533
feat: implement Auction contract for RNS (#18)
Oct 12, 2023
e80c251
feat: add`RNSDomainPrice` contract (#19)
Oct 12, 2023
4492422
Resolve merge conflict/auction (#25)
Oct 12, 2023
f59b8b8
Merge branch 'release-testnet/v0.2.0' into feature/auction
ducthotran2010 Oct 12, 2023
663874c
feat: add RNSAuction into testnet v0.2.0 (#24)
Oct 12, 2023
113a81e
chore: resolve merge conflict 'feature/domain-price' into release-tes…
Oct 12, 2023
02f884f
Merge branch 'release-testnet/v0.2.0' into feature/domain-price
ducthotran2010 Oct 12, 2023
80d4738
chore: resolve confict
ducthotran2010 Oct 12, 2023
5bdcf13
chore: resolve merge conflict 'feature/domain-price' into release-tes…
ducthotran2010 Oct 12, 2023
0ddf631
feat: return tax price in `RNSDomainPrice` (#34)
TuDo1403 Oct 13, 2023
2767222
feat: add RNSDomainPrice into testnet v0.2.0 (#26)
TuDo1403 Oct 13, 2023
9df396d
chore: merge 'release-testnet/v0.2.0' into feature/controller (#35)
ducthotran2010 Oct 13, 2023
4f64729
chore: pull latest from 'release/test-net/v0.2.0' to feature/rns-unif…
TuDo1403 Oct 13, 2023
6f1b99f
feat: add `RONRegistrarController` and `NameChecker` contracts (#21)
TuDo1403 Oct 13, 2023
11c4121
feat: reuse `LibRNSDomain` for namehash and compute id (#32)
TuDo1403 Oct 13, 2023
fd60700
feat: update Reverse Registrar into testnet v0.2.0 (#39)
TuDo1403 Oct 13, 2023
88e8543
Merge branch 'release-testnet/v0.2.0' into resolve-conflict/rns-unifi…
TuDo1403 Oct 13, 2023
01ec462
resolve conflicts
TuDo1403 Oct 13, 2023
0e248d3
chore: resolve merge conflict 'feature/rns-unified' into release-test…
TuDo1403 Oct 13, 2023
2f78c97
fix: resolve conflict
TuDo1403 Oct 13, 2023
58d7bec
chore: resolve merge conflict 'feature/rns-unified' into release-test…
TuDo1403 Oct 13, 2023
8441fb0
feat: update RNS Unified into testnet v0.2.0 (#43)
TuDo1403 Oct 13, 2023
f257099
chore: merge 'release-testnet/v0.2.0' into feature/controller (#35)
TuDo1403 Oct 13, 2023
8425f06
feat: allow maintain reservation status for ids listed in auction con…
TuDo1403 Oct 13, 2023
b09eb66
feat: remove setter and event
TuDo1403 Oct 13, 2023
168a811
Merge branch 'release-testnet/v0.2.0' into resolve-conflict/controlle…
TuDo1403 Oct 13, 2023
bd7e30a
feat: resolve conflict
TuDo1403 Oct 13, 2023
b072f0c
chore: resolve merge conflict 'feature/controller' into release-testn…
TuDo1403 Oct 13, 2023
4051d86
feat: update RONRegistrarController into testnet v0.2.0 (#49)
TuDo1403 Oct 14, 2023
06d9c0b
Merge branch 'release-testnet/v0.2.0' into merge/release-testnet/v0.2…
TuDo1403 Oct 14, 2023
b924017
Merge branch 'release-testnet/v0.2.0' into merge/release-testnet/v0.2…
TuDo1403 Oct 14, 2023
7c997ba
fix: fix operator not assigned in RNSDomainPrice::initialize
TuDo1403 Oct 14, 2023
6dabda4
chore: pull latest from 'release/test-net/v0.2.0' to feature/domain-p…
TuDo1403 Oct 14, 2023
6ea2558
chore: pull latest from 'release/test-net/v0.2.0' to feature/auction …
TuDo1403 Oct 14, 2023
a752039
Merge branch 'feature/auction' into implement-feature/permanent-tax-f…
TuDo1403 Oct 14, 2023
fbfe1b4
Merge branch 'feature/domain-price' into fix/initialize/domain-price
TuDo1403 Oct 14, 2023
a5853cd
fix: operator not assigned in RNSDomainPrice.initialize (#50)
TuDo1403 Oct 14, 2023
9ff32b8
feat: maintain reserved status for ids listed in RNSAuction contract …
TuDo1403 Oct 14, 2023
9cb5293
feat: update Domain Price into testnet v0.2.0 (#52)
TuDo1403 Oct 14, 2023
adbf663
Merge branch 'release-testnet/v0.2.0' into merge/feature/auction/rele…
TuDo1403 Oct 14, 2023
6ad6f52
chore: pull lasest features from 'release-testnet/v0.2.0' into featur…
TuDo1403 Oct 14, 2023
1f44a65
feat: update Auction into testnet v0.2.0 (#54)
TuDo1403 Oct 14, 2023
0d08649
fix: relative import style (#56)
TuDo1403 Oct 14, 2023
df8e51b
feat: update Reverse Registrar into testnet v0.2.0 (#62)
TuDo1403 Oct 14, 2023
a157137
feat: update Reverse Registrar into testnet v0.2.0 (#66)
TuDo1403 Oct 15, 2023
a584092
forge install: foundry-deployment-kit
TuDo1403 Oct 15, 2023
270fa18
feat: add rns contract collection deploy script
TuDo1403 Oct 15, 2023
ccf2f31
chore: rename migration
TuDo1403 Oct 15, 2023
bad243f
forge install: foundry-deployment-kit
TuDo1403 Oct 15, 2023
7b8f9b0
chore: remove ProxyAdmin artifact
TuDo1403 Oct 15, 2023
e0d7c31
feat: add verify script
TuDo1403 Oct 15, 2023
0616777
feat: update deployment script
TuDo1403 Oct 17, 2023
ab3f829
feat: add debug script
TuDo1403 Oct 17, 2023
646b463
Merge branch 'migration/deploy-rns-contract-collection' into implemen…
TuDo1403 Oct 17, 2023
c5f4759
feat: add deployment script (#67)
TuDo1403 Oct 17, 2023
48452e8
Merge branch 'release/v0.2.0' into implement-feature/scripting/debug-…
TuDo1403 Oct 17, 2023
cf00984
feat: add debug script (#68)
TuDo1403 Oct 17, 2023
a0e8050
chore: add deployment artifacts
TuDo1403 Oct 17, 2023
e2e240f
chore: add deployment artifacts into 'release/v0.2.0 (#69)
TuDo1403 Oct 17, 2023
ac2fa29
feat: add workflow to create pull request
ducthotran2010 Oct 18, 2023
649b368
feat: rm request team reviewers
ducthotran2010 Oct 18, 2023
8a0b64c
feat(ci): implement `create-pull-request` (#70)
ducthotran2010 Oct 20, 2023
5554568
feat(ci): add workflow to create pull request (#71)
ducthotran2010 Oct 20, 2023
476c49f
Merge branch 'feature/rns-unified' into merge/release/v0.2.0-feature/…
TuDo1403 Oct 20, 2023
fba8981
forge install: foundry-deployment-kit
TuDo1403 Oct 20, 2023
fa33b3f
feat: update protected logic
TuDo1403 Oct 20, 2023
3ca7b42
chore(rns-unified): merge from `release/v0.2.0` (#75)
ducthotran2010 Oct 20, 2023
419ddcb
Merge branch 'feature/rns-unified' into implement-feature/rns-unified…
TuDo1403 Oct 20, 2023
3b30eb3
Update src/RNSUnified.sol
TuDo1403 Oct 20, 2023
66ae414
feat: add doc
TuDo1403 Oct 20, 2023
3e2ea27
Update src/RNSUnified.sol
ducthotran2010 Oct 20, 2023
49fa4fd
feat(rns-unified): implement `protected-rule` (#79)
TuDo1403 Oct 20, 2023
53277d9
feat: add expiry check
TuDo1403 Oct 20, 2023
dd72b1e
Merge branch 'feature/domain-price' into implement-feature/domain-pri…
TuDo1403 Oct 20, 2023
02f6ab9
Merge branch 'feature/domain-price' into merge/release/v0.2.0-feature…
TuDo1403 Oct 20, 2023
84a0eed
chore(domain-price): merge from `release/v0.2.0` (#74)
ducthotran2010 Oct 20, 2023
9c77133
Merge branch 'feature/domain-price' into implement-feature/domain-pri…
TuDo1403 Oct 20, 2023
68d8d9a
feat: update logic & migration script
TuDo1403 Oct 21, 2023
f3f590d
Update src/RNSDomainPrice.sol
TuDo1403 Oct 21, 2023
ddd81c0
format: reorder function
TuDo1403 Oct 23, 2023
56aaf0d
feat(domain-price): implement `auction-domain-expiry` (#82)
TuDo1403 Oct 23, 2023
a94afeb
feat: update RNSUnified into 'release/v0.2.0' (#84)
TuDo1403 Oct 23, 2023
c97f0b1
Merge branch 'feature/domain-price' into merge/release/v0.2.0-feature…
TuDo1403 Oct 23, 2023
280acba
chore(domain-price): merge from `release/v0.2.0` (#86)
TuDo1403 Oct 23, 2023
dc0ee7b
chore: add ugrade artiface RNSUnified, RNSAuction, RNSDomainPrice
TuDo1403 Oct 23, 2023
f7ba28f
feature/enhnace pipeline for avoiding looping
huyngopt1994 Oct 23, 2023
a19a380
Fix syntax
huyngopt1994 Oct 23, 2023
c861a00
Update the correct branch name
huyngopt1994 Oct 23, 2023
e128e70
Update .github/workflows/create-PR-release.yml
ducthotran2010 Oct 23, 2023
fb37816
feat(enhance): Pipeline for avoiding hardcode (#88)
ducthotran2010 Oct 23, 2023
3499af5
chore: add upgrade artiface RNSUnified, RNSAuction, RNSDomainPrice (#87)
ducthotran2010 Oct 23, 2023
aab5592
chore(`feature/ci`): merge from `release/v0.2.0` (#78)
ducthotran2010 Oct 23, 2023
70322e2
chore: update PR title
ducthotran2010 Oct 23, 2023
5b37dd5
chore(ci): update PR title (#92)
ducthotran2010 Oct 23, 2023
aaad2cb
chore(`domain-price`): merge from `release/v0.2.0` (#91)
TuDo1403 Oct 24, 2023
c0f54e8
feat: Add tax and limit renewal duration for auction domains (#94)
TuDo1403 Oct 24, 2023
f3df240
Merge branch 'feature/auction' into merge/release/v0.2.0-feature/auction
TuDo1403 Oct 24, 2023
98c17d9
chore(`auction`): merge from `release/v0.2.0` (#77)
TuDo1403 Oct 24, 2023
345a490
feat: forbid contract bidder
TuDo1403 Oct 24, 2023
b23f0c9
feat: update migration script
TuDo1403 Oct 24, 2023
d596a17
format: rename script
TuDo1403 Oct 24, 2023
9ecc86f
format: rename outdated error
TuDo1403 Oct 24, 2023
5a3867b
feat(auction): implement `eoa-bidder` (#96)
TuDo1403 Oct 24, 2023
929b660
feat: add upload-sig script
TuDo1403 Oct 24, 2023
ebb4170
feat: add script to upload event & error & fn selectors (#98)
ducthotran2010 Oct 24, 2023
f1d8a86
feat: forbid contract to place bid in `RNSAuction` (#97)
ducthotran2010 Oct 24, 2023
7ba3c5e
feat: add RNSAuction migration artifact
TuDo1403 Oct 24, 2023
09726ff
feat: add OVERRIDER_ROLE and migration scripts
TuDo1403 Oct 24, 2023
b58214e
Update src/RNSDomainPrice.sol
ducthotran2010 Oct 24, 2023
f35ddbd
feat: use overrider role for bulkSetDomainPrice
TuDo1403 Oct 24, 2023
bc6b372
feat: add RNSDomainPrice artifact with overrider role
TuDo1403 Oct 24, 2023
b3e6069
feat(domain-price): implement `overrider-role` (#100)
TuDo1403 Oct 24, 2023
1e40778
Merge branch 'feature/domain-price' into merge/release/v0.2.0-feature…
TuDo1403 Oct 24, 2023
422f5e5
chore(`domain-price`): merge from `release/v0.2.0` (#95)
TuDo1403 Oct 24, 2023
35340bf
feat: add overrider role to set & override name price, renewal fee (#…
TuDo1403 Oct 24, 2023
6a59401
chore(`rns-unified`): merge from `release/v0.2.0` (#85)
TuDo1403 Oct 24, 2023
8ff0b70
feat: disable minting 3rd level domain
TuDo1403 Oct 24, 2023
f11e51c
feat: skip namehash tests
TuDo1403 Oct 24, 2023
4f3f980
chore: add doc
TuDo1403 Oct 24, 2023
b78ba47
feat: update RNSUnified artifact that ban 3rd level domain
TuDo1403 Oct 24, 2023
c197fc7
Merge branch 'release/v0.2.0' into deploy/v0.2.0-testnet
TuDo1403 Oct 24, 2023
bbd003a
feat(rns-unified): implement `ban-3rd-level-domain` (#103)
TuDo1403 Oct 24, 2023
959e320
feat: disallow minting 3rd domain in RNSUnified (#105)
TuDo1403 Oct 24, 2023
3d734e5
Merge branch 'release/v0.2.0' into deploy/v0.2.0-testnet
TuDo1403 Oct 24, 2023
e5b778b
chore: add 20231024 migration artifacts (#104)
TuDo1403 Oct 24, 2023
775ad22
Merge branch 'feature/controller' into merge/release/v0.2.0-feature/c…
TuDo1403 Oct 24, 2023
1fdb55e
chore(`controller`): merge from `release/v0.2.0` (#73)
ducthotran2010 Oct 24, 2023
42ed2ff
feat: add onlyAvailable modifier & validate available name for regis…
TuDo1403 Oct 24, 2023
19ed00e
chore: rename migration script
TuDo1403 Oct 24, 2023
2c27fe0
feat: update RONRegistrarController artifact that validate name in re…
TuDo1403 Oct 24, 2023
6be381f
feat(controller): implement `validate-name` (#107)
TuDo1403 Oct 25, 2023
9413dd4
fix: validate available name for registerProtectectedName fn (#108)
TuDo1403 Oct 25, 2023
ef648ca
chore: add artifact for rns unified that allow reverse registrar to m…
TuDo1403 Oct 25, 2023
72a5821
chore(`rns-unified`): merge from `release/v0.2.0` (#106)
TuDo1403 Oct 25, 2023
89b450e
fix: getRecord fn return non null owner when id is expired
TuDo1403 Oct 25, 2023
c0a5cf4
chore: add artifact for rns unified that nullify owner in getRecord f…
TuDo1403 Oct 25, 2023
49105dc
feat(rns-unified): implement `invalidate-expired-owner` (#110)
TuDo1403 Oct 25, 2023
3667736
feat: allow 3rd level domain for parent 'addr.reverse' & nullify doma…
TuDo1403 Oct 25, 2023
7b1da92
Merge branch 'release/v0.2.0' into deploy/v0.2.0-testnet
TuDo1403 Oct 25, 2023
ca9e0c6
chore: add latests artifacts for `RNSUnified`, `RONRegistrarControlle…
TuDo1403 Oct 25, 2023
2ca16ce
feature update dynamic list feature branches
huyngopt1994 Oct 25, 2023
0e8768f
Add needs
huyngopt1994 Oct 25, 2023
b25984e
feat: update dynamic list feature branches (#115)
ducthotran2010 Oct 25, 2023
23abf06
Change feature grep pattern in CI
huyngopt1994 Oct 25, 2023
824e342
fix: feature grep pattern in CI (#116)
ducthotran2010 Oct 25, 2023
cd82168
change grep pattern for avoiding merge pattern
huyngopt1994 Oct 25, 2023
13982e5
fix: grep pattern for avoiding merge pattern (#118)
ducthotran2010 Oct 25, 2023
5c59ea1
chore: merge from branch 'release/v0.2.0' (#119)
ducthotran2010 Oct 25, 2023
9fbfc8d
forge install: foundry-deployment-kit
TuDo1403 Nov 4, 2023
a3f217e
forge install: foundry-deployment-kit
TuDo1403 Nov 4, 2023
32e113b
forge install: migration-20231015
TuDo1403 Nov 4, 2023
2ef1a79
forge install: foundry-deployment-kit
TuDo1403 Nov 5, 2023
9433b2e
forge install: migration-20231020
TuDo1403 Nov 5, 2023
72adf44
forge install: migration-20231024
TuDo1403 Nov 5, 2023
54c6bd9
forge install: migration-20231025
TuDo1403 Nov 5, 2023
e7ef83c
forge install: foundry-deployment-kit
TuDo1403 Nov 6, 2023
95a1c4e
feat: add mainnet deployment script
TuDo1403 Nov 6, 2023
4cdc147
chore: clean up config
ducthotran2010 Nov 6, 2023
d7a9e65
chore: rm unncessary checks
ducthotran2010 Nov 6, 2023
69e2f5b
chore: add deployment artifacts
ducthotran2010 Nov 6, 2023
c5be330
forge install: foundry-deployment-kit
TuDo1403 Nov 6, 2023
a8ee9a0
feat: add mainnet config prelaunch config
TuDo1403 Nov 6, 2023
5bde2e4
feat: move json parsing logic to internal fn
TuDo1403 Nov 6, 2023
47b94a3
feat: config owner multicaller & add test reserved names
TuDo1403 Nov 7, 2023
d949508
feat: add Migration__20231106_TransferOwnership script
TuDo1403 Nov 7, 2023
35b021f
feat: add Migration__20231106_TransferOwnership script
TuDo1403 Nov 7, 2023
73d646a
fix: fix script setApprovalForAll
TuDo1403 Nov 7, 2023
120f23a
feat: add pause gas metering
TuDo1403 Nov 7, 2023
2757885
feat: add prelaunch config migration scripts (#122)
ducthotran2010 Nov 7, 2023
df27c36
chore: add broadcast artifact
ducthotran2010 Nov 10, 2023
26a58c5
feat: add claim-auction, list-auction, set-protected script
TuDo1403 Nov 11, 2023
2912e65
feat: add whitelist-protected script
TuDo1403 Nov 11, 2023
f773850
feat: add override-fee script
TuDo1403 Nov 13, 2023
d266d22
feat: update list-auction script
TuDo1403 Nov 13, 2023
b680b0b
feat: add place-bid script
TuDo1403 Nov 13, 2023
c212df2
fix: override-fee script
TuDo1403 Nov 13, 2023
e8ccaa4
feat: blacklist full string instead of substrings
TuDo1403 Nov 14, 2023
4e0ae07
feat: add MigrateInvalidAuctionNames script
TuDo1403 Nov 15, 2023
cc622c3
chore: add temp script
ducthotran2010 Nov 15, 2023
4ebdc61
feat: refactor operation script
TuDo1403 Nov 15, 2023
6040a29
feat: refactor operation script
TuDo1403 Nov 15, 2023
eb0cf65
chore: add mainnet deployment artifacts into 'release/v0.2.0' (#121)
ducthotran2010 Nov 16, 2023
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
10 changes: 10 additions & 0 deletions .debug.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Fork block number to debug
BLOCK=0x0
# Caller
FROM=0x0000000000000000000000000000000000000000
# Callee
TO=0x0000000000000000000000000000000000000000
# Sent Value
VALUE=0x27cdb0997a65b2de99
# Call Data
CALLDATA=0x0
2 changes: 2 additions & 0 deletions .github/template/create-pull-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Description
PR to merge from [{{ .fromBranch }}](/axieinfinity/rns-contracts/tree/{{ .fromBranch }}) to [{{ .toBranch }}](/axieinfinity/rns-contracts/tree/{{ .toBranch }}).
50 changes: 50 additions & 0 deletions .github/workflows/create-PR-implement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Create Pull Request From Implement To Feature
on:
push:
branches:
- 'implement-feature/**'
- 'implement-feature/**/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

env:
HEAD_BRANCH: ${{ github.head_ref || github.ref_name }}

jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Set env
run: |
echo "FEATURE_NAME=$(echo ${HEAD_BRANCH} | cut -d'/' -f2)" >> $GITHUB_ENV
echo "FEATURE_BRANCH=feature/$(echo ${HEAD_BRANCH} | cut -d'/' -f2)" >> $GITHUB_ENV
echo "IMPLEMENT_NAME=$(echo ${HEAD_BRANCH} | cut -d'/' -f3)" >> $GITHUB_ENV

- uses: actions/checkout@v3
with:
ref: ${{env.FEATURE_BRANCH}}

- name: Reset promotion branch
run: |
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH}
git reset --hard ${HEAD_BRANCH}

- name: Render template
id: template
uses: chuhlomin/[email protected]
with:
template: .github/template/create-pull-request.md
vars: |
fromBranch: ${{env.HEAD_BRANCH}}
toBranch: ${{ env.FEATURE_BRANCH }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: ${{ env.HEAD_BRANCH }}
base: ${{env.FEATURE_BRANCH}}
labels: automated PR
title: 'feat(${{env.FEATURE_NAME}}): implement `${{env.IMPLEMENT_NAME}}`'
body: ${{ steps.template.outputs.result }}
84 changes: 84 additions & 0 deletions .github/workflows/create-PR-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Create Pull Request From Release to Feature
on:
push:
branches:
- 'release/*'
- 'release*/*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

env:
HEAD_BRANCH: ${{ github.head_ref || github.ref_name }}

jobs:
fetchAllFeatureBranches:
runs-on: ubuntu-latest

steps:
- id: step1
name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- id: step2
name: List all the remote feature branches
run: |
branches=$(git branch -r | grep -E '.*origin\/feature\/.*' | sed -e "s/.*origin\///" | tr "\n" " ")
JSON="["
for branch in ${branches[@]}; do
echo $branch
JSONline="\"$branch\","
# we don't need to iterate on the same branch over and over, so
# onnly include it when it wasn't included
if [[ "$JSON" != *"$JSONline"* ]]; then
JSON="$JSON$JSONline"
fi
done
# Remove last "," and add the closing bracket
if [[ $JSON == *, ]]; then
JSON="${JSON%?}"
fi
JSON="$JSON]"
echo $JSON
echo "BRANCHES={\"branch_name\": $( echo "$JSON" )}" >> "$GITHUB_OUTPUT"
outputs:
BRANCHES: ${{ steps.step2.outputs.BRANCHES }}

mergeRelease2FeatureRepo:
runs-on: ubuntu-latest
needs: fetchAllFeatureBranches
strategy:
matrix: ${{ fromJSON(needs.fetchAllFeatureBranches.outputs.BRANCHES) }}
steps:
- name: Set env
run: |
echo "PR_BRANCH=merge/${HEAD_BRANCH}-${{matrix.branch_name}}" >> $GITHUB_ENV
echo "FEATURE_NAME=$(echo ${{matrix.branch_name}} | cut -d'/' -f2)" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
ref: ${{matrix.branch_name}}
- name: Reset promotion branch
run: |
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH}
git reset --hard ${HEAD_BRANCH}

- name: Render template
id: template
uses: chuhlomin/[email protected]
with:
template: .github/template/create-pull-request.md
vars: |
fromBranch: ${{env.HEAD_BRANCH}}
toBranch: ${{matrix.branch_name}}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
labels: automated PR
delete-branch: true
title: 'chore(`${{env.FEATURE_NAME}}`): merge from `${{env.HEAD_BRANCH}}`'
body: ${{ steps.template.outputs.result }}
branch: ${{env.PR_BRANCH}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docs/
# Dotenv file
.env
.vscode
.debug.env

node_modules/
yarn-error.log
Expand Down
18 changes: 18 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,21 @@
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "lib/contract-template"]
path = lib/contract-template
url = https://github.com/axieinfinity/contract-template
[submodule "lib/ens-contracts"]
path = lib/ens-contracts
url = https://github.com/ensdomains/ens-contracts
[submodule "lib/buffer"]
path = lib/buffer
url = https://github.com/ensdomains/buffer
[submodule "lib/pyth-sdk-solidity"]
path = lib/pyth-sdk-solidity
url = https://github.com/pyth-network/pyth-sdk-solidity
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/foundry-deployment-kit"]
path = lib/foundry-deployment-kit
url = https://github.com/axieinfinity/foundry-deployment-kit
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"transactions": [
{
"hash": "0xd736ab88f74574d14472989ed45274badea3991b1e17e7e7660a57a58c896aba",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0xdb5e1ec6000000000000000000000000000000000000000000000000000000008b075d10000000000000000000000000000000000000000000000000000000008b08ae90",
"nonce": "0x726"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0x777b0a18039f71a14110d644e25ab67e0da29ae3d93f9f372f5a2f7775cafe4e856e8d81000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002601dccd6a440eb22898b2a72036566e9e57f5b7fdfd11c2e2ede7265aec13f45832f650be9aa2ded8d1a23a429039e3d03abde98c83c2d66d350779253f2ad6d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x727"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0xd736ab88f74574d14472989ed45274badea3991b1e17e7e7660a57a58c896aba"
],
"returns": {},
"timestamp": 1700031427,
"chain": 2020,
"multi": false,
"commit": "4e0ae07"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"transactions": [
{
"hash": "0xb584da5fec2d653dd862c3842d4a29ec97523c1b46976e640d8f29ad3dba1043",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0xdb5e1ec6000000000000000000000000000000000000000000000000000000008b075d10000000000000000000000000000000000000000000000000000000008b08ae90",
"nonce": "0x727"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x5c0a89e8cb83686860de603736b4987a8af39719d12d70734386aa0f7d0f5e92",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0x777b0a18039f71a14110d644e25ab67e0da29ae3d93f9f372f5a2f7775cafe4e856e8d81000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002601dccd6a440eb22898b2a72036566e9e57f5b7fdfd11c2e2ede7265aec13f45832f650be9aa2ded8d1a23a429039e3d03abde98c83c2d66d350779253f2ad6d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x728"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0xb584da5fec2d653dd862c3842d4a29ec97523c1b46976e640d8f29ad3dba1043",
"0x5c0a89e8cb83686860de603736b4987a8af39719d12d70734386aa0f7d0f5e92"
],
"returns": {},
"timestamp": 1700031514,
"chain": 2020,
"multi": false,
"commit": "4e0ae07"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"transactions": [
{
"hash": "0xb584da5fec2d653dd862c3842d4a29ec97523c1b46976e640d8f29ad3dba1043",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0xdb5e1ec6000000000000000000000000000000000000000000000000000000008b075d10000000000000000000000000000000000000000000000000000000008b08ae90",
"nonce": "0x727"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x5c0a89e8cb83686860de603736b4987a8af39719d12d70734386aa0f7d0f5e92",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x0f68edbe14c8f68481771016d7e2871d6a35de11",
"to": "0xd55e6d80aea1ff4650bc952c1653ab3cf1b940a9",
"value": "0x0",
"data": "0x777b0a18039f71a14110d644e25ab67e0da29ae3d93f9f372f5a2f7775cafe4e856e8d81000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002601dccd6a440eb22898b2a72036566e9e57f5b7fdfd11c2e2ede7265aec13f45832f650be9aa2ded8d1a23a429039e3d03abde98c83c2d66d350779253f2ad6d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x728"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"transactionHash": "0xb584da5fec2d653dd862c3842d4a29ec97523c1b46976e640d8f29ad3dba1043",
"transactionIndex": "0x1",
"blockHash": "0x4507aef24a928218b777600e0a06a14e67f76b9f5761078a05513277a13d7be7",
"blockNumber": "0x1c0a0d8",
"from": "0x0F68eDBE14C8f68481771016d7E2871d6a35DE11",
"to": "0xD55e6d80aeA1FF4650BC952C1653ab3CF1b940A9",
"cumulativeGasUsed": "0x69b6a",
"gasUsed": "0x73c8",
"contractAddress": null,
"logs": [
{
"address": "0xD55e6d80aeA1FF4650BC952C1653ab3CF1b940A9",
"topics": [
"0xd8960c7efc6464cdd8dd07f4dc149b0a33bf7f60bf357838722d5b80f988fb1b",
"0x039f71a14110d644e25ab67e0da29ae3d93f9f372f5a2f7775cafe4e856e8d81"
],
"data": "0x000000000000000000000000000000000000000000000000000000008b075d10000000000000000000000000000000000000000000000000000000008b08ae90",
"blockHash": "0x4507aef24a928218b777600e0a06a14e67f76b9f5761078a05513277a13d7be7",
"blockNumber": "0x1c0a0d8",
"transactionHash": "0xb584da5fec2d653dd862c3842d4a29ec97523c1b46976e640d8f29ad3dba1043",
"transactionIndex": "0x1",
"logIndex": "0x5",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00010000000000000000100000000000000000000000000000000000000000000000000000000000000000000000200000000000000100000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080400000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x0",
"effectiveGasPrice": "0x4a817c800"
},
{
"transactionHash": "0x5c0a89e8cb83686860de603736b4987a8af39719d12d70734386aa0f7d0f5e92",
"transactionIndex": "0x2",
"blockHash": "0x4507aef24a928218b777600e0a06a14e67f76b9f5761078a05513277a13d7be7",
"blockNumber": "0x1c0a0d8",
"from": "0x0F68eDBE14C8f68481771016d7E2871d6a35DE11",
"to": "0xD55e6d80aeA1FF4650BC952C1653ab3CF1b940A9",
"cumulativeGasUsed": "0x70f83",
"gasUsed": "0x7419",
"contractAddress": null,
"logs": [
{
"address": "0xD55e6d80aeA1FF4650BC952C1653ab3CF1b940A9",
"topics": [
"0x9a845a1c4235343a450f5e39d4179b7e2a6c9586c02bff45d956717f4a19dd94",
"0x039f71a14110d644e25ab67e0da29ae3d93f9f372f5a2f7775cafe4e856e8d81"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002601dccd6a440eb22898b2a72036566e9e57f5b7fdfd11c2e2ede7265aec13f45832f650be9aa2ded8d1a23a429039e3d03abde98c83c2d66d350779253f2ad6d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x4507aef24a928218b777600e0a06a14e67f76b9f5761078a05513277a13d7be7",
"blockNumber": "0x1c0a0d8",
"transactionHash": "0x5c0a89e8cb83686860de603736b4987a8af39719d12d70734386aa0f7d0f5e92",
"transactionIndex": "0x2",
"logIndex": "0x6",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000100000000040000000000000000000000000000000040000000000000000000000000000200000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000080400000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x0",
"effectiveGasPrice": "0x4a817c800"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1700031521,
"chain": 2020,
"multi": false,
"commit": "4e0ae07"
}
Loading
Loading