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