![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@gnosis.pm/dex-liquidity-provision
Advanced tools
Scripts to deploy and manage automated traders on the Gnosis Protocol exchange
We want to employ different liquidity strategies when the Gnosis Protocol is launched. This repo is responsible for testing and execution.
The code is this repository is work in progress: it will be subject to significant changes and has known rough edges that break some functionalities. Do not use unless you fully understand the code!
Install needed dependencies:
yarn install
Note that the installation might be successful even if errors are shown in the console output.
In case of doubt, running echo $?
immediately after yarn install
should return 0 if the installation was successful.
Build Truffle artifacts:
yarn build
This concludes the setup procedures.
Any liquidity provision script can be run at this point.
See scripts/README.md
for details.
Start and keep the test Ethereum network running in the background:
yarn testnet
Run tests:
yarn test
Use scripts as described in scripts/README.md`.
This service requires a service that runs a script every 5 minutes. We have configured this to run inside a Docker container that can be interacted with as follows:
docker build -t gnosispm/dex-liquidity-provision .
docker run -e PK=$YOUR_PRIVATE_KEY -t gnosispm/dex-liquidity-provision:latest "truffle exec scripts/synthetix/facilitate_trade.js --network rinkeby"
Create your own transferFile, or use our sample examples/sampleTransferFile.json. With a fundAccount (aka Gnosis Safe) containg sufficient funds that you own execute:
export PK=<your private key>
export INFURA_KEY=<your infura key>
export FUND_ACCOUNT=<your gnosis safe>
export TRANSFER_FILE=<path to your transfer file>
Alternatively, there is a sample .sample_env file that is not tracked by the project where you can paste these values, rename to .env
(i.e. mv .sample_env .env
) source via source .sample_env
With all configuration in place, we are ready to run the script.
npx truffle exec scripts/airdrop.js --fundAccount=$FUND_ACCOUNT --transferFile=$TRANSFER_FILE --network=$NETWORK_NAME
Then, you will be provided with logs containing all the transfer details followed by a prompt asking "Are you sure you want to send this transaction to the EVM?"
The airdrop script accepts both .json
and .csv
file extensions with the following format
[
{
"amount": "0.001",
"tokenAddress": "0x4dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b",
"receiver": "0x100000000000000000000000000000000000000"
},
{
"amount": "0.002",
"tokenAddress": "0x4dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b",
"receiver": "0x2000000000000000000000000000000000000000"
}
]
receiver,amount,token_address
0x90d26c3805030a05c7fdd89326a4a2a99cbade31,3.14159,0x6810e776880C02933D47DB1b9fc05908e5386b96
0x399c7819840329e2b73449d6afcf7f4fd71399b2,2.5,0x6810e776880C02933D47DB1b9fc05908e5386b96
0x274df99cf90c55f18f079f482750d03209b02f92,2,0x6810e776880C02933D47DB1b9fc05908e5386b96
Note that additional columns may beincluded in the CSV or JSON, but the above shown must be available.
Selecting yes yields a link to the Gnosis Safe interface where the transaction can be signed and executed.
To do a "verification" run simply add the argument --verify
and observe the difference in the last two lines of the logs emitted.
Note that, the gas costs for such transactions can vary based on the tokens you are transfering (since each token could potentially implement their transfer's differently).
FAQs
Scripts to deploy and manage automated traders on the Gnosis Protocol exchange
The npm package @gnosis.pm/dex-liquidity-provision receives a total of 2 weekly downloads. As such, @gnosis.pm/dex-liquidity-provision popularity was classified as not popular.
We found that @gnosis.pm/dex-liquidity-provision demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.