@atomiqlabs/chain-solana 10.0.0-dev.2 → 10.0.0-dev.3

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.
@@ -185,18 +185,18 @@ export declare class SolanaSwapProgram extends SolanaProgramBase<SwapProgram> im
185
185
  /**
186
186
  * Get the estimated solana fee of the commit transaction
187
187
  */
188
- getCommitFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
188
+ getCommitFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
189
189
  /**
190
190
  * Get the estimated solana fee of the commit transaction, without any deposits
191
191
  */
192
- getRawCommitFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
192
+ getRawCommitFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
193
193
  /**
194
194
  * Get the estimated solana transaction fee of the refund transaction
195
195
  */
196
- getRefundFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
196
+ getRefundFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
197
197
  /**
198
198
  * Get the estimated solana transaction fee of the refund transaction
199
199
  */
200
- getRawRefundFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
200
+ getRawRefundFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint>;
201
201
  getExtraData(outputScript: Buffer, amount: bigint, confirmations: number, nonce?: bigint): Buffer;
202
202
  }
@@ -432,25 +432,25 @@ class SolanaSwapProgram extends SolanaProgramBase_1.SolanaProgramBase {
432
432
  /**
433
433
  * Get the estimated solana fee of the commit transaction
434
434
  */
435
- getCommitFee(swapData, feeRate) {
435
+ getCommitFee(signer, swapData, feeRate) {
436
436
  return this.Init.getInitFee(swapData, feeRate);
437
437
  }
438
438
  /**
439
439
  * Get the estimated solana fee of the commit transaction, without any deposits
440
440
  */
441
- getRawCommitFee(swapData, feeRate) {
441
+ getRawCommitFee(signer, swapData, feeRate) {
442
442
  return this.Init.getRawInitFee(swapData, feeRate);
443
443
  }
444
444
  /**
445
445
  * Get the estimated solana transaction fee of the refund transaction
446
446
  */
447
- getRefundFee(swapData, feeRate) {
447
+ getRefundFee(signer, swapData, feeRate) {
448
448
  return this.Refund.getRefundFee(swapData, feeRate);
449
449
  }
450
450
  /**
451
451
  * Get the estimated solana transaction fee of the refund transaction
452
452
  */
453
- getRawRefundFee(swapData, feeRate) {
453
+ getRawRefundFee(signer, swapData, feeRate) {
454
454
  return this.Refund.getRawRefundFee(swapData, feeRate);
455
455
  }
456
456
  getExtraData(outputScript, amount, confirmations, nonce) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-solana",
3
- "version": "10.0.0-dev.2",
3
+ "version": "10.0.0-dev.3",
4
4
  "description": "Solana specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "author": "adambor",
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
- "@atomiqlabs/base": "^10.0.0-dev.1",
25
+ "@atomiqlabs/base": "^10.0.0-dev.2",
26
26
  "@noble/hashes": "^1.7.1",
27
27
  "bn.js": "5.2.1",
28
28
  "bs58": "4.0.1",
@@ -657,28 +657,28 @@ export class SolanaSwapProgram
657
657
  /**
658
658
  * Get the estimated solana fee of the commit transaction
659
659
  */
660
- getCommitFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
660
+ getCommitFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
661
661
  return this.Init.getInitFee(swapData, feeRate);
662
662
  }
663
663
 
664
664
  /**
665
665
  * Get the estimated solana fee of the commit transaction, without any deposits
666
666
  */
667
- getRawCommitFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
667
+ getRawCommitFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
668
668
  return this.Init.getRawInitFee(swapData, feeRate);
669
669
  }
670
670
 
671
671
  /**
672
672
  * Get the estimated solana transaction fee of the refund transaction
673
673
  */
674
- getRefundFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
674
+ getRefundFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
675
675
  return this.Refund.getRefundFee(swapData, feeRate);
676
676
  }
677
677
 
678
678
  /**
679
679
  * Get the estimated solana transaction fee of the refund transaction
680
680
  */
681
- getRawRefundFee(swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
681
+ getRawRefundFee(signer: string, swapData: SolanaSwapData, feeRate?: string): Promise<bigint> {
682
682
  return this.Refund.getRawRefundFee(swapData, feeRate);
683
683
  }
684
684