Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #2

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,38 @@ node_modules
/generated
subgraph.yaml
/build

# Graph CLI generated artifacts
build/
generated/

# Dependency directories
node_modules/
jspm_packages/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# dotenv environment variables file
.env

# Testing
coverage
coverage.json

# Typechain
typechain
typechain-types

# Hardhat files
cache
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ name = "pypi"
[dev-packages]

[requires]
python_version = "3.6"
python_version = "3.6"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# subgraph-test
# base-index-test

1. Install node packages
2. Generate types and classes ```npm run init```
3. Run ```npm run prepare:<network>``` to create a subgraph manifest specifically for the deployment chain
2. Generate types and classes `npm run init`
3. Run `npm run prepare:<network>` to create a subgraph manifest specifically for the deployment chain
4. Deploy subgraph to your studio or hosted service account
149 changes: 149 additions & 0 deletions abis/v3/ConfigBuilderV3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"abi": [
{
"type": "event",
"name": "ConfigUpdated",
"inputs": [
{
"name": "encodedConfig",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CurrenciesUpdate",
"inputs": [
{
"name": "currenciesHash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CurrencyRegistered",
"inputs": [
{
"name": "currency",
"type": "address",
"indexed": false,
"internalType": "Currency"
},
{
"name": "name",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "decimals",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FinishRebalancing",
"inputs": [
{
"name": "snapshot",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newCurrencyIdSet",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
},
{
"name": "weights",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FinishVaultRebalancing",
"inputs": [
{
"name": "snapshot",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "currencyIdSet",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
},
{
"name": "currencies",
"type": "address[]",
"indexed": false,
"internalType": "Currency[]"
},
{
"name": "balances",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ReceiveVaultResult",
"inputs": [
{
"name": "resultHash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SetForwarder",
"inputs": [
{
"name": "forwarder",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "StartRebalancing",
"inputs": [],
"anonymous": false
}
]
}
41 changes: 41 additions & 0 deletions abis/v3/IndexFactoryV3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"abi": [
{
"type": "event",
"name": "Deployed",
"inputs": [
{
"name": "index",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "name",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "reserve",
"type": "address",
"indexed": false,
"internalType": "Currency"
},
{
"name": "governance",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
}
]
}
Loading