Skip to content

Commit

Permalink
Merge pull request #8 from AcalaNetwork/euphrates-v2
Browse files Browse the repository at this point in the history
euphrates data v2
  • Loading branch information
shunjizhan authored Aug 21, 2024
2 parents f77e621 + 2a37b8a commit d682409
Show file tree
Hide file tree
Showing 22 changed files with 2,119 additions and 118 deletions.
2 changes: 1 addition & 1 deletion data-porter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ first fill `.env.example` and `mv .env.example .env`

pull data from postgres and upload to dune
```
yarn update:dune
yarn upload
```

6 changes: 3 additions & 3 deletions data-porter/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "acala-data-porter",
"version": "0.0.3",
"name": "telescope-data-porter",
"version": "1.0.0",
"main": "src/index.ts",
"license": "MIT",
"scripts": {
"update:dune": "ts-node src/index.ts"
"upload": "ts-node src/index.ts"
},
"dependencies": {
"axios": "^1.5.1",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions subql-euphrates/.project-cid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
QmVpSigbVpxQSTkqy1ffjKjHTvjxv7LW5YszeZuoDrTosE
File renamed without changes.
338 changes: 338 additions & 0 deletions subql-euphrates/abis/Dex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maxAmountA",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maxAmountB",
"type": "uint256"
}
],
"name": "AddedLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "removeShare",
"type": "uint256"
}
],
"name": "RemovedLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "supplyAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "targetAmount",
"type": "uint256"
}
],
"name": "Swaped",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxAmountA",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxAmountB",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minShareIncrement",
"type": "uint256"
}
],
"name": "addLiquidity",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "getLiquidityPool",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "getLiquidityTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "targetAmount",
"type": "uint256"
}
],
"name": "getSwapSupplyAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "supplyAmount",
"type": "uint256"
}
],
"name": "getSwapTargetAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "removeShare",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minWithdrawnA",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minWithdrawnB",
"type": "uint256"
}
],
"name": "removeLiquidity",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "supplyAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minTargetAmount",
"type": "uint256"
}
],
"name": "swapWithExactSupply",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "targetAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupplyAmount",
"type": "uint256"
}
],
"name": "swapWithExactTarget",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit d682409

Please sign in to comment.