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

Sync feature/string-templates branch with master #3626

Merged
merged 87 commits into from
Oct 18, 2024

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    9dba679 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    7877cdb View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    ddedc78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31bc6dd View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3581 from RZhang05/enum-transaction-params

    Add tests for enum usage as transaction parameters
    SupunS authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    60aeec6 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Add test for circular resouces

    SupunS committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9dbe246 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Merge pull request #3586 from onflow/supun/circular-resources

    Add test for circular resources
    SupunS authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    fb275ce View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3578 from onflow/supun/improve-parser-errors

    Always return parser errors gracefully
    SupunS authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    4e3b370 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Configuration menu
    Copy the full SHA
    f3454b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4050d9e View commit details
    Browse the repository at this point in the history
  3. Refactor code

    SupunS authored and turbolent committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    a94949e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7862536 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e6f2246 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    20976c6 View commit details
    Browse the repository at this point in the history
  7. flow CLI is 1.0 now

    turbolent committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    7137ac7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4f33552 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8d60a12 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8eebf18 View commit details
    Browse the repository at this point in the history
  11. try git rev-parse

    turbolent committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fb1917d View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    2b762be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b790e0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3590 from onflow/bastian/port-internal-243-244

    Allow validation of `Account.capabilities.get/borrow/publish`
    turbolent authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    96e06e7 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #3592 from onflow/supun/port-250

    Fix runtime type of Account_Inbox_claim() function
    turbolent authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    addc4d5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a4a928 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    878f55e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ed99fbf View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Prevent migration tests from using out-of-sync data

    Currently, some migration tests reuse storage for migration.
    It can lead to tests failing when the storage cache gets
    out of sync with underlying storage.
    
    For example:
    1. Use storage 1 to store valueA in public domain directly.
    2. Use storage 2 to store valueB in public domain via
       ExecuteTransaction().
    3. Reuse storage 1 for migration.  Here, migration
       only sees valueA from cache instead of both values.
    
    This commit prevents out-of-sync issues by creating new
    runtime.Storage for migrations instead of reusing old storage.
    fxamacker committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    88c3cf0 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    15c77a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    428e949 View commit details
    Browse the repository at this point in the history
  3. Add comments and more tests

    SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    0190bc8 View commit details
    Browse the repository at this point in the history
  4. Refactor test

    SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    97e7de6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a13dcbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca41cc6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ef339f9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    772c6c9 View commit details
    Browse the repository at this point in the history
  9. add reproducer

    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    5dc34e0 View commit details
    Browse the repository at this point in the history
  10. move conversion/boxing of return value of invocations

    follow-up from onflow/cadence-internal#249
    perform return value conversion/boxing for all invocations, like internal invocations,
    not just invocation expressions
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    7ae265a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b955d04 View commit details
    Browse the repository at this point in the history
  12. fix Optional.map: use Interpreter.invokeFunctionValue instead of Func…

    …tionValue.invoke
    
    ensure parameter is properly converted/boxed
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    00c99ec View commit details
    Browse the repository at this point in the history
  13. fix Array.filter: use Interpreter.invokeFunctionValue instead of Func…

    …tionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    ce99b35 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c1dda1a View commit details
    Browse the repository at this point in the history
  15. fix Dictionary.forEachKey: use Interpreter.invokeFunctionValue instea…

    …d of FunctionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    bb0bf45 View commit details
    Browse the repository at this point in the history
  16. fix Storage.forEachStored/Public: use Interpreter.invokeFunctionValue…

    … instead of FunctionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    a03df7d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7c3d631 View commit details
    Browse the repository at this point in the history
  18. fix forEachAttachment: use Interpreter.invokeFunctionValue instead of…

    … FunctionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    cf40d9c View commit details
    Browse the repository at this point in the history
  19. fix forEachController: use Interpreter.invokeFunctionValue instead of…

    … FunctionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    fa91c52 View commit details
    Browse the repository at this point in the history
  20. fix Account.Keys.forEach: use Interpreter.invokeFunctionValue instead…

    … of FunctionValue.invoke
    turbolent authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    05343a6 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    380a64b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    111944b View commit details
    Browse the repository at this point in the history
  23. Fix unreferenced slabs when updating dict w enum key

    This commit removes unreferenced slabs when updating dictionary
    with enum keys to prevent them from remaining in storage.
    
    Background
    
    Currently, unreferenced slabs can be created by updating dictionary
    if the key is enum type and key already exists.
    
    More specifically,
    - Cadence creates and stores enum key (in its own slab) in storage
      during Transfer() to update underlying atree map element.
    
    - If same key already exists, atree map only updates map value without
      referencing the newly created enum key.
    
    - Newly created enum key is not referenced (aka dangling, unreachable)
      in the underlying atree map.
    
    This issue only affects enum key type because enum type is the
    only type that:
    - can be used as dictionary key (hashable) and
    - is transferred to its own slab.
    
    Large string key isn't affected by this issue because large string
    isn't stored in its own slab during Transfer().
    fxamacker authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    cfaed70 View commit details
    Browse the repository at this point in the history
  24. Remove enum type checking when removing unreferenced slab

    Currently enum type is the only composite type that needs to be
    removed explicitly when used as key to update existing dictionary
    element.
    
    However, (as noted by Supun) Cadence might in the future add
    support for other composite types as key.
    
    This commit removes enum type checking to support new composite
    key types to be added to Cadence language in the future.
    fxamacker authored and SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    09ad756 View commit details
    Browse the repository at this point in the history
  25. Update version.go

    SupunS committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    ddd8d3d View commit details
    Browse the repository at this point in the history
  26. Merge pull request #3603 from onflow/supun/update-version

    Update version.go
    SupunS authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    b55d056 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    d9709a5 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    b11b32f View commit details
    Browse the repository at this point in the history
  29. Merge pull request #3600 from onflow/supun/port-fixes

    Port bug fixes from internal repo
    SupunS authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    528b9ae View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    d51ec75 View commit details
    Browse the repository at this point in the history
  31. Merge pull request #3602 from onflow/supun/port-242

    Prevent leaving unreferenced slabs in storage while updating dictionary with enum key
    SupunS authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    70606a5 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    9f55a1d View commit details
    Browse the repository at this point in the history
  33. Merge pull request #3601 from onflow/supun/port-263

    Fix invocation boxing
    SupunS authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    9e12a05 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4de9544 View commit details
    Browse the repository at this point in the history
  35. Merge pull request #3604 from onflow/supun/sync-v1.0-master

    Merge v1.0 into master
    SupunS authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    58650ca View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    b776c2c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    b826169 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    075bfc7 View commit details
    Browse the repository at this point in the history
  3. add Type.address

    turbolent committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    32e6467 View commit details
    Browse the repository at this point in the history
  4. add Type.contractName

    turbolent committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    35d0594 View commit details
    Browse the repository at this point in the history
  5. only declare result variable if post conditions are declared, provide…

    … better, dedicated error
    turbolent committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    e94adb3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fea8a9a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Update runtime/runtime_test.go

    Co-authored-by: Supun Setunga <[email protected]>
    turbolent and SupunS authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    5412bfc View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3589 from onflow/bastian/774-improve-result-variable

    Improve `result` variable
    turbolent authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    222bff5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    841027f View commit details
    Browse the repository at this point in the history
  4. use static type's location and qualified identifier, instead of const…

    …ructing and decoding type ID
    turbolent committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d90d449 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #3614 from onflow/supun/cleanup

    Explain the reason for support parsing legacy restricted types
    SupunS authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    8d4dea7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4a2d406 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    152088f View commit details
    Browse the repository at this point in the history
  2. Update Makefile

    SupunS committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    407aeb6 View commit details
    Browse the repository at this point in the history
  3. Update docs and yaml fiels

    SupunS committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    1a9f328 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a38ea7e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d0e10d View commit details
    Browse the repository at this point in the history
  6. Remove legacy content

    SupunS committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    f3df5f6 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Merge pull request #3622 from onflow/supun/cleanup-repo

    Remove legacy content
    SupunS authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    dbf5351 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de913e6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3620 from onflow/supun/restructure

    Move  subdirectories under `runtime` to top level
    SupunS authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8b904c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e73cf22 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #3621 from onflow/supun/restructure-2

    Move tests under `runtime` to `tests` directory
    SupunS authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    0bb1b69 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'master' of https://github.com/onflow/cadence into featu…

    …re/string-templates
    SupunS committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    1772f43 View commit details
    Browse the repository at this point in the history