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

Merge master to Stable Cadence feature branch #2593

Merged
merged 175 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 172 commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
156c60f
Add check(storagePath) function in AuthAccount
darkdrag00nv2 May 7, 2023
d10a5b6
Implement check function in the interpreter
darkdrag00nv2 May 7, 2023
acb5de7
Add test cases for check function
darkdrag00nv2 May 7, 2023
91cdc46
Add documentation for check function
darkdrag00nv2 May 8, 2023
1c7cc3d
Update check function to take T instead of &T
darkdrag00nv2 May 22, 2023
017b4bb
Add test case for invalid path
darkdrag00nv2 May 24, 2023
2757868
Use StringStorageMapKey in check implementation
darkdrag00nv2 May 26, 2023
7aeee6c
add rule to clean linter
turbolent May 26, 2023
06fa3ac
Introduce Word256 integer type
darkdrag00nv2 May 27, 2023
8b888e8
Return a text message instead of NaN if contract has no coverable sta…
May 29, 2023
c09c6d7
forbid golang.org/x/exp/maps.Keys/Values, because they have nondeterm…
turbolent May 29, 2023
a9e18c2
Merge pull request #2510 from darkdrag00nv2/word256
turbolent May 29, 2023
b24a708
Merge pull request #2492 from darkdrag00nv2/check_authaccount_564
turbolent May 29, 2023
0fb5f00
Add the Blockchain.logs function to the test framework
m-Peter May 25, 2023
d789087
Add the Blockchain.serviceAccount function to the test framework
m-Peter May 25, 2023
882fad7
Add the Blockchain.events & Blockchain.eventsOfType functions to the …
m-Peter May 25, 2023
6dc4fca
Add the Blockchain.reset function to the test framework
m-Peter May 26, 2023
acc49f3
Minor: Wrap long line for interface function definition
m-Peter May 25, 2023
44abe28
Replace String eventType with run-time Type
m-Peter May 30, 2023
4cb64ae
Merge pull request #2505 from Build-Squad/enrich-test-framework-inter…
turbolent May 30, 2023
3a5027f
remove unnecessary file
turbolent May 30, 2023
73ba636
Add tests for test framework blockchain
SupunS May 30, 2023
9eaea49
Merge pull request #2514 from onflow/supun/test-framework-tests
SupunS May 30, 2023
c124472
Support 2 new attachment types in CCF codec
fxamacker May 30, 2023
d80a1f1
improve export and encoding
turbolent May 30, 2023
118d56f
Merge pull request #2516 from onflow/fxamacker/support-AnyStructAttac…
turbolent May 31, 2023
3c20b75
Merge pull request #2512 from onflow/bastian/improve-linting
turbolent May 31, 2023
a9b2f77
explain why field types have to be checked "twice
turbolent May 31, 2023
09a044e
Merge pull request #2517 from onflow/bastian/fix-export-and-encoding
turbolent May 31, 2023
0c11062
v0.39.0
turbolent May 31, 2023
b4f0e6f
Support cyclic reference value in CCF codec
fxamacker May 31, 2023
09b9134
Merge pull request #2520 from onflow/release/v0.39.0
turbolent May 31, 2023
8cdcc3a
Merge pull request #2508 from onflow/bastian/clean-linter-rule
turbolent May 31, 2023
61e8447
Merge pull request #2521 from onflow/fxamacker/support-cyclic-referen…
turbolent May 31, 2023
1480784
v0.39.1
turbolent May 31, 2023
2081a60
Merge pull request #2522 from onflow/release/v0.39.1
turbolent May 31, 2023
c682060
Returning 100 for Persentage if no statements
Jun 2, 2023
1011fc8
remove unnecessary use of fmt.Sprintf
turbolent Jun 2, 2023
1044a9b
Merge pull request #2511 from Build-Squad/boriskozlov/IfNoStatementsI…
turbolent Jun 2, 2023
b382c1f
Make publicKey static and runtime types match
fxamacker Jun 4, 2023
d4331e6
Fix codeHash types to match (static and runtime)
fxamacker Jun 5, 2023
462b5a3
Use const-sized array static type to avoid conversion
fxamacker Jun 5, 2023
ee6e401
Add tests for []byte to Cadence array conversion
fxamacker Jun 5, 2023
73aa53b
Rename flow event types
fxamacker Jun 5, 2023
ea8230c
Merge pull request #2528 from onflow/fxamacker/fix-flow-event-publick…
turbolent Jun 5, 2023
f84c1d1
Merge pull request #2529 from onflow/fxamacker/fix-codehash-static-ty…
fxamacker Jun 5, 2023
8a46c3c
improve assertions: check code hash value's type is correct
turbolent Jun 5, 2023
8df4f14
Merge pull request #2532 from onflow/fxamacker/fix-codehash-static-ty…
turbolent Jun 5, 2023
39ce2f1
flowkit package does not depend on test anymore and got moved
turbolent Jun 6, 2023
e356502
add composite type handler
turbolent Jun 6, 2023
ce1a175
add support for loading flow.* event types
turbolent Jun 6, 2023
4fa3de4
Merge pull request #2533 from onflow/bastian/composite-type-handler
turbolent Jun 6, 2023
bf35953
v0.39.2
turbolent Jun 6, 2023
d4205c2
Merge pull request #2538 from onflow/release/v0.39.2
turbolent Jun 6, 2023
ccf0843
Merge pull request #2539 from onflow/bastian/update-update-config
turbolent Jun 6, 2023
d6d78b9
add function type to function wrapper host functions
turbolent Jun 7, 2023
82df8ed
lint is not dependent on flow-go or flow-kit anymore
turbolent Jun 7, 2023
b4a1552
add mutation-during-iteration prevention to dictionaries
dsainati1 Jun 5, 2023
ac623bb
add mutation-during-iteration prevention to arrays
dsainati1 Jun 5, 2023
dd6c006
error immediately at mutation
dsainati1 Jun 5, 2023
500aae0
remove unnecessary edits
dsainati1 Jun 5, 2023
7f0ee46
Update runtime/resource_duplicate_test.go
dsainati1 Jun 5, 2023
ac3d0c4
import missing package
dsainati1 Jun 5, 2023
9a926bd
also prevent mutation during foreachkey
dsainati1 Jun 5, 2023
865e9ea
refactor to reduce code reuse
dsainati1 Jun 5, 2023
49f1c70
centralize mutation detection in DictionaryValue.Iterate
turbolent Jun 5, 2023
9352481
fix array iteration not being considered
dsainati1 Jun 5, 2023
7351097
refactor validateMutation into single function
turbolent Jun 5, 2023
ac78e6b
refactor to withMutationPrevention to Interpreter method,
turbolent Jun 5, 2023
bc74756
Perform withMutationPrevention in arrays, only is the array is a reso…
SupunS Jun 5, 2023
a7c90c9
only prevent mutation when iterating over resource-kinded dictionaries
turbolent Jun 7, 2023
e0c01e7
Merge pull request #2543 from onflow/bastian/fix-update-tool-config
turbolent Jun 7, 2023
58046f9
prevent reentrant resource destruction
turbolent Jun 5, 2023
60b723e
add interpreter test cases for reentrant resource destruction prevention
turbolent Jun 5, 2023
9f65ce3
simplify test
turbolent Jun 5, 2023
7fd128c
Merge pull request #2542 from onflow/bastian/fix-function-wrapper-type
turbolent Jun 7, 2023
6229309
Merge pull request #2544 from onflow/bastian/port-cadence-internal-119
turbolent Jun 7, 2023
4eb4b53
lint
turbolent Jun 7, 2023
51defd6
Merge branch 'master' into bastian/port-cadence-internal-120
turbolent Jun 7, 2023
1f7bf83
Merge pull request #2545 from onflow/bastian/port-cadence-internal-120
turbolent Jun 7, 2023
aeafe57
v0.39.3
turbolent Jun 7, 2023
b8e41d6
Merge pull request #2546 from onflow/release/v0.39.3
turbolent Jun 7, 2023
8e0b841
pass interpreter when iterating over arrays
turbolent Jun 7, 2023
f469f8c
Merge pull request #2547 from onflow/bastian/fix-array-iteration-in-test
turbolent Jun 7, 2023
ec1db59
v0.39.4
turbolent Jun 7, 2023
37e11a4
Merge pull request #2548 from onflow/release/v0.39.4
turbolent Jun 7, 2023
1d2bb99
allow diagnostics to provide suggested fixes in the form of one or mo…
turbolent Jun 8, 2023
ec615a6
bring back type IDs, they are still expected by older decoders
turbolent Jun 8, 2023
d139e71
adjust tests
turbolent Jun 8, 2023
44d48c8
Merge pull request #2551 from onflow/bastian/re-add-typeids
turbolent Jun 8, 2023
463df34
v0.39.5
turbolent Jun 8, 2023
241d259
Merge pull request #2552 from onflow/release/v0.39.5
turbolent Jun 8, 2023
0fba197
add tests to test adding contract init as entry points, and be treate…
bthaile Jun 8, 2023
5d7e245
linting
bthaile Jun 8, 2023
5a49037
Merge pull request #2553 from onflow/add-contract-init-entry-point
turbolent Jun 8, 2023
b31bb4c
fetch event fields by name
rrrkren Jun 9, 2023
ecc3279
Merge pull request #2550 from onflow/bastian/add-diagnostic-suggested…
turbolent Jun 9, 2023
e48e62e
make type parameters optional, for backward compatibility
turbolent Jun 9, 2023
b6ea979
add support for decoding function values
turbolent Jun 9, 2023
0544631
remove unnused code
turbolent Jun 9, 2023
ebb0d74
hasfields interface
rrrkren Jun 9, 2023
7364f96
consistent formatting
rrrkren Jun 9, 2023
72c660a
Merge pull request #2555 from onflow/bastian/function-decoding
turbolent Jun 9, 2023
1068898
fix race conditions
turbolent Jun 9, 2023
9ee52d9
Merge pull request #2554 from rrrkren/eric/eventfieldmapping
turbolent Jun 9, 2023
8b94391
Merge pull request #2556 from onflow/bastian/fix-racy-test
turbolent Jun 9, 2023
5601bef
v0.39.6
turbolent Jun 9, 2023
f2aa9b5
Merge pull request #2557 from onflow/release/v0.39.6
turbolent Jun 9, 2023
0c8bc0a
Add support for CCF encoding/decoding modes and options
fxamacker Jun 10, 2023
fd97905
Replace "if" with "switch" in CCF codec
fxamacker Jun 11, 2023
f8e2895
Add test for unsorted CCF event
fxamacker Jun 11, 2023
1c7cab8
Add tests for CCF codec
fxamacker Jun 11, 2023
84c9db9
Panic with UnexpectedError with invalid options in CCF
fxamacker Jun 11, 2023
a6e40bd
Merge pull request #2559 from onflow/fxamacker/add-enc-dec-options-to…
fxamacker Jun 12, 2023
d4b15b3
v0.39.7
turbolent Jun 12, 2023
c732d55
prevent function invocation on destroyed resource
turbolent Jun 12, 2023
b531fb2
Merge pull request #2561 from onflow/bastian/port-internal-123
turbolent Jun 12, 2023
26f342e
Merge pull request #2560 from onflow/release/v0.39.7
turbolent Jun 12, 2023
068a1b3
v0.39.8
turbolent Jun 12, 2023
9d5f0db
Merge branch 'master' into release/v0.39.8
turbolent Jun 12, 2023
8448229
Merge pull request #2562 from onflow/release/v0.39.8
turbolent Jun 12, 2023
0155faa
decode fields into struct
rrrkren Jun 12, 2023
152ccce
unhappy path tests
rrrkren Jun 12, 2023
0a4254c
nolint unused on private field
rrrkren Jun 12, 2023
1c6994f
Merge pull request #2565 from rrrkren/eric/decodefieldstruct
turbolent Jun 12, 2023
e77dffe
Introduce the Test.assertEqual function
m-Peter Jun 13, 2023
60e652e
decode pointers from optional
rrrkren Jun 13, 2023
9d7964f
array and anystruct
rrrkren Jun 14, 2023
2922b1f
clean up tests
rrrkren Jun 14, 2023
b7f0765
Add tests for resource tracking for bound function invocations
SupunS Jun 13, 2023
91a3ee1
improve test coverage
rrrkren Jun 14, 2023
2c003da
err case messages
rrrkren Jun 14, 2023
2f87633
parallel err case tests
rrrkren Jun 14, 2023
e75bea3
Merge remote-tracking branch 'origin' into eric/decodeFieldStructOpti…
rrrkren Jun 14, 2023
e972b85
merge master
rrrkren Jun 14, 2023
1a0bd1a
remove untracking
turbolent Jun 13, 2023
e4d7a59
Merge pull request #2578 from onflow/supun/port-2568
turbolent Jun 15, 2023
d93d45c
Merge remote-tracking branch 'origin' into eric/decodeFieldStructOpti…
rrrkren Jun 15, 2023
bfe4603
array anystruct
rrrkren Jun 15, 2023
728de64
Merge pull request #2571 from Build-Squad/add-the-assert-equal-test-f…
turbolent Jun 16, 2023
52e21a5
Add the CoverageReport.MarshalLCOV method to generate LCOV format
m-Peter Jun 15, 2023
117d51e
Use Fprintf to generate LCOV format and add a link with description t…
m-Peter Jun 16, 2023
f5f4602
Fix size allocation of lines slice
m-Peter Jun 16, 2023
896f406
Sort locations before generating LCOV format from CoverageReport
m-Peter Jun 16, 2023
36c9de7
Merge pull request #2577 from Build-Squad/code-coverage-lcov-format
turbolent Jun 16, 2023
07cf092
Merge pull request #2572 from rrrkren/eric/decodeFieldStructOptional
turbolent Jun 16, 2023
cc34c45
addd meeting notes for May 4th, 2023 and June 15th, 2023
turbolent Jun 16, 2023
050c03c
use go mod replace to allow PRs from forks
turbolent Jun 16, 2023
ed43518
Merge pull request #2580 from onflow/bastian/improve-downstream-depen…
turbolent Jun 16, 2023
fdee840
Merge pull request #2579 from onflow/bastian/meting-notes-spring-2023
turbolent Jun 16, 2023
78107dd
v0.39.10
turbolent Jun 17, 2023
a20511e
Merge pull request #2582 from onflow/release/v0.39.10
turbolent Jun 17, 2023
6ef2b23
Fix panic in DecodeFields on bad inputs
fxamacker Jun 20, 2023
79fbfda
Merge pull request #2584 from onflow/fxamacker/fix-DecodeFields-panic…
turbolent Jun 20, 2023
18e4921
v0.39.11
turbolent Jun 20, 2023
25d55be
Merge pull request #2585 from onflow/release/v0.39.11
turbolent Jun 21, 2023
a0d950c
Add reproducer
SupunS Jun 14, 2023
5aa402e
Add a minimal reproducer
SupunS Jun 14, 2023
20b1db3
Update test to assert the logs
SupunS Jun 14, 2023
e9f8239
prevent resource re-destruction by extending re-entrancy tracking
turbolent Jun 14, 2023
f18028a
fix comment
turbolent Jun 14, 2023
40e2bd1
add comments
turbolent Jun 14, 2023
e2d501a
clean up logs
turbolent Jun 14, 2023
ceccc34
track destroyed resources globally
turbolent Jun 14, 2023
9d66afc
remove outdated comment
turbolent Jun 14, 2023
b75fa95
Simplify interpreter test
SupunS Jun 14, 2023
821f731
Merge pull request #2590 from onflow/bastian/port-internal-126
turbolent Jun 21, 2023
ad05a0c
v0.39.12
turbolent Jun 21, 2023
1311ef1
Merge pull request #2591 from onflow/release/v0.39.12
turbolent Jun 21, 2023
fadb1f6
Merge branch 'master' into bastian/sync-stable-cadence-2
turbolent Jun 21, 2023
d0bffa8
adjust tests
turbolent Jun 21, 2023
e17ca20
bring back test
turbolent Jun 21, 2023
96ebaf5
Merge branch 'feature/stable-cadence' into bastian/sync-stable-cadence-2
turbolent Jun 22, 2023
5bded4b
Merge branch 'feature/stable-cadence' into bastian/sync-stable-cadence-2
turbolent Jun 22, 2023
dda2353
adjust tests
turbolent Jun 22, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: sh crypto_setup.sh

