@solana/rpc-graphql 2.0.0-experimental.fd11bd1 → 2.0.0-experimental.fe07532

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.
@@ -418,7 +418,6 @@ var accountType = (name, description, data) => new graphql.GraphQLObjectType({
418
418
  fields: {
419
419
  ...accountInterfaceFields(),
420
420
  data,
421
- // Nested Account interface
422
421
  owner: {
423
422
  args: {
424
423
  commitment: type(commitmentInputType()),
@@ -470,18 +469,7 @@ var accountNonceAccount = () => {
470
469
  "NonceAccount",
471
470
  "A nonce account",
472
471
  accountDataJsonParsed("Nonce", {
473
- // Nested Account interface
474
- authority: {
475
- args: {
476
- commitment: type(commitmentInputType()),
477
- dataSlice: type(dataSliceInputType()),
478
- encoding: type(accountEncodingInputType()),
479
- minContextSlot: bigint()
480
- },
481
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
482
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.authority }, info),
483
- type: accountInterface()
484
- },
472
+ authority: string(),
485
473
  blockhash: string(),
486
474
  feeCalculator: object("NonceFeeCalculator", {
487
475
  lamportsPerSignature: string()
@@ -498,18 +486,7 @@ var accountLookupTable = () => {
498
486
  "An address lookup table account",
499
487
  accountDataJsonParsed("LookupTable", {
500
488
  addresses: list(string()),
501
- // Nested Account interface
502
- authority: {
503
- args: {
504
- commitment: type(commitmentInputType()),
505
- dataSlice: type(dataSliceInputType()),
506
- encoding: type(accountEncodingInputType()),
507
- minContextSlot: bigint()
508
- },
509
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
510
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.authority }, info),
511
- type: accountInterface()
512
- },
489
+ authority: string(),
513
490
  deactivationSlot: string(),
514
491
  lastExtendedSlot: string(),
515
492
  lastExtendedSlotStartIndex: number()
@@ -527,18 +504,7 @@ var accountMint = () => {
527
504
  decimals: number(),
528
505
  freezeAuthority: string(),
529
506
  isInitialized: boolean(),
530
- // Nested Account interface
531
- mintAuthority: {
532
- args: {
533
- commitment: type(commitmentInputType()),
534
- dataSlice: type(dataSliceInputType()),
535
- encoding: type(accountEncodingInputType()),
536
- minContextSlot: bigint()
537
- },
538
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
539
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.mintAuthority }, info),
540
- type: accountInterface()
541
- },
507
+ mintAuthority: string(),
542
508
  supply: string()
543
509
  })
544
510
  );
@@ -553,18 +519,7 @@ var accountTokenAccount = () => {
553
519
  accountDataJsonParsed("TokenAccount", {
554
520
  isNative: boolean(),
555
521
  mint: string(),
556
- // Nested Account interface
557
- owner: {
558
- args: {
559
- commitment: type(commitmentInputType()),
560
- dataSlice: type(dataSliceInputType()),
561
- encoding: type(accountEncodingInputType()),
562
- minContextSlot: bigint()
563
- },
564
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
565
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.owner }, info),
566
- type: accountInterface()
567
- },
522
+ owner: string(),
568
523
  state: string(),
569
524
  tokenAmount: type(tokenAmountType())
570
525
  })
@@ -580,44 +535,11 @@ var accountStakeAccount = () => {
580
535
  accountDataJsonParsed("Stake", {
581
536
  meta: object("StakeMeta", {
582
537
  authorized: object("StakeMetaAuthorized", {
583
- // Nested Account interface
584
- staker: {
585
- args: {
586
- commitment: type(commitmentInputType()),
587
- dataSlice: type(dataSliceInputType()),
588
- encoding: type(accountEncodingInputType()),
589
- minContextSlot: bigint()
590
- },
591
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
592
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.staker }, info),
593
- type: accountInterface()
594
- },
595
- // Nested Account interface
596
- withdrawer: {
597
- args: {
598
- commitment: type(commitmentInputType()),
599
- dataSlice: type(dataSliceInputType()),
600
- encoding: type(accountEncodingInputType()),
601
- minContextSlot: bigint()
602
- },
603
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
604
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.withdrawer }, info),
605
- type: accountInterface()
606
- }
538
+ staker: string(),
539
+ withdrawer: string()
607
540
  }),
608
541
  lockup: object("StakeMetaLockup", {
609
- // Nested Account interface
610
- custodian: {
611
- args: {
612
- commitment: type(commitmentInputType()),
613
- dataSlice: type(dataSliceInputType()),
614
- encoding: type(accountEncodingInputType()),
615
- minContextSlot: bigint()
616
- },
617
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
618
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.custodian }, info),
619
- type: accountInterface()
620
- },
542
+ custodian: string(),
621
543
  epoch: bigint(),
622
544
  unixTimestamp: bigint()
623
545
  }),
@@ -629,18 +551,7 @@ var accountStakeAccount = () => {
629
551
  activationEpoch: bigint(),
630
552
  deactivationEpoch: bigint(),
631
553
  stake: string(),
632
- // Nested Account interface
633
- voter: {
634
- args: {
635
- commitment: type(commitmentInputType()),
636
- dataSlice: type(dataSliceInputType()),
637
- encoding: type(accountEncodingInputType()),
638
- minContextSlot: bigint()
639
- },
640
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
641
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.voter }, info),
642
- type: accountInterface()
643
- },
554
+ voter: string(),
644
555
  warmupCooldownRate: number()
645
556
  })
