@triadxyz/poseidons-protocol 0.0.8 → 0.1.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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ class PoseidonsProtocolClient {
|
|
|
146
146
|
const ixs = [];
|
|
147
147
|
for (const poseidon of poseidons) {
|
|
148
148
|
ixs.push(yield this.program.methods
|
|
149
|
-
.addPoseidonRewards(new anchor_1.BN(poseidon.amount * Math.pow(10, 6)), poseidon.
|
|
149
|
+
.addPoseidonRewards(new anchor_1.BN(poseidon.amount * Math.pow(10, 6)), new anchor_1.BN(poseidon.power))
|
|
150
150
|
.accounts({
|
|
151
151
|
signer: this.program.provider.publicKey,
|
|
152
152
|
poseidon: (0, pda_1.getPoseidonPDA)(poseidon.mint)
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"type": "u64"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"type": "
|
|
124
|
+
"name": "power",
|
|
125
|
+
"type": "u64"
|
|
126
126
|
}
|
|
127
127
|
]
|
|
128
128
|
},
|
|
@@ -450,6 +450,10 @@
|
|
|
450
450
|
}
|
|
451
451
|
],
|
|
452
452
|
"events": [
|
|
453
|
+
{
|
|
454
|
+
"name": "PoseidonNftBurnEvent",
|
|
455
|
+
"discriminator": [220, 94, 221, 146, 218, 85, 13, 64]
|
|
456
|
+
},
|
|
453
457
|
{
|
|
454
458
|
"name": "PoseidonPowerEvent",
|
|
455
459
|
"discriminator": [152, 36, 126, 105, 151, 203, 242, 60]
|
|
@@ -626,6 +630,42 @@
|
|
|
626
630
|
]
|
|
627
631
|
}
|
|
628
632
|
},
|
|
633
|
+
{
|
|
634
|
+
"name": "PoseidonNftBurnEvent",
|
|
635
|
+
"type": {
|
|
636
|
+
"kind": "struct",
|
|
637
|
+
"fields": [
|
|
638
|
+
{
|
|
639
|
+
"name": "user",
|
|
640
|
+
"type": "pubkey"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "nft_mint",
|
|
644
|
+
"type": "pubkey"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "nft_burned_mint",
|
|
648
|
+
"type": "pubkey"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "nft_burned",
|
|
652
|
+
"type": "u16"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "power",
|
|
656
|
+
"type": "u64"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "boost",
|
|
660
|
+
"type": "bool"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "timestamp",
|
|
664
|
+
"type": "i64"
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
}
|
|
668
|
+
},
|
|
629
669
|
{
|
|
630
670
|
"name": "PoseidonPowerEvent",
|
|
631
671
|
"type": {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -156,8 +156,8 @@ export type PoseidonsProtocol = {
|
|
|
156
156
|
type: 'u64';
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
name: '
|
|
160
|
-
type: '
|
|
159
|
+
name: 'power';
|
|
160
|
+
type: 'u64';
|
|
161
161
|
}
|
|
162
162
|
];
|
|
163
163
|
},
|
|
@@ -625,6 +625,10 @@ export type PoseidonsProtocol = {
|
|
|
625
625
|
}
|
|
626
626
|
];
|
|
627
627
|
events: [
|
|
628
|
+
{
|
|
629
|
+
name: 'poseidonNftBurnEvent';
|
|
630
|
+
discriminator: [220, 94, 221, 146, 218, 85, 13, 64];
|
|
631
|
+
},
|
|
628
632
|
{
|
|
629
633
|
name: 'poseidonPowerEvent';
|
|
630
634
|
discriminator: [152, 36, 126, 105, 151, 203, 242, 60];
|
|
@@ -801,6 +805,42 @@ export type PoseidonsProtocol = {
|
|
|
801
805
|
];
|
|
802
806
|
};
|
|
803
807
|
},
|
|
808
|
+
{
|
|
809
|
+
name: 'poseidonNftBurnEvent';
|
|
810
|
+
type: {
|
|
811
|
+
kind: 'struct';
|
|
812
|
+
fields: [
|
|
813
|
+
{
|
|
814
|
+
name: 'user';
|
|
815
|
+
type: 'pubkey';
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: 'nftMint';
|
|
819
|
+
type: 'pubkey';
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
name: 'nftBurnedMint';
|
|
823
|
+
type: 'pubkey';
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
name: 'nftBurned';
|
|
827
|
+
type: 'u16';
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
name: 'power';
|
|
831
|
+
type: 'u64';
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
name: 'boost';
|
|
835
|
+
type: 'bool';
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: 'timestamp';
|
|
839
|
+
type: 'i64';
|
|
840
|
+
}
|
|
841
|
+
];
|
|
842
|
+
};
|
|
843
|
+
},
|
|
804
844
|
{
|
|
805
845
|
name: 'poseidonPowerEvent';
|
|
806
846
|
type: {
|
package/dist/utils/helpers.js
CHANGED