Skip to content

Commit 7184b12

Browse files
authored
feat: distributor protocol level fees (#334)
* feat: distributor protocol level fees
1 parent a7c8661 commit 7184b12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3643
-2480
lines changed

examples/js-cjs-bundled/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const { SolanaStakingClient } = require("@streamflow/staking");
1414
const { SolanaLaunchpadClient } = require("@streamflow/launchpad");
1515
const { ICluster } = require("@streamflow/common");
1616
// Other entrypoints to test that the package.json is correct
17-
const { MerkleDistributor } = require("@streamflow/distributor/solana");
1817
const { prepareTransaction } = require("@streamflow/common");
1918

2019
// Import IDL files to test import resolving

examples/js-esm-unbundled/src/start-node18.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { StreamflowDistributorSolana } from "@streamflow/distributor";
1414
import { SolanaStakingClient } from "@streamflow/staking";
1515
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1616
// Other entrypoints to test that the package.json is correct
17-
import { MerkleDistributor } from "@streamflow/distributor/solana";
1817
import {prepareTransaction} from "@streamflow/common";
1918

2019
// Import IDL files to test import resolving

examples/js-esm-unbundled/src/start-node20.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { StreamflowDistributorSolana } from "@streamflow/distributor";
1414
import { SolanaStakingClient } from "@streamflow/staking";
1515
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1616
// Other entrypoints to test that the package.json is correct
17-
import { MerkleDistributor } from "@streamflow/distributor/solana";
1817
import {prepareTransaction} from "@streamflow/common";
1918

2019
// Import IDL files to test import resolving

examples/ts-cjs-bundled/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SolanaStakingClient } from "@streamflow/staking";
44
import { StreamflowDistributorSolana } from "@streamflow/distributor";
55
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
66
// Other entrypoints to test that the package.json is correct
7-
import { MerkleDistributor } from "@streamflow/distributor/solana";
7+
import type { MerkleDistributor } from "@streamflow/distributor/solana";
88
import {prepareTransaction} from "@streamflow/common";
99

1010
// Import IDL files to test import resolving

examples/ts-cjs-unbundled/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { StreamflowDistributorSolana } from "@streamflow/distributor";
1414
import { SolanaStakingClient } from "@streamflow/staking";
1515
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1616
// Other entrypoints to test that the package.json is correct
17-
import { MerkleDistributor } from "@streamflow/distributor/solana";
17+
import type { MerkleDistributor } from "@streamflow/distributor/solana";
1818
import {prepareTransaction} from "@streamflow/common";
1919

2020
// Import IDL files to test import resolving

examples/ts-esm-bundled/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { SolanaStakingClient } from "@streamflow/staking";
1717
// Import launchpad package
1818
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1919
// Other entrypoints to test that the package.json is correct
20-
import { MerkleDistributor } from "@streamflow/distributor/solana";
20+
import type { MerkleDistributor } from "@streamflow/distributor/solana";
2121
import {prepareTransaction} from "@streamflow/common";
2222

2323
// Import IDL files to test import resolving

examples/ts-esm-unbundled/src/start-node18.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { StreamflowDistributorSolana } from "@streamflow/distributor";
1414
import { SolanaStakingClient } from "@streamflow/staking";
1515
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1616
// Other entrypoints to test that the package.json is correct
17-
import { MerkleDistributor } from "@streamflow/distributor/solana";
17+
import type { MerkleDistributor } from "@streamflow/distributor/solana";
1818
import {prepareTransaction} from "@streamflow/common";
1919

2020
// Import IDL files to test import resolving

examples/ts-esm-unbundled/src/start-node20.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { StreamflowDistributorSolana } from "@streamflow/distributor";
1414
import { SolanaStakingClient } from "@streamflow/staking";
1515
import { SolanaLaunchpadClient } from "@streamflow/launchpad";
1616
// Other entrypoints to test that the package.json is correct
17-
import { MerkleDistributor, ClaimStatus } from "@streamflow/distributor/solana";
17+
import type { MerkleDistributor, ClaimStatus } from "@streamflow/distributor/solana";
1818
import {prepareTransaction} from "@streamflow/common";
1919

2020
// Import IDL files to test import resolving

lerna.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"packages": ["packages/*"],
3-
"version": "10.0.3",
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "11.0.0",
46
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
57
"command": {
68
"run": {

packages/common/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/common",
3-
"version": "10.0.3",
3+
"version": "11.0.0",
44
"description": "Common utilities and types used by streamflow packages.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"type": "module",
@@ -42,7 +42,8 @@
4242
"typescript": "^5.6.3"
4343
},
4444
"dependencies": {
45-
"@coral-xyz/borsh": "0.31.1",
45+
"@coral-xyz/anchor": "^0.32.1",
46+
"@coral-xyz/borsh": "0.32.1",
4647
"@solana/buffer-layout": "4.0.1",
4748
"@solana/spl-token": "0.4.9",
4849
"@solana/wallet-adapter-base": "0.9.19",

0 commit comments

Comments
 (0)