646
557
  })
@@ -657,33 +568,11 @@ var accountVoteAccount = () => {
657
568
  accountDataJsonParsed("Vote", {
658
569
  authorizedVoters: list(
659
570
  object("VoteAuthorizedVoter", {
660
- // Nested Account interface
661
- authorizedVoter: {
662
- args: {
663
- commitment: type(commitmentInputType()),
664
- dataSlice: type(dataSliceInputType()),
665
- encoding: type(accountEncodingInputType()),
666
- minContextSlot: bigint()
667
- },
668
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
669
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.authorizedVoter }, info),
670
- type: accountInterface()
671
- },
571
+ authorizedVoter: string(),
672
572
  epoch: bigint()
673
573
  })
674
574
  ),
675
- // Nested Account interface
676
- authorizedWithdrawer: {
677
- args: {
678
- commitment: type(commitmentInputType()),
679
- dataSlice: type(dataSliceInputType()),
680
- encoding: type(accountEncodingInputType()),
681
- minContextSlot: bigint()
682
- },
683
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
684
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.authorizedWithdrawer }, info),
685
- type: accountInterface()
686
- },
575
+ authorizedWithdrawer: string(),
687
576
  commission: number(),
688
577
  epochCredits: list(
689
578
  object("VoteEpochCredits", {
@@ -696,18 +585,7 @@ var accountVoteAccount = () => {
696
585
  slot: bigint(),
697
586
  timestamp: bigint()
698
587
  }),
699
- // Nested Account interface
700
- node: {
701
- args: {
702
- commitment: type(commitmentInputType()),
703
- dataSlice: type(dataSliceInputType()),
704
- encoding: type(accountEncodingInputType()),
705
- minContextSlot: bigint()
706
- },
707
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
708
- resolve: (parent, args, context, info) => context.resolveAccount({ ...args, address: parent.nodePubkey }, info),
709
- type: accountInterface()
710
- },
588
+ nodePubkey: string(),
711
589
  priorVoters: list(string()),
712
590
  rootSlot: bigint(),
713
591
  votes: list(
@@ -2334,3 +2212,5 @@ function createRpcGraphQL(rpc) {
2334
2212
  }
2335
2213
 
2336
2214
  exports.createRpcGraphQL = createRpcGraphQL;
2215
+ //# sourceMappingURL=out.js.map
2216
+ //# sourceMappingURL=index.node.cjs.map