@streamflow/distributor 7.4.13 → 7.4.15

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.
@@ -41,6 +41,10 @@ class SolanaAlignedDistributorClient extends BaseDistributorClient_js_1.default
41
41
  sender: alignedProxy.admin.toBase58(),
42
42
  updatePeriod: (0, common_1.getNumberFromBN)(alignedProxy.updatePeriod, constants_js_1.ALIGNED_PRECISION_FACTOR_POW),
43
43
  clawedBack: alignedProxy.distributorClawedBack,
44
+ initialDuration: alignedProxy.initialDuration.toNumber(),
45
+ initialPrice: (0, common_1.getNumberFromBN)(alignedProxy.initialPrice, constants_js_1.ALIGNED_PRECISION_FACTOR_POW),
46
+ lastPrice: (0, common_1.getNumberFromBN)(alignedProxy.lastPrice, constants_js_1.ALIGNED_PRECISION_FACTOR_POW),
47
+ lastDurationUpdateTs: alignedProxy.lastDurationUpdateTs.toNumber(),
44
48
  };
45
49
  }
46
50
  async getNewDistributorInstruction(data, accounts) {
@@ -37,6 +37,10 @@ export default class SolanaAlignedDistributorClient extends BaseDistributorClien
37
37
  sender: alignedProxy.admin.toBase58(),
38
38
  updatePeriod: getNumberFromBN(alignedProxy.updatePeriod, ALIGNED_PRECISION_FACTOR_POW),
39
39
  clawedBack: alignedProxy.distributorClawedBack,
40
+ initialDuration: alignedProxy.initialDuration.toNumber(),
41
+ initialPrice: getNumberFromBN(alignedProxy.initialPrice, ALIGNED_PRECISION_FACTOR_POW),
42
+ lastPrice: getNumberFromBN(alignedProxy.lastPrice, ALIGNED_PRECISION_FACTOR_POW),
43
+ lastDurationUpdateTs: alignedProxy.lastDurationUpdateTs.toNumber(),
40
44
  };
41
45
  }
42
46
  async getNewDistributorInstruction(data, accounts) {
@@ -37,6 +37,10 @@ export interface AlignedDistributorData {
37
37
  priceOracle: string | undefined;
38
38
  updatePeriod: number;
39
39
  clawedBack: boolean;
40
+ initialDuration: number;
41
+ initialPrice: number;
42
+ lastPrice: number;
43
+ lastDurationUpdateTs: number;
40
44
  }
41
45
  export interface NewAlignedDistributorArgs {
42
46
  totalAmountLocked: BN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/distributor",
3
- "version": "7.4.13",
3
+ "version": "7.4.15",
4
4
  "description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/esm/index.js",
@@ -31,9 +31,9 @@
31
31
  "lint": "eslint --fix .",
32
32
  "prepublishOnly": "npm run lint && npm run build"
33
33
  },
34
- "gitHead": "1fdd4be9210a469bac52e97f969b679774a9aefd",
34
+ "gitHead": "3fb3977003767687e7a7b00bd69565b6bf5a1b63",
35
35
  "devDependencies": {
36
- "@streamflow/eslint-config": "7.4.13",
36
+ "@streamflow/eslint-config": "7.4.15",
37
37
  "@types/bn.js": "5.1.1",
38
38
  "date-fns": "2.28.0",
39
39
  "typescript": "^5.6.3"
@@ -45,7 +45,7 @@
45
45
  "@solana/spl-token": "0.4.9",
46
46
  "@solana/wallet-adapter-base": "0.9.19",
47
47
  "@solana/web3.js": "1.95.4",
48
- "@streamflow/common": "7.4.13",
48
+ "@streamflow/common": "7.4.15",
49
49
  "bn.js": "5.2.1",
50
50
  "borsh": "^2.0.0",
51
51
  "bs58": "5.0.0",