@raac/rpc 2.0.0-beta.12 → 2.0.0-beta.13

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.
Files changed (82) hide show
  1. package/dist/RPCLibrary.js +53 -22
  2. package/dist/configs/chains/11155111.json +16 -41
  3. package/dist/contracts/complianceRegistry/getStatuses.js +40 -0
  4. package/dist/contracts/crvUSDToUSDOracle/getState.js +58 -0
  5. package/dist/contracts/curve/common/_helpers.js +57 -0
  6. package/dist/contracts/curve/common/addLiquidity.js +30 -0
  7. package/dist/contracts/curve/common/calcTokenAmount.js +23 -0
  8. package/dist/contracts/curve/common/calcWithdrawOneCoin.js +21 -0
  9. package/dist/contracts/curve/common/exchange.js +33 -0
  10. package/dist/contracts/curve/common/getDy.js +22 -0
  11. package/dist/contracts/curve/common/index.js +7 -0
  12. package/dist/contracts/curve/common/removeLiquidity.js +30 -0
  13. package/dist/contracts/curve/common/removeLiquidityOneCoin.js +31 -0
  14. package/dist/contracts/faucet/claim.js +37 -0
  15. package/dist/contracts/faucet/index.js +17 -0
  16. package/dist/contracts/feeCollector/getState.js +100 -0
  17. package/dist/contracts/getRoles.js +35 -0
  18. package/dist/contracts/housePrices/getState.js +41 -0
  19. package/dist/contracts/psm/getVaultSettings.js +60 -0
  20. package/dist/contracts/treasury/getState.js +46 -0
  21. package/dist/minter/emissionSchedule.js +90 -0
  22. package/dist/pools/lendingPool/getAdminState.js +47 -0
  23. package/dist/pools/rwaVault/getRegisteredAdapters.js +78 -0
  24. package/dist/pools/rwaVault/getSeedStatus.js +45 -0
  25. package/dist/pools/stabilityPool/getAdminState.js +42 -0
  26. package/dist/pools/stabilityPool/liquidation.js +297 -0
  27. package/dist/prices/tokenPricesUSD.js +0 -2
  28. package/dist/types/RPCLibrary.d.ts +44 -14
  29. package/dist/types/contracts/complianceRegistry/getStatuses.d.ts +25 -0
  30. package/dist/types/contracts/crvUSDToUSDOracle/getState.d.ts +36 -0
  31. package/dist/types/contracts/curve/common/_helpers.d.ts +10 -1
  32. package/dist/types/contracts/curve/common/addLiquidity.d.ts +14 -0
  33. package/dist/types/contracts/curve/common/calcTokenAmount.d.ts +10 -0
  34. package/dist/types/contracts/curve/common/calcWithdrawOneCoin.d.ts +8 -0
  35. package/dist/types/contracts/curve/common/exchange.d.ts +16 -0
  36. package/dist/types/contracts/curve/common/getDy.d.ts +8 -0
  37. package/dist/types/contracts/curve/common/index.d.ts +7 -0
  38. package/dist/types/contracts/curve/common/removeLiquidity.d.ts +14 -0
  39. package/dist/types/contracts/curve/common/removeLiquidityOneCoin.d.ts +15 -0
  40. package/dist/types/contracts/faucet/claim.d.ts +18 -0
  41. package/dist/types/contracts/faucet/index.d.ts +1 -0
  42. package/dist/types/contracts/feeCollector/getState.d.ts +42 -0
  43. package/dist/types/contracts/getRoles.d.ts +15 -0
  44. package/dist/types/contracts/housePrices/getState.d.ts +24 -0
  45. package/dist/types/contracts/psm/getVaultSettings.d.ts +38 -0
  46. package/dist/types/contracts/treasury/getState.d.ts +24 -0
  47. package/dist/types/minter/emissionSchedule.d.ts +53 -0
  48. package/dist/types/pools/lendingPool/getAdminState.d.ts +26 -0
  49. package/dist/types/pools/rwaVault/getRegisteredAdapters.d.ts +33 -0
  50. package/dist/types/pools/rwaVault/getSeedStatus.d.ts +27 -0
  51. package/dist/types/pools/stabilityPool/getAdminState.d.ts +25 -0
  52. package/dist/types/pools/stabilityPool/liquidation.d.ts +112 -0
  53. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +0 -2
  54. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +0 -1
  55. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +0 -1
  56. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +0 -1
  57. package/dist/types/typechain-types/index.d.ts +0 -4
  58. package/dist/types/utils/artifacts.d.ts +0 -198
  59. package/dist/utils/artifacts.js +0 -4
  60. package/package.json +14 -4
  61. package/dist/artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json +0 -838
  62. package/dist/artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json +0 -558
  63. package/dist/contracts/rentStreamer/_helpers.js +0 -19
  64. package/dist/contracts/rentStreamer/getEpochProjection.js +0 -91
  65. package/dist/contracts/rentStreamer/getScheduled.js +0 -19
  66. package/dist/contracts/rentStreamer/getState.js +0 -40
  67. package/dist/contracts/rentStreamer/previewRelease.js +0 -23
  68. package/dist/contracts/rentStreamer/release.js +0 -22
  69. package/dist/contracts/rentStreamer/sync.js +0 -21
  70. package/dist/types/contracts/rentStreamer/_helpers.d.ts +0 -4
  71. package/dist/types/contracts/rentStreamer/getEpochProjection.d.ts +0 -40
  72. package/dist/types/contracts/rentStreamer/getScheduled.d.ts +0 -12
  73. package/dist/types/contracts/rentStreamer/getState.d.ts +0 -33
  74. package/dist/types/contracts/rentStreamer/previewRelease.d.ts +0 -20
  75. package/dist/types/contracts/rentStreamer/release.d.ts +0 -12
  76. package/dist/types/contracts/rentStreamer/sync.d.ts +0 -11
  77. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/RentStreamer.d.ts +0 -422
  78. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/index.d.ts +0 -1
  79. package/dist/types/typechain-types/contracts/mocks/core/tokens/USDCTokenLimited.d.ts +0 -238
  80. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/RentStreamer__factory.d.ts +0 -665
  81. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/index.d.ts +0 -1
  82. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/USDCTokenLimited__factory.d.ts +0 -439
