@requestnetwork/smart-contracts 0.29.1-next.1929 → 0.30.0
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.
- package/CHANGELOG.md +112 -0
- package/dist/scripts-create2/contract-setup/adminTasks.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/adminTasks.js +5 -1
- package/dist/scripts-create2/contract-setup/adminTasks.js.map +1 -1
- package/dist/scripts-create2/fee-suggestion.d.ts +3 -0
- package/dist/scripts-create2/fee-suggestion.d.ts.map +1 -0
- package/dist/scripts-create2/fee-suggestion.js +17 -0
- package/dist/scripts-create2/fee-suggestion.js.map +1 -0
- package/dist/scripts-create2/xdeployer.d.ts.map +1 -1
- package/dist/scripts-create2/xdeployer.js +5 -1
- package/dist/scripts-create2/xdeployer.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,118 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.30.0](https://github.com/RequestNetwork/requestNetwork/compare/@requestnetwork/smart-contracts@0.21.0...@requestnetwork/smart-contracts@0.30.0) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- replace hardcoded address ([#1138](https://github.com/RequestNetwork/requestNetwork/issues/1138)) ([be4b677](https://github.com/RequestNetwork/requestNetwork/commit/be4b6778a9fee43c5fd82529c715248a9143edf6))
|
|
11
|
+
- **gas-fee:** catch estimation errors ([#1121](https://github.com/RequestNetwork/requestNetwork/issues/1121)) ([e0e9151](https://github.com/RequestNetwork/requestNetwork/commit/e0e91517759e404faf3be4d3811ffd9245f31dc9))
|
|
12
|
+
- erc20 transferable address ([#1065](https://github.com/RequestNetwork/requestNetwork/issues/1065)) ([0dc9496](https://github.com/RequestNetwork/requestNetwork/commit/0dc94960c8c7bb47116e0a7bbe2d11accf38f875))
|
|
13
|
+
- sf amount computation ([#1087](https://github.com/RequestNetwork/requestNetwork/issues/1087)) ([683c119](https://github.com/RequestNetwork/requestNetwork/commit/683c119c3230b120b782a8fe13b0cfcd0d26f276))
|
|
14
|
+
- **smart-contract:** xdeployer setup eth conversion proxy ([#982](https://github.com/RequestNetwork/requestNetwork/issues/982)) ([2287d3e](https://github.com/RequestNetwork/requestNetwork/commit/2287d3e549fd44adfcac2bc0a2e6d5d88d8af84f))
|
|
15
|
+
- **smart-contracts:** subsequent runs fail ([#1038](https://github.com/RequestNetwork/requestNetwork/issues/1038)) ([669d2d4](https://github.com/RequestNetwork/requestNetwork/commit/669d2d4c40c69d17fcc74ed3d2818ce4ab57c78d))
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- Allow minting ERC20TransferableReceivables on behalf of other users ([#1091](https://github.com/RequestNetwork/requestNetwork/issues/1091)) ([1a5618b](https://github.com/RequestNetwork/requestNetwork/commit/1a5618b368a3ca49aaf6e4bca3f3210caca3cac1))
|
|
20
|
+
- deploy on mantle and mantle testnet ([#1127](https://github.com/RequestNetwork/requestNetwork/issues/1127)) ([d539717](https://github.com/RequestNetwork/requestNetwork/commit/d539717009de82fe1195a73cb9f4ddbb0f59cd46))
|
|
21
|
+
- erc20 transferable deployment ([#1064](https://github.com/RequestNetwork/requestNetwork/issues/1064)) ([77a4069](https://github.com/RequestNetwork/requestNetwork/commit/77a40695f7e553e701eed1aed286136f1a26c227))
|
|
22
|
+
- erc20 transferable mainnet ([#1066](https://github.com/RequestNetwork/requestNetwork/issues/1066)) ([9994152](https://github.com/RequestNetwork/requestNetwork/commit/999415216bb90feee74d7e1fc04eb826c1640152))
|
|
23
|
+
- ERC20FeeProxy on Near testnet ([#1086](https://github.com/RequestNetwork/requestNetwork/issues/1086)) ([6ac8c28](https://github.com/RequestNetwork/requestNetwork/commit/6ac8c287b8838af93e9384bc30352b334dba116a))
|
|
24
|
+
- ERC20TransferableReceivable contract gas optimizations ([#1097](https://github.com/RequestNetwork/requestNetwork/issues/1097)) ([f6a63d0](https://github.com/RequestNetwork/requestNetwork/commit/f6a63d00c2250b9acd481619579e7411099d4784))
|
|
25
|
+
- ERC20TransferableReceivable payment network ([#1033](https://github.com/RequestNetwork/requestNetwork/issues/1033)) ([cfea8a3](https://github.com/RequestNetwork/requestNetwork/commit/cfea8a31e39ba4315b8ffc9971cbb3155be2dde1))
|
|
26
|
+
- improve swap contract and deployment ([#1043](https://github.com/RequestNetwork/requestNetwork/issues/1043)) ([bfbe7a0](https://github.com/RequestNetwork/requestNetwork/commit/bfbe7a03445832b494926ef26dcfb85a3268baf4))
|
|
27
|
+
- moonbeam ([#1002](https://github.com/RequestNetwork/requestNetwork/issues/1002)) ([a9fe889](https://github.com/RequestNetwork/requestNetwork/commit/a9fe889ab1730ce62fa15e0bffbb5d66ac8e822a))
|
|
28
|
+
- optimism deployment ([#983](https://github.com/RequestNetwork/requestNetwork/issues/983)) ([6f5b6ec](https://github.com/RequestNetwork/requestNetwork/commit/6f5b6eca81cdaa3778b5324a939825190c04ef10))
|
|
29
|
+
- processor for ERC20FeeProxy on Near ([#1096](https://github.com/RequestNetwork/requestNetwork/issues/1096)) ([ccc0bd4](https://github.com/RequestNetwork/requestNetwork/commit/ccc0bd4ffed49ee41b9991b816798797d6930f67))
|
|
30
|
+
- replace hardhat ganache ([#1072](https://github.com/RequestNetwork/requestNetwork/issues/1072)) ([bf2f542](https://github.com/RequestNetwork/requestNetwork/commit/bf2f542f78a47f1e871dd37c529f4877f2dd511b))
|
|
31
|
+
- tombchain ([#1024](https://github.com/RequestNetwork/requestNetwork/issues/1024)) ([7ba9b80](https://github.com/RequestNetwork/requestNetwork/commit/7ba9b803160cf8b5a80a7db817142a1999bd385a))
|
|
32
|
+
- **smart-contract:** batch conversion deployer ([#979](https://github.com/RequestNetwork/requestNetwork/issues/979)) ([7f60323](https://github.com/RequestNetwork/requestNetwork/commit/7f60323999e3df1743cdc1e89c0d27f1ae8e335e))
|
|
33
|
+
- **smart-contracts:** xdeployer gas fee eip1559 ([#1014](https://github.com/RequestNetwork/requestNetwork/issues/1014)) ([054fc63](https://github.com/RequestNetwork/requestNetwork/commit/054fc6307177d9dd56f690e37fdaf4a965bbfbfe))
|
|
34
|
+
|
|
35
|
+
# 0.39.0 (2022-11-04)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
- getPaymentNetworkFrom conversion request ([#976](https://github.com/RequestNetwork/requestNetwork/issues/976)) ([03eaa6d](https://github.com/RequestNetwork/requestNetwork/commit/03eaa6dce6a4d05ba6f07d4c910c87147c0b7c54))
|
|
40
|
+
- update all chainlink conversion path version ([#980](https://github.com/RequestNetwork/requestNetwork/issues/980)) ([202eeb4](https://github.com/RequestNetwork/requestNetwork/commit/202eeb447d0d700bf336a8165c044594d79b70c6))
|
|
41
|
+
- **smart-contract:** batch conversion - add xdai and fuse proxy addresses ([#919](https://github.com/RequestNetwork/requestNetwork/issues/919)) ([97ee435](https://github.com/RequestNetwork/requestNetwork/commit/97ee4354aac4b9f9583deec27505581b97e0799e))
|
|
42
|
+
- **smart-contracts:** deploy and verify batch contract ([#868](https://github.com/RequestNetwork/requestNetwork/issues/868)) ([a71eb58](https://github.com/RequestNetwork/requestNetwork/commit/a71eb581de2199892ee44fcb8b162a9ae0c44a10))
|
|
43
|
+
- **smart-contracts:** missing gnosisscan api key ([#972](https://github.com/RequestNetwork/requestNetwork/issues/972)) ([35cf7fb](https://github.com/RequestNetwork/requestNetwork/commit/35cf7fb3a37e16366059f6c86d9139bc250e39d4))
|
|
44
|
+
- **smart-contracts:** update batch fees ([#873](https://github.com/RequestNetwork/requestNetwork/issues/873)) ([15c55bc](https://github.com/RequestNetwork/requestNetwork/commit/15c55bc5d57eaff74cd23358754dc29b6ccd47f4))
|
|
45
|
+
- artifact ABI for ChainlinkConversionPath ([#700](https://github.com/RequestNetwork/requestNetwork/issues/700)) ([91619f9](https://github.com/RequestNetwork/requestNetwork/commit/91619f960f713066e2812f7d57a77198d04cfb7d))
|
|
46
|
+
- avalanche addresses ([#799](https://github.com/RequestNetwork/requestNetwork/issues/799)) ([06a1fa2](https://github.com/RequestNetwork/requestNetwork/commit/06a1fa29cd00045f8d915da189912cb84979496d))
|
|
47
|
+
- Chainlink contracts updates ([#481](https://github.com/RequestNetwork/requestNetwork/issues/481)) ([0aaf65b](https://github.com/RequestNetwork/requestNetwork/commit/0aaf65b59c14dddaa6ae0260b06006244e4bf852))
|
|
48
|
+
- deployment script with ERC20Conversion v2 and Swap ([#751](https://github.com/RequestNetwork/requestNetwork/issues/751)) ([3b97506](https://github.com/RequestNetwork/requestNetwork/commit/3b975067706cd6201fc0cf065b0e33c6bab494ac))
|
|
49
|
+
- disable matic ETH proxy artifact ([#552](https://github.com/RequestNetwork/requestNetwork/issues/552)) ([a66f54c](https://github.com/RequestNetwork/requestNetwork/commit/a66f54c00079c5b4ea7cd434caaf5e930d1f48bc))
|
|
50
|
+
- escrow audit fix 1 ([#874](https://github.com/RequestNetwork/requestNetwork/issues/874)) ([82ab698](https://github.com/RequestNetwork/requestNetwork/commit/82ab6980ba5d9ed3d0bba12249e59351851a3403))
|
|
51
|
+
- escrow audit fix 2 ([#878](https://github.com/RequestNetwork/requestNetwork/issues/878)) ([53d244b](https://github.com/RequestNetwork/requestNetwork/commit/53d244b9be344c64cfb2f13b62c54065e935792b))
|
|
52
|
+
- eth-input-data for fuse ([#759](https://github.com/RequestNetwork/requestNetwork/issues/759)) ([4de0951](https://github.com/RequestNetwork/requestNetwork/commit/4de0951e72777480ebdf420b8a5ed78b8a992fba))
|
|
53
|
+
- ethereum proxy ([#807](https://github.com/RequestNetwork/requestNetwork/issues/807)) ([bcda36d](https://github.com/RequestNetwork/requestNetwork/commit/bcda36dee054504310aaaa98f9d870682893efcc))
|
|
54
|
+
- invoice total types + upgrade ethers ([#514](https://github.com/RequestNetwork/requestNetwork/issues/514)) ([c2b98b2](https://github.com/RequestNetwork/requestNetwork/commit/c2b98b2bd3c93f063f340d58c6b95ad026fd9519))
|
|
55
|
+
- missing eth-proxy on BSC ([#791](https://github.com/RequestNetwork/requestNetwork/issues/791)) ([b1a73c0](https://github.com/RequestNetwork/requestNetwork/commit/b1a73c051b792b7944e33be589031a7353793f1e))
|
|
56
|
+
- naming ([#750](https://github.com/RequestNetwork/requestNetwork/issues/750)) ([b59806d](https://github.com/RequestNetwork/requestNetwork/commit/b59806d00cf88714fae6bd1fd6201554ba8ef0d9))
|
|
57
|
+
- smart-contract batch xdeployment ([#850](https://github.com/RequestNetwork/requestNetwork/issues/850)) ([0893859](https://github.com/RequestNetwork/requestNetwork/commit/0893859bdfcd2d311de7bb21f06ab5289958949b))
|
|
58
|
+
- swap to conversion ([#826](https://github.com/RequestNetwork/requestNetwork/issues/826)) ([cdb4b99](https://github.com/RequestNetwork/requestNetwork/commit/cdb4b999a059c86e5b9ff59d144fb7236060460a))
|
|
59
|
+
- tslib dependency in smart-contracts ([#721](https://github.com/RequestNetwork/requestNetwork/issues/721)) ([85091c3](https://github.com/RequestNetwork/requestNetwork/commit/85091c340f13bed37c1ddf7468e6659e8473c5e9))
|
|
60
|
+
- typescript lint for test files ([#778](https://github.com/RequestNetwork/requestNetwork/issues/778)) ([048e876](https://github.com/RequestNetwork/requestNetwork/commit/048e876a905516be0de8a31d446e4572eb74eccb))
|
|
61
|
+
- **contract:** ETH conversion native hashes per chain ([#743](https://github.com/RequestNetwork/requestNetwork/issues/743)) ([005e4b1](https://github.com/RequestNetwork/requestNetwork/commit/005e4b1a9a983fc16d469b39c5e967494918936e))
|
|
62
|
+
- this undefined for fee-proxy-contract ([#510](https://github.com/RequestNetwork/requestNetwork/issues/510)) ([67898bb](https://github.com/RequestNetwork/requestNetwork/commit/67898bb0136a03a9107b0bc41d79cfc5acd2b139))
|
|
63
|
+
- upgrade ethers to 5.2.0 ([#532](https://github.com/RequestNetwork/requestNetwork/issues/532)) ([6c7cf35](https://github.com/RequestNetwork/requestNetwork/commit/6c7cf350a04e280b77ce6fd758b6f065f28fd1cc))
|
|
64
|
+
- yarn hardhat clean with broken dependencies ([#547](https://github.com/RequestNetwork/requestNetwork/issues/547)) ([edebec6](https://github.com/RequestNetwork/requestNetwork/commit/edebec6cc05a6c0a2b7d05b487a835586c85fd56))
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
- **ronin:** Ethereum Fee Proxy ([#974](https://github.com/RequestNetwork/requestNetwork/issues/974)) ([87ef11c](https://github.com/RequestNetwork/requestNetwork/commit/87ef11c0c5464534b3aea1b6f18e12a7489012c5))
|
|
69
|
+
- ronin ([#971](https://github.com/RequestNetwork/requestNetwork/issues/971)) ([8d5c91c](https://github.com/RequestNetwork/requestNetwork/commit/8d5c91cb1b2f13c2e1e80286c46bc98ef17964d3))
|
|
70
|
+
- **payment-processor:** batch conversion - erc20 ([#903](https://github.com/RequestNetwork/requestNetwork/issues/903)) ([715bfd6](https://github.com/RequestNetwork/requestNetwork/commit/715bfd605fa002c47b9769493727a98fd5413cd3)), closes [#880](https://github.com/RequestNetwork/requestNetwork/issues/880) [#878](https://github.com/RequestNetwork/requestNetwork/issues/878) [#873](https://github.com/RequestNetwork/requestNetwork/issues/873) [#884](https://github.com/RequestNetwork/requestNetwork/issues/884) [#888](https://github.com/RequestNetwork/requestNetwork/issues/888) [#878](https://github.com/RequestNetwork/requestNetwork/issues/878) [#873](https://github.com/RequestNetwork/requestNetwork/issues/873) [#884](https://github.com/RequestNetwork/requestNetwork/issues/884) [#888](https://github.com/RequestNetwork/requestNetwork/issues/888) [#890](https://github.com/RequestNetwork/requestNetwork/issues/890) [#886](https://github.com/RequestNetwork/requestNetwork/issues/886) [#892](https://github.com/RequestNetwork/requestNetwork/issues/892) [#893](https://github.com/RequestNetwork/requestNetwork/issues/893) [#895](https://github.com/RequestNetwork/requestNetwork/issues/895)
|
|
71
|
+
- **smart-contracts:** batch conversion ([#877](https://github.com/RequestNetwork/requestNetwork/issues/877)) ([2000058](https://github.com/RequestNetwork/requestNetwork/commit/20000587318107e97742688f69ba561868e39f8f))
|
|
72
|
+
- Add payment-processor for any to erc20 payment network ([#433](https://github.com/RequestNetwork/requestNetwork/issues/433)) ([7134310](https://github.com/RequestNetwork/requestNetwork/commit/7134310828f9440bac33f75719c7937872243ab6))
|
|
73
|
+
- add smartcontract to swap before payment with any to erc20 conversion ([#472](https://github.com/RequestNetwork/requestNetwork/issues/472)) ([a60f0b6](https://github.com/RequestNetwork/requestNetwork/commit/a60f0b6255e976808348ec62d0c2f0d0b3ff9617))
|
|
74
|
+
- adding BSC support ([#594](https://github.com/RequestNetwork/requestNetwork/issues/594)) ([0a923a2](https://github.com/RequestNetwork/requestNetwork/commit/0a923a2d7403fa7a280ff8f74fd9f998d56cee23))
|
|
75
|
+
- arbitrum-one deployment ([#754](https://github.com/RequestNetwork/requestNetwork/issues/754)) ([942a134](https://github.com/RequestNetwork/requestNetwork/commit/942a134fb5e7c95f6b96f57c5c16bd59d86b9ec8))
|
|
76
|
+
- arbitrum-testnet-update ([#728](https://github.com/RequestNetwork/requestNetwork/issues/728)) ([803159e](https://github.com/RequestNetwork/requestNetwork/commit/803159e30f9ea7c3a97e5f808701013b5639735e))
|
|
77
|
+
- bsc payments except swap ([#619](https://github.com/RequestNetwork/requestNetwork/issues/619)) ([cd8493e](https://github.com/RequestNetwork/requestNetwork/commit/cd8493e8c9d218f9c16d8b8b9020059ba669294b))
|
|
78
|
+
- create2 deployer ([#806](https://github.com/RequestNetwork/requestNetwork/issues/806)) ([453f5b5](https://github.com/RequestNetwork/requestNetwork/commit/453f5b5ec74cdd216fd6b872e3cf105113447dde))
|
|
79
|
+
- Currency Manager ([#571](https://github.com/RequestNetwork/requestNetwork/issues/571)) ([3a68ad3](https://github.com/RequestNetwork/requestNetwork/commit/3a68ad31fc049e13f0f6dac4759b08c06b33416b))
|
|
80
|
+
- deployment for arbitrum testnet ([#734](https://github.com/RequestNetwork/requestNetwork/issues/734)) ([34c9c87](https://github.com/RequestNetwork/requestNetwork/commit/34c9c8710154a4dd824f6dc7f04ca91f9d47ea4b))
|
|
81
|
+
- deployment for mainnet up to EthConversionProxy ([#698](https://github.com/RequestNetwork/requestNetwork/issues/698)) ([5fbc0b4](https://github.com/RequestNetwork/requestNetwork/commit/5fbc0b411e4de248d66f91eadae4d6bb109fef18))
|
|
82
|
+
- deployment information for Avalanche ([#795](https://github.com/RequestNetwork/requestNetwork/issues/795)) ([80b4a7c](https://github.com/RequestNetwork/requestNetwork/commit/80b4a7cb9e78f990d32c5c9461841e1141f1e89f))
|
|
83
|
+
- deployments on bsc aggregator ([#815](https://github.com/RequestNetwork/requestNetwork/issues/815)) ([b38f14b](https://github.com/RequestNetwork/requestNetwork/commit/b38f14b6c78e836b5c91d7370ce17cc33181b42b))
|
|
84
|
+
- Erc20 escrow payment processor (complete w/tests). ([#693](https://github.com/RequestNetwork/requestNetwork/issues/693)) ([328debd](https://github.com/RequestNetwork/requestNetwork/commit/328debd11e6035db117b17af1dd1c0b0db531178))
|
|
85
|
+
- ERC20 Fee Proxy on Celo and Fuse ([#518](https://github.com/RequestNetwork/requestNetwork/issues/518)) ([8b759c3](https://github.com/RequestNetwork/requestNetwork/commit/8b759c3e2e264fe3887f29edf1ab162c4d49be54))
|
|
86
|
+
- ERC20 Fee Proxy on Matic ([#495](https://github.com/RequestNetwork/requestNetwork/issues/495)) ([ac003d5](https://github.com/RequestNetwork/requestNetwork/commit/ac003d538715c18dc158ccc84249da10dc9a984f))
|
|
87
|
+
- ERC20FeeProxy contract deployment on Celo ([#520](https://github.com/RequestNetwork/requestNetwork/issues/520)) ([6c5b5c4](https://github.com/RequestNetwork/requestNetwork/commit/6c5b5c4a175a1ab5b8a8450111e1224d7b113f4b))
|
|
88
|
+
- ether to smart wallet payment ([#780](https://github.com/RequestNetwork/requestNetwork/issues/780)) ([ee3436e](https://github.com/RequestNetwork/requestNetwork/commit/ee3436ef2de923e6b4f4686a63099ecd875338c3))
|
|
89
|
+
- ethereum fee proxy smart contract ([#583](https://github.com/RequestNetwork/requestNetwork/issues/583)) ([99eb560](https://github.com/RequestNetwork/requestNetwork/commit/99eb560a231370e09fee55b72221914fa2e31591))
|
|
90
|
+
- flexible escrow contract ([#825](https://github.com/RequestNetwork/requestNetwork/issues/825)) ([c80b48f](https://github.com/RequestNetwork/requestNetwork/commit/c80b48fcbc99605b2054a352feb21dc028d0c604))
|
|
91
|
+
- flexible escrow contract ([#831](https://github.com/RequestNetwork/requestNetwork/issues/831)) ([6326dd6](https://github.com/RequestNetwork/requestNetwork/commit/6326dd61d1724cf6811b21fffa8e429ab52964be))
|
|
92
|
+
- goerli payment ([#892](https://github.com/RequestNetwork/requestNetwork/issues/892)) ([2495d00](https://github.com/RequestNetwork/requestNetwork/commit/2495d00ba7edd32b5aeba4bca3d555e910e00941))
|
|
93
|
+
- **artifacts:** ETHConversionProxy v2 on Fantom ([#745](https://github.com/RequestNetwork/requestNetwork/issues/745)) ([f4ad4f0](https://github.com/RequestNetwork/requestNetwork/commit/f4ad4f0d7e1a2b8b4c8d617135eccad66cd3bee1))
|
|
94
|
+
- **artifacts:** ETHConversionProxy v2 on Rinkeby ([#744](https://github.com/RequestNetwork/requestNetwork/issues/744)) ([1a2d73c](https://github.com/RequestNetwork/requestNetwork/commit/1a2d73ce18a401d4a27fd5d571ef5239a953a7dd))
|
|
95
|
+
- **smart-contracts:** batch smart contract no delegatecall ([#830](https://github.com/RequestNetwork/requestNetwork/issues/830)) ([3cfa885](https://github.com/RequestNetwork/requestNetwork/commit/3cfa885efdcaf8f04888f7f6067409ee978cb585))
|
|
96
|
+
- ethereum fee proxy with transfer exact eth amount ([#591](https://github.com/RequestNetwork/requestNetwork/issues/591)) ([eb08b85](https://github.com/RequestNetwork/requestNetwork/commit/eb08b857dd80e345c8799190fa1211fe0560a5e2))
|
|
97
|
+
- Fantom deployments ([#654](https://github.com/RequestNetwork/requestNetwork/issues/654)) ([06e92b4](https://github.com/RequestNetwork/requestNetwork/commit/06e92b459c8822ea20989068bcd9212f48171db3))
|
|
98
|
+
- get all addresses for an artifact ([#554](https://github.com/RequestNetwork/requestNetwork/issues/554)) ([ff96a1e](https://github.com/RequestNetwork/requestNetwork/commit/ff96a1ef60d18adfc077a8c19ee7b2181c14ab4c))
|
|
99
|
+
- mainnet conversion contract and aggregators ([#477](https://github.com/RequestNetwork/requestNetwork/issues/477)) ([d5ddd6a](https://github.com/RequestNetwork/requestNetwork/commit/d5ddd6ae5d394801de7d0febca9e3f99b3d1cee5))
|
|
100
|
+
- matic deployments Proxies and Conversion ([#549](https://github.com/RequestNetwork/requestNetwork/issues/549)) ([332973f](https://github.com/RequestNetwork/requestNetwork/commit/332973fbc84153c0ef45bd8df2131cba40a7e724))
|
|
101
|
+
- MATIC deployments up to EthConversionProxy ([#658](https://github.com/RequestNetwork/requestNetwork/issues/658)) ([e749605](https://github.com/RequestNetwork/requestNetwork/commit/e74960575bac0fd3818c182f4b8a7650b6408c6a))
|
|
102
|
+
- payment detection for ethereum fee proxy ([#585](https://github.com/RequestNetwork/requestNetwork/issues/585)) ([c78803f](https://github.com/RequestNetwork/requestNetwork/commit/c78803fb1333917b843db935df0114a50e294f5f))
|
|
103
|
+
- Payment detection for the any to erc20 payment network ([#419](https://github.com/RequestNetwork/requestNetwork/issues/419)) ([6f7338f](https://github.com/RequestNetwork/requestNetwork/commit/6f7338f42ddf793a733a31b434d6116beebefdf6))
|
|
104
|
+
- Payment network any-to-eth in the smartcontracts ([#602](https://github.com/RequestNetwork/requestNetwork/issues/602)) ([e712e52](https://github.com/RequestNetwork/requestNetwork/commit/e712e526d3d426f7388ea56f4924c17ac9c8b638))
|
|
105
|
+
- Payment network any-to-eth rinkeby deployment ([#627](https://github.com/RequestNetwork/requestNetwork/issues/627)) ([1805446](https://github.com/RequestNetwork/requestNetwork/commit/1805446396af9e486d3d8d5533a95dc16ea3c915))
|
|
106
|
+
- pn to smart-contract version mapping ([#649](https://github.com/RequestNetwork/requestNetwork/issues/649)) ([d45ab85](https://github.com/RequestNetwork/requestNetwork/commit/d45ab85c2c47b8d7325fef78965ad94272250598))
|
|
107
|
+
- standard deployments on celo ([#690](https://github.com/RequestNetwork/requestNetwork/issues/690)) ([f224545](https://github.com/RequestNetwork/requestNetwork/commit/f224545a3dc723230e404fdb13a14da7f63001ed))
|
|
108
|
+
- start SF payments processing ([#821](https://github.com/RequestNetwork/requestNetwork/issues/821)) ([53e5879](https://github.com/RequestNetwork/requestNetwork/commit/53e587916e336057935c3d54655de0dc539a59a3))
|
|
109
|
+
- support submitter and storage deployed on xDai ([#459](https://github.com/RequestNetwork/requestNetwork/issues/459)) ([dde976d](https://github.com/RequestNetwork/requestNetwork/commit/dde976da214420f732b439257fc2e82d1260a3ee))
|
|
110
|
+
- xdai artifacts for auto deployments ([#596](https://github.com/RequestNetwork/requestNetwork/issues/596)) ([5491d38](https://github.com/RequestNetwork/requestNetwork/commit/5491d38ce4b0938c4f2ea71640bf903fa8c1ceaa))
|
|
111
|
+
|
|
112
|
+
# 0.34.0 (2021-03-03)
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
- payment network any to erc20 smartcontracts ([#408](https://github.com/RequestNetwork/requestNetwork/issues/408)) ([a2f30a8](https://github.com/RequestNetwork/requestNetwork/commit/a2f30a84689eaea0994e72944c417718c7aad20e))
|
|
117
|
+
|
|
6
118
|
# [0.29.0](https://github.com/RequestNetwork/requestNetwork/compare/@requestnetwork/smart-contracts@0.21.0...@requestnetwork/smart-contracts@0.29.0) (2022-11-04)
|
|
7
119
|
|
|
8
120
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminTasks.d.ts","sourceRoot":"","sources":["../../../scripts-create2/contract-setup/adminTasks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtD,OAAO,EAAE,iCAAi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AC1B,GAAG,iBACE,MAAM,cACT,MAAM,eACL,SAAS,KACrB,QAAQ,IAAI,CAgBd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,iBAClB,MAAM,YACV,GAAG,mBACI,MAAM,eACV,SAAS,KACrB,QAAQ,IAAI,CASd,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,YACrB,MAAM,OACV,iCAAiC;YAE9B,MAAM;iBACD;QACX,YAAY,CAAC,EAAE,SAAS,CAAC;QACzB,oBAAoB,CAAC,EAAE,SAAS,CAAC;KAClC;EAqBF,CAAC"}
|
|
@@ -8,6 +8,7 @@ const artifacts = require("../../src/lib");
|
|
|
8
8
|
const ethers_1 = require("ethers");
|
|
9
9
|
const utils_2 = require("ethers/lib/utils");
|
|
10
10
|
const utils_3 = require("@requestnetwork/utils");
|
|
11
|
+
const fee_suggestion_1 = require("../fee-suggestion");
|
|
11
12
|
// Swap Fees: set to 5 for 0.5%
|
|
12
13
|
const REQUEST_SWAP_FEES = 0;
|
|
13
14
|
// Batch Fees: set to 30 for 0.3%
|
|
@@ -202,7 +203,10 @@ const getSignerAndGasFees = (network, hre) => tslib_1.__awaiter(void 0, void 0,
|
|
|
202
203
|
}
|
|
203
204
|
const signer = new hre.ethers.Wallet(hre.config.xdeploy.signer).connect(provider);
|
|
204
205
|
const txOverrides = (yield (0, utils_3.isEip1559Supported)(provider))
|
|
205
|
-
? yield (0, utils_3.
|
|
206
|
+
? yield (0, utils_3.normalizeGasFees)({
|
|
207
|
+
logger: console,
|
|
208
|
+
suggestFees: (0, fee_suggestion_1.suggestFeesEip1559)(provider),
|
|
209
|
+
})
|
|
206
210
|
: {};
|
|
207
211
|
return {
|
|
208
212
|
signer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminTasks.js","sourceRoot":"","sources":["../../../scripts-create2/contract-setup/adminTasks.ts"],"names":[],"mappings":";;;;AAAA,uCAAwD;AACxD,+CAA+D;AAC/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W,GAAG,CAAC,MAAM,IAAA,0BAAkB,EAAC,QAAQ,CAAC,CAAC;QACtD,CAAC,CAAC,MAAM,IAAA,wBAAgB,EAAC;YACrB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,IAAA,mCAAkB,EAAC,QAAQ,CAAC;SAC1C,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;QACL,MAAM;QACN,WAAW;KACZ,CAAC;AACJ,CAAC,CAAA,CAAC;AA7BW,QAAA,mBAAmB,uBA6B9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fee-suggestion.d.ts","sourceRoot":"","sources":["../../scripts-create2/fee-suggestion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,eAAO,MAAM,kBAAkB,aAAc,GAAG,WAC7B,QAAQ,SAAS,aAAa,CAOhD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.suggestFeesEip1559 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fee_suggestions_1 = require("@rainbow-me/fee-suggestions");
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
7
|
+
const suggestFeesEip1559 = (provider) => {
|
|
8
|
+
return () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
|
+
const { baseFeeSuggestion, maxPriorityFeeSuggestions } = yield (0, fee_suggestions_1.suggestFees)(provider);
|
|
10
|
+
return {
|
|
11
|
+
baseFee: baseFeeSuggestion,
|
|
12
|
+
maxPriorityFee: maxPriorityFeeSuggestions.urgent,
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.suggestFeesEip1559 = suggestFeesEip1559;
|
|
17
|
+
//# sourceMappingURL=fee-suggestion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fee-suggestion.js","sourceRoot":"","sources":["../../scripts-create2/fee-suggestion.ts"],"names":[],"mappings":";;;;AAAA,iEAA0D;AAG1D,iHAAiH;AAC1G,MAAM,kBAAkB,GAAG,CAAC,QAAa,EAAE,EAAE;IAClD,OAAO,GAA0C,EAAE;QACjD,MAAM,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,GAAG,MAAM,IAAA,6BAAW,EAAC,QAAQ,CAAC,CAAC;QACrF,OAAO;YACL,OAAO,EAAE,iBAAiB;YAC1B,cAAc,EAAE,yBAAyB,CAAC,MAAM;SACjD,CAAC;IACJ,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xdeployer.d.ts","sourceRoot":"","sources":["../../scripts-create2/xdeployer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"xdeployer.d.ts","sourceRoot":"","sources":["../../scripts-create2/xdeployer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAalG,eAAO,MAAM,OAAO,qBACA,iBAAiB,OAC9B,iCAAiC,KACrC,QAAQ,MAAM,iBAAiB,CAAC,CAiGlC,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.xdeploy = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const lib_1 = require("../src/lib");
|
|
6
6
|
const utils_1 = require("@requestnetwork/utils");
|
|
7
|
+
const fee_suggestion_1 = require("./fee-suggestion");
|
|
7
8
|
const ZERO_ETH_INPUT = 0;
|
|
8
9
|
const xdeploy = (deploymentParams, hre) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
9
10
|
const { contract, constructorArgs } = deploymentParams;
|
|
@@ -51,7 +52,10 @@ const xdeploy = (deploymentParams, hre) => tslib_1.__awaiter(void 0, void 0, voi
|
|
|
51
52
|
let error = undefined;
|
|
52
53
|
let txOverrides = {};
|
|
53
54
|
if (yield (0, utils_1.isEip1559Supported)(provider, console)) {
|
|
54
|
-
txOverrides = yield (0, utils_1.
|
|
55
|
+
txOverrides = yield (0, utils_1.normalizeGasFees)({
|
|
56
|
+
logger: console,
|
|
57
|
+
suggestFees: (0, fee_suggestion_1.suggestFeesEip1559)(provider),
|
|
58
|
+
});
|
|
55
59
|
}
|
|
56
60
|
txOverrides.gasLimit = hre.config.xdeploy.gasLimit;
|
|
57
61
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xdeployer.js","sourceRoot":"","sources":["../../scripts-create2/xdeployer.ts"],"names":[],"mappings":";;;;AACA,oCAA6C;AAE7C,iDAK+B;
|
|
1
|
+
{"version":3,"file":"xdeployer.js","sourceRoot":"","sources":["../../scripts-create2/xdeployer.ts"],"names":[],"mappings":";;;;AACA,oCAA6C;AAE7C,iDAK+B;AAC/B,qDAAsD;AAEtD,MAAM,cAAc,GAAG,CAAC,CAAC;AAElB,MAAM,OAAO,GAAG,CACrB,gBAAmC,EACnC,GAAsC,EACH,EAAE;IACrC,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,gBAAgB,CAAC;IACvD,OAAO,CAAC,GAAG,CACT,iBAAiB,QAAQ,yCACvB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OACnD,EAAE,CACH,CAAC;IAEF,MAAM,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAEzB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,2BAA2B,C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