Skip to content

Commit

Permalink
add emulator support to deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Aug 2, 2024
1 parent be5f7fd commit 4ae986a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
52 changes: 30 additions & 22 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": "./cadence/contracts/utils/ArrayUtils.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -23,7 +23,7 @@
"source": "./cadence/contracts/bridge/interfaces/CrossVMNFT.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -33,7 +33,7 @@
"source": "./cadence/contracts/bridge/interfaces/CrossVMToken.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand Down Expand Up @@ -71,7 +71,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridge.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -81,7 +81,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeAccessor.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -91,7 +91,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeConfig.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -101,7 +101,7 @@
"source": "./cadence/contracts/bridge/interfaces/FlowEVMBridgeHandlerInterfaces.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -111,7 +111,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeHandlers.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -121,7 +121,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeNFTEscrow.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -131,7 +131,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeTemplates.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -141,7 +141,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeTokenEscrow.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -151,7 +151,7 @@
"source": "./cadence/contracts/bridge/FlowEVMBridgeUtils.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand Down Expand Up @@ -204,7 +204,7 @@
"source": "./cadence/contracts/bridge/interfaces/IBridgePermissions.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -214,7 +214,7 @@
"source": "./cadence/contracts/bridge/interfaces/ICrossVM.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -224,7 +224,7 @@
"source": "./cadence/contracts/bridge/interfaces/IEVMBridgeNFTMinter.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -234,7 +234,7 @@
"source": "./cadence/contracts/bridge/interfaces/IEVMBridgeTokenMinter.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -244,7 +244,7 @@
"source": "./cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -254,7 +254,7 @@
"source": "./cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand Down Expand Up @@ -286,7 +286,7 @@
"source": "./cadence/contracts/utils/ScopedFTProviders.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -296,7 +296,7 @@
"source": "./cadence/contracts/utils/Serialize.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -306,7 +306,7 @@
"source": "./cadence/contracts/utils/SerializeMetadata.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand All @@ -316,7 +316,7 @@
"source": "./cadence/contracts/utils/StringUtils.cdc",
"aliases": {
"crescendo": "dfc20aee650fcbdf",
"emulator": "179b6b1cb6755e31",
"emulator": "f8d6e0586b0a20c7",
"previewnet": "7792cfb75d8dfdd8",
"testing": "0000000000000007",
"testnet": "dfc20aee650fcbdf"
Expand Down Expand Up @@ -367,10 +367,18 @@
"address": "f8d6e0586b0a20c7",
"key": "fe809cc837ddcd7e761a482721c050aae43657448db859f4eb8fc421e9609938"
},
"emulator-service-account": {
"address": "f8d6e0586b0a20c7",
"key": "fe809cc837ddcd7e761a482721c050aae43657448db859f4eb8fc421e9609938"
},
"emulator-flow": {
"address": "0ae53cb6e3f42a79",
"key": "c1e4c9d9dca9e4d5e9b0b5a9a8e8b9c5d6f4a8b9c5d6f4a8b9c5d6f4a8b9c5d6"
},
"emulator-flow-evm-bridge": {
"address": "f8d6e0586b0a20c7",
"key": "fe809cc837ddcd7e761a482721c050aae43657448db859f4eb8fc421e9609938"
},
"previewnet-flow-evm-bridge": {
"address": "7792cfb75d8dfdd8",
"key": {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

// Overflow prefixes signer names with the current network - e.g. "crescendo-flow-evm-bridge"
// Ensure accounts in flow.json are named accordingly
var networks = []string{"previewnet", "crescendo", "testnet", "mainnet"}
var networks = []string{"crescendo", "emulator", "mainnet", "previewnet", "testnet"}

// Pulled from flow.json deployments. Specified here as some contracts have init arg values that
// are emitted in transaction events and cannot be hardcoded in the deployment config section
Expand Down

0 comments on commit 4ae986a

Please sign in to comment.