@@ -1,91 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getEpochProjection = void 0;
7
- const ethers_1 = require("ethers");
8
- const chains_1 = __importDefault(require("../../configs/chains"));
9
- const artifacts_1 = require("../../utils/artifacts");
10
- const amount_1 = require("../../utils/amount");
11
- const _helpers_1 = require("./_helpers");
12
- /** FeeStreamer.WEEK: buckets and the gauge controller's epochs both start on this grid. */
13
- const WEEK = 7n * 24n * 3600n;
14
- const BOUNTY_PRECISION = 10n ** BigInt(amount_1.WAD_DECIMALS);
15
- /** Bucket `index` of `amount` split from a start epoch, as FeeStreamer._append does: equal splits, the remainder in the last. */
16
- const bucketShare = (amount, numEpochs, index) => {
17
- if (index >= numEpochs)
18
- return 0n;
19
- const split = amount / numEpochs;
20
- return index < numEpochs - 1n ? split : amount - split * (numEpochs - 1n);
21
- };
22
- /**
23
- * Projects what the RWA gauge system receives from the RentStreamer in the current and the next epoch, counting
24
- * token sent to the streamer but not yet synced as it will be split: from the current epoch when the current epoch
25
- * is not released yet, otherwise from the next one. Reads every value at one block.
26
- *
27
- * Assumes the current epoch is released before it ends; an unreleased bucket rolls into the next release. Rent sent
28
- * after this read adds to later buckets, so the next epoch's figure can still grow.
29
- *
30
- * @param chainId - The chain/network to use.
31
- * @param provider - Optional ethers.js Provider instance.
32
- * @returns Both epochs' deposited, pending and projected amounts in the streamed token's base units.
33
- */
34
- const getEpochProjection = async (chainId, provider) => {
35
- if (!provider) {
36
- const rpc = chains_1.default[chainId].rpcs[0];
37
- provider = new ethers_1.ethers.JsonRpcProvider(rpc);
38
- }
39
- const block = await provider.getBlock("latest");
40
- if (!block)
41
- throw new Error("Could not read the latest block");
42
- const overrides = { blockTag: block.number };
43
- const currentEpoch = (BigInt(block.timestamp) / WEEK) * WEEK;
44
- const nextEpoch = currentEpoch + WEEK;
45
- const streamer = await (0, _helpers_1.getRentStreamerContract)(chainId, provider);
46
- const [token, distributorAddress, numEpochs, maxBountyFee, killed, processed, lastEpochProcessed, preview, scheduledNext] = await Promise.all([
47
- streamer.TOKEN(overrides),
48
- streamer.GAUGE_REWARD_DISTRIBUTOR(overrides),
49
- streamer.numEpochs(overrides),
50
- streamer.maxBountyFee(overrides),
51
- streamer.killed(overrides),
52
- streamer.processed(overrides),
53
- streamer.lastEpochProcessed(overrides),
54
- streamer.previewRelease(overrides),
55
- streamer.scheduled(nextEpoch, overrides),
56
- ]);
57
- const erc20 = new ethers_1.ethers.Contract(token, ["function balanceOf(address) view returns (uint256)"], provider);
58
- const distributor = new ethers_1.ethers.Contract(distributorAddress, (0, artifacts_1.getABI)("gaugerewardsdistributor"), provider);
59
- const [balance, depositedCurrent] = await Promise.all([
60
- erc20.balanceOf(await streamer.getAddress(), overrides),
61
- distributor.depositedAtEpoch(token, currentEpoch, overrides),
62
- ]);
63
- const epochs = BigInt(numEpochs);
64
- const unsynced = balance - processed;
65
- const currentReleased = lastEpochProcessed >= currentEpoch;
66
- // previewRelease already counts every unreleased bucket up to now plus the first split of the unsynced amount.
67
- const pendingCurrent = killed ? 0n : preview[0];
68
- // Unsynced token is split from the current epoch at its release, or from the next epoch once the current one is released.
69
- const pendingNext = killed ? 0n : scheduledNext + bucketShare(unsynced, epochs, currentReleased ? 0n : 1n);
70
- const amount = (value) => (0, amount_1.toTokenAmount)(chainId, token, value);
71
- const project = (epoch, deposited, pending) => {
72
- const maxBounty = (pending * maxBountyFee) / BOUNTY_PRECISION;
73
- return {
74
- epoch: Number(epoch),
75
- deposited: amount(deposited),
76
- pending: amount(pending),
77
- maxBounty: amount(maxBounty),
78
- projected: amount(deposited + pending - maxBounty),
79
- };
80
- };
81
- return {
82
- token,
83
- numEpochs: Number(numEpochs),
84
- killed,
85
- currentReleased,
86
- unsynced: amount(unsynced),
87
- current: project(currentEpoch, depositedCurrent, pendingCurrent),
88
- next: project(nextEpoch, 0n, pendingNext),
89
- };
90
- };
91
- exports.getEpochProjection = getEpochProjection;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getScheduled = void 0;
4
- const amount_1 = require("../../utils/amount");
5
- const _helpers_1 = require("./_helpers");
6
- /**
7
- * Reads the amount bucketed for one epoch. Released epochs read zero.
8
- *
9
- * @param chainId - The chain/network to use.
10
- * @param epoch - Epoch start timestamp, a multiple of one week.
11
- * @param provider - Optional ethers.js Provider instance.
12
- * @returns The scheduled amount in the streamed token's base units.
13
- */
14
- const getScheduled = async (chainId, epoch, provider) => {
15
- const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, provider);
16
- const [token, amount] = await Promise.all([contract.TOKEN(), contract.scheduled(epoch)]);
17
- return (0, amount_1.toTokenAmount)(chainId, token, amount);
18
- };
19
- exports.getScheduled = getScheduled;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getState = void 0;
4
- const amount_1 = require("../../utils/amount");
5
- const _helpers_1 = require("./_helpers");
6
- /**
7
- * Reads the RentStreamer's configuration and running totals.
8
- *
9
- * @param chainId - The chain/network to use.
10
- * @param provider - Optional ethers.js Provider instance.
11
- * @returns The streamer state; see `RentStreamerState` for the unit of each field.
12
- */
13
- const getState = async (chainId, provider) => {
14
- const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, provider);
15
- const [token, distributor, numEpochs, minBountyFee, maxBountyFee, bountyDuration, killed, processed, released, lastEpochProcessed] = await Promise.all([
16
- contract.TOKEN(),
17
- contract.GAUGE_REWARD_DISTRIBUTOR(),
18
- contract.numEpochs(),
19
- contract.minBountyFee(),
20
- contract.maxBountyFee(),
21
- contract.bountyDuration(),
22
- contract.killed(),
23
- contract.processed(),
24
- contract.released(),
25
- contract.lastEpochProcessed(),
26
- ]);
27
- return {
28
- token,
29
- distributor,
30
- numEpochs: Number(numEpochs),
31
- minBountyFee: (0, amount_1.toScaled)(minBountyFee, amount_1.WAD_DECIMALS),
32
- maxBountyFee: (0, amount_1.toScaled)(maxBountyFee, amount_1.WAD_DECIMALS),
33
- bountyDuration: Number(bountyDuration),
34
- killed,
35
- processed: (0, amount_1.toTokenAmount)(chainId, token, processed),
36
- released: (0, amount_1.toTokenAmount)(chainId, token, released),
37
- lastEpochProcessed: Number(lastEpochProcessed),
38
- };
39
- };
40
- exports.getState = getState;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.previewRelease = void 0;
4
- const amount_1 = require("../../utils/amount");
5
- const _helpers_1 = require("./_helpers");
6
- /**
7
- * Previews what a `release` would move right now. All zero when the current epoch was already released or the
8
- * streamer is killed. The bounty grows with time since the epoch start, so the real release can differ.
9
- *
10
- * @param chainId - The chain/network to use.
11
- * @param provider - Optional ethers.js Provider instance.
12
- * @returns The release preview, in the streamed token's base units.
13
- */
14
- const previewRelease = async (chainId, provider) => {
15
- const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, provider);
16
- const [token, [amountToRelease, amountToDistribute, bountyFee]] = await Promise.all([contract.TOKEN(), contract.previewRelease()]);
17
- return {
18
- amountToRelease: (0, amount_1.toTokenAmount)(chainId, token, amountToRelease),
19
- amountToDistribute: (0, amount_1.toTokenAmount)(chainId, token, amountToDistribute),
20
- bountyFee: (0, amount_1.toTokenAmount)(chainId, token, bountyFee),
21
- };
22
- };
23
- exports.previewRelease = previewRelease;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = void 0;
4
- const _helpers_1 = require("./_helpers");
5
- /**
6
- * Releases the current epoch's buckets: pays the keeper bounty and deposits the rest into the RWA
7
- * GaugeRewardsDistributor. Permissionless, once per epoch; reverts while the RWA gauge system has no active gauge.
8
- *
9
- * @param chainId - The chain/network to use.
10
- * @param receiver - Address paid the bounty; the signer when omitted.
11
- * @param signer - An ethers.js Signer instance (required).
12
- * @returns The transaction.
13
- */
14
- const release = async (chainId, receiver, signer) => {
15
- if (!signer)
16
- throw new Error("Signer is required");
17
- const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, signer);
18
- const tx = receiver ? await contract["release(address)"](receiver) : await contract["release()"]();
19
- await tx.wait();
20
- return tx;
21
- };
22
- exports.release = release;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sync = void 0;
4
- const _helpers_1 = require("./_helpers");
5
- /**
6
- * Splits token sent to the streamer since the last sync over the next `numEpochs` weekly buckets. Permissionless;
7
- * `release` also syncs first.
8
- *
9
- * @param chainId - The chain/network to use.
10
- * @param signer - An ethers.js Signer instance (required).
11
- * @returns The transaction.
12
- */
13
- const sync = async (chainId, signer) => {
14
- if (!signer)
15
- throw new Error("Signer is required");
16
- const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, signer);
17
- const tx = await contract.sync();
18
- await tx.wait();
19
- return tx;
20
- };
21
- exports.sync = sync;
@@ -1,4 +0,0 @@
1
- import { Provider, Signer } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- import { RentStreamer } from "../../typechain-types";
4
- export declare function getRentStreamerContract(chainId: ChainId, runner?: Provider | Signer): Promise<RentStreamer>;
@@ -1,40 +0,0 @@
1
- import { Provider } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- import { TokenAmount } from "../../utils/amount";
4
- export interface RentStreamerEpochAmount {
5
- /** Epoch start timestamp. */
6
- epoch: number;
7
- /** Already deposited into the RWA GaugeRewardsDistributor for this epoch, by any depositor. Always zero for the next epoch. */
8
- deposited: TokenAmount;
9
- /** What the streamer will release into this epoch from what it holds now, before the keeper bounty. */
10
- pending: TokenAmount;
11
- /** Keeper bounty on `pending` at the maximum fee. */
12
- maxBounty: TokenAmount;
13
- /** `deposited + pending - maxBounty`: the least this epoch receives from what is deposited or held now. */
14
- projected: TokenAmount;
15
- }
16
- export interface RentStreamerEpochProjection {
17
- /** Streamed token (USDC). */
18
- token: string;
19
- numEpochs: number;
20
- killed: boolean;
21
- /** Whether the current epoch's release already happened. */
22
- currentReleased: boolean;
23
- /** Token sent to the streamer and not yet split into buckets: balance - processed. */
24
- unsynced: TokenAmount;
25
- current: RentStreamerEpochAmount;
26
- next: RentStreamerEpochAmount;
27
- }
28
- /**
29
- * Projects what the RWA gauge system receives from the RentStreamer in the current and the next epoch, counting
30
- * token sent to the streamer but not yet synced as it will be split: from the current epoch when the current epoch
31
- * is not released yet, otherwise from the next one. Reads every value at one block.
32
- *
33
- * Assumes the current epoch is released before it ends; an unreleased bucket rolls into the next release. Rent sent
34
- * after this read adds to later buckets, so the next epoch's figure can still grow.
35
- *
36
- * @param chainId - The chain/network to use.
37
- * @param provider - Optional ethers.js Provider instance.
38
- * @returns Both epochs' deposited, pending and projected amounts in the streamed token's base units.
39
- */
40
- export declare const getEpochProjection: (chainId: ChainId, provider?: Provider) => Promise<RentStreamerEpochProjection>;
@@ -1,12 +0,0 @@
1
- import { Provider } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- import { TokenAmount } from "../../utils/amount";
4
- /**
5
- * Reads the amount bucketed for one epoch. Released epochs read zero.
6
- *
7
- * @param chainId - The chain/network to use.
8
- * @param epoch - Epoch start timestamp, a multiple of one week.
9
- * @param provider - Optional ethers.js Provider instance.
10
- * @returns The scheduled amount in the streamed token's base units.
11
- */
12
- export declare const getScheduled: (chainId: ChainId, epoch: bigint, provider?: Provider) => Promise<TokenAmount>;
@@ -1,33 +0,0 @@
1
- import { Provider } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- import { ScaledValue, TokenAmount } from "../../utils/amount";
4
- export interface RentStreamerState {
5
- /** Streamed token (USDC). */
6
- token: string;
7
- /** GaugeRewardsDistributor every release deposits into. */
8
- distributor: string;
9
- /** Number of weekly buckets each synced amount is split over. */
10
- numEpochs: number;
11
- /** Keeper bounty at the start of an epoch, 18-decimal fraction of the released amount (1.0 = 100%). */
12
- minBountyFee: ScaledValue;
13
- /** Keeper bounty once `bountyDuration` has passed, 18-decimal fraction of the released amount (1.0 = 100%). */
14
- maxBountyFee: ScaledValue;
15
- /** Seconds over which the bounty ramps from min to max after an epoch starts. */
16
- bountyDuration: number;
17
- /** Whether the streamer was permanently shut down. */
18
- killed: boolean;
19
- /** Token synced into buckets and not yet released. */
20
- processed: TokenAmount;
21
- /** Token released so far, bounties included. */
22
- released: TokenAmount;
23
- /** Start timestamp of the last released epoch. */
24
- lastEpochProcessed: number;
25
- }
26
- /**
27
- * Reads the RentStreamer's configuration and running totals.
28
- *
29
- * @param chainId - The chain/network to use.
30
- * @param provider - Optional ethers.js Provider instance.
31
- * @returns The streamer state; see `RentStreamerState` for the unit of each field.
32
- */
33
- export declare const getState: (chainId: ChainId, provider?: Provider) => Promise<RentStreamerState>;
@@ -1,20 +0,0 @@
1
- import { Provider } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- import { TokenAmount } from "../../utils/amount";
4
- export interface RentStreamerReleasePreview {
5
- /** Total the next release takes out of the buckets, bounty included. */
6
- amountToRelease: TokenAmount;
7
- /** Part deposited into the RWA GaugeRewardsDistributor. */
8
- amountToDistribute: TokenAmount;
9
- /** Part paid to the keeper that calls `release`. */
10
- bountyFee: TokenAmount;
11
- }
12
- /**
13
- * Previews what a `release` would move right now. All zero when the current epoch was already released or the
14
- * streamer is killed. The bounty grows with time since the epoch start, so the real release can differ.
15
- *
16
- * @param chainId - The chain/network to use.
17
- * @param provider - Optional ethers.js Provider instance.
18
- * @returns The release preview, in the streamed token's base units.
19
- */
20
- export declare const previewRelease: (chainId: ChainId, provider?: Provider) => Promise<RentStreamerReleasePreview>;
@@ -1,12 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- /**
4
- * Releases the current epoch's buckets: pays the keeper bounty and deposits the rest into the RWA
5
- * GaugeRewardsDistributor. Permissionless, once per epoch; reverts while the RWA gauge system has no active gauge.
6
- *
7
- * @param chainId - The chain/network to use.
8
- * @param receiver - Address paid the bounty; the signer when omitted.
9
- * @param signer - An ethers.js Signer instance (required).
10
- * @returns The transaction.
11
- */
12
- export declare const release: (chainId: ChainId, receiver: string | undefined, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
@@ -1,11 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { ChainId } from "../../configs/chains";
3
- /**
4
- * Splits token sent to the streamer since the last sync over the next `numEpochs` weekly buckets. Permissionless;
5
- * `release` also syncs first.
6
- *
7
- * @param chainId - The chain/network to use.
8
- * @param signer - An ethers.js Signer instance (required).
9
- * @returns The transaction.
10
- */
11
- export declare const sync: (chainId: ChainId, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;