Skip to content

Commit

Permalink
PKG -- [sdk] Refactor Resolve Accounts (#1532)
Browse files Browse the repository at this point in the history
* PKG -- [sdk] Refactor Resolve Accounts to user role based async decomposition for resolving internal accounts

* PKG -- [sdk] Adds reusable accountId generation mechanic in resolve-accounts

* PKG -- [sdk] Adds reusable accountId generation mechanic in resolve-accounts

* PKG -- [sdk] Adds reusable accountId generation mechanic in resolve-accounts

* PKG -- [sdk] Ensure role base deduplication for each role

* PKG -- [sdk] Adds changeset

* PKG -- [sdk] Removes console.log from test

* PKG -- [transport-http] Fixes broken test

* PKG -- [sdk] Rename variable

* PKG -- [sdk] Regenerate package-lock

* PKG -- [sdk] Rename resolved accounts variable

* PKG -- [sdk] Adds additional test

* PKG -- [sdk] Adds resolve account test cases for payer from pre-authz and not

* PKG -- [sdk] Allow multiple authorization functions to be passed in for payer

* PKG -- [sdk] Adds test case for multiple payer authorizations

* PKG -- [sdk] Adds deep resolve test case

* PKG -- [sdk] Ensure deep resolve-accounts resolve successfully

* PKG -- [sdk] Adds deep resolve testcase

* PKG -- [sdk] Adds depth limit of 5 to resolve accounts recursion

* PKG -- [sdk] Adds deep authz resolve util

* PKG -- [sdk] fixed infinite loop (#1673)

* OPS -- [sdk] workaround in test

* PKG -- [sdk] Correct invariant function name

* PKG -- [sdk] Updates resolve-account to cache resolve requests per account, adds debugger

* PKG -- [sdk] fixed tests (#1708)

* PKG -- [sdk] fixed tests

* VSN -- [sdk] changeset

* fixed types

* check for duplicates

* pre accounts

* version

* fixed signature resolver

* revert changes for loop

* add comments for alternative approach

* fix tests

* changeset

* accounts version

* update lock

* exit pre

* replace uuid with standard library

* test with multiple authorizers

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Alex Ni <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2023
1 parent 08f4dd6 commit 06846f8
Show file tree
Hide file tree
Showing 26 changed files with 1,442 additions and 339 deletions.
6 changes: 6 additions & 0 deletions .changeset/big-mangos-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@onflow/transport-http": patch
"@onflow/sdk": patch
---

Updated packages
7 changes: 7 additions & 0 deletions .changeset/brave-mirrors-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@onflow/transport-http": patch
"@onflow/fcl": patch
"@onflow/sdk": patch
---

testing refactored accounts resolver
5 changes: 5 additions & 0 deletions .changeset/lemon-adults-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/sdk": patch
---

Refactor Resolve Accounts to user role based async decomposition for resolving internal accounts
32 changes: 32 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"mode": "exit",
"tag": "accounts",
"initialVersions": {
"@onflow/config": "1.1.1",
"@onflow/fcl": "1.5.2",
"@onflow/fcl-bundle": "1.3.1",
"@onflow/fcl-wc": "3.0.0",
"@onflow/protobuf": "1.2.1",
"@onflow/rlp": "1.1.0",
"@onflow/sdk": "1.2.2",
"@onflow/transport-grpc": "1.2.1",
"@onflow/transport-http": "1.7.1",
"@onflow/typedefs": "1.1.1",
"@onflow/types": "1.1.0",
"@onflow/util-actor": "1.2.0",
"@onflow/util-address": "1.1.0",
"@onflow/util-encode-key": "1.1.0",
"@onflow/util-invariant": "1.1.0",
"@onflow/util-logger": "1.2.1",
"@onflow/util-template": "1.1.0",
"@onflow/util-uid": "1.1.0"
},
"changesets": [
"big-mangos-explode",
"brave-mirrors-report",
"lemon-adults-shout",
"six-cherries-clap",
"slow-peaches-vanish",
"wet-chicken-unite"
]
}
9 changes: 9 additions & 0 deletions .changeset/wet-chicken-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@onflow/transport-grpc": patch
"@onflow/transport-http": patch
"@onflow/fcl-wc": patch
"@onflow/fcl": patch
"@onflow/sdk": patch
---

fixed sig resolution
Loading

0 comments on commit 06846f8

Please sign in to comment.