Commit 71b0f49
FEATURE: Cadence 1.0 Core Contracts Changes (#319)
* update to view functions for stable cadence
* Update to newest Stable Cadence Preview (#371)
* update to view functions for stable cadence
* remove unreachable code
* update templates to Stable Cadence
* update to Stable Cadence preview 4
* update for stable cadence
* fix parse error
---------
Co-authored-by: Josh Hannan <[email protected]>
Co-authored-by: Bastian Müller <[email protected]>
* remove casting and fix conflicts
* integrate ft and nft stable cadence changes, use access, view, and entitlements
* use v2 ft and nft
* use string for nft import
* update token deps
* update token deps
* update nft dependecy
* update nft dep
* update ft dep
* add more view
* update FlowToken contract getter to explicitly use metadata views
* implement new standard methods
* update nft dependency
* update ft dep
* fix FungibleToken.Vault types and imports
* remove view from copy
* add correct vault type
* remove views and update balances
* use vault interface type
* remove restricted types
* remove AnyStruct
* remove type restrictions
* fix view modifiers in epoch contracts
* remove view for dkgCompleted
* remove non-view methods from pre-conditions
* use setter methods in QC
* remove pub from QC
* add fun keyword
* use setters for fields and use getBalance
* use view keyword
* remove restricted types from flow epoch
* use setters in FlowEpoch
* correct metadata types
* use UInt64 in NodeVersionBeacon
* dont use restricted types in locked tokens and staking collection
* make LockedTokens compatible with FungibleToken
* use entitlement for manager
* correct entitlement syntax
* fix entitlement issues with locked tokens
* fix entitlement issues with staking collection
* fix entitlement return types
* add withdrawable to machine account functions
* replace addresses and fix transactions and scripts
* fixes to epoch tests
* update to latest token standards and update locked tokens transactions
* Update contracts
* Update more contracts
* Update contracts
* Update contarcts and transactions
* go mod tidy
* Update flow-sdk
* Update more contracts
* Update ft/nft deps
* Generate assets
* Update more cadence codes
* Update staking collection
* Update go mods
* Fix typo
* Replace get()+borrow() with borrow()
* Refactor code
* Update go-sdk and flow-nft versions
* Fix publish_voter transaction
* Update to Cadence v1.0.0-preview.1
* Apply suggestions from code review
Co-authored-by: Bastian Müller <[email protected]>
* Refactor code
* fix and improve syntax
* use optional chaining and nil-coaelescing instead of force-unwrapping
* Update get_total_balance.cdc
* make sure epoch contracts work with capability controllers and entitlements
* update dependencies and add public burn tokens method
* remove view from getRandomSourceHistoryPage and use account.storage
* remove custom destructors and fix entitlement usage
* get all go tests passing for cadence 1.0
* make ci
* make ci
* update random source transactions
* update cli version for CI
* update go version
* Update Cadence version (#406)
* update Withdrawable and createEmptyVault
* update createEmpty in staking
* use Burner and update dependencies
* update to SDK v1.0.0-M1
* update NFT contracts, remove replace statements
* update to Cadence v1.0.0-M3
* update to Cadence v1.0.0-M3 and SDK v1.0.0-M1
* remove getBalance, add isAvailableToWithdraw
* update ft and nft deps
* update emulator dependencies and get tests passing
* use FungibleToken.Balance instead of FlowToken.Vault
* use correct public path types
* update imports
* go mod tidy
* add fungible token switchboard
* fix switchboard
* update error messages for ledger transactions
* add updated manifests with new account, FT, and NFT transactions and removed locked token staking txs
* update account transactions to use simple arguments
* update manifest to include both styles of token transfer transactions:
* update emulator dependency
* use string args for NFT contracts
* update collection machine account transactions to not use keylist entry
* Update contract getter methods to use env (#410)
* update import addresses to better format and use env
* update deps
* update go mod
* re-add lockedaccountinfo
* update ft and nft dependencies
* get address replacement working in tests and add event emission restrictions for FlowToken
* update to latest emulator, cadence, and token standards versions
* Update README
* Don't copy dictionary in getEpochMetadata (#413)
* Don't copy dictionary in getEpochMetadata
* update NFT contracts
* update ft dependency
* update token standard dependencies
* make ci
* fix algorithm typo and test names
* update nft transactions
* fix typos in transactions
* update nft dependencies
* Add entitlement for locked account creator (#423)
* update deps, add entitlement for locked account creator
* make ci
* update ft dependencies
* remove optional chaining in FlowStakingCollection
* remove optional chaining
* update nft imports and remove unnecessary Burner import from FlowToken
* update dependencies
* Improve random distribution (#428)
* better use of revertible random with correct types
* improve random distribution
* address PR comments and add entitlements to LockedTokens.TokenManager
* remove UseTokens entitlement
* use view more and update nft deps
* make ci
* add view modifiers
* update dependencies
---------
Co-authored-by: Daniel Sainati <[email protected]>
Co-authored-by: Bastian Müller <[email protected]>
Co-authored-by: Supun Setunga <[email protected]>
Co-authored-by: Bastian Müller <[email protected]>
Co-authored-by: Janez Podhostnik <[email protected]>
Co-authored-by: Tarak Ben Youssef <[email protected]>1 parent 272df6c commit 71b0f49
File tree
360 files changed
+12423
-25233
lines changed- .github/workflows
- contracts
- epochs
- testContracts
- lib
- go
- contracts
- internal/assets
- templates
- cmd/manifest
- internal/assets
- test
- js/test
- templates
- tests
- tests
- transactions
- transactions
- FlowServiceAccount
- scripts
- accounts
- dkg
- admin
- scripts
- epoch
- admin
- node
- scripts
- flowToken
- scripts
- idTableStaking
- admin
- delegation
- node
- scripts
- lockedTokens
- admin
- delegator
- staker
- user
- nodeVersionBeacon
- admin
- scripts
- quorumCertificate
- admin
- scripts
- randomBeaconHistory
- scripts
- transactions
- stakingCollection
- scripts
- test
- stakingProxy
- storageFees
- admin
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
360 files changed
+12423
-25233
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
20 | 15 | | |
21 | | - | |
| 16 | + | |
22 | 17 | | |
23 | | - | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | | - | |
27 | | - | |
28 | 21 | | |
29 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
| |||
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| |||
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
113 | 124 | | |
114 | | - | |
| 125 | + | |
115 | 126 | | |
116 | 127 | | |
117 | 128 | | |
| |||
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
132 | 144 | | |
133 | 145 | | |
134 | 146 | | |
| |||
156 | 168 | | |
157 | 169 | | |
158 | 170 | | |
159 | | - | |
| 171 | + | |
| 172 | + | |
160 | 173 | | |
161 | 174 | | |
162 | 175 | | |
| |||
168 | 181 | | |
169 | 182 | | |
170 | 183 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 184 | + | |
| 185 | + | |
177 | 186 | | |
178 | 187 | | |
179 | 188 | | |
| |||
226 | 235 | | |
227 | 236 | | |
228 | 237 | | |
229 | | - | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 242 | | |
256 | 243 | | |
257 | | - | |
| 244 | + | |
258 | 245 | | |
259 | 246 | | |
260 | 247 | | |
| |||
0 commit comments