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

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 (34) hide show
  1. package/dist/RPCLibrary.js +24 -10
  2. package/dist/artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json +838 -0
  3. package/dist/artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json +558 -0
  4. package/dist/configs/chains/11155111.json +41 -3
  5. package/dist/contracts/rentStreamer/_helpers.js +19 -0
  6. package/dist/contracts/rentStreamer/getEpochProjection.js +91 -0
  7. package/dist/contracts/rentStreamer/getScheduled.js +19 -0
  8. package/dist/contracts/rentStreamer/getState.js +40 -0
  9. package/dist/contracts/rentStreamer/previewRelease.js +23 -0
  10. package/dist/contracts/rentStreamer/release.js +22 -0
  11. package/dist/contracts/rentStreamer/sync.js +21 -0
  12. package/dist/prices/tokenPricesUSD.js +2 -0
  13. package/dist/types/RPCLibrary.d.ts +14 -0
  14. package/dist/types/contracts/rentStreamer/_helpers.d.ts +4 -0
  15. package/dist/types/contracts/rentStreamer/getEpochProjection.d.ts +40 -0
  16. package/dist/types/contracts/rentStreamer/getScheduled.d.ts +12 -0
  17. package/dist/types/contracts/rentStreamer/getState.d.ts +33 -0
  18. package/dist/types/contracts/rentStreamer/previewRelease.d.ts +20 -0
  19. package/dist/types/contracts/rentStreamer/release.d.ts +12 -0
  20. package/dist/types/contracts/rentStreamer/sync.d.ts +11 -0
  21. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/RentStreamer.d.ts +422 -0
  22. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  23. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +2 -0
  24. package/dist/types/typechain-types/contracts/mocks/core/tokens/USDCTokenLimited.d.ts +238 -0
  25. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
  26. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/RentStreamer__factory.d.ts +665 -0
  27. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  28. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +1 -0
  29. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/USDCTokenLimited__factory.d.ts +439 -0
  30. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
  31. package/dist/types/typechain-types/index.d.ts +4 -0
  32. package/dist/types/utils/artifacts.d.ts +198 -0
  33. package/dist/utils/artifacts.js +4 -0
  34. package/package.json +1 -1
@@ -50,6 +50,56 @@ declare const ABIS: {
50
50
  anonymous?: undefined;
51
51
  })[];
52
52
  pmusd: any[];
53
+ usdc: ({
54
+ inputs: {
55
+ internalType: string;
56
+ name: string;
57
+ type: string;
58
+ }[];
59
+ stateMutability: string;
60
+ type: string;
61
+ name?: undefined;
62
+ anonymous?: undefined;
63
+ outputs?: undefined;
64
+ } | {
65
+ inputs: {
66
+ internalType: string;
67
+ name: string;
68
+ type: string;
69
+ }[];
70
+ name: string;
71
+ type: string;
72
+ stateMutability?: undefined;
73
+ anonymous?: undefined;
74
+ outputs?: undefined;
75
+ } | {
76
+ anonymous: boolean;
77
+ inputs: {
78
+ indexed: boolean;
79
+ internalType: string;
80
+ name: string;
81
+ type: string;
82
+ }[];
83
+ name: string;
84
+ type: string;
85
+ stateMutability?: undefined;
86
+ outputs?: undefined;
87
+ } | {
88
+ inputs: {
89
+ internalType: string;
90
+ name: string;
91
+ type: string;
92
+ }[];
93
+ name: string;
94
+ outputs: {
95
+ internalType: string;
96
+ name: string;
97
+ type: string;
98
+ }[];
99
+ stateMutability: string;
100
+ type: string;
101
+ anonymous?: undefined;
102
+ })[];
53
103
  xpm: any[];
