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