Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 138 additions & 0 deletions src/flare_ai_kit/abis/FdcHub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "AttestationRequest",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint24",
"name": "rewardEpochId",
"type": "uint24"
},
{
"components": [
{
"internalType": "bytes32",
"name": "attestationType",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "source",
"type": "bytes32"
},
{
"internalType": "uint24",
"name": "inflationShare",
"type": "uint24"
},
{
"internalType": "uint8",
"name": "minRequestsThreshold",
"type": "uint8"
},
{
"internalType": "uint224",
"name": "mode",
"type": "uint224"
}
],
"indexed": false,
"internalType": "struct IFdcInflationConfigurations.FdcConfiguration[]",
"name": "fdcConfigurations",
"type": "tuple[]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "InflationRewardsOffered",
"type": "event"
},
{
"inputs": [],
"name": "fdcRequestFeeConfigurations",
"outputs": [
{
"internalType": "contract IFdcRequestFeeConfigurations",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "flareSystemsManager",
"outputs": [
{
"internalType": "contract IIFlareSystemsManager",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getContractName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "getExpectedBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "requestAttestation",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
]
4 changes: 2 additions & 2 deletions src/flare_ai_kit/ecosystem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

from .explorer import BlockExplorer
from .flare import Flare
from .protocols import FAssets, FtsoV2
from .protocols import FAssets, FtsoV2, Fdc

__all__ = ["BlockExplorer", "FAssets", "Flare", "FtsoV2"]
__all__ = ["BlockExplorer", "FAssets", "Flare", "FtsoV2", "Fdc"]
3 changes: 2 additions & 1 deletion src/flare_ai_kit/ecosystem/protocols/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .da_layer import DataAvailabilityLayer
from .fassets import FAssets
from .ftsov2 import FtsoV2
from .fdc import Fdc

__all__ = ["DataAvailabilityLayer", "FAssets", "FtsoV2"]
__all__ = ["DataAvailabilityLayer", "FAssets", "FtsoV2", "Fdc"]
Loading
Loading