- name: Update Cadence
run: go get github.com/onflow/cadence@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}

- name: Tidy up
run: go mod tidy
Expand All @@ -65,7 +65,7 @@ jobs:
cache: true

- name: Update Cadence
run: go get github.com/onflow/cadence@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}

- name: Tidy up
run: go mod tidy
Expand Down
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ linters:
- goimports
- unconvert
- nilerr
- forbidigo
- bidichk
- asciicheck

issues:
exclude-rules:
Expand All @@ -38,6 +41,10 @@ linters-settings:
- exitAfterDefer
goimports:
local-prefixes: github.com/onflow/cadence
forbidigo:
forbid:
- '^maps.Keys.*(# has indeterminate order\.)?$'
- '^maps.Values.*(# has indeterminate order\.)?$'
custom:
maprange:
path: tools/maprange/maprange.so
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ tools/constructorcheck/constructorcheck.so:
tools/golangci-lint/golangci-lint:
(cd tools/golangci-lint && $(MAKE))

.PHONY: clean-linter
clean-linter:
rm -f tools/golangci-lint/golangci-lint \
tools/maprange/maprange.so \
tools/unkeyed/unkeyed.so \
tools/constructorcheck/constructorcheck.so

.PHONY: check-headers
check-headers:
@./check-headers.sh
Expand Down
264 changes: 0 additions & 264 deletions docs/flow-docs.json

This file was deleted.

Loading