@berachain/graphql 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bend/whisk.codegen.cjs +15 -21
- package/dist/bend/whisk.codegen.d.cts +39 -46
- package/dist/bend/whisk.codegen.d.ts +39 -46
- package/dist/bend/whisk.codegen.mjs +14 -20
- package/dist/chain/chain.codegen.cjs +1 -1
- package/dist/chain/chain.codegen.d.cts +14 -14
- package/dist/chain/chain.codegen.d.ts +14 -14
- package/dist/chain/chain.codegen.mjs +2 -2
- package/dist/dex/api.codegen.cjs +10 -10
- package/dist/dex/api.codegen.d.cts +187 -187
- package/dist/dex/api.codegen.d.ts +187 -187
- package/dist/dex/api.codegen.mjs +10 -10
- package/dist/dex/subgraph.codegen.cjs +2 -2
- package/dist/dex/subgraph.codegen.d.cts +47 -47
- package/dist/dex/subgraph.codegen.d.ts +47 -47
- package/dist/dex/subgraph.codegen.mjs +2 -2
- package/dist/governance/governance.codegen.cjs +9 -9
- package/dist/governance/governance.codegen.d.cts +133 -133
- package/dist/governance/governance.codegen.d.ts +133 -133
- package/dist/governance/governance.codegen.mjs +9 -9
- package/dist/honey/honey.codegen.cjs +3 -3
- package/dist/honey/honey.codegen.d.cts +40 -40
- package/dist/honey/honey.codegen.d.ts +40 -40
- package/dist/honey/honey.codegen.mjs +2 -2
- package/dist/pol/api.codegen.cjs +1 -1
- package/dist/pol/api.codegen.d.cts +6 -6
- package/dist/pol/api.codegen.d.ts +6 -6
- package/dist/pol/api.codegen.mjs +2 -2
- package/dist/pol/subgraph.codegen.cjs +19 -19
- package/dist/pol/subgraph.codegen.d.cts +86 -86
- package/dist/pol/subgraph.codegen.d.ts +86 -86
- package/dist/pol/subgraph.codegen.mjs +20 -20
- package/package.json +1 -1
|
@@ -44,24 +44,24 @@ type Scalars = {
|
|
|
44
44
|
output: number;
|
|
45
45
|
};
|
|
46
46
|
BigDecimal: {
|
|
47
|
-
input:
|
|
48
|
-
output:
|
|
47
|
+
input: string;
|
|
48
|
+
output: string;
|
|
49
49
|
};
|
|
50
50
|
BigInt: {
|
|
51
|
-
input:
|
|
52
|
-
output:
|
|
51
|
+
input: string;
|
|
52
|
+
output: string;
|
|
53
53
|
};
|
|
54
54
|
Bytes: {
|
|
55
|
-
input:
|
|
56
|
-
output:
|
|
55
|
+
input: `0x${string}`;
|
|
56
|
+
output: `0x${string}`;
|
|
57
57
|
};
|
|
58
58
|
Int8: {
|
|
59
|
-
input:
|
|
60
|
-
output:
|
|
59
|
+
input: string;
|
|
60
|
+
output: string;
|
|
61
61
|
};
|
|
62
62
|
Timestamp: {
|
|
63
|
-
input:
|
|
64
|
-
output:
|
|
63
|
+
input: string;
|
|
64
|
+
output: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
declare enum Aggregation_Interval {
|
|
@@ -1307,117 +1307,117 @@ declare enum _SubgraphErrorPolicy_ {
|
|
|
1307
1307
|
type ProposalSelectionFragment = {
|
|
1308
1308
|
__typename?: 'Proposal';
|
|
1309
1309
|
id: string;
|
|
1310
|
-
proposer:
|
|
1311
|
-
proposalId:
|
|
1310
|
+
proposer: `0x${string}`;
|
|
1311
|
+
proposalId: string;
|
|
1312
1312
|
description: string;
|
|
1313
1313
|
status: ProposalStatus;
|
|
1314
|
-
createdAt:
|
|
1315
|
-
createdAtBlock:
|
|
1314
|
+
createdAt: string;
|
|
1315
|
+
createdAtBlock: string;
|
|
1316
1316
|
unverifiedForumLink?: string | null;
|
|
1317
|
-
quorum?:
|
|
1318
|
-
succeededAt?:
|
|
1319
|
-
voteStartAt:
|
|
1320
|
-
voteEndAt:
|
|
1321
|
-
queueStart?:
|
|
1322
|
-
queueEnd?:
|
|
1323
|
-
canceledAt?:
|
|
1324
|
-
executedAt?:
|
|
1317
|
+
quorum?: string | null;
|
|
1318
|
+
succeededAt?: string | null;
|
|
1319
|
+
voteStartAt: string;
|
|
1320
|
+
voteEndAt: string;
|
|
1321
|
+
queueStart?: string | null;
|
|
1322
|
+
queueEnd?: string | null;
|
|
1323
|
+
canceledAt?: string | null;
|
|
1324
|
+
executedAt?: string | null;
|
|
1325
1325
|
title?: string | null;
|
|
1326
1326
|
topics: Array<string>;
|
|
1327
1327
|
timelock?: {
|
|
1328
1328
|
__typename?: 'Timelock';
|
|
1329
|
-
id:
|
|
1329
|
+
id: `0x${string}`;
|
|
1330
1330
|
} | null;
|
|
1331
1331
|
pollResult: {
|
|
1332
1332
|
__typename?: 'PollResult';
|
|
1333
|
-
for:
|
|
1333
|
+
for: string;
|
|
1334
1334
|
forVotersCount: number;
|
|
1335
1335
|
forPercentage: string;
|
|
1336
|
-
against:
|
|
1336
|
+
against: string;
|
|
1337
1337
|
againstVotersCount: number;
|
|
1338
1338
|
againstPercentage: string;
|
|
1339
|
-
abstain:
|
|
1339
|
+
abstain: string;
|
|
1340
1340
|
abstainVotersCount: number;
|
|
1341
1341
|
abstainPercentage: string;
|
|
1342
|
-
total:
|
|
1342
|
+
total: string;
|
|
1343
1343
|
totalVotersCount: number;
|
|
1344
|
-
totalTowardsQuorum:
|
|
1344
|
+
totalTowardsQuorum: string;
|
|
1345
1345
|
};
|
|
1346
1346
|
};
|
|
1347
1347
|
type ExecutableCallSubsetFragment = {
|
|
1348
1348
|
__typename?: 'ExecutableCall';
|
|
1349
1349
|
id: string;
|
|
1350
|
-
target:
|
|
1351
|
-
value:
|
|
1352
|
-
calldata:
|
|
1350
|
+
target: `0x${string}`;
|
|
1351
|
+
value: string;
|
|
1352
|
+
calldata: `0x${string}`;
|
|
1353
1353
|
};
|
|
1354
1354
|
type ProposalVoteFragment = {
|
|
1355
1355
|
__typename?: 'Vote';
|
|
1356
|
-
id:
|
|
1357
|
-
voter:
|
|
1358
|
-
weight:
|
|
1356
|
+
id: string;
|
|
1357
|
+
voter: `0x${string}`;
|
|
1358
|
+
weight: string;
|
|
1359
1359
|
support: VoteSupportType;
|
|
1360
|
-
timestamp:
|
|
1360
|
+
timestamp: string;
|
|
1361
1361
|
reason: string;
|
|
1362
1362
|
};
|
|
1363
1363
|
type ProposalWithVotesFragment = {
|
|
1364
1364
|
__typename?: 'Proposal';
|
|
1365
|
-
queueTxHash?:
|
|
1366
|
-
createTxHash?:
|
|
1367
|
-
cancelTxHash?:
|
|
1368
|
-
executeTxHash?:
|
|
1365
|
+
queueTxHash?: `0x${string}` | null;
|
|
1366
|
+
createTxHash?: `0x${string}` | null;
|
|
1367
|
+
cancelTxHash?: `0x${string}` | null;
|
|
1368
|
+
executeTxHash?: `0x${string}` | null;
|
|
1369
1369
|
id: string;
|
|
1370
|
-
proposer:
|
|
1371
|
-
proposalId:
|
|
1370
|
+
proposer: `0x${string}`;
|
|
1371
|
+
proposalId: string;
|
|
1372
1372
|
description: string;
|
|
1373
1373
|
status: ProposalStatus;
|
|
1374
|
-
createdAt:
|
|
1375
|
-
createdAtBlock:
|
|
1374
|
+
createdAt: string;
|
|
1375
|
+
createdAtBlock: string;
|
|
1376
1376
|
unverifiedForumLink?: string | null;
|
|
1377
|
-
quorum?:
|
|
1378
|
-
succeededAt?:
|
|
1379
|
-
voteStartAt:
|
|
1380
|
-
voteEndAt:
|
|
1381
|
-
queueStart?:
|
|
1382
|
-
queueEnd?:
|
|
1383
|
-
canceledAt?:
|
|
1384
|
-
executedAt?:
|
|
1377
|
+
quorum?: string | null;
|
|
1378
|
+
succeededAt?: string | null;
|
|
1379
|
+
voteStartAt: string;
|
|
1380
|
+
voteEndAt: string;
|
|
1381
|
+
queueStart?: string | null;
|
|
1382
|
+
queueEnd?: string | null;
|
|
1383
|
+
canceledAt?: string | null;
|
|
1384
|
+
executedAt?: string | null;
|
|
1385
1385
|
title?: string | null;
|
|
1386
1386
|
topics: Array<string>;
|
|
1387
1387
|
executableCalls: Array<{
|
|
1388
1388
|
__typename?: 'ExecutableCall';
|
|
1389
1389
|
id: string;
|
|
1390
|
-
target:
|
|
1391
|
-
value:
|
|
1392
|
-
calldata:
|
|
1390
|
+
target: `0x${string}`;
|
|
1391
|
+
value: string;
|
|
1392
|
+
calldata: `0x${string}`;
|
|
1393
1393
|
}>;
|
|
1394
1394
|
timelock?: {
|
|
1395
1395
|
__typename?: 'Timelock';
|
|
1396
|
-
id:
|
|
1396
|
+
id: `0x${string}`;
|
|
1397
1397
|
} | null;
|
|
1398
1398
|
votes: Array<{
|
|
1399
1399
|
__typename?: 'Vote';
|
|
1400
|
-
id:
|
|
1401
|
-
voter:
|
|
1402
|
-
weight:
|
|
1400
|
+
id: string;
|
|
1401
|
+
voter: `0x${string}`;
|
|
1402
|
+
weight: string;
|
|
1403
1403
|
support: VoteSupportType;
|
|
1404
|
-
timestamp:
|
|
1404
|
+
timestamp: string;
|
|
1405
1405
|
reason: string;
|
|
1406
1406
|
}>;
|
|
1407
1407
|
pollResult: {
|
|
1408
1408
|
__typename?: 'PollResult';
|
|
1409
|
-
for:
|
|
1409
|
+
for: string;
|
|
1410
1410
|
forVotersCount: number;
|
|
1411
1411
|
forPercentage: string;
|
|
1412
|
-
against:
|
|
1412
|
+
against: string;
|
|
1413
1413
|
againstVotersCount: number;
|
|
1414
1414
|
againstPercentage: string;
|
|
1415
|
-
abstain:
|
|
1415
|
+
abstain: string;
|
|
1416
1416
|
abstainVotersCount: number;
|
|
1417
1417
|
abstainPercentage: string;
|
|
1418
|
-
total:
|
|
1418
|
+
total: string;
|
|
1419
1419
|
totalVotersCount: number;
|
|
1420
|
-
totalTowardsQuorum:
|
|
1420
|
+
totalTowardsQuorum: string;
|
|
1421
1421
|
};
|
|
1422
1422
|
};
|
|
1423
1423
|
type GetProposalVotesQueryVariables = Exact<{
|
|
@@ -1431,11 +1431,11 @@ type GetProposalVotesQuery = {
|
|
|
1431
1431
|
__typename?: 'Query';
|
|
1432
1432
|
votes: Array<{
|
|
1433
1433
|
__typename?: 'Vote';
|
|
1434
|
-
id:
|
|
1435
|
-
voter:
|
|
1436
|
-
weight:
|
|
1434
|
+
id: string;
|
|
1435
|
+
voter: `0x${string}`;
|
|
1436
|
+
weight: string;
|
|
1437
1437
|
support: VoteSupportType;
|
|
1438
|
-
timestamp:
|
|
1438
|
+
timestamp: string;
|
|
1439
1439
|
reason: string;
|
|
1440
1440
|
}>;
|
|
1441
1441
|
};
|
|
@@ -1451,41 +1451,41 @@ type GetProposalsQuery = {
|
|
|
1451
1451
|
proposals: Array<{
|
|
1452
1452
|
__typename?: 'Proposal';
|
|
1453
1453
|
id: string;
|
|
1454
|
-
proposer:
|
|
1455
|
-
proposalId:
|
|
1454
|
+
proposer: `0x${string}`;
|
|
1455
|
+
proposalId: string;
|
|
1456
1456
|
description: string;
|
|
1457
1457
|
status: ProposalStatus;
|
|
1458
|
-
createdAt:
|
|
1459
|
-
createdAtBlock:
|
|
1458
|
+
createdAt: string;
|
|
1459
|
+
createdAtBlock: string;
|
|
1460
1460
|
unverifiedForumLink?: string | null;
|
|
1461
|
-
quorum?:
|
|
1462
|
-
succeededAt?:
|
|
1463
|
-
voteStartAt:
|
|
1464
|
-
voteEndAt:
|
|
1465
|
-
queueStart?:
|
|
1466
|
-
queueEnd?:
|
|
1467
|
-
canceledAt?:
|
|
1468
|
-
executedAt?:
|
|
1461
|
+
quorum?: string | null;
|
|
1462
|
+
succeededAt?: string | null;
|
|
1463
|
+
voteStartAt: string;
|
|
1464
|
+
voteEndAt: string;
|
|
1465
|
+
queueStart?: string | null;
|
|
1466
|
+
queueEnd?: string | null;
|
|
1467
|
+
canceledAt?: string | null;
|
|
1468
|
+
executedAt?: string | null;
|
|
1469
1469
|
title?: string | null;
|
|
1470
1470
|
topics: Array<string>;
|
|
1471
1471
|
timelock?: {
|
|
1472
1472
|
__typename?: 'Timelock';
|
|
1473
|
-
id:
|
|
1473
|
+
id: `0x${string}`;
|
|
1474
1474
|
} | null;
|
|
1475
1475
|
pollResult: {
|
|
1476
1476
|
__typename?: 'PollResult';
|
|
1477
|
-
for:
|
|
1477
|
+
for: string;
|
|
1478
1478
|
forVotersCount: number;
|
|
1479
1479
|
forPercentage: string;
|
|
1480
|
-
against:
|
|
1480
|
+
against: string;
|
|
1481
1481
|
againstVotersCount: number;
|
|
1482
1482
|
againstPercentage: string;
|
|
1483
|
-
abstain:
|
|
1483
|
+
abstain: string;
|
|
1484
1484
|
abstainVotersCount: number;
|
|
1485
1485
|
abstainPercentage: string;
|
|
1486
|
-
total:
|
|
1486
|
+
total: string;
|
|
1487
1487
|
totalVotersCount: number;
|
|
1488
|
-
totalTowardsQuorum:
|
|
1488
|
+
totalTowardsQuorum: string;
|
|
1489
1489
|
};
|
|
1490
1490
|
}>;
|
|
1491
1491
|
};
|
|
@@ -1500,41 +1500,41 @@ type SearchProposalsQuery = {
|
|
|
1500
1500
|
proposals: Array<{
|
|
1501
1501
|
__typename?: 'Proposal';
|
|
1502
1502
|
id: string;
|
|
1503
|
-
proposer:
|
|
1504
|
-
proposalId:
|
|
1503
|
+
proposer: `0x${string}`;
|
|
1504
|
+
proposalId: string;
|
|
1505
1505
|
description: string;
|
|
1506
1506
|
status: ProposalStatus;
|
|
1507
|
-
createdAt:
|
|
1508
|
-
createdAtBlock:
|
|
1507
|
+
createdAt: string;
|
|
1508
|
+
createdAtBlock: string;
|
|
1509
1509
|
unverifiedForumLink?: string | null;
|
|
1510
|
-
quorum?:
|
|
1511
|
-
succeededAt?:
|
|
1512
|
-
voteStartAt:
|
|
1513
|
-
voteEndAt:
|
|
1514
|
-
queueStart?:
|
|
1515
|
-
queueEnd?:
|
|
1516
|
-
canceledAt?:
|
|
1517
|
-
executedAt?:
|
|
1510
|
+
quorum?: string | null;
|
|
1511
|
+
succeededAt?: string | null;
|
|
1512
|
+
voteStartAt: string;
|
|
1513
|
+
voteEndAt: string;
|
|
1514
|
+
queueStart?: string | null;
|
|
1515
|
+
queueEnd?: string | null;
|
|
1516
|
+
canceledAt?: string | null;
|
|
1517
|
+
executedAt?: string | null;
|
|
1518
1518
|
title?: string | null;
|
|
1519
1519
|
topics: Array<string>;
|
|
1520
1520
|
timelock?: {
|
|
1521
1521
|
__typename?: 'Timelock';
|
|
1522
|
-
id:
|
|
1522
|
+
id: `0x${string}`;
|
|
1523
1523
|
} | null;
|
|
1524
1524
|
pollResult: {
|
|
1525
1525
|
__typename?: 'PollResult';
|
|
1526
|
-
for:
|
|
1526
|
+
for: string;
|
|
1527
1527
|
forVotersCount: number;
|
|
1528
1528
|
forPercentage: string;
|
|
1529
|
-
against:
|
|
1529
|
+
against: string;
|
|
1530
1530
|
againstVotersCount: number;
|
|
1531
1531
|
againstPercentage: string;
|
|
1532
|
-
abstain:
|
|
1532
|
+
abstain: string;
|
|
1533
1533
|
abstainVotersCount: number;
|
|
1534
1534
|
abstainPercentage: string;
|
|
1535
|
-
total:
|
|
1535
|
+
total: string;
|
|
1536
1536
|
totalVotersCount: number;
|
|
1537
|
-
totalTowardsQuorum:
|
|
1537
|
+
totalTowardsQuorum: string;
|
|
1538
1538
|
};
|
|
1539
1539
|
}>;
|
|
1540
1540
|
};
|
|
@@ -1545,62 +1545,62 @@ type GetProposalQuery = {
|
|
|
1545
1545
|
__typename?: 'Query';
|
|
1546
1546
|
proposal?: {
|
|
1547
1547
|
__typename?: 'Proposal';
|
|
1548
|
-
queueTxHash?:
|
|
1549
|
-
createTxHash?:
|
|
1550
|
-
cancelTxHash?:
|
|
1551
|
-
executeTxHash?:
|
|
1548
|
+
queueTxHash?: `0x${string}` | null;
|
|
1549
|
+
createTxHash?: `0x${string}` | null;
|
|
1550
|
+
cancelTxHash?: `0x${string}` | null;
|
|
1551
|
+
executeTxHash?: `0x${string}` | null;
|
|
1552
1552
|
id: string;
|
|
1553
|
-
proposer:
|
|
1554
|
-
proposalId:
|
|
1553
|
+
proposer: `0x${string}`;
|
|
1554
|
+
proposalId: string;
|
|
1555
1555
|
description: string;
|
|
1556
1556
|
status: ProposalStatus;
|
|
1557
|
-
createdAt:
|
|
1558
|
-
createdAtBlock:
|
|
1557
|
+
createdAt: string;
|
|
1558
|
+
createdAtBlock: string;
|
|
1559
1559
|
unverifiedForumLink?: string | null;
|
|
1560
|
-
quorum?:
|
|
1561
|
-
succeededAt?:
|
|
1562
|
-
voteStartAt:
|
|
1563
|
-
voteEndAt:
|
|
1564
|
-
queueStart?:
|
|
1565
|
-
queueEnd?:
|
|
1566
|
-
canceledAt?:
|
|
1567
|
-
executedAt?:
|
|
1560
|
+
quorum?: string | null;
|
|
1561
|
+
succeededAt?: string | null;
|
|
1562
|
+
voteStartAt: string;
|
|
1563
|
+
voteEndAt: string;
|
|
1564
|
+
queueStart?: string | null;
|
|
1565
|
+
queueEnd?: string | null;
|
|
1566
|
+
canceledAt?: string | null;
|
|
1567
|
+
executedAt?: string | null;
|
|
1568
1568
|
title?: string | null;
|
|
1569
1569
|
topics: Array<string>;
|
|
1570
1570
|
executableCalls: Array<{
|
|
1571
1571
|
__typename?: 'ExecutableCall';
|
|
1572
1572
|
id: string;
|
|
1573
|
-
target:
|
|
1574
|
-
value:
|
|
1575
|
-
calldata:
|
|
1573
|
+
target: `0x${string}`;
|
|
1574
|
+
value: string;
|
|
1575
|
+
calldata: `0x${string}`;
|
|
1576
1576
|
}>;
|
|
1577
1577
|
timelock?: {
|
|
1578
1578
|
__typename?: 'Timelock';
|
|
1579
|
-
id:
|
|
1579
|
+
id: `0x${string}`;
|
|
1580
1580
|
} | null;
|
|
1581
1581
|
votes: Array<{
|
|
1582
1582
|
__typename?: 'Vote';
|
|
1583
|
-
id:
|
|
1584
|
-
voter:
|
|
1585
|
-
weight:
|
|
1583
|
+
id: string;
|
|
1584
|
+
voter: `0x${string}`;
|
|
1585
|
+
weight: string;
|
|
1586
1586
|
support: VoteSupportType;
|
|
1587
|
-
timestamp:
|
|
1587
|
+
timestamp: string;
|
|
1588
1588
|
reason: string;
|
|
1589
1589
|
}>;
|
|
1590
1590
|
pollResult: {
|
|
1591
1591
|
__typename?: 'PollResult';
|
|
1592
|
-
for:
|
|
1592
|
+
for: string;
|
|
1593
1593
|
forVotersCount: number;
|
|
1594
1594
|
forPercentage: string;
|
|
1595
|
-
against:
|
|
1595
|
+
against: string;
|
|
1596
1596
|
againstVotersCount: number;
|
|
1597
1597
|
againstPercentage: string;
|
|
1598
|
-
abstain:
|
|
1598
|
+
abstain: string;
|
|
1599
1599
|
abstainVotersCount: number;
|
|
1600
1600
|
abstainPercentage: string;
|
|
1601
|
-
total:
|
|
1601
|
+
total: string;
|
|
1602
1602
|
totalVotersCount: number;
|
|
1603
|
-
totalTowardsQuorum:
|
|
1603
|
+
totalTowardsQuorum: string;
|
|
1604
1604
|
};
|
|
1605
1605
|
} | null;
|
|
1606
1606
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as
|
|
1
|
+
import{gql as i}from"@apollo/client";var c=(p=>(p.Day="day",p.Hour="hour",p))(c||{}),I=(n=>(n.Calldata="calldata",n.Id="id",n.Proposal="proposal",n.ProposalCancelTxHash="proposal__cancelTxHash",n.ProposalCanceledAt="proposal__canceledAt",n.ProposalCanceledAtBlock="proposal__canceledAtBlock",n.ProposalContentEncoding="proposal__contentEncoding",n.ProposalContentType="proposal__contentType",n.ProposalCreateTxHash="proposal__createTxHash",n.ProposalCreatedAt="proposal__createdAt",n.ProposalCreatedAtBlock="proposal__createdAtBlock",n.ProposalDescription="proposal__description",n.ProposalExecutableAtBlock="proposal__executableAtBlock",n.ProposalExecuteTxHash="proposal__executeTxHash",n.ProposalExecutedAt="proposal__executedAt",n.ProposalExecutedAtBlock="proposal__executedAtBlock",n.ProposalId="proposal__id",n.ProposalProposalId="proposal__proposalId",n.ProposalProposer="proposal__proposer",n.ProposalQueueEnd="proposal__queueEnd",n.ProposalQueueStart="proposal__queueStart",n.ProposalQueueStartBlock="proposal__queueStartBlock",n.ProposalQueueTxHash="proposal__queueTxHash",n.ProposalQuorum="proposal__quorum",n.ProposalStatus="proposal__status",n.ProposalSucceededAt="proposal__succeededAt",n.ProposalSucceededAtBlock="proposal__succeededAtBlock",n.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",n.ProposalTitle="proposal__title",n.ProposalUnparsedDescription="proposal__unparsedDescription",n.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",n.ProposalVoteEndAt="proposal__voteEndAt",n.ProposalVoteStartAt="proposal__voteStartAt",n.Signature="signature",n.Target="target",n.Value="value",n))(I||{}),_=(p=>(p.Asc="asc",p.Desc="desc",p))(_||{}),S=(r=>(r.Abstain="abstain",r.AbstainPercentage="abstainPercentage",r.AbstainVotersCount="abstainVotersCount",r.Against="against",r.AgainstPercentage="againstPercentage",r.AgainstVotersCount="againstVotersCount",r.For="for",r.ForPercentage="forPercentage",r.ForVotersCount="forVotersCount",r.Id="id",r.Total="total",r.TotalTowardsQuorum="totalTowardsQuorum",r.TotalVotersCount="totalVotersCount",r))(S||{}),y=(s=>(s.Active="ACTIVE",s.CanceledByGuardian="CANCELED_BY_GUARDIAN",s.CanceledByUser="CANCELED_BY_USER",s.Defeated="DEFEATED",s.Executed="EXECUTED",s.InQueue="IN_QUEUE",s.Pending="PENDING",s.PendingExecution="PENDING_EXECUTION",s.PendingQueue="PENDING_QUEUE",s.QuorumNotReached="QUORUM_NOT_REACHED",s))(y||{}),g=(t=>(t.CancelTxHash="cancelTxHash",t.CanceledAt="canceledAt",t.CanceledAtBlock="canceledAtBlock",t.ContentEncoding="contentEncoding",t.ContentType="contentType",t.CreateTxHash="createTxHash",t.CreatedAt="createdAt",t.CreatedAtBlock="createdAtBlock",t.Description="description",t.ExecutableAtBlock="executableAtBlock",t.ExecutableCalls="executableCalls",t.ExecuteTxHash="executeTxHash",t.ExecutedAt="executedAt",t.ExecutedAtBlock="executedAtBlock",t.Id="id",t.PollResult="pollResult",t.PollResultAbstain="pollResult__abstain",t.PollResultAbstainPercentage="pollResult__abstainPercentage",t.PollResultAbstainVotersCount="pollResult__abstainVotersCount",t.PollResultAgainst="pollResult__against",t.PollResultAgainstPercentage="pollResult__againstPercentage",t.PollResultAgainstVotersCount="pollResult__againstVotersCount",t.PollResultFor="pollResult__for",t.PollResultForPercentage="pollResult__forPercentage",t.PollResultForVotersCount="pollResult__forVotersCount",t.PollResultId="pollResult__id",t.PollResultTotal="pollResult__total",t.PollResultTotalTowardsQuorum="pollResult__totalTowardsQuorum",t.PollResultTotalVotersCount="pollResult__totalVotersCount",t.ProposalId="proposalId",t.Proposer="proposer",t.QueueEnd="queueEnd",t.QueueStart="queueStart",t.QueueStartBlock="queueStartBlock",t.QueueTxHash="queueTxHash",t.Quorum="quorum",t.Status="status",t.SucceededAt="succeededAt",t.SucceededAtBlock="succeededAtBlock",t.SucceededVoteTxHash="succeededVoteTxHash",t.Timelock="timelock",t.TimelockId="timelock__id",t.Title="title",t.Topics="topics",t.UnparsedDescription="unparsedDescription",t.UnverifiedForumLink="unverifiedForumLink",t.VoteEndAt="voteEndAt",t.VoteStartAt="voteStartAt",t.Votes="votes",t))(g||{}),b=(e=>(e.Id="id",e.Proposal="proposal",e.ProposalCancelTxHash="proposal__cancelTxHash",e.ProposalCanceledAt="proposal__canceledAt",e.ProposalCanceledAtBlock="proposal__canceledAtBlock",e.ProposalContentEncoding="proposal__contentEncoding",e.ProposalContentType="proposal__contentType",e.ProposalCreateTxHash="proposal__createTxHash",e.ProposalCreatedAt="proposal__createdAt",e.ProposalCreatedAtBlock="proposal__createdAtBlock",e.ProposalDescription="proposal__description",e.ProposalExecutableAtBlock="proposal__executableAtBlock",e.ProposalExecuteTxHash="proposal__executeTxHash",e.ProposalExecutedAt="proposal__executedAt",e.ProposalExecutedAtBlock="proposal__executedAtBlock",e.ProposalId="proposal__id",e.ProposalProposalId="proposal__proposalId",e.ProposalProposer="proposal__proposer",e.ProposalQueueEnd="proposal__queueEnd",e.ProposalQueueStart="proposal__queueStart",e.ProposalQueueStartBlock="proposal__queueStartBlock",e.ProposalQueueTxHash="proposal__queueTxHash",e.ProposalQuorum="proposal__quorum",e.ProposalStatus="proposal__status",e.ProposalSucceededAt="proposal__succeededAt",e.ProposalSucceededAtBlock="proposal__succeededAtBlock",e.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",e.ProposalTitle="proposal__title",e.ProposalUnparsedDescription="proposal__unparsedDescription",e.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",e.ProposalVoteEndAt="proposal__voteEndAt",e.ProposalVoteStartAt="proposal__voteStartAt",e))(b||{}),M=(u=>(u.Abstain="ABSTAIN",u.Against="AGAINST",u.For="FOR",u))(M||{}),d=(a=>(a.Id="id",a.Params="params",a.ProposalId="proposalId",a.ProposalIdCancelTxHash="proposalId__cancelTxHash",a.ProposalIdCanceledAt="proposalId__canceledAt",a.ProposalIdCanceledAtBlock="proposalId__canceledAtBlock",a.ProposalIdContentEncoding="proposalId__contentEncoding",a.ProposalIdContentType="proposalId__contentType",a.ProposalIdCreateTxHash="proposalId__createTxHash",a.ProposalIdCreatedAt="proposalId__createdAt",a.ProposalIdCreatedAtBlock="proposalId__createdAtBlock",a.ProposalIdDescription="proposalId__description",a.ProposalIdExecutableAtBlock="proposalId__executableAtBlock",a.ProposalIdExecuteTxHash="proposalId__executeTxHash",a.ProposalIdExecutedAt="proposalId__executedAt",a.ProposalIdExecutedAtBlock="proposalId__executedAtBlock",a.ProposalIdId="proposalId__id",a.ProposalIdProposalId="proposalId__proposalId",a.ProposalIdProposer="proposalId__proposer",a.ProposalIdQueueEnd="proposalId__queueEnd",a.ProposalIdQueueStart="proposalId__queueStart",a.ProposalIdQueueStartBlock="proposalId__queueStartBlock",a.ProposalIdQueueTxHash="proposalId__queueTxHash",a.ProposalIdQuorum="proposalId__quorum",a.ProposalIdStatus="proposalId__status",a.ProposalIdSucceededAt="proposalId__succeededAt",a.ProposalIdSucceededAtBlock="proposalId__succeededAtBlock",a.ProposalIdSucceededVoteTxHash="proposalId__succeededVoteTxHash",a.ProposalIdTitle="proposalId__title",a.ProposalIdUnparsedDescription="proposalId__unparsedDescription",a.ProposalIdUnverifiedForumLink="proposalId__unverifiedForumLink",a.ProposalIdVoteEndAt="proposalId__voteEndAt",a.ProposalIdVoteStartAt="proposalId__voteStartAt",a.Reason="reason",a.Support="support",a.Timestamp="timestamp",a.Voter="voter",a.Weight="weight",a))(d||{}),A=(p=>(p.Allow="allow",p.Deny="deny",p))(A||{}),o=i`
|
|
2
2
|
fragment ProposalSelection on Proposal {
|
|
3
3
|
id
|
|
4
4
|
proposer
|
|
@@ -37,14 +37,14 @@ import{gql as s}from"@apollo/client";var c=(u=>(u.Day="day",u.Hour="hour",u))(c|
|
|
|
37
37
|
title
|
|
38
38
|
topics
|
|
39
39
|
}
|
|
40
|
-
`,h=
|
|
40
|
+
`,h=i`
|
|
41
41
|
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
42
|
id
|
|
43
43
|
target
|
|
44
44
|
value
|
|
45
45
|
calldata
|
|
46
46
|
}
|
|
47
|
-
`,l=
|
|
47
|
+
`,l=i`
|
|
48
48
|
fragment ProposalVote on Vote {
|
|
49
49
|
id
|
|
50
50
|
voter
|
|
@@ -53,7 +53,7 @@ import{gql as s}from"@apollo/client";var c=(u=>(u.Day="day",u.Hour="hour",u))(c|
|
|
|
53
53
|
timestamp
|
|
54
54
|
reason
|
|
55
55
|
}
|
|
56
|
-
`,B=
|
|
56
|
+
`,B=i`
|
|
57
57
|
fragment ProposalWithVotes on Proposal {
|
|
58
58
|
...ProposalSelection
|
|
59
59
|
queueTxHash
|
|
@@ -72,7 +72,7 @@ import{gql as s}from"@apollo/client";var c=(u=>(u.Day="day",u.Hour="hour",u))(c|
|
|
|
72
72
|
}
|
|
73
73
|
${o}
|
|
74
74
|
${h}
|
|
75
|
-
${l}`,k=
|
|
75
|
+
${l}`,k=i`
|
|
76
76
|
query GetProposalVotes($proposalId: String!, $orderBy: Vote_orderBy = weight, $orderDirection: OrderDirection = desc, $limit: Int!, $offset: Int) {
|
|
77
77
|
votes(
|
|
78
78
|
where: {proposalId: $proposalId}
|
|
@@ -84,7 +84,7 @@ ${l}`,k=s`
|
|
|
84
84
|
...ProposalVote
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
${l}`,m=
|
|
87
|
+
${l}`,m=i`
|
|
88
88
|
query GetProposals($offset: Int, $limit: Int, $where: Proposal_filter, $orderBy: Proposal_orderBy = createdAt, $orderDirection: OrderDirection = desc) {
|
|
89
89
|
proposals(
|
|
90
90
|
skip: $offset
|
|
@@ -96,7 +96,7 @@ ${l}`,k=s`
|
|
|
96
96
|
...ProposalSelection
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
${o}`,T=
|
|
99
|
+
${o}`,T=i`
|
|
100
100
|
query SearchProposals($offset: Int, $limit: Int, $where: Proposal_filter, $text: String!) {
|
|
101
101
|
proposals: proposalSearch(
|
|
102
102
|
skip: $offset
|
|
@@ -107,10 +107,10 @@ ${l}`,k=s`
|
|
|
107
107
|
...ProposalSelection
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
${o}`,w=
|
|
110
|
+
${o}`,w=i`
|
|
111
111
|
query GetProposal($id: ID!) {
|
|
112
112
|
proposal(id: $id) {
|
|
113
113
|
...ProposalWithVotes
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
${B}`,x={possibleTypes:{}},E=x;export{c as Aggregation_Interval,h as ExecutableCallSubset,
|
|
116
|
+
${B}`,x={possibleTypes:{}},E=x;export{c as Aggregation_Interval,h as ExecutableCallSubset,I as ExecutableCall_OrderBy,w as GetProposal,k as GetProposalVotes,m as GetProposals,_ as OrderDirection,S as PollResult_OrderBy,o as ProposalSelection,y as ProposalStatus,l as ProposalVote,B as ProposalWithVotes,g as Proposal_OrderBy,T as SearchProposals,b as Timelock_OrderBy,M as VoteSupportType,d as Vote_OrderBy,A as _SubgraphErrorPolicy_,E as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var y=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var T=(i,r)=>{for(var a in r)y(i,a,{get:r[a],enumerable:!0})},B=(i,r,a,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of H(r))!d.call(i,u)&&u!==a&&y(i,u,{get:()=>r[u],enumerable:!(t=x(r,u))||t.enumerable});return i};var A=i=>B(y({},"__esModule",{value:!0}),i);var $={};T($,{Aggregation_Interval:()=>l,ChainTransaction_OrderBy:()=>c,GetFirstHoneyTxnDate:()=>f,GetGlobalData:()=>C,GetHoneyTxn:()=>E,GetHoneyTxnByType:()=>k,GetVolumeAndSupplyDay:()=>V,GetVolumeHour:()=>F,HoneyCollateral_OrderBy:()=>I,HoneySupplyDayData_OrderBy:()=>b,HoneySupplyHourData_OrderBy:()=>_,HoneyTxnData:()=>s,HoneyTxn_OrderBy:()=>m,HoneyVolumeDayData_OrderBy:()=>S,HoneyVolumeHourData_OrderBy:()=>M,OrderDirection:()=>g,TxnType:()=>D,_SubgraphErrorPolicy_:()=>h,default:()=>Q});module.exports=A($);var p=require("@apollo/client"),l=(a=>(a.Day="day",a.Hour="hour",a))(l||{}),c=(o=>(o.HoneyTxn="honeyTxn",o.Id="id",o.IsBasketMode="isBasketMode",o.TxHash="txHash",o.Type="type",o))(c||{}),I=(e=>(e.Collateral="collateral",e.CollateralAmount="collateralAmount",e.HoneyTxn="honeyTxn",e.HoneyTxnFrom="honeyTxn__from",e.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",e.HoneyTxnId="honeyTxn__id",e.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",e.HoneyTxnTimestamp="honeyTxn__timestamp",e.HoneyTxnTo="honeyTxn__to",e.HoneyTxnType="honeyTxn__type",e.Id="id",e))(I||{}),b=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(_||{}),m=(n=>(n.ChainTransaction="chainTransaction",n.ChainTransactionId="chainTransaction__id",n.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",n.ChainTransactionTxHash="chainTransaction__txHash",n.ChainTransactionType="chainTransaction__type",n.Collateral="collateral",n.From="from",n.HoneyAmount="honeyAmount",n.Id="id",n.IsBasketMode="isBasketMode",n.Timestamp="timestamp",n.To="to",n.Type="type",n))(m||{}),S=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(S||{}),M=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(M||{}),g=(a=>(a.Asc="asc",a.Desc="desc",a))(g||{}),D=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(D||{}),h=(a=>(a.Allow="allow",a.Deny="deny",a))(h||{}),s=p.gql`
|
|
2
2
|
fragment HoneyTxnData on HoneyTxn {
|
|
3
3
|
id
|
|
4
4
|
timestamp
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
...HoneyTxnData
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
${
|
|
31
|
+
${s}`,E=p.gql`
|
|
32
32
|
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
33
|
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
34
|
...HoneyTxnData
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
${
|
|
37
|
+
${s}`,V=p.gql`
|
|
38
38
|
query GetVolumeAndSupplyDay($timestamp_gt: Int!) {
|
|
39
39
|
honeyVolumeDayDatas(
|
|
40
40
|
where: {timestamp_gt: $timestamp_gt}
|