Skip to content

Commit 40f7625

Browse files
bobabot-enya-aiwsdtjemezask-enyaalvaro-ricotta
authored
New release/v0.9.3 (#1291)
* fix: Replace Teleportation rpcs with Tenderly rpcs (#1189) (cherry picked from commit 0464581) * making getBalance more robust (#1196) (cherry picked from commit ad24168) * Gateway : Cleanup Dead Code / Lazy loading of containers with (#1212) (cherry picked from commit 903cb8f) * Fix/loading indicator dao proposals (#1218) * added spinner with loading as fallback component to route * fix: fetching proposal on dao page (cherry picked from commit e9953b7) * Feat/unsupported network modal (#1188) * Show modal on unsuported networks changes * update label * usenetwork update (cherry picked from commit 9b53adc) * remplace seconds by days on earn calculation (#1221) (cherry picked from commit 462866c) * Feat/reinitialized network switcher (#1206) * fixing bridge status * fixing conflict * reset connection after SwitchChain network * wip updating fsbalances * update network services * removing debugging * fixing issue on network switcher * remove console logs * remove console logs (cherry picked from commit ee692cb) * feat: Airdrop gas via Light Bridge (#1180) * add weth on bsc * use existing weth * update-l2-weth * gateway-correct-messaging * fix error messages for bridge * undo-old-code * destchainid * teleport * teleportAsset works * fixed-err * cleanup * monitor-watcher * monitor-fix * watcher * type * redeploy teleportation after audit on testnets * Update 020-Teleportation.deploy.ts * Update 020-Teleportation.deploy.ts * teleportation service fixed * error * fix teleportation service * Add contracts to register * EIP1155 support * fix-build * teleportAsset fixed * filters work * rpc-fixed * disburse * checkpoint * fe part done * subgraph-teleportation * graphql * del * teleportation integrated in Gateway * rm teleportation from watcher/serverless * fix approve for teleportation * only-show-on-testnet * fix-merge * depcheck * fix-tests * fix depcheck & linter * feat: Add info alert for teleportation bridge that unconventional wallets are not supported * rm errors * merge * airdrop progress * fix linting * alt * resolve depcheck * implement airdrop gas on teleportation feedback * feedback airdrop implemented: airdrop conditions for teleportation * rm only * remove usd/coingecko for teleportation * integration tests * rm minusdval * depcheck fix --------- Co-authored-by: cby3149 <[email protected]> (cherry picked from commit ef44554) * Gateway : Block Explorer links in footer. (#1222) * fix: footer alignment as per design * udated the designs and created new select component for dropdowns * fix: menu dropdown style fixes * fix: style fixes for select fixes * fix: select option button (cherry picked from commit 97c723e) * cleanup infura and added tenderly rpc url (#1226) (cherry picked from commit 08a84be) * decouple gateway from rollup (#1245) (cherry picked from commit d2683d6) * Bump mikefarah/yq from 4.35.1 to 4.35.2 (#1249) Bumps [mikefarah/yq](https://github.com/mikefarah/yq) from 4.35.1 to 4.35.2. - [Release notes](https://github.com/mikefarah/yq/releases) - [Changelog](https://github.com/mikefarah/yq/blob/master/release_notes.txt) - [Commits](mikefarah/yq@v4.35.1...v4.35.2) --- updated-dependencies: - dependency-name: mikefarah/yq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit d7753fa) * Inomurko/update packages (#1248) * v1.0.3 * use bobanetwork packages where applicable * revert yarn.lock * more deps bumps * teleportation bump * more deps bumps * monitor deps bump * does yarn install help? * bobalink gaspriceoracle deps * rem ethereumjs-evm * rem ethersproject/rlp * put deps back and print progress in plain * put deps back and print progress in plain * comment out avax builds and add deps * disable BUILDKIT for reliablity * disable BUILDKIT for reliablity * is buildx more reliable * is buildx more reliable - load to local registry * bobalink deps * bobalink deps in boba deployer * change base image * rem frozen lockfile * yarn install again * bump the machine executor * docker-compose build * restart always for deployer * restart on failure, image downgrade, rem default platform (cherry picked from commit a6f696f) * feat: Add documentation for Teleportation contract parameters (#1211) * feat: Add documentation for Teleportation contract parameters * Add contract function to documentation (cherry picked from commit 84c138b) * Bump postcss from 8.4.21 to 8.4.31 (#1255) (cherry picked from commit 5f6fc3b) * Bump @types/chai-as-promised from 7.1.5 to 7.1.6 (#1257) Bumps [@types/chai-as-promised](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-as-promised) from 7.1.5 to 7.1.6. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-as-promised) --- updated-dependencies: - dependency-name: "@types/chai-as-promised" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit a3907da) * Create SECURITY.md for Teleportation (#1253) * Create SECURITY.md * Update SECURITY.md (cherry picked from commit 705b864) * "updated web3 library using in fraud detector" (#1271) (cherry picked from commit 81c5ca1) * Turing replica state (#1286) (cherry picked from commit 4dca96f) * proxyd updates (#1285) * proxyd updates * fix proxyd testing in ci --------- Co-authored-by: Boyuan-Chen <[email protected]> (cherry picked from commit ad3dae7) --------- Co-authored-by: Riedl Kevin, Bsc <[email protected]> Co-authored-by: jemeza <[email protected]> Co-authored-by: Sahil K <[email protected]> Co-authored-by: alvaro-ricotta <[email protected]> Co-authored-by: Ino Murko <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 54832bc commit 40f7625

File tree

849 files changed

+20382
-80283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

849 files changed

+20382
-80283
lines changed

.circleci/config.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: 2.1
22

3+
parameters:
4+
ci_builder_image:
5+
type: string
6+
default: us-docker.pkg.dev/${GCP_PROJECT_ID}/${GCP_ARTIFACT_REPOSITORY}/images/ci-builder:latest
7+
38
executors:
49
intergration-tests-executor:
510
resource_class: xlarge
@@ -8,6 +13,7 @@ executors:
813
docker_layer_caching: true
914
environment:
1015
DOCKER_BUILDKIT: 1
16+
COMPOSE_DOCKER_CLI_BUILD: 1
1117

1218
commands:
1319
check-changed:
@@ -71,12 +77,16 @@ commands:
7177
patterns: common-ts,contracts,core-utils,data-transport-layer,message-relayer,regenesis-surgery,sdk,integration-tests,l2geth,packages/boba/account-abstraction,packages/boba/bobalink,packages/boba/bundler,packages/boba/bundler_sdk,packages/boba/bundler_utils,packages/boba/contracts,packages/boba/gas-price-oracle,packages/boba/register,packages/boba/teleportation,ops,ops_boba
7278
- run:
7379
name: Build the project
74-
command: yarn && yarn build
80+
command: yarn && yarn install && yarn build
7581
working_directory: ./
7682

7783
- run:
7884
name: Build the core services
79-
command: docker-compose build
85+
command: |
86+
# docker context create buildx-build
87+
# docker buildx create --use buildx-build
88+
# docker buildx bake -f docker-compose.yml --load
89+
docker-compose build
8090
working_directory: ops
8191

8292
- run:
@@ -110,7 +120,7 @@ commands:
110120
name: Start background logging
111121
working_directory: ops
112122
background: true
113-
command: docker-compose -f <<parameters.docker_compose_file>> -f <<parameters.docker_compose_side_file>> logs --follow
123+
command: docker-compose -f <<parameters.docker_compose_file>> -f <<parameters.docker_compose_side_file>> logs --follow || true
114124
- run:
115125
name: Wait for sequencer
116126
command: bash scripts/wait-for-sequencer.sh
@@ -159,15 +169,14 @@ jobs:
159169
type: string
160170
default: this-package-does-not-exist
161171
docker:
162-
- image: ethereumoptimism/ci-builder:latest
163-
- image: cimg/postgres:14.1
172+
- image: <<pipeline.parameters.ci_builder_image>>
164173
steps:
165174
- checkout
166175
- check-changed:
167176
patterns: go/proxyd
168177
- run:
169178
name: Lint
170-
command: golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint -e "errors.As" -e "errors.Is" ./...
179+
command: make lint
171180
working_directory: <<parameters.working_directory>>
172181
- store_test_results:
173182
path: /test-results
@@ -223,7 +232,7 @@ workflows:
223232
main:
224233
jobs:
225234
- integration-tests
226-
- integration-tests-avalanche
235+
#- integration-tests-avalanche
227236
- integration-tests-bnb
228237
- go-lint-test-build:
229238
name: proxyd-tests

.github/workflows/boba-publish-develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
node-version: 16
7474
- name: yq - portable yaml processor
75-
uses: mikefarah/[email protected].1
75+
uses: mikefarah/[email protected].2
7676

7777
- name: Get yarn cache directory path
7878
id: yarn-cache-dir-path

.github/workflows/boba-publish-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
with:
8181
node-version: 16
8282
- name: yq - portable yaml processor
83-
uses: mikefarah/[email protected].1
83+
uses: mikefarah/[email protected].2
8484

8585
- name: Get yarn cache directory path
8686
id: yarn-cache-dir-path

boba_community/boba-relayer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@boba/boba-relayer",
2+
"name": "@bobanetwork/boba-relayer",
33
"version": "1.0.0",
44
"scripts": {
55
"start": "node ./src/index.js",
66
"postinstall": "patch-package"
77
},
88
"license": "MIT",
99
"dependencies": {
10-
"@eth-optimism/sdk": "1.0.1",
10+
"@bobanetwork/sdk": "1.0.7",
1111
"dotenv": "^16.0.0",
1212
"ethers": "^5.5.4",
1313
"node-fetch": "2.6.0",

boba_community/boba-relayer/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
CrossChainMessenger,
1414
MessageStatus,
1515
CONTRACT_ADDRESSES,
16-
} = require('@eth-optimism/sdk')
16+
} = require('@bobanetwork/sdk')
1717

1818
const main = async () => {
1919
const env = process.env

boba_community/fraud-detector/docker/Dockerfile.fraud-detector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM python:3.8-slim
2-
RUN pip3 install --no-cache-dir web3==5.31.4
2+
RUN pip3 install --no-cache-dir web3==6.11.1
33
COPY boba_community/fraud-detector/fraud-detector.py /
44
COPY boba_community/fraud-detector/packages/jsonrpclib /jsonrpclib
55
COPY /packages/contracts/artifacts/contracts/L1/rollup/StateCommitmentChain.sol/StateCommitmentChain.json /contracts/StateCommitmentChain.json

boba_community/fraud-detector/fraud-detector.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def status(*args):
8787
while True:
8888
try:
8989
rpc[1] = Web3(Web3.HTTPProvider(os.environ['L1_NODE_WEB3_URL']))
90-
assert (rpc[1].isConnected())
90+
assert (rpc[1].is_connected())
9191
break
9292
except:
9393
logger.info ("Waiting for L1...")
@@ -99,7 +99,7 @@ def status(*args):
9999
while True:
100100
try:
101101
rpc[2] = Web3(Web3.HTTPProvider(os.environ['L2_NODE_WEB3_URL']))
102-
assert (rpc[2].isConnected())
102+
assert (rpc[2].is_connected())
103103
break
104104
except:
105105
logger.info ("Waiting for L2...")
@@ -111,7 +111,7 @@ def status(*args):
111111
while True:
112112
try:
113113
rpc[3] = Web3(Web3.HTTPProvider(os.environ['VERIFIER_WEB3_URL']))
114-
assert (rpc[3].isConnected())
114+
assert (rpc[3].is_connected())
115115
break
116116
except:
117117
logger.info ("Waiting for verifier...")
@@ -181,17 +181,17 @@ def doEvent(event, force_L2):
181181
match = "**** SCC/VERIFIER MISMATCH ****"
182182

183183
if l2SR:
184-
l2SR_str = Web3.toHex(l2SR)
184+
l2SR_str = Web3.utils.toHex(l2SR)
185185
else:
186186
l2SR_str = " -- "
187-
log_str = "{} {} {} {} {} {}".format(rCount, event.blockNumber, Web3.toHex(sr), l2SR_str, Web3.toHex(vfSR), match)
187+
log_str = "{} {} {} {} {} {}".format(rCount, event.blockNumber, Web3.utils.toHex(sr), l2SR_str, Web3.utils.toHex(vfSR), match)
188188
matchedLock.acquire()
189189
if match != "":
190190
Matched['is_ok'] = False
191191
logger.warning(log_str)
192192
else:
193193
Matched['Block'] = rCount
194-
Matched['Root'] = Web3.toHex(sr)
194+
Matched['Root'] = Web3.utils.toHex(sr)
195195
Matched['Time'] = time.time()
196196
logger.info(log_str)
197197
matchedLock.release()
@@ -238,7 +238,7 @@ def fpLoop():
238238

239239
logger.info("#SCC-IDX L1-Block SCC-STATEROOT L2-STATEROOT VERIFIER-STATEROOT MISMATCH")
240240

241-
topic_sig = Web3.toHex(Web3.keccak(text="StateBatchAppended(uint256,bytes32,uint256,uint256,bytes)"))
241+
topic_sig = Web3.utils.toHex(Web3.keccak(text="StateBatchAppended(uint256,bytes32,uint256,uint256,bytes)"))
242242

243243
while startBlock < l1_tip:
244244
toBlock = min(startBlock+batch_size, l1_tip) - 1

boba_community/hc-captcha-faucet/packages/contracts/bin/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Wallet, providers } from 'ethers'
2-
import { getContractFactory } from '@eth-optimism/contracts'
2+
import { getContractFactory } from '@bobanetwork/core_contracts'
33

44
/* eslint-disable */
55
require('dotenv').config()

boba_community/hc-captcha-faucet/packages/contracts/deploy/001-BobaFaucet.deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getContractFactory } from '@eth-optimism/contracts'
1+
import { getContractFactory } from '@bobanetwork/core_contracts'
22
import { DeployFunction, DeploymentSubmission } from 'hardhat-deploy/dist/types'
33
import { Contract, ContractFactory, utils } from 'ethers'
44

boba_community/hc-kyc/test/kyc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Wallet,
99
utils,
1010
} from 'ethers'
11-
import { getContractFactory } from '@eth-optimism/contracts'
11+
import { getContractFactory } from '@bobanetwork/core_contracts'
1212
import { ethers } from 'hardhat'
1313
import chai, { expect } from 'chai'
1414
import { solidity } from 'ethereum-waffle'

0 commit comments

Comments
 (0)