-
Notifications
You must be signed in to change notification settings - Fork 50
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
EpochRecover service event and transaction #420
Merged
kc1116
merged 163 commits into
feature/efm-recovery
from
khalil/5639-epoch-recovery-transaction
Jul 29, 2024
Merged
Changes from all commits
Commits
Show all changes
163 commits
Select commit
Hold shift + click to select a range
c97e2f0
update to view functions for stable cadence
joshuahannan e39f87c
Update to newest Stable Cadence Preview (#371)
dsainati1 309e602
remove casting and fix conflicts
joshuahannan 08c37b8
integrate ft and nft stable cadence changes, use access, view, and en…
joshuahannan 345c81b
use v2 ft and nft
joshuahannan 2de1c22
use string for nft import
joshuahannan d70590b
update token deps
joshuahannan 861a1c4
update token deps
joshuahannan 6c7e2e5
update nft dependecy
joshuahannan 9005af3
update nft dep
joshuahannan 34953f6
update ft dep
joshuahannan 6044078
add more view
joshuahannan bcdf82c
update FlowToken contract getter to explicitly use metadata views
joshuahannan b1cdfb9
implement new standard methods
joshuahannan 5c9dbc1
update nft dependency
joshuahannan b8f0e9e
update ft dep
joshuahannan 15d02eb
fix FungibleToken.Vault types and imports
joshuahannan 46b6929
remove view from copy
joshuahannan a9f8e5f
add correct vault type
joshuahannan 492674f
remove views and update balances
joshuahannan 971b709
use vault interface type
joshuahannan f1f8764
remove restricted types
joshuahannan 3e8c398
remove AnyStruct
joshuahannan 9fd65f4
remove type restrictions
joshuahannan b977889
fix view modifiers in epoch contracts
joshuahannan f16eaec
use setter methods in QC
joshuahannan 70bc6fd
remove pub from QC
joshuahannan 57ec160
remove restricted types from flow epoch
joshuahannan 692c1cf
use setters in FlowEpoch
joshuahannan 47187b3
correct metadata types
joshuahannan 1fc8536
use UInt64 in NodeVersionBeacon
joshuahannan 02c1131
replace addresses and fix transactions and scripts
joshuahannan f2fe0ac
fixes to epoch tests
joshuahannan da1b7b5
update to latest token standards and update locked tokens transactions
joshuahannan c7e0170
Update contracts
SupunS 722ec7b
Update more contracts
SupunS 9564e5d
Update contracts
SupunS 81aa739
Update contarcts and transactions
SupunS 4c50f6c
go mod tidy
SupunS d052c5c
Update flow-sdk
SupunS bf077d0
Update more contracts
SupunS fb8fc84
Update ft/nft deps
SupunS 2334795
Generate assets
SupunS 82a613c
Update more cadence codes
SupunS 6401295
Fix typo
SupunS 370407f
Replace get()+borrow() with borrow()
SupunS 6a99037
Refactor code
SupunS fd33ce2
Update go-sdk and flow-nft versions
SupunS 1cf8b4c
Fix publish_voter transaction
SupunS 0aef25b
Update to Cadence v1.0.0-preview.1
SupunS 448d648
Apply suggestions from code review
SupunS d49fd04
Refactor code
SupunS ce228e8
fix and improve syntax
turbolent 3b4c47c
use optional chaining and nil-coaelescing instead of force-unwrapping
turbolent 19a5688
Update get_total_balance.cdc
SupunS b373ce8
make sure epoch contracts work with capability controllers and entitl…
joshuahannan 298f47d
update dependencies and add public burn tokens method
joshuahannan 20e6057
remove view from getRandomSourceHistoryPage and use account.storage
joshuahannan 99ff402
remove custom destructors and fix entitlement usage
joshuahannan 761f879
get all go tests passing for cadence 1.0
joshuahannan 3f33ef0
make ci
joshuahannan 6edd0e3
make ci
joshuahannan 40e8ef0
update cli version for CI
joshuahannan c4d2acb
update go version
joshuahannan 8094b24
update Withdrawable and createEmptyVault
joshuahannan 0c5bccb
Update Cadence version (#406)
SupunS 6430730
update createEmpty in staking
joshuahannan 1376f64
use Burner and update dependencies
joshuahannan c4cacb0
update to SDK v1.0.0-M1
turbolent b0d86ba
update NFT contracts, remove replace statements
turbolent 762d6d2
update to Cadence v1.0.0-M3
turbolent ad07d0e
update to Cadence v1.0.0-M3 and SDK v1.0.0-M1
turbolent 04dae1a
remove getBalance, add isAvailableToWithdraw
joshuahannan 61d01ea
update ft and nft deps
joshuahannan 9974772
update emulator dependencies and get tests passing
joshuahannan 639f419
use FungibleToken.Balance instead of FlowToken.Vault
joshuahannan 5c18b63
use correct public path types
joshuahannan 23e5224
update imports
joshuahannan 9f926bf
go mod tidy
joshuahannan d795124
add fungible token switchboard
joshuahannan d9617df
fix switchboard
joshuahannan 006447b
update error messages for ledger transactions
joshuahannan 47f3354
add updated manifests with new account, FT, and NFT transactions and …
joshuahannan b56d319
update account transactions to use simple arguments
joshuahannan 1533936
update manifest to include both styles of token transfer transactions:
joshuahannan 96d94e2
use string args for NFT contracts
joshuahannan 59a36e0
update collection machine account transactions to not use keylist entry
joshuahannan 426ec6e
Update contract getter methods to use env (#410)
joshuahannan 594be1e
get address replacement working in tests and add event emission restr…
joshuahannan 9fab58a
update to latest emulator, cadence, and token standards versions
joshuahannan aecc7fb
Update README
joshuahannan 5c41345
Don't copy dictionary in getEpochMetadata (#413)
janezpodhostnik 12c392c
update NFT contracts
joshuahannan 26f74bc
update ft dependency
joshuahannan e100822
update token standard dependencies
joshuahannan 02924cc
make ci
joshuahannan c53fc79
fix algorithm typo and test names
joshuahannan 9eaaa39
update nft transactions
joshuahannan 7abc82a
update FlowEpoch contract
kc1116 7fe14e1
generate assets
kc1116 5791ea4
happy path tests
kc1116 4fa05d5
Update flow_epoch_test.go
kc1116 c256d3c
upgrade changes to be compliant with cadence 1.0
kc1116 11e2b2d
generate assets
kc1116 836e726
happy path tests
kc1116 cb277e5
remove unused stakingEndView param
kc1116 500fb52
cant use timing config in epoch recover
kc1116 4fbd4aa
add epoch counter comment
kc1116 ad2df49
move save epoch metadata to ending of recover func add comment
kc1116 505a371
Update FlowEpoch.cdc
kc1116 f2818d8
Update contracts/epochs/FlowEpoch.cdc
kc1116 5e2f861
Update contracts/epochs/FlowEpoch.cdc
kc1116 dfd8e2f
update assets
kc1116 5d5fb6e
Apply suggestions from code review
kc1116 5b92b6e
reuse old var names
kc1116 6a2bdb5
remove RecoverEpochMetadata
kc1116 caa0040
use named parameters
kc1116 a667862
use separate var for long lines, remove casts
kc1116 97baba8
generate assets
kc1116 926626a
use common.AddressLocation
kc1116 8ae7e38
add separate funcs recover new epoch and recover current epoch
kc1116 3ce24c2
- dont generate a new random source when overwriting the epoch metadata
kc1116 548f22f
fix typos in transactions
joshuahannan 66a7ba9
update nft dependencies
joshuahannan ac40215
Add entitlement for locked account creator (#423)
joshuahannan 677b20d
update ft dependencies
joshuahannan d289b84
update nft imports and remove unnecessary Burner import from FlowToken
joshuahannan fed5e86
update dependencies
joshuahannan 46a4cac
address PR comments and add entitlements to LockedTokens.TokenManager
joshuahannan 81b3d68
remove UseTokens entitlement
joshuahannan 0f711ea
use view more and update nft deps
joshuahannan 99b721f
make ci
joshuahannan 63df092
merge master
kc1116 b912dae
update assets
kc1116 20115f7
merge master
kc1116 4d826d5
update changes from master
kc1116 59905bb
update changes from master
kc1116 f893516
Update random_beacon_history_test.cdc
kc1116 52f8c36
fix whitespace
kc1116 3e09ba0
Update ci.yml
kc1116 3da8cf5
update assets
kc1116 967aae8
update test helpers
kc1116 88f0a28
reference event from parent scope
kc1116 d8135eb
use aggregatedSignature
kc1116 c15443c
Update contracts/epochs/FlowClusterQC.cdc
kc1116 71ef9e2
Apply suggestions from code review
kc1116 118967a
Merge branch 'feature/efm-recovery' into khalil/5639-epoch-recovery-t…
jordanschalm 6d88321
make generate
jordanschalm 4a4524c
Merge branch 'feature/efm-recovery' into khalil/5639-epoch-recovery-t…
jordanschalm 5aafe7f
tidy
jordanschalm 66fa3f4
document TestEpochRecover
kc1116 61f07b6
remove unused dkg qc txs
kc1116 a78b7d7
add sanity check to ensure we receive vote data for each cluster
kc1116 614f489
ensure curEpochCounter = startEpochCounter+1
kc1116 8b5087d
check counter and epoch metadata after second recover transaction
kc1116 1e41ecf
provide recovery epoch counter in recover epoch transaction
kc1116 ec8c94d
Update contracts/epochs/FlowEpoch.cdc
kc1116 88d6cda
Update contracts/epochs/FlowEpoch.cdc
kc1116 19a3795
add new line
kc1116 d342f4e
Update flow_epoch_test.go
kc1116 d332997
Merge branch 'khalil/5639-epoch-recovery-transaction' of github.com:o…
kc1116 802d828
remove state changes from prechecks func add new func stop epoch comp…
kc1116 1f63515
use access self on admin commands
kc1116 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to match the current
util
command output, I think this structure needs to have the form: