Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b8e2450
Remove migration scripts from _deploy method and remove migration tes…
csmuller Jun 16, 2022
0c72c25
Fix comment.
csmuller Jun 16, 2022
8b0ac18
Remove migration scripts from invocations.
csmuller Jun 16, 2022
54965f8
Upgrade to neowej 3.21.1
csmuller Nov 28, 2023
fe43b16
feat: (#39) Add evm contracts
OT-kraftchain Nov 29, 2024
905e359
chore: (#45) Fix failing java tests (#46)
OT-kraftchain Dec 16, 2024
365987f
Feat/#40 Send proposal and execute (#48)
OT-kraftchain Jan 17, 2025
59a29c1
feat: add draft for bridge adaptor
mialbu Jan 28, 2025
b24c37b
feat: add test for raw intents for releasing gas via the bridge
mialbu Jan 29, 2025
bce6ed4
feat: improve receive/bridge in adapter and add onlyOwner in setters
mialbu Feb 3, 2025
c5d92f1
feat: add whitelisted funder and expect treasury to pay bridge fee
mialbu Feb 3, 2025
5c86a76
feat: update adapter and improve proposal builder
mialbu Feb 3, 2025
d08c84b
feat: add intent building for Neo fund request
mialbu Feb 3, 2025
35a5090
feat: add update functionality in adapter contract
mialbu Feb 4, 2025
ca187c1
chore: improve proposal builder functions
mialbu Feb 4, 2025
874faea
test: add tests for script building
mialbu Feb 4, 2025
8fbf369
test: add test for adapter contract update
mialbu Feb 4, 2025
5fabec8
chore: remove redundant backend account from adapter contract
mialbu Feb 4, 2025
aef2437
chore: reorganize adapter contract
mialbu Feb 4, 2025
7a95eb2
test: add tests for setters and general authorization checks
mialbu Feb 4, 2025
8d58dbe
chore: rename proposal and intent bytes builder functions
mialbu Feb 4, 2025
a632a4b
Merge pull request #52 from AxLabs/feature/bridge-adapter
mialbu Feb 4, 2025
bef47f1
feat: add neox testnet and use hh vars for account
mialbu Feb 5, 2025
24477c9
chore: use forge formatter and update foundry.toml
mialbu Feb 5, 2025
e1f8459
feat: use `Ownable2StepUpgradeable` instead of access control (#55)
mialbu Feb 6, 2025
6c81595
chore: Clean artifacts
OT-kraftchain Feb 6, 2025
3b570c9
chore: rename intent to intents
OT-kraftchain Feb 7, 2025
d6b2426
feat: add adapter deployment script
mialbu Feb 7, 2025
d43a54d
feat: use current bridge interface in adapter
mialbu Feb 11, 2025
dbface8
feat: add compilation helper and update script
mialbu Feb 11, 2025
d791fbd
chore: (#60) Redeploy GrantSharesRelayer with test address from hh co…
OT-kraftchain Feb 12, 2025
8c5c8d3
feat: use the bridge v2 interface in the adapter
mialbu Feb 12, 2025
7efe66f
feat: fix permissions and whitelisted funder storage key
mialbu Feb 12, 2025
0c9c658
remove bridge adapter
mialbu Feb 12, 2025
3f4907f
test: update adapter contract update test
mialbu Feb 12, 2025
71abf90
feat: update bridge adapter for bridge v2/v3 support without contract…
mialbu Feb 13, 2025
cece747
Merge branch 'develop' into feat/adapter-combined
mialbu Feb 13, 2025
78a45a3
feat: use testnet constants for bridge adapter in deploy source set
mialbu Feb 13, 2025
e835c39
feat: improve adapter's onNEP17Payment and refine bridge function
mialbu Feb 13, 2025
ecfbdd7
Merge pull request #62 from AxLabs/feat/adapter-combined
mialbu Feb 14, 2025
e766c74
(minor) chore: remove some redundant imports
mialbu Feb 14, 2025
b5720c9
feat: use wallet with password for adapter deployment/update
mialbu Feb 14, 2025
93faa3f
Merge pull request #63 from AxLabs/feat/deploy-wallet
mialbu Feb 14, 2025
744443c
fix: (minor) correct .env.template entry
mialbu Feb 14, 2025
31d6ed7
chore: add more documentation to bridge adapter contract
mialbu Feb 18, 2025
10bb8de
fix: add AllowCall call flags to bridge's fee functions in adapter
mialbu Feb 18, 2025
73bf39d
chore: add bridge adapter contract hash of testnet/mainnet in update …
mialbu Feb 18, 2025
3451dad
fix: Allow fee withdrawal to owner's address (#65)
OT-kraftchain Feb 18, 2025
50ae0ea
chore: Add tests for withrawal (#66)
OT-kraftchain Feb 18, 2025
728d55b
chore: Deploy Relayer to mainnet
OT-kraftchain Feb 18, 2025
a93ac24
fix: update ci-cd checkout and setup-java versions (#83)
mialbu Apr 17, 2025
56bdcad
fix: use read-only context in safe method (#82, #74)
mialbu Apr 17, 2025
40bd7b5
feat: (#77) (GBA-07) Add events for configuration changes in the cont…
OT-kraftchain Apr 24, 2025
051f789
feat: remove outdated bridge version from adapter (#84)
mialbu Apr 25, 2025
c9504ca
fix: rename onlyOwner to checkOwner and remove check in deployment (#72)
mialbu Apr 29, 2025
bb82d58
fix: check balance after bridge invocation (#76)
mialbu Apr 30, 2025
7a794a5
test: add extensive tests for the balance checks (#76)
mialbu Apr 30, 2025
13ab849
Merge pull request #85 from AxLabs/fix/check-witness
mialbu Apr 30, 2025
46bf305
Merge pull request #86 from AxLabs/fix/balance-check
mialbu May 6, 2025
0cf7d98
test: allow dynamic gov contract for bridge adapter int-test
mialbu May 22, 2025
650464b
Merge pull request #88 from AxLabs/feat/adapter-test-dynamic-gov
mialbu May 22, 2025
8bc4ea8
feat: (#80) Add quorumVotes to ProposalData (#81)
OT-kraftchain May 23, 2025
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
4 changes: 4 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FOUNDRY_OUT=./artifacts

GS_BRIDGE_ADAPTER_OWNER_PASSWORD=
GS_BRIDGE_ADAPTER_OWNER_WALLET_PATH=
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
cache: 'gradle'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Unit Tests
run: ./gradlew --info --warning-mode=all clean test
run: ./gradlew --info --warning-mode=all clean test
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,12 @@ gradle.properties
.java-version

*.deploy.properties
!dev.deploy.properties
!dev.deploy.properties

node_modules/
artifacts/
typechain-types/
cache/
cache_hardhat/

**/.env
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/openzeppelin-foundry-upgrades"]
path = lib/openzeppelin-foundry-upgrades
url = https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades
40 changes: 40 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

178 changes: 178 additions & 0 deletions .openzeppelin/unknown-12227332.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0x9b82Ae1050c7C71cDA41E269b8F83478a01D71aE",
"txHash": "0x94ee682cfe4f204f382ac4a037a02e1f512acd2324dc1e391336149c8177e6b7",
"kind": "uups"
}
],
"impls": {
"caeb53e14146e813bc06a78e14b516920fa219bc03b803d869d34d09d59eea3b": {
"address": "0xa4Eee46b1D8fCc7e38225096Bc182fA9650e5dd2",
"txHash": "0x0e9a26a713b99be57a81d25a03820c052b6d1a53853b4727e0bd6b4efac24b80",
"layout": {
"solcVersion": "0.8.28",
"storage": [],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_struct(GSStorage)657_storage": {
"label": "struct GrantSharesRelayer.GSStorage",
"members": [
{
"label": "proposalFee",
"type": "t_uint256",
"offset": 0,
"slot": "0"
},
{
"label": "executionFee",
"type": "t_uint256",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_struct(InitializableStorage)128_storage": {
"label": "struct Initializable.InitializableStorage",
"members": [
{
"label": "_initialized",
"type": "t_uint64",
"offset": 0,
"slot": "0"
},
{
"label": "_initializing",
"type": "t_bool",
"offset": 8,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(Ownable2StepStorage)13_storage": {
"label": "struct Ownable2StepUpgradeable.Ownable2StepStorage",
"members": [
{
"label": "_pendingOwner",
"type": "t_address",
"offset": 0,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(OwnableStorage)68_storage": {
"label": "struct OwnableUpgradeable.OwnableStorage",
"members": [
{
"label": "_owner",
"type": "t_address",
"offset": 0,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(PausableStorage)274_storage": {
"label": "struct PausableUpgradeable.PausableStorage",
"members": [
{
"label": "_paused",
"type": "t_bool",
"offset": 0,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint64": {
"label": "uint64",
"numberOfBytes": "8"
}
},
"namespaces": {
"erc7201:grantshares.storage": [
{
"contract": "GrantSharesRelayer",
"label": "proposalFee",
"type": "t_uint256",
"src": "src/main/solidity/GrantSharesRelayer.sol:19",
"offset": 0,
"slot": "0"
},
{
"contract": "GrantSharesRelayer",
"label": "executionFee",
"type": "t_uint256",
"src": "src/main/solidity/GrantSharesRelayer.sol:20",
"offset": 0,
"slot": "1"
}
],
"erc7201:openzeppelin.storage.Pausable": [
{
"contract": "PausableUpgradeable",
"label": "_paused",
"type": "t_bool",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol:21",
"offset": 0,
"slot": "0"
}
],
"erc7201:openzeppelin.storage.Ownable2Step": [
{
"contract": "Ownable2StepUpgradeable",
"label": "_pendingOwner",
"type": "t_address",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/access/Ownable2StepUpgradeable.sol:29",
"offset": 0,
"slot": "0"
}
],
"erc7201:openzeppelin.storage.Ownable": [
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol:24",
"offset": 0,
"slot": "0"
}
],
"erc7201:openzeppelin.storage.Initializable": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_uint64",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol:69",
"offset": 0,
"slot": "0"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol:73",
"offset": 8,
"slot": "0"
}
]
}
}
}
}
}
Loading