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

Feature: Indexing new contracts #24

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a302b5b
feat: Add new ABIs
brunomenezes Jan 21, 2024
10332d1
feat: Add new graphQL entities
brunomenezes Jan 21, 2024
c471b14
chore: Bump dependencies and update vitest config
brunomenezes Jan 21, 2024
b0f899a
refactor: Replace deprecated processor config
brunomenezes Jan 22, 2024
e0fcab4
feat: Add Authority handler.
brunomenezes Jan 22, 2024
287278b
feat: Update config and processor setup.
brunomenezes Jan 23, 2024
5c1d8ff
feat: Add new migration
brunomenezes Jan 23, 2024
ac7c37b
feat: Add ValidatorNodeProvider event handlers + helper.
brunomenezes Jan 23, 2024
00e72a7
feat: Add ValidatorNode event handlers
brunomenezes Jan 23, 2024
bcc1f5f
feat: Add new handlers and maps into EventHandler.
brunomenezes Jan 23, 2024
2cc0a32
feat: Save new entities and include total and summary refactoring
brunomenezes Jan 23, 2024
b21cc1e
feat: Add support to Arbitrum and Arbitrum-Goerli
brunomenezes Jan 23, 2024
bb5efa3
chore: Bump application preloaders for Sepolia and Mainnet
brunomenezes Jan 24, 2024
57e4997
feat: Add preload files for Arbitrum and Arbitrum-Goerli
brunomenezes Jan 24, 2024
664c9e9
feat: Add preloaders for validator node providers including npm-scrip…
brunomenezes Jan 24, 2024
1e52e1c
refactor: Replace deprecated processor setting on Application loader …
brunomenezes Jan 24, 2024
a590193
refactor: Change inputAdded to use TokenHelper
brunomenezes Jan 25, 2024
a617d06
test: Add test cases for ValidatorNodeProvider + Stubs.
brunomenezes Jan 25, 2024
2fa6b71
test: Add test cases for Paused and Unpaused provider events.
brunomenezes Jan 25, 2024
42d9641
test: Add test cases for ValidatorNodeProviderCreated events.
brunomenezes Jan 25, 2024
cd44178
test: Add cases for ValidatorNodeFinancialRunway events
brunomenezes Jan 26, 2024
82560e9
test: Add cases for ValidatorNodeMachineLocation event
brunomenezes Jan 26, 2024
5cc1436
test: Add cases for Arbitrum and ArbitrumGoerli processor setup.
brunomenezes Jan 26, 2024
69493df
feat: Add logging to TokenHelper
brunomenezes Jan 29, 2024
a15dfdf
feat: Set provider logs based on assets
brunomenezes Jan 29, 2024
aa3587d
test: Add test cases when setting different processor logs.
brunomenezes Jan 29, 2024
4eadbca
chore: Add Arbitrum and Arbitrum-Goerli as possible RPC_URL configs.
brunomenezes Feb 1, 2024
7318fc0
chore: Upgrade cartesi/rollups package and add sunodo/contracts.
brunomenezes Feb 1, 2024
6d6bb2a
refactor: Replace fixed addresses by the ones on installed packages
brunomenezes Feb 1, 2024
887616c
refactor: Replace viem sepolia default http by Ankr rpc.
brunomenezes Feb 1, 2024
d6142f4
Refactor: New set of GraphQL entities (Simplified) (#25)
brunomenezes Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
114 changes: 114 additions & 0 deletions abi/AuthorityFactory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "contract Authority",
"name": "authority",
"type": "address"
}
],
"name": "AuthorityCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_authorityOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "calculateAuthorityAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "newAuthority",
"outputs": [
{
"internalType": "contract Authority",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "newAuthority",
"outputs": [
{
"internalType": "contract Authority",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_authorityOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "newAuthority",
"outputs": [
{
"internalType": "contract Authority",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_authorityOwner",
"type": "address"
}
],
"name": "newAuthority",
"outputs": [
{
"internalType": "contract Authority",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
175 changes: 175 additions & 0 deletions abi/Marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
[
{
"inputs": [
{
"internalType": "contract ENS",
"name": "_ens",
"type": "address"
},
{
"internalType": "contract ICartesiDAppFactory",
"name": "_factory",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "contract IReaderNodeProvider",
"name": "provider",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IERC20",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "payee",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "ReaderNodeProviderCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "contract IValidatorNodeProvider",
"name": "provider",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IConsensus",
"name": "consensus",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IERC20",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "payee",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "ValidatorNodeProviderCreated",
"type": "event"
},
{
"inputs": [],
"name": "ens",
"outputs": [
{
"internalType": "contract ENS",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [
{
"internalType": "contract ICartesiDAppFactory",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "_token",
"type": "address"
},
{
"internalType": "address",
"name": "_payee",
"type": "address"
},
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "newReaderNodeProvider",
"outputs": [
{
"internalType": "contract IReaderNodeProvider",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IConsensus",
"name": "_consensus",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "_token",
"type": "address"
},
{
"internalType": "address",
"name": "_payee",
"type": "address"
},
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "newValidatorNodeProvider",
"outputs": [
{
"internalType": "contract IValidatorNodeProvider",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]