📄 src/web3/contracts/pythAbi.ts
D-OPEN SOVEREIGN
1export const pythAbi = [
2  {
3    "inputs": [
4      {
5        "internalType": "bytes32",
6        "name": "id",
7        "type": "bytes32"
8      }
9    ],
10    "name": "getPriceUnsafe",
11    "outputs": [
12      {
13        "components": [
14          {
15            "internalType": "int64",
16            "name": "price",
17            "type": "int64"
18          },
19          {
20            "internalType": "uint64",
21            "name": "conf",
22            "type": "uint64"
23          },
24          {
25            "internalType": "int32",
26            "name": "expo",
27            "type": "int32"
28          },
29          {
30            "internalType": "uint256",
31            "name": "publishTime",
32            "type": "uint256"
33          }
34        ],
35        "internalType": "struct PythStructs.Price",
36        "name": "price",
37        "type": "tuple"
38      }
39    ],
40    "stateMutability": "view",
41    "type": "function"
42  },
43  {
44    "inputs": [
45      {
46        "internalType": "bytes[]",
47        "name": "updateData",
48        "type": "bytes[]"
49      }
50    ],
51    "name": "getUpdateFee",
52    "outputs": [
53      {
54        "internalType": "uint256",
55        "name": "feeAmount",
56        "type": "uint256"
57      }
58    ],
59    "stateMutability": "view",
60    "type": "function"
61  },
62  {
63    "inputs": [
64      {
65        "internalType": "bytes[]",
66        "name": "updateData",
67        "type": "bytes[]"
68      }
69    ],
70    "name": "updatePriceFeeds",
71    "outputs": [],
72    "stateMutability": "payable",
73    "type": "function"
74  }
75] as const;
76