Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/sdk 1.1.0 #169

Open
wants to merge 104 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
57e707c
prepare voucher on local stack
luisccastillo May 23, 2024
4e4c46e
set specifc foundry version
luisccastillo May 24, 2024
fb1301c
upgrade ethers
luisccastillo May 24, 2024
90820d6
remove dependency on bellecour fork
luisccastillo May 26, 2024
5d474d5
prepare test env same file across repositories
luisccastillo May 26, 2024
e31398f
refactor iexec config test
abbesBenayache May 28, 2024
d75bfcf
refactor tests web3mail.sendEmail
abbesBenayache May 29, 2024
06e662a
use 127.0.0.1 instead of localhost for mac compatibility
PierreJeanjacquot Jun 20, 2024
1f61e51
use next voucher-deployer with new roles
PierreJeanjacquot Jun 20, 2024
365046d
update voucher roles
PierreJeanjacquot Jun 20, 2024
58461a5
Merge pull request #130 from iExecBlockchainComputing/update-voucher-…
PierreJeanjacquot Jun 20, 2024
84c16ff
Revert "use next voucher-deployer with new roles"
PierreJeanjacquot Jun 20, 2024
208ce97
Merge remote-tracking branch 'origin/develop' into voucher
Le-Caignec Jul 10, 2024
e21588a
fix drone stack tests
Le-Caignec Jul 10, 2024
69235fd
update iexec to 8.9.1-nightly-voucher
abbesBenayache Jul 19, 2024
9b65812
refactor booleanSchema validator
abbesBenayache Jul 19, 2024
dc93e29
refactor: set VOUCHER_HUB_ADDRESS to 'TO_BE_DEPLOYED'
abbesBenayache Jul 19, 2024
2cf3ea8
add useVoucher options to sendEmail func
abbesBenayache Jul 19, 2024
9384b46
update dataProtector version to use voucher-nightly
abbesBenayache Jul 23, 2024
ec6b30b
Merge remote-tracking branch 'origin/develop' into voucher
Le-Caignec Jul 23, 2024
52c4c35
set default value of useVoucher in sendEmail.ts
abbesBenayache Jul 23, 2024
0e5932f
fix @iexec/dataprotector version to avoid pulling recent minor updates
abbesBenayache Jul 23, 2024
c334e07
switch from IExecDataProtector to IExecDataProtectorCore
abbesBenayache Jul 23, 2024
d7dd701
[e2e tests] refactor and add coverage for useVoucher in sendEmail func
abbesBenayache Jul 23, 2024
418fe79
Merge branch 'voucher' into feature/add-use-voucher-sendEmail
abbesBenayache Jul 23, 2024
5011b7b
[drone ci] add voucher suffix to package version for voucher branch
abbesBenayache Jul 24, 2024
76d00e2
Merge pull request #144 from iExecBlockchainComputing/release/voucher…
abbesBenayache Jul 25, 2024
1355277
Merge branch 'voucher' into feature/add-use-voucher-sendEmail
abbesBenayache Jul 25, 2024
86d69bc
Merge pull request #143 from iExecBlockchainComputing/feature/add-use…
abbesBenayache Jul 25, 2024
abdb889
update deps
PierreJeanjacquot Jul 26, 2024
ff72528
add AbstractProvider and AbstractSigner support in constructor
PierreJeanjacquot Jul 26, 2024
277a560
update changelog
PierreJeanjacquot Jul 26, 2024
eef3d8d
fix possible race condition in subgraph indexation
PierreJeanjacquot Jul 26, 2024
dbb3837
Merge pull request #145 from iExecBlockchainComputing/feature/upgrade…
PierreJeanjacquot Jul 29, 2024
aeab167
Merge branch 'refs/heads/main' into develop
cedric25 Aug 2, 2024
ad4385d
Bump kubo-rpc-client v3 to v4 (#152)
cedric25 Aug 8, 2024
314c8e2
Merge branch 'refs/heads/main' into develop
cedric25 Aug 9, 2024
6bade3f
Merge remote-tracking branch 'origin/develop' into voucher
Le-Caignec Aug 19, 2024
5a9e38e
try to fix e2e:tests after merging
Le-Caignec Aug 19, 2024
9e24006
fix bellecour-fork folder
Le-Caignec Aug 19, 2024
260c6f3
clean up tests
Le-Caignec Aug 21, 2024
1a84443
fnd one flaky test (chainId not match)
Le-Caignec Aug 21, 2024
1da432a
fix drone ci
Le-Caignec Aug 21, 2024
6ada9bd
remove useless pice of code
Le-Caignec Aug 21, 2024
d3b9b03
fix web3mail initialization in sendEmail test
PierreJeanjacquot Aug 26, 2024
c0c79d8
use predefined timeout for fetchUserContacts
PierreJeanjacquot Aug 26, 2024
ceb8af7
Don't wrap ValidationError into a WorkflowError (#148)
cedric25 Aug 26, 2024
edfe069
update iexec version
PierreJeanjacquot Aug 26, 2024
4c153ac
fix voucher nightly publication
PierreJeanjacquot Aug 27, 2024
cfdfd68
Merge pull request #157 from iExecBlockchainComputing/feature/improve…
PierreJeanjacquot Aug 27, 2024
98fc3a3
fix unknown step dependency
PierreJeanjacquot Aug 27, 2024
34354f3
Merge remote-tracking branch 'origin/develop' into voucher
PierreJeanjacquot Aug 27, 2024
e02b87f
fix sdk-nightly pipeline
PierreJeanjacquot Aug 27, 2024
1fe5be7
Merge remote-tracking branch 'origin/main' into develop
PierreJeanjacquot Oct 17, 2024
b2543db
Merge remote-tracking branch 'origin/develop' into voucher
PierreJeanjacquot Oct 17, 2024
69d6b84
remove dead code
Le-Caignec Oct 17, 2024
9925083
fix voucher nightly version selection regexp
PierreJeanjacquot Oct 17, 2024
a156aa1
fix units tests
Le-Caignec Oct 17, 2024
dce4d8c
improve script
Le-Caignec Oct 17, 2024
a738d0f
Merge branch 'voucher' into feature/remove-dead-code
abbesBenayache Oct 17, 2024
50035c3
Merge pull request #165 from iExecBlockchainComputing/fix/units-tests
Le-Caignec Oct 17, 2024
3ecfd8d
Merge branch 'voucher' into feature/remove-dead-code
Le-Caignec Oct 17, 2024
6e64ad1
have two drone job (PR + push)
Le-Caignec Oct 17, 2024
fc62b99
Merge pull request #164 from iExecBlockchainComputing/feature/remove-…
Le-Caignec Oct 18, 2024
07abdd8
improve sendEmail
Le-Caignec Oct 18, 2024
5cf7506
add one more unit tests
Le-Caignec Oct 18, 2024
6a5a656
Check if voucher balance can cover workerpool price
cedric25 Oct 18, 2024
a3d13ec
Temp fix VoucherInfo type
cedric25 Oct 18, 2024
cbdc6c9
If no voucher, showUserVoucher throws
cedric25 Oct 21, 2024
9fb45fa
Change WorkflowError to Error + fix some expected error message
cedric25 Oct 21, 2024
69d3c50
Re-throw showUserVoucher error
cedric25 Oct 21, 2024
a6e9ba0
Check if workerpool can be sponsored by voucher
cedric25 Oct 21, 2024
843e899
Throw error if not enough money, instead of returning null
cedric25 Oct 21, 2024
99482f1
Log errors in CI...
cedric25 Oct 21, 2024
70dd596
Fix unit tests with now a check on sponsored workerpools
cedric25 Oct 21, 2024
3e7954d
Try to add voucher subgraph to CI stack?
cedric25 Oct 21, 2024
8d57b38
Update src/web3mail/sendEmail.ts
Le-Caignec Oct 21, 2024
417d125
remove workflow error for just an error
Le-Caignec Oct 21, 2024
362bd15
fix test title
Le-Caignec Oct 21, 2024
e38bb9f
remove useless voucher creation test
PierreJeanjacquot Oct 21, 2024
10ab590
fix and refactor subgraphs deployment in test stack
PierreJeanjacquot Oct 21, 2024
18508fd
fix checkUserVoucher call
PierreJeanjacquot Oct 21, 2024
38a9ec6
bnToNumber
PierreJeanjacquot Oct 21, 2024
9dfc1b0
do not trigger CI on PR (image_pull_secrets not available in PR)
PierreJeanjacquot Oct 21, 2024
ed23eae
fix typo in service name
PierreJeanjacquot Oct 21, 2024
65498b1
Prefer to throw explicit error instead of retuning null
cedric25 Oct 21, 2024
0dbb7c9
Fix unit test now that error is thrown instead of returning null
cedric25 Oct 21, 2024
bdb56da
Merge pull request #166 from iExecBlockchainComputing/feature/fix-fet…
Le-Caignec Oct 22, 2024
49ee48f
update iexec
PierreJeanjacquot Oct 22, 2024
513e35e
deduce voucher sponsored amount from workerpoolMaxPrice
PierreJeanjacquot Oct 22, 2024
ed7aaa7
refactor sendEmail e2e tests
PierreJeanjacquot Oct 22, 2024
860f536
Merge remote-tracking branch 'origin/voucher' into feature/fix-sendem…
PierreJeanjacquot Oct 22, 2024
847f6bd
Merge pull request #167 from iExecBlockchainComputing/feature/fix-sen…
PierreJeanjacquot Oct 22, 2024
1344ef9
update iexec
PierreJeanjacquot Oct 22, 2024
f632308
fix nightly deprecation
PierreJeanjacquot Oct 22, 2024
91fde41
update changelog
PierreJeanjacquot Oct 22, 2024
dd39d48
Merge pull request #159 from iExecBlockchainComputing/voucher
PierreJeanjacquot Oct 23, 2024
f719ea2
remove voucher nightly pipeline
PierreJeanjacquot Oct 23, 2024
99bd926
use public voucher-subgraph-deployer image
PierreJeanjacquot Oct 23, 2024
aa5b1e2
move test in wrong describe
PierreJeanjacquot Oct 23, 2024
cbc3ef2
clean ignore files
PierreJeanjacquot Oct 23, 2024
ffa5aa6
bump sdk-v1.1.0
PierreJeanjacquot Oct 23, 2024
df24e69
refresh from main
PierreJeanjacquot Oct 23, 2024
c9b36de
refresh from develop
PierreJeanjacquot Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
861 changes: 160 additions & 701 deletions .drone.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
**/demo/
**/dist/
**/node_modules/
**/tests/dataprotector-subgraph
dataprotector-subgraph
dataprotector-subgraph
tests/scripts/*
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"plugin:jest/recommended"
],
"rules": {
"sonarjs/cognitive-complexity": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }]
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"sonarjs/cognitive-complexity": "warn",
"sonarjs/prefer-immediate-return": "off"
},
"overrides": [
{
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

# tests output
/coverage

# CI
.drone.yml


# sonar output
.scannerwork

#dist
**/dist/
**/dist/
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## [1.1.0]

## Added

- support for iExec voucher in `sendEmail()` via `useVoucher` option

### Changed

- Directly return yup `ValidationError` instead of wrapping it into a WorkflowError, for `fetchUserContacts` and `sendEmail`
- `sendEmail`: Changed returned error message from 'ProtectedData is not valid' to 'This protected data does not contain "email:string" in its schema.'

## [1.0.4] (2024-08-08)

### Added
Expand All @@ -15,9 +26,14 @@ All notable changes to this project will be documented in this file.

## [1.0.3]

### Added

- support for ethers `AbstractProvider` and `AbstractSigner` in constructor

### Changed

- remove unnecessary initialization of storage in `sendEmail`
- updated `iexec` and `ethers` dependencies

## [1.0.2]

Expand Down
Loading