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

Migrated testnet #102

Merged
merged 109 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
d940912
refactor contracts for Cadence 1.0
sisyphusSmiling Feb 13, 2024
ae508ed
add EVM contract
sisyphusSmiling Feb 13, 2024
42be8c3
update FUSD for emulator FungibleToken conformance
sisyphusSmiling Feb 13, 2024
12fb1c7
add FlowPassthrough.sol contract
sisyphusSmiling Feb 14, 2024
fa585cf
add FlowEVMPassthrough.cdc contract & update flow.json
sisyphusSmiling Feb 14, 2024
6b58373
add evm scripts
sisyphusSmiling Feb 14, 2024
35ac424
add evm transactions
sisyphusSmiling Feb 14, 2024
f2ac15a
update all transactions for Cadence 1.0 compatibility
sisyphusSmiling Feb 14, 2024
67a13d8
update flow.json with crescendo aliases
sisyphusSmiling Feb 14, 2024
5901ff1
update FlowEVMPassthrough pre-condition syntax
sisyphusSmiling Feb 14, 2024
12fa01b
add CryptoUtils contract & name in flow.json & env.example
sisyphusSmiling Feb 14, 2024
9a9aed5
add env vars to publicConfig.ts
sisyphusSmiling Feb 14, 2024
7ccb0cb
update lib cadence to 1.0
sisyphusSmiling Feb 14, 2024
8cfa6b0
fix fund.ts Cadence
sisyphusSmiling Feb 14, 2024
7e00886
update flow.json
sisyphusSmiling Feb 14, 2024
fd30f59
add contract alias info to fclConfig.ts
sisyphusSmiling Feb 14, 2024
1464d87
fix flow.json
sisyphusSmiling Feb 14, 2024
1210192
rename coa creation transaction
sisyphusSmiling Feb 14, 2024
28296e1
fix account.ts Cadence
sisyphusSmiling Feb 14, 2024
c4779d2
update evm transactions
sisyphusSmiling Feb 14, 2024
10b0256
update dev-deploy-contracts command
sisyphusSmiling Feb 14, 2024
24c4f82
remove passthrough Cadence & solidity contracts
sisyphusSmiling Feb 15, 2024
6450b22
add EVM funding & COA transactions
sisyphusSmiling Feb 15, 2024
352fec4
remove CryptoUtils
sisyphusSmiling Feb 15, 2024
a037f9e
update npm run dev-deploy-contracts command
sisyphusSmiling Feb 15, 2024
399f0d5
update ts formatting
sisyphusSmiling Feb 15, 2024
d94652a
update ts formatting & add ci EVM contract env alias
sisyphusSmiling Feb 15, 2024
70b5e50
add contractEVM to PublicConfig
sisyphusSmiling Feb 15, 2024
4409076
Merge branch 'main' into chasefleming/update-evm-branch
chasefleming Feb 20, 2024
b08a0ab
Merge pull request #73 from onflow/chasefleming/update-evm-branch
chasefleming Feb 20, 2024
df81478
update mint_and_fund_evm_address transaction
sisyphusSmiling Feb 21, 2024
f3c818e
Setup funding evm tx
chasefleming Feb 22, 2024
880bb69
Merge branch 'main' into evm-enabled
chasefleming Feb 22, 2024
09cf3ec
Setup funding evm tx
chasefleming Feb 22, 2024
08afb9a
Merge branch 'cf/fund-evm' of https://github.com/onflow/faucet into c…
chasefleming Feb 22, 2024
e5fb0fa
fix linting issues
sisyphusSmiling Feb 22, 2024
f1f3101
Merge pull request #76 from onflow/gs/fund-evm-lint-fix
chasefleming Feb 22, 2024
fccb6ab
Change network codeword and address error
chasefleming Feb 23, 2024
fcd2d57
Merge pull request #74 from onflow/cf/fund-evm
chasefleming Feb 23, 2024
cf2e414
Remove fusd
chasefleming Feb 23, 2024
f6a9d47
Remove import
chasefleming Feb 23, 2024
815a477
Remove FUSD
chasefleming Feb 23, 2024
312502c
update fund transaction
sisyphusSmiling Feb 23, 2024
91e2348
update EVM against flow-go feature/stable-cadence
sisyphusSmiling Feb 23, 2024
55fdeb9
update evm scripts
sisyphusSmiling Feb 23, 2024
fe2cdd3
update EVM Cadence transactions
sisyphusSmiling Feb 23, 2024
91305b9
update transfer_flow Cadence transaction
sisyphusSmiling Feb 23, 2024
a32df44
update fund.ts
sisyphusSmiling Feb 23, 2024
5620a5b
fix EVM transactions
sisyphusSmiling Feb 23, 2024
3564b5f
fix EVM balance query
sisyphusSmiling Feb 23, 2024
92faf73
Add tx send changes
chasefleming Feb 23, 2024
295edfc
Merge pull request #78 from onflow/giovanni/update-fund
chasefleming Feb 23, 2024
67c450f
Turn off eslint rule
chasefleming Feb 24, 2024
56bb8ca
Merge branch 'evm-enabled' of https://github.com/onflow/faucet into e…
chasefleming Feb 24, 2024
021e7e9
Run lint fix
chasefleming Feb 24, 2024
0b5af6c
Merge branch 'evm-enabled' into giovanni/update-evm
chasefleming Feb 24, 2024
5e46c10
Merge pull request #79 from onflow/giovanni/update-evm
chasefleming Feb 24, 2024
41447d7
add previewnet to flow.json networks
sisyphusSmiling Feb 24, 2024
2b5291f
update with EVM contract currently deployed to previewnet
sisyphusSmiling Feb 24, 2024
5bf015f
Merge pull request #80 from onflow/giovanni/update-evm
chasefleming Feb 24, 2024
6889efa
add previewnet aliases to flow.json
sisyphusSmiling Feb 24, 2024
5499285
Fix address length
chasefleming Feb 24, 2024
0a0b4ae
Merge pull request #83 from onflow/cf/fix-count
chasefleming Feb 24, 2024
9a21128
Merge pull request #82 from onflow/giovanni/update-config
chasefleming Feb 24, 2024
0f01645
Add check for address
chasefleming Feb 24, 2024
2d75520
Merge branch 'evm-enabled' of https://github.com/onflow/faucet into e…
chasefleming Feb 24, 2024
58f97ef
Format
chasefleming Feb 24, 2024
04cc488
Fix EVM transactions (#84)
sisyphusSmiling Feb 26, 2024
55e783c
Fix EVM.Address struct in funding transaction (#85)
jribbink Feb 26, 2024
5b72914
Increase fund timeout limit (#86)
jribbink Feb 26, 2024
45b164a
Change crescendo to previewnet
chasefleming Feb 26, 2024
842a646
Change image names
chasefleming Feb 26, 2024
86b4f97
Change name
chasefleming Feb 26, 2024
73c28a3
Merge pull request #87 from onflow/cf/rebrand-previewnet
chasefleming Feb 26, 2024
3f54231
Setup balance display
chasefleming Feb 26, 2024
1c13adf
Fix prettier
chasefleming Feb 26, 2024
e521561
Fix conditional
chasefleming Feb 26, 2024
6613da7
Set balance
chasefleming Feb 26, 2024
c52b597
prettier and misc fixes
chasefleming Feb 26, 2024
2d42e2b
Move balance section
chasefleming Feb 26, 2024
732685b
Run lint fix
chasefleming Feb 26, 2024
c1d112c
Switch conditional
chasefleming Feb 26, 2024
4c39579
Change to label component
chasefleming Feb 26, 2024
ea58ea1
Add address type check for arg
chasefleming Feb 26, 2024
8912608
Switch address check logic
chasefleming Feb 26, 2024
1d3a80b
sansPrefix evm addr
chasefleming Feb 26, 2024
48b4345
Change imports
chasefleming Feb 26, 2024
0874cbf
Set error
chasefleming Feb 26, 2024
c8874b6
Add check on balance script
chasefleming Feb 27, 2024
c41da49
run lint fix
chasefleming Feb 27, 2024
56772d9
Change error name
chasefleming Feb 27, 2024
7b6a1ea
change error
chasefleming Feb 27, 2024
502a166
update error message
chasefleming Feb 27, 2024
765af53
decode response
chasefleming Feb 27, 2024
8e91e99
Merge pull request #88 from onflow/cf/get-balance
chasefleming Feb 27, 2024
a1f8183
Remove from footer
chasefleming Feb 27, 2024
b7c1a5a
Merge pull request #89 from onflow/cf/update-footer
chasefleming Feb 27, 2024
dca9293
Bump max duration on all endpoints & fix hashing/signing algorithms (…
jribbink Feb 27, 2024
ab380ec
Remove link on create account for previewnet
chasefleming Feb 27, 2024
9d1ab75
Merge pull request #93 from onflow/cf/remove-link
chasefleming Feb 27, 2024
72185eb
Add to label for account type
chasefleming Mar 11, 2024
4202e9d
Merge pull request #96 from onflow/cf/account-options
chasefleming Mar 11, 2024
81e6e56
fix copy
nialexsan Jun 10, 2024
eaecc1e
Merge pull request #98 from onflow/nialexsan/fix-account-funding-copy
nialexsan Jun 11, 2024
601a5f8
remove previewnet
nialexsan Aug 14, 2024
bc051ec
remove previewnet
nialexsan Aug 14, 2024
d3d5d12
remove fusd
nialexsan Aug 14, 2024
d763f24
Merge remote-tracking branch 'origin/main' into migrated-testnet
nialexsan Aug 14, 2024
c28f0a1
restore link
nialexsan Aug 14, 2024
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
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"files": ["*.ts", "*.tsx"],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
NEXT_PUBLIC_TOKEN_AMOUNT_FLOW: "1000.0"
NEXT_PUBLIC_CONTRACT_FUNGIBLE_TOKEN: "0xee82856bf20e2aa6"
NEXT_PUBLIC_CONTRACT_FLOW_TOKEN: "0x0ae53cb6e3f42a79"
NEXT_PUBLIC_CONTRACT_EVM: "0xf8d6e0586b0a20c7"
NEXT_PUBLIC_NETWORK: "testnet"

strategy:
Expand Down
44 changes: 44 additions & 0 deletions cadence/contracts/Burner.cdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/// Burner is a contract that can facilitate the destruction of any resource on flow.
///
/// Contributors
/// - Austin Kline - https://twitter.com/austin_flowty
/// - Deniz Edincik - https://twitter.com/bluesign
/// - Bastian Müller - https://twitter.com/turbolent
access(all) contract Burner {
/// When Crescendo (Cadence 1.0) is released, custom destructors will be removed from cadece.
/// Burnable is an interface meant to replace this lost feature, allowing anyone to add a callback
/// method to ensure they do not destroy something which is not meant to be,
/// or to add logic based on destruction such as tracking the supply of a FT Collection
///
/// NOTE: The only way to see benefit from this interface
/// is to always use the burn method in this contract. Anyone who owns a resource can always elect **not**
/// to destroy a resource this way
access(all) resource interface Burnable {
access(contract) fun burnCallback()
}

/// burn is a global method which will destroy any resource it is given.
/// If the provided resource implements the Burnable interface,
/// it will call the burnCallback method and then destroy afterwards.
access(all) fun burn(_ r: @AnyResource) {
if let s <- r as? @{Burnable} {
s.burnCallback()
destroy s
} else if let arr <- r as? @[AnyResource] {
while arr.length > 0 {
let item <- arr.removeFirst()
self.burn(<-item)
}
destroy arr
} else if let dict <- r as? @{HashableStruct: AnyResource} {
let keys = dict.keys
while keys.length > 0 {
let item <- dict.remove(key: keys.removeFirst())!
self.burn(<-item)
}
destroy dict
} else {
destroy r
}
}
}
Loading
Loading