Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Zilliqa/zilliqa-developer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v.1.3.71
Choose a base ref
...
head repository: Zilliqa/zilliqa-developer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jun 18, 2024

  1. Fix devex to not crash for high gas txn (#707)

    * Fix devex to not crash for high gas txn
    
    * fix trunk
    
    * fix formatting
    chetan-zilliqa authored Jun 18, 2024
    Copy the full SHA
    2626e18 View commit details
  2. Fix from address of Eth transactions (#705)

    yaron-zilliqa authored Jun 18, 2024
    Copy the full SHA
    d77f63f View commit details

Commits on Jun 21, 2024

  1. feat: deploy old-ide.zilliqa.com (#713)

    frankmeds authored Jun 21, 2024
    Copy the full SHA
    807af93 View commit details

Commits on Jun 27, 2024

  1. Update the config (#715)

    chetan-zilliqa authored Jun 27, 2024
    Copy the full SHA
    e32a112 View commit details

Commits on Jul 1, 2024

  1. Update staking per day rewards to 1370880 (#716)

    chetan-zilliqa authored Jul 1, 2024
    Copy the full SHA
    6a60925 View commit details

Commits on Jul 2, 2024

  1. (feat) Remove developer portal. (#688)

    * (feat) Remove developer portal.
    
    * (feat) Remove developer portal exceptions from trunk.yaml
    
    * (feat) Remove cicd for bridge
    
    * (feat) Start of deleting old bridge code
    
    * (feat) remove rest of bridge code
    
    * (fix) Don't link things that no longer exist
    rrw-zilliqa authored Jul 2, 2024
    Copy the full SHA
    f054882 View commit details

Commits on Jul 30, 2024

  1. Fix DifferentChainID error (#722)

    PR #699 attempted to remove the startup-time dependency on the API
    by moving the point at which we get the chain ID to transaction
    creation time.
    
    However, this wasn't valid because the signer needs to be
    configured with the correct chain ID. Instead, we wrap our
    provider in a `tokio::sync::OnceCell` and lazily initialise it.
    
    This means the signer is initialised with the result of the call
    from `eth_chainId`, but we don't need to make this call until
    someone uses the faucet.
    JamesHinshelwood authored Jul 30, 2024
    Copy the full SHA
    4107bb2 View commit details

Commits on Aug 7, 2024

  1. Reduce staking rewards to 27 percentage (#723)

    chetan-zilliqa authored Aug 7, 2024
    Copy the full SHA
    0dd7176 View commit details

Commits on Aug 23, 2024

  1. Users/richard/724 hex converter (#725)

    * 724: Import bech32 <-> hex standalone converter
    
    * Obligatory combat with trunk
    rrw-zilliqa authored Aug 23, 2024
    Copy the full SHA
    7ccd88d View commit details

Commits on Aug 30, 2024

  1. Reduce staking rewards to 26 percentage (#728)

    chetan-zilliqa authored Aug 30, 2024
    Copy the full SHA
    3e37cc5 View commit details

Commits on Sep 9, 2024

  1. Address some minor issues in the ZRC2->ERC20 proxy, add tests and ver…

    …ification. (#729)
    
    * (feat) Documentation
    (feat) Make zrc_proxy and decimals immutable
    (feat) Pass on the result of gas() and not 21000
    (feat) Burnable ERC20s
    (feat) Tests for ERC20 proxy contract.
    (feat) Deployment for ERC20 proxy is now via task and auto-verifies the contract
    
    * (fix) We can now apparently overload call() - previously the compiler complained at me for this, but it now seems fine!
    (fix) Don't limit deployment gas.
    
    * (fmt) Usual argument with trunk - commented some useful values future authors may want to use.
    
    * Update contracts/experimental/ERC20ProxyForZRC2/contracts/ScillaConnector.sol
    
    Co-authored-by: Lukasz Kosiak <103423117+lukozill@users.noreply.github.com>
    
    * Update contracts/experimental/ERC20ProxyForZRC2/README.md
    
    Co-authored-by: Lukasz Kosiak <103423117+lukozill@users.noreply.github.com>
    
    * Update contracts/experimental/ERC20ProxyForZRC2/test/basicProxyTest.ts
    
    Co-authored-by: Lukasz Kosiak <103423117+lukozill@users.noreply.github.com>
    
    * Update contracts/experimental/ERC20ProxyForZRC2/test/basicProxyTest.ts
    
    Co-authored-by: Lukasz Kosiak <103423117+lukozill@users.noreply.github.com>
    
    * (fix) Hopefully fix PR comments
    
    ---------
    
    Co-authored-by: Lukasz Kosiak <103423117+lukozill@users.noreply.github.com>
    rrw-zilliqa and lukozill authored Sep 9, 2024
    Copy the full SHA
    dd4a604 View commit details

Commits on Sep 17, 2024

  1. Add cardano ssn (#730)

    chetan-zilliqa authored Sep 17, 2024
    Copy the full SHA
    5c5006a View commit details

Commits on Sep 19, 2024

  1. chore: update deps to fix eth-spout (#731)

    86667 authored Sep 19, 2024
    Copy the full SHA
    a7efcf1 View commit details

Commits on Sep 26, 2024

  1. Revert "Add cardano ssn (#730)" (#732)

    This reverts commit 5c5006a.
    chetan-zilliqa authored Sep 26, 2024
    Copy the full SHA
    32f3039 View commit details

Commits on Oct 1, 2024

  1. Reduce staking rewards per day from 1272960 to 1224000 as per GP008 i…

    …n zillion (#733)
    chetan-zilliqa authored Oct 1, 2024
    Copy the full SHA
    c8bdc59 View commit details

Commits on Dec 12, 2024

  1. Always check for call success in ScillaConnector (#735)

    JamesHinshelwood authored Dec 12, 2024
    Copy the full SHA
    dacfd39 View commit details

Commits on Dec 17, 2024

  1. Remove duplicate variable (#736)

    JamesHinshelwood authored Dec 17, 2024
    Copy the full SHA
    be833f1 View commit details

Commits on Jan 13, 2025

  1. APT-1646: Make Zillion buildable with Node 16 #737

    Co-authored-by: Lukasz Kosiak <kosiak.lukasz@gmail.com>
    lukozill and uHappyLogic authored Jan 13, 2025
    Copy the full SHA
    2f8f7c8 View commit details

Commits on Jan 22, 2025

  1. APT-1653: ZQ2 protomainnet connected #738

    * zq2 protomainnet connected
    
    * staging set to protomainnet
    
    ---------
    
    Co-authored-by: Lukasz Kosiak <kosiak.lukasz@gmail.com>
    lukozill and uHappyLogic authored Jan 22, 2025
    Copy the full SHA
    966768d View commit details

Commits on Feb 5, 2025

  1. APT-1688: Logging for blockchain read access operations improved #739

    Co-authored-by: Lukasz Kosiak <kosiak.lukasz@gmail.com>
    lukozill and uHappyLogic authored Feb 5, 2025
    Copy the full SHA
    c7d36e0 View commit details

Commits on Feb 6, 2025

  1. APT-1689: Fix for _balance field in ZQ2 substate query response #740

    * zq2 substate _balance fix
    
    * deployment config fix
    
    ---------
    
    Co-authored-by: Lukasz Kosiak <kosiak.lukasz@gmail.com>
    lukozill and uHappyLogic authored Feb 6, 2025
    Copy the full SHA
    e0329b9 View commit details
Showing 794 changed files with 10,155 additions and 89,678 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ci-bridge.yml

This file was deleted.

14 changes: 1 addition & 13 deletions .github/workflows/cicd-prd.yml
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ jobs:
neo-savant,
scilla-server,
zillion,
zilliqa-bridge-validator,
]
include:
- application: bluebell-playground
@@ -91,11 +90,6 @@ jobs:
path: products/zillion
tag_length: 8
tag_latest: false
- application: zilliqa-bridge-validator
image_name: zilliqa-bridge-validator
path: products/bridge/bridge-validators
tag_length: 8
tag_latest: false
env:
DOCKER_DOMAIN: asia-docker.pkg.dev
REGISTRY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public
@@ -131,8 +125,7 @@ jobs:
strategy:
fail-fast: false
matrix:
application:
[devex, zilliqa-isolated-server, zilliqa-bridge-web]
application: [devex, zilliqa-isolated-server]
include:
- application: devex
image_name: devex
@@ -144,11 +137,6 @@ jobs:
path: products/zilliqa-isolated-server
tag_length: 8
tag_latest: true
- application: zilliqa-bridge-web
image_name: zilliqa-bridge-web
path: products/bridge/bridge-web
tag_length: 8
tag_latest: false
env:
DOCKER_DOMAIN: asia-docker.pkg.dev
REGISTRY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public
14 changes: 1 addition & 13 deletions .github/workflows/cicd-stg.yml
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ jobs:
neo-savant,
scilla-server,
zillion,
zilliqa-bridge-validator,
]
include:
- application: devex-apollo
@@ -85,11 +84,6 @@ jobs:
path: products/zillion
tag_length: 8
tag_latest: false
- application: zilliqa-bridge-validator
image_name: zilliqa-bridge-validator
path: products/bridge/bridge-validators
tag_length: 8
tag_latest: false
env:
DOCKER_DOMAIN: asia-docker.pkg.dev
REGISTRY: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-public
@@ -129,8 +123,7 @@ jobs:
strategy:
fail-fast: false
matrix:
application:
[devex, zilliqa-isolated-server, zilliqa-bridge-web]
application: [devex, zilliqa-isolated-server]
include:
- application: devex
image_name: devex
@@ -142,11 +135,6 @@ jobs:
path: products/zilliqa-isolated-server
tag_length: 8
tag_latest: true
- application: zilliqa-bridge-web
image_name: zilliqa-bridge-web
path: products/bridge/bridge-web
tag_length: 8
tag_latest: false
env:
DOCKER_DOMAIN: asia-docker.pkg.dev
REGISTRY: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-public
15 changes: 0 additions & 15 deletions .github/workflows/link-check.yml

This file was deleted.

13 changes: 2 additions & 11 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[submodule "products/bridge/smart-contracts/lib/forge-std"]
path = products/bridge/smart-contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "products/bridge/smart-contracts/lib/openzeppelin-foundry-upgrades"]
path = products/bridge/smart-contracts/lib/openzeppelin-foundry-upgrades
url = https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades
[submodule "products/bridge/smart-contracts/lib/openzeppelin-contracts"]
path = products/bridge/smart-contracts/lib/openzeppelin-contracts
[submodule "contracts/experimental/ERC20ProxyForZRC2/lib/openzeppelin-contracts"]
path = contracts/experimental/ERC20ProxyForZRC2/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "products/bridge/smart-contracts/lib/openzeppelin-contracts-upgradeable"]
path = products/bridge/smart-contracts/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
16 changes: 1 addition & 15 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -34,28 +34,14 @@ lint:
- linters: [gitleaks]
paths:
- products/laksaj # laksaj contains a lot of embedded testnet privkeys - ignore them.
- products/developer-portal/zq2/docs/api # Contains a lot of hashes, etc. that are interpreted as secrets
- products/developer-portal/zq1/docs/api # Contains a lot of hashes, etc. that are interpreted as secrets
- products/developer-portal/zq1/docs/scilla/interface.md # contains a lot of hashes
- products/developer-portal/zq1/docs/indexer # contains a lot of hashes
- products/developer-portal/zq2/docs/ecosystem/indexer # contains a lot of hashes
- products/developer-portal/zq1/docs/developers/transaction-lifecycle # Contains examples.
- products/developer-portal/zq1/docs/developers/developer-toolings
- products/developer-portal/zq1/docs/exchanges
- products/bridge/smart-contracts/script/config.ts
- products/bridge/smart-contracts/script/**/*.s.sol
- products/bridge/bridge-web/src/config/config.ts
- linters: [eslint]
paths:
- contracts/audited/burn_zrc2 # eslint barfs on an internal error if you enable it on this directory.
- contracts/reward_control # and again
- products/bridge/bridge-web
- products/bech32-hex-converter # eslint chokes.
- linters: [ALL]
paths:
- products/airdrop/**
- products/developer-portal/Dockerfile # Annoying, but trunk is now very opinionated on how you write dockerfiles.
- products/developer-portal/zq2/docs/js/** # trunk does not know this is looking for metamask in the user's browser.
- products/developer-portal/zq2/docs/index.md # contains legitimate empty links
- needing-organisation/**/*
- products/devex/public/*.js
- products/dev-wallet/**
1 change: 0 additions & 1 deletion contracts/experimental/ERC20ProxyForZRC2/.env.example

This file was deleted.

69 changes: 57 additions & 12 deletions contracts/experimental/ERC20ProxyForZRC2/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,66 @@
# ERC20ProxyForZRC2 Contract

This is the contract to deploy a ERC20Proxy for a ZRC2 contract living in the scilla environment. It leverages the precompiles available in Zilliqa to interoperate between the 2 environments.
These contracts allow ZRC-2 tokens to look like ERC-20 tokens.

Make sure to specify the `zrc2_address` on the deployment file for the ERC20Proxy to be correctly deployed. This allows EVM to execute all desired functions on the ZRC2 as if it were a ERC20. Implementing IERC20 means that all existing DApps and wallets should be compatible with this token.
Unless you want to build using the `zilliqa-developer` version of `zilliqa-js`, or you encounter missing modules issues while running tests, install our dependencies with:

Make sure to also copy `.env.example` into `.env` and fill in the necessarily variables. Also ensure that `pnpm install` to install any necessary dependencies
```shell
pnpm --ignore-workspace i
```

The following are the deployment commands:
## Deploying a proxy

- Zilliqa Mainnet
You can deploy a proxy with:

```shell
pnpm exec hardhat run scripts/deploy.ts --network zq
```
```shell
export PRIVATE_KEY=<...>
pnpm exec hardhat deployProxy 0x5DD38E64dA8f7d541d8aF45fe00bF37F6a2c6195 --network zq-testnet
```

- Zilliqa Testnet
If your ZRC-2 is burnable (ie. supports the `Burn()` transition), you can use:

```shell
pnpm exec hardhat run scripts/deploy.ts --network zq-testnet
```
```shell
export PRIVATE_KEY=<...>
pnpm exec hardhat deployProxyBurnable 0x5DD38E64dA8f7d541d8aF45fe00bF37F6a2c6195 --network zq-testnet
```

The task should automatically verify these contracts to sourcify.

## Networks

Various networks are available in the `hardhat.conf.ts`:

- `zq-testnet` - the Zilliqa 1 testnet
- `zq` - the Zilliqa 1 mainnet
- `local-proxy` - a local proxy.

You can use the `local-proxy` network and run:

```sh
mitmweb --mode reverse:https://dev-api.zilliqa.com --no-web-open-browser --listen-port 5556 --web-port 5557
```

To monitor requests.

## Testing

To run the tests:

```shell
export PRIVATE_KEY=<...>
export TEST_KEY_1=<...>
export TEST_KEY_2=<...>
pnpm exec hardhat test --network zq-testnet
```

Each test has a number prefix so you can select them individually.

If you set the `CACHED` environment variable, we will use:

- `CACHED_ZRC2` - address of a ZRC-2
- `CACHED_ERC20` - address of an ERC-20

To run the tests; this saves you having to redeploy each time.

This allows you to run tests quickly, without waiting for contract
deployment.
Loading