54
104
  raacnft: ({
55
105
  inputs: {
@@ -1844,6 +1894,56 @@ declare const ABIS: {
1844
1894
  anonymous?: undefined;
1845
1895
  outputs?: undefined;
1846
1896
  })[];
1897
+ rentstreamer: ({
1898
+ inputs: {
1899
+ internalType: string;
1900
+ name: string;
1901
+ type: string;
1902
+ }[];
1903
+ stateMutability: string;
1904
+ type: string;
1905
+ name?: undefined;
1906
+ anonymous?: undefined;
1907
+ outputs?: undefined;
1908
+ } | {
1909
+ inputs: {
1910
+ internalType: string;
1911
+ name: string;
1912
+ type: string;
1913
+ }[];
1914
+ name: string;
1915
+ type: string;
1916
+ stateMutability?: undefined;
1917
+ anonymous?: undefined;
1918
+ outputs?: undefined;
1919
+ } | {
1920
+ anonymous: boolean;
1921
+ inputs: {
1922
+ indexed: boolean;
1923
+ internalType: string;
1924
+ name: string;
1925
+ type: string;
1926
+ }[];
1927
+ name: string;
1928
+ type: string;
1929
+ stateMutability?: undefined;
1930
+ outputs?: undefined;
1931
+ } | {
1932
+ inputs: {
1933
+ internalType: string;
1934
+ name: string;
1935
+ type: string;
1936
+ }[];
1937
+ name: string;
1938
+ outputs: {
1939
+ internalType: string;
1940
+ name: string;
1941
+ type: string;
1942
+ }[];
1943
+ stateMutability: string;
1944
+ type: string;
1945
+ anonymous?: undefined;
1946
+ })[];
1847
1947
  gaugecontroller: ({
1848
1948
  inputs: {
1849
1949
  internalType: string;
@@ -4425,6 +4525,104 @@ declare const getABI: (name: keyof typeof ABIS) => any[] | ({
4425
4525
  stateMutability: string;
4426
4526
  type: string;
4427
4527
  anonymous?: undefined;
4528
+ })[] | ({
4529
+ inputs: {
4530
+ internalType: string;
4531
+ name: string;
4532
+ type: string;
4533
+ }[];
4534
+ stateMutability: string;
4535
+ type: string;
4536
+ name?: undefined;
4537
+ anonymous?: undefined;
4538
+ outputs?: undefined;
4539
+ } | {
4540
+ inputs: {
4541
+ internalType: string;
4542
+ name: string;
4543
+ type: string;
4544
+ }[];
4545
+ name: string;
4546
+ type: string;
4547
+ stateMutability?: undefined;
4548
+ anonymous?: undefined;
4549
+ outputs?: undefined;
4550
+ } | {
4551
+ anonymous: boolean;
4552
+ inputs: {
4553
+ indexed: boolean;
4554
+ internalType: string;
4555
+ name: string;
4556
+ type: string;
4557
+ }[];
4558
+ name: string;
4559
+ type: string;
4560
+ stateMutability?: undefined;
4561
+ outputs?: undefined;
4562
+ } | {
4563
+ inputs: {
4564
+ internalType: string;
4565
+ name: string;
4566
+ type: string;
4567
+ }[];
4568
+ name: string;
4569
+ outputs: {
4570
+ internalType: string;
4571
+ name: string;
4572
+ type: string;
4573
+ }[];
4574
+ stateMutability: string;
4575
+ type: string;
4576
+ anonymous?: undefined;
4577
+ })[] | ({
4578
+ inputs: {
4579
+ internalType: string;
4580
+ name: string;
4581
+ type: string;
4582
+ }[];
4583
+ stateMutability: string;
4584
+ type: string;
4585
+ name?: undefined;
4586
+ anonymous?: undefined;
4587
+ outputs?: undefined;
4588
+ } | {
4589
+ inputs: {
4590
+ internalType: string;
4591
+ name: string;
4592
+ type: string;
4593
+ }[];
4594
+ name: string;
4595
+ type: string;
4596
+ stateMutability?: undefined;
4597
+ anonymous?: undefined;
4598
+ outputs?: undefined;
4599
+ } | {
4600
+ anonymous: boolean;
4601
+ inputs: {
4602
+ indexed: boolean;
4603
+ internalType: string;
4604
+ name: string;
4605
+ type: string;
4606
+ }[];
4607
+ name: string;
4608
+ type: string;
4609
+ stateMutability?: undefined;
4610
+ outputs?: undefined;
4611
+ } | {
4612
+ inputs: {
4613
+ internalType: string;
4614
+ name: string;
4615
+ type: string;
4616
+ }[];
4617
+ name: string;
4618
+ outputs: {
4619
+ internalType: string;
4620
+ name: string;
4621
+ type: string;
4622
+ }[];
4623
+ stateMutability: string;
4624
+ type: string;
4625
+ anonymous?: undefined;
4428
4626
  } | {
4429
4627
  inputs: {
4430
4628
  internalType: string;
@@ -38,6 +38,8 @@ const RWAIndexTokenCollector_json_1 = __importDefault(require("../artifacts/core
38
38
  const RAACTokenCollector_json_1 = __importDefault(require("../artifacts/core/collectors/RAACTokenCollector.sol/RAACTokenCollector.json"));
39
39
  const CrvUSDToUSDOracle_json_1 = __importDefault(require("../artifacts/core/oracles/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle.json"));
40
40
  const NFTRoyaltyFeeCollector_json_1 = __importDefault(require("../artifacts/core/collectors/NFTRoyaltyFeeCollector.sol/NFTRoyaltyFeeCollector.json"));
41
+ const RentStreamer_json_1 = __importDefault(require("../artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json"));
42
+ const USDCTokenLimited_json_1 = __importDefault(require("../artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json"));
41
43
  const GaugeController_json_1 = __importDefault(require("../artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json"));
42
44
  const BaseGauge_json_1 = __importDefault(require("../artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.json"));
43
45
  const RAACGauge_json_1 = __importDefault(require("../artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json"));
@@ -93,6 +95,7 @@ const ABIS = {
93
95
  // Tokens
94
96
  crvusd: CRVUSD_ABI,
95
97
  pmusd: PMUSD_ABI,
98
+ usdc: USDCTokenLimited_json_1.default.abi,
96
99
  xpm: XPM_ABI,
97
100
  // RAAC
98
101
  raacnft: RAACNFT_ABI,
@@ -134,6 +137,7 @@ const ABIS = {
134
137
  raactokencollector: RAACTokenCollector_json_1.default.abi,
135
138
  crvusdtousdoracle: CRVUSDTOUSDORACLE_ABI,
136
139
  nftroyaltyfeecollector: NFTRoyaltyFeeCollector_json_1.default.abi,
140
+ rentstreamer: RentStreamer_json_1.default.abi,
137
141
  // Governance
138
142
  gaugecontroller: GAUGECONTROLLER_ABI,
139
143
  basegauge: BASEGAUGE_ABI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raac/rpc",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.14",
4
4
  "description": "RPC Library for RAAC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",