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