@triadxyz/poseidons-protocol 0.0.9 → 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
@@ -54,7 +54,7 @@ export default class PoseidonsProtocolClient {
54
54
  addPoseidonRewards(poseidons: {
55
55
  mint: PublicKey;
56
56
  amount: number;
57
- boost: boolean;
57
+ power: number;
58
58
  }[]): Promise<string | import("@solana/web3.js").VersionedTransaction>;
59
59
  /**
60
60
  * Burn NFT
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.boost)
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": "boost",
125
- "type": "bool"
124
+ "name": "power",
125
+ "type": "u64"
126
126
  }
127
127
  ]
128
128
  },
@@ -156,8 +156,8 @@ export type PoseidonsProtocol = {
156
156
  type: 'u64';
157
157
  },
158
158
  {
159
- name: 'boost';
160
- type: 'bool';
159
+ name: 'power';
160
+ type: 'u64';
161
161
  }
162
162
  ];
163
163
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/poseidons-protocol",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",