From 5ce6aa018aa7e217c92c05af1c5fbade3d6ce641 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Thu, 16 May 2024 12:22:30 +0200 Subject: [PATCH 01/16] Add dependency audit contract --- contracts/DependencyAudit.cdc | 110 ++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 contracts/DependencyAudit.cdc diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc new file mode 100644 index 0000000..2b60c6d --- /dev/null +++ b/contracts/DependencyAudit.cdc @@ -0,0 +1,110 @@ +import "MigrationContractStaging" + +// This contract is intended to be deployed on the service account. +// It is used by the FVM calling the `checkDependencies` function from a function of the same name and singature in the FlowServiceAccount contract, +// at the end of every transaction. +// The `dependenciesAddresses` and `dependenciesNames` will be all the dependencies needded to run that transaction. +// +// The `checkDependencies` function will check if any of the dependencies are not staged in the MigrationContractStaging contract. +// If any of the dependencies are not staged, the function will emit an event with the unstaged dependencies, or panic if `panicOnUnstaged` is set to true. +access(all) contract DependencyAudit { + + access(all) let AdministratorStoragePath: StoragePath + + // The system addresses have contracts that will not be stages via the migration contract so we exclude them from the dependency chekcs + access(self) var excludedAddresses: {Address: Bool} + + access(all) var panicOnUnstaged: Bool + + access(all) event UnstagedDependencies(dependenciesAddresses: [Address], dependenciesNames: [String]) + + access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) + + // checkDependencies is called from the FlowServiceAccount contract + access(all) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { + var numDependencies = dependenciesAddresses.length + var i = 0 + + var unstagedDependenciesAddresses: [Address] = [] + var unstagedDependenciesNames: [String] = [] + + while i < numDependencies { + let isExcluded = DependencyAudit.excludedAddresses[dependenciesAddresses[i]] ?? false + if isExcluded { + i = i + 1 + continue + } + + let staged = MigrationContractStaging.isStaged(address: dependenciesAddresses[i], name: dependenciesNames[i]) + if !staged { + unstagedDependenciesAddresses.append(dependenciesAddresses[i]) + unstagedDependenciesNames.append(dependenciesNames[i]) + } + + i = i + 1 + } + + if unstagedDependenciesAddresses.length > 0 { + if DependencyAudit.panicOnUnstaged { + // If `panicOnUnstaged` is set to true, the transaction will panic if there are any unstaged dependencies + // the panic message will include the unstaged dependencies + var unstagedDependenciesString = "" + var numUnstagedDependencies = unstagedDependenciesAddresses.length + var j = 0 + while j < numUnstagedDependencies { + if j > 0 { + unstagedDependenciesString = unstagedDependenciesString.concat(", ") + } + unstagedDependenciesString = unstagedDependenciesString.concat("A.").concat(unstagedDependenciesAddresses[j].toString()).concat(".").concat(unstagedDependenciesNames[j]) + + j = j + 1 + } + + // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.0x2ceae959ed1a7e7a.MigrationContractStaging, A.0x2ceae959ed1a7e7a.DependencyAudit` + panic("Found unstaged dependencies: ".concat(unstagedDependenciesString)) + }else{ + emit UnstagedDependencies(dependenciesAddresses: unstagedDependenciesAddresses, dependenciesNames: unstagedDependenciesNames) + } + } + } + + // The Administrator resorce can be used to add or remove addresses from the excludedAddresses dictionary + // + access(all) resource Administrator { + // addExcludedAddresses add the addresses to the excludedAddresses dictionary + access(all) fun addExcludedAddresses(addresses: [Address]) { + for address in addresses { + DependencyAudit.excludedAddresses[address] = true + } + } + + // removeExcludedAddresses remove the addresses from the excludedAddresses dictionary + access(all) fun removeExcludedAddresses(addresses: [Address]) { + for address in addresses { + DependencyAudit.excludedAddresses.remove(key: address) + } + } + + // setPanicOnUnstagedDependencies sets the `panicOnUnstaged` variable to the value of `shouldPanic` + access(all) fun setPanicOnUnstagedDependencies(shouldPanic: Bool) { + DependencyAudit.panicOnUnstaged = shouldPanic + emit PanicOnUnstagedDependenciesChanged(shouldPanic: shouldPanic) + } + } + + // The admin resource is saved to the storage so that the admin can be accessed by the service account + // The `excludedAddresses` will be the addresses with the system contracracts. + init(excludedAddresses: [Address]) { + self.excludedAddresses = {} + self.panicOnUnstaged = false + + self.AdministratorStoragePath = /storage/flowDependencyAuditAdmin + + for address in excludedAddresses { + self.excludedAddresses[address] = true + } + + let admin <- create Administrator() + self.account.save(<-admin, to: self.AdministratorStoragePath) + } +} From bf6bf253850524323ff087ea30bd7037f2210feb Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Thu, 16 May 2024 15:03:31 +0200 Subject: [PATCH 02/16] DependencyAudit contract --- contracts/DependencyAudit.cdc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 2b60c6d..619e9ce 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -1,7 +1,6 @@ import "MigrationContractStaging" -// This contract is intended to be deployed on the service account. -// It is used by the FVM calling the `checkDependencies` function from a function of the same name and singature in the FlowServiceAccount contract, +// This contract ist is used by the FVM calling the `checkDependencies` function from a function of the same name and singature in the FlowServiceAccount contract, // at the end of every transaction. // The `dependenciesAddresses` and `dependenciesNames` will be all the dependencies needded to run that transaction. // @@ -21,7 +20,7 @@ access(all) contract DependencyAudit { access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) // checkDependencies is called from the FlowServiceAccount contract - access(all) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { + access(self) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { var numDependencies = dependenciesAddresses.length var i = 0 @@ -62,7 +61,7 @@ access(all) contract DependencyAudit { // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.0x2ceae959ed1a7e7a.MigrationContractStaging, A.0x2ceae959ed1a7e7a.DependencyAudit` panic("Found unstaged dependencies: ".concat(unstagedDependenciesString)) - }else{ + } else { emit UnstagedDependencies(dependenciesAddresses: unstagedDependenciesAddresses, dependenciesNames: unstagedDependenciesNames) } } From 5e8737e2bbf325c12163c8f96c6e3e9438bdbf30 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Thu, 16 May 2024 16:34:21 +0200 Subject: [PATCH 03/16] add tests --- contracts/DependencyAudit.cdc | 12 +- flow.json | 320 +++++++++--------- lib/go/contracts/internal/assets/assets.go | 23 ++ lib/go/templates/internal/assets/assets.go | 50 +++ tests/dependency_audit_tests.cdc | 220 ++++++++++++ .../admin/set_unstaged_cause_panic.cdc | 8 + .../admin/test_check_dependencies.cdc | 8 + 7 files changed, 473 insertions(+), 168 deletions(-) create mode 100644 tests/dependency_audit_tests.cdc create mode 100644 transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc create mode 100644 transactions/dependency-audit/admin/test_check_dependencies.cdc diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 619e9ce..651b0d9 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -21,12 +21,11 @@ access(all) contract DependencyAudit { // checkDependencies is called from the FlowServiceAccount contract access(self) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { - var numDependencies = dependenciesAddresses.length - var i = 0 - var unstagedDependenciesAddresses: [Address] = [] var unstagedDependenciesNames: [String] = [] + var numDependencies = dependenciesAddresses.length + var i = 0 while i < numDependencies { let isExcluded = DependencyAudit.excludedAddresses[dependenciesAddresses[i]] ?? false if isExcluded { @@ -89,6 +88,13 @@ access(all) contract DependencyAudit { DependencyAudit.panicOnUnstaged = shouldPanic emit PanicOnUnstagedDependenciesChanged(shouldPanic: shouldPanic) } + + // testCheckDependencies is used for testing purposes + // It will call the `checkDependencies` function with the provided dependencies + // `checkDependencies` is otherwise not callable from the outside + access(all) fun testCheckDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { + return DependencyAudit.checkDependencies(dependenciesAddresses, dependenciesNames, authorizers) + } } // The admin resource is saved to the storage so that the admin can be accessed by the service account diff --git a/flow.json b/flow.json index 5e013e9..5c9b016 100644 --- a/flow.json +++ b/flow.json @@ -1,166 +1,156 @@ { - "contracts": { - "A": { - "source": "./contracts/test/A.cdc", - "aliases": { - "emulator": "179b6b1cb6755e31", - "testing": "0000000000000009" - } - }, - "B": { - "source": "./contracts/test/B.cdc", - "aliases": { - "emulator": "f3fcd2c1a78f5eee", - "testing": "0000000000000010" - } - }, - "C": { - "source": "./contracts/test/C.cdc", - "aliases": { - "emulator": "f3fcd2c1a78f5eee", - "testing": "0000000000000010" - } - }, - "Foo": { - "source": "./contracts/test/Foo.cdc", - "aliases": { - "emulator": "01cf0e2f2f715450", - "testing": "0000000000000008" - } - }, - "FungibleToken": { - "source": "./contracts/standards/FungibleToken.cdc", - "aliases": { - "emulator": "ee82856bf20e2aa6", - "mainnet": "f233dcee88fe0abe", - "testnet": "9a0766d93b6608b7" - } - }, - "MetadataViews": { - "source": "./contracts/standards/MetadataViews.cdc", - "aliases": { - "emulator": "f8d6e0586b0a20c7", - "mainnet": "1d7e57aa55817448", - "testnet": "631e88ae7f1d7c20" - } - }, - "MigrationContractStaging": { - "source": "./contracts/MigrationContractStaging.cdc", - "aliases": { - "crescendo": "27b2302520211b67", - "emulator": "f8d6e0586b0a20c7", - "mainnet": "56100d46aa9b0212", - "testing": "0000000000000007", - "testnet": "2ceae959ed1a7e7a" - } - }, - "NonFungibleToken": { - "source": "./contracts/standards/NonFungibleToken.cdc", - "aliases": { - "emulator": "f8d6e0586b0a20c7", - "mainnet": "1d7e57aa55817448", - "testnet": "631e88ae7f1d7c20" - } - }, - "StagedContractUpdates": { - "source": "./contracts/staged-contract-updates/StagedContractUpdates.cdc", - "aliases": { - "emulator": "f8d6e0586b0a20c7", - "testing": "0000000000000007" - } - } - }, - "networks": { - "crescendo": "access.crescendo.nodes.onflow.org: 9000", - "emulator": "127.0.0.1:3569", - "mainnet": "access.mainnet.nodes.onflow.org:9000", - "sandboxnet": "access.sandboxnet.nodes.onflow.org:9000", - "testing": "127.0.0.1:3569", - "testnet": "access.devnet.nodes.onflow.org:9000" - }, - "accounts": { - "a-account": { - "address": "179b6b1cb6755e31", - "key": "1bbaf3239cfd9e8e35f85723f6c70f2ac5c8f50856c4667021cf9ed72eabd9f8" - }, - "abc-updater": { - "address": "e03daebed8ca0615", - "key": "caa4da634fee3ad45ce67ef8a6813987888d88f4b4e6e70b8d84685845db7f25" - }, - "bc-account": { - "address": "f3fcd2c1a78f5eee", - "key": "c06a4b0fce3bc3088a2a2e3b11a9ea5d13e251661cefa3f26af1180ad317d3dc" - }, - "emulator-account": { - "address": "f8d6e0586b0a20c7", - "key": "a08c990a1f7adb14c290d05df0f397d2de2f4d0cb18cdffed592f611f95f5d08" - }, - "emulator-ft": { - "address": "ee82856bf20e2aa6", - "key": "686779d775e5fcbf8d2f4a85cb4c53525d02b7ef53230d180fc16f35d9b7d025" - }, - "foo": { - "address": "01cf0e2f2f715450", - "key": "e9b7b36e9d16f47501db73e84c68e441609475ee482ee808411b2fe0bd2329da" - }, - "migration-contract-staging-crescendo": { - "address": "27b2302520211b67", - "key": { - "type": "google-kms", - "hashAlgorithm": "SHA2_256", - "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-testnet/cryptoKeys/evm-storage-testnet-key/cryptoKeyVersions/1" - } - }, - "migration-contract-staging-mainnet": { - "address": "56100d46aa9b0212", - "key": { - "type": "google-kms", - "hashAlgorithm": "SHA2_256", - "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-mainnet/cryptoKeys/evm-storage-mainnet-key/cryptoKeyVersions/1" - } - }, - "migration-contract-staging-testnet": { - "address": "2ceae959ed1a7e7a", - "key": { - "type": "google-kms", - "hashAlgorithm": "SHA2_256", - "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-testnet/cryptoKeys/evm-storage-testnet-key/cryptoKeyVersions/1" - } - } - }, - "deployments": { - "crescendo": { - "migration-contract-staging-crescendo": [ - "MigrationContractStaging" - ] - }, - "emulator": { - "a-account": [ - "A" - ], - "bc-account": [ - "B", - "C" - ], - "emulator-account": [ - "MigrationContractStaging" - ], - "emulator-ft": [ - "FungibleToken" - ], - "foo": [ - "Foo" - ] - }, - "mainnet": { - "migration-contract-staging-mainnet": [ - "MigrationContractStaging" - ] - }, - "testnet": { - "migration-contract-staging-testnet": [ - "MigrationContractStaging" - ] - } - } -} \ No newline at end of file + "contracts": { + "A": { + "source": "./contracts/test/A.cdc", + "aliases": { + "emulator": "179b6b1cb6755e31", + "testing": "0000000000000009" + } + }, + "B": { + "source": "./contracts/test/B.cdc", + "aliases": { + "emulator": "f3fcd2c1a78f5eee", + "testing": "0000000000000010" + } + }, + "C": { + "source": "./contracts/test/C.cdc", + "aliases": { + "emulator": "f3fcd2c1a78f5eee", + "testing": "0000000000000010" + } + }, + "Foo": { + "source": "./contracts/test/Foo.cdc", + "aliases": { + "emulator": "01cf0e2f2f715450", + "testing": "0000000000000008" + } + }, + "FungibleToken": { + "source": "./contracts/standards/FungibleToken.cdc", + "aliases": { + "emulator": "ee82856bf20e2aa6", + "mainnet": "f233dcee88fe0abe", + "testnet": "9a0766d93b6608b7" + } + }, + "MetadataViews": { + "source": "./contracts/standards/MetadataViews.cdc", + "aliases": { + "emulator": "f8d6e0586b0a20c7", + "mainnet": "1d7e57aa55817448", + "testnet": "631e88ae7f1d7c20" + } + }, + "MigrationContractStaging": { + "source": "./contracts/MigrationContractStaging.cdc", + "aliases": { + "crescendo": "27b2302520211b67", + "emulator": "f8d6e0586b0a20c7", + "mainnet": "56100d46aa9b0212", + "testing": "0000000000000007", + "testnet": "2ceae959ed1a7e7a" + } + }, + "NonFungibleToken": { + "source": "./contracts/standards/NonFungibleToken.cdc", + "aliases": { + "emulator": "f8d6e0586b0a20c7", + "mainnet": "1d7e57aa55817448", + "testnet": "631e88ae7f1d7c20" + } + }, + "StagedContractUpdates": { + "source": "./contracts/staged-contract-updates/StagedContractUpdates.cdc", + "aliases": { + "emulator": "f8d6e0586b0a20c7", + "testing": "0000000000000007" + } + }, + "DependencyAudit": { + "source": "./contracts/DependencyAudit.cdc", + "aliases": { + "emulator": "f8d6e0586b0a20c7", + "testing": "0000000000000007" + } + } + }, + "networks": { + "crescendo": "access.crescendo.nodes.onflow.org: 9000", + "emulator": "127.0.0.1:3569", + "mainnet": "access.mainnet.nodes.onflow.org:9000", + "sandboxnet": "access.sandboxnet.nodes.onflow.org:9000", + "testing": "127.0.0.1:3569", + "testnet": "access.devnet.nodes.onflow.org:9000" + }, + "accounts": { + "a-account": { + "address": "179b6b1cb6755e31", + "key": "1bbaf3239cfd9e8e35f85723f6c70f2ac5c8f50856c4667021cf9ed72eabd9f8" + }, + "abc-updater": { + "address": "e03daebed8ca0615", + "key": "caa4da634fee3ad45ce67ef8a6813987888d88f4b4e6e70b8d84685845db7f25" + }, + "bc-account": { + "address": "f3fcd2c1a78f5eee", + "key": "c06a4b0fce3bc3088a2a2e3b11a9ea5d13e251661cefa3f26af1180ad317d3dc" + }, + "emulator-account": { + "address": "f8d6e0586b0a20c7", + "key": "a08c990a1f7adb14c290d05df0f397d2de2f4d0cb18cdffed592f611f95f5d08" + }, + "emulator-ft": { + "address": "ee82856bf20e2aa6", + "key": "686779d775e5fcbf8d2f4a85cb4c53525d02b7ef53230d180fc16f35d9b7d025" + }, + "foo": { + "address": "01cf0e2f2f715450", + "key": "e9b7b36e9d16f47501db73e84c68e441609475ee482ee808411b2fe0bd2329da" + }, + "migration-contract-staging-crescendo": { + "address": "27b2302520211b67", + "key": { + "type": "google-kms", + "hashAlgorithm": "SHA2_256", + "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-testnet/cryptoKeys/evm-storage-testnet-key/cryptoKeyVersions/1" + } + }, + "migration-contract-staging-mainnet": { + "address": "56100d46aa9b0212", + "key": { + "type": "google-kms", + "hashAlgorithm": "SHA2_256", + "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-mainnet/cryptoKeys/evm-storage-mainnet-key/cryptoKeyVersions/1" + } + }, + "migration-contract-staging-testnet": { + "address": "2ceae959ed1a7e7a", + "key": { + "type": "google-kms", + "hashAlgorithm": "SHA2_256", + "resourceID": "projects/dl-flow-admin/locations/global/keyRings/migration-contract-staging-testnet/cryptoKeys/evm-storage-testnet-key/cryptoKeyVersions/1" + } + } + }, + "deployments": { + "crescendo": { + "migration-contract-staging-crescendo": ["MigrationContractStaging"] + }, + "emulator": { + "a-account": ["A"], + "bc-account": ["B", "C"], + "emulator-account": ["MigrationContractStaging", "DependencyAudit"], + "emulator-ft": ["FungibleToken"], + "foo": ["Foo"] + }, + "mainnet": { + "migration-contract-staging-mainnet": ["MigrationContractStaging"] + }, + "testnet": { + "migration-contract-staging-testnet": ["MigrationContractStaging"] + } + } +} diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index b7453af..f9becc7 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,5 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: +// DependencyAudit.cdc (5.701kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -69,6 +70,26 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\xdd\x6f\xdb\x36\x10\x7f\xcf\x5f\x71\xf3\x93\x85\xb9\x4a\x3b\x60\x28\x6a\xd4\x2b\xb2\xae\x05\xf6\xd0\xad\x40\xb6\xbd\x18\x46\xcd\x48\x27\x9b\x89\x44\x1a\x24\x65\xd7\x0b\xf2\xbf\x0f\x47\xea\x9b\x94\x9c\x3e\xac\x02\x5a\x44\xd6\x7d\xfe\xee\x78\x1f\xe4\xc5\x41\x2a\x03\xb3\x4f\x7c\xa7\x98\xe1\x52\xbc\x97\xc2\x28\x96\x98\x5b\xc3\x76\x5c\xec\x66\x57\x57\xd7\xd7\xf0\xd7\x9e\x6b\x48\xaa\x2f\xc0\x35\xfd\x83\x52\x63\x0a\x77\x67\x30\x7b\x84\x8f\xff\x7c\x82\x84\xe5\x39\x17\x3b\xfb\xbe\x4d\xf6\x98\x3c\xfc\x86\x07\x14\x29\x8a\x84\xa3\xde\x42\x56\x8a\x84\x34\x40\xa6\x64\x01\xac\x7d\x97\x99\xe5\xd1\xac\x40\x10\xf4\x1f\x13\x29\x68\x2e\x76\xcc\x94\x0a\x81\x0b\xa7\x22\x97\xa7\x5b\x54\x47\x9e\xe0\x4d\x92\xc8\x52\x98\xc6\xa2\x05\xd9\xc8\x8c\x25\x43\x91\x92\x40\x3c\xa2\x3a\x83\x51\x4c\x68\x66\xb5\xc4\xce\x0f\x84\x6d\xda\xb1\xea\x26\x4d\x15\x6a\x4d\xe6\x91\xd2\xde\xb7\x3f\x58\x41\xbf\x9f\x78\x9e\xc3\x1d\x02\xcb\x73\xab\xa0\x4b\x02\x02\x31\x4d\x31\x05\x23\x41\x95\x64\x27\x59\xd1\x57\xda\xe8\x9d\x82\xc4\x2a\xb1\x04\xc0\x33\x60\xe2\x5c\x83\xd2\xd3\xc6\x14\x82\x90\x06\xb4\x61\x3b\x4c\x6b\x60\xc6\x42\xd7\xc0\x63\x5d\xff\xfd\xb9\x62\x17\x96\xa0\x6f\x19\x16\xdc\x00\x13\x84\xaa\x30\x70\xe2\x66\x6f\x89\x4a\x51\x59\xd2\x15\xb7\x00\xa9\xe0\xc0\x04\x4f\xc8\x95\xad\xfd\xeb\x4f\xf1\x77\x45\xba\xa5\xcc\xd1\x68\x08\x31\xa3\x4a\x8c\xaf\x58\x92\xa0\xd6\x73\x96\xe7\x51\x9b\x62\x0d\x4c\xe7\x9b\x32\xe5\x06\x1e\xaf\xae\x00\x00\xba\xb4\x39\x1a\xb8\x49\x0b\x2e\xb8\x36\x8a\x19\xa9\x6e\x8d\x54\x6c\x87\x9f\x99\xd9\x2f\xa1\xf3\xe2\x58\xab\x28\xe8\xb3\x36\x58\x00\xab\xe3\x0e\x7b\x76\xc4\x46\xaf\x76\x11\xb4\x3e\x13\x22\x77\xe8\x40\xd1\x70\xe4\xcc\xba\x5c\xd4\x60\xb7\xb6\x6a\x09\x27\x04\xfc\x9a\xe4\x65\x8a\x44\x54\xb8\x0c\xef\xe1\x7c\xa6\xe8\x3e\x24\xba\xeb\x86\xc6\x3c\x8b\xe0\xc8\x54\xcd\x9c\x36\xe9\xb8\x84\xc7\xea\xef\x25\xfc\x2a\x65\xfe\xe4\xfb\x4f\x7c\x03\x70\x1d\xad\x4f\xea\xc2\x56\x53\x75\x53\x70\x1e\x3c\x0c\x4b\x58\x57\x7f\x6f\x16\xe0\x1d\x89\x25\xac\x6f\x8d\xe2\x62\xb7\x89\xc6\x54\x7d\xee\xdb\xd5\xd5\xf8\x7e\xcf\xc4\x0e\xd3\xb9\xde\xcb\x32\x4f\x2d\xa1\x33\x3b\x6a\xe2\xe4\x1d\x14\xca\x19\xaa\x2e\x98\xb6\xc8\x4e\x94\x03\x1f\xe3\xac\x14\xbe\xd4\xf9\x17\xb8\xec\xfd\x97\x29\xff\xe9\x33\x2b\xcd\x5e\x2a\xfe\x2f\xaa\x2e\x63\x04\x8f\xd6\x0a\x7a\x28\x50\x65\x00\x89\x90\x42\x58\xc1\x7a\x73\x91\x73\x60\x86\x63\xea\x71\x89\xb2\xe8\x01\xb8\x0a\xbb\x1a\xe7\x28\x76\x66\xdf\x63\xe5\xb0\x82\x97\xcd\x2f\xa7\x3d\xcf\x11\x38\xbc\xf5\x44\xb6\x0e\xd2\x43\xa7\x91\xeb\x0f\x55\x1e\xc3\x6a\x78\x82\x63\x2f\xc5\xd7\x41\x8b\xd6\x7c\xb3\x81\x77\xef\x20\x63\xb9\xc6\x9e\x06\x9e\x75\x15\xf4\xb5\xdb\xef\xb0\x02\x0e\x3f\xc2\x2b\xef\x0b\xe5\x05\x17\x65\x5f\xdc\xd3\x95\x67\x7f\x55\xcc\x56\xa3\x15\x35\xe6\xfa\xd6\xd2\xcc\x59\x7d\x38\xc7\x9c\x58\xd8\x4e\xb6\xf4\xb3\x67\xcd\x37\xd1\xd0\xaf\x1f\x2a\xcd\xbe\x53\x93\x79\x13\xb3\x03\xfd\x1a\x3e\xc3\x9e\x9e\x31\x71\xd6\xaa\x90\xa8\xb0\xb9\x03\xdc\x7c\xd4\x3b\x04\x3c\xbb\xe0\x80\x4b\x3f\xf8\x05\x5e\x0e\x7c\xe7\x99\x97\x40\x83\x5a\x17\x00\xcb\x75\xb9\x4b\x1d\xc7\xf5\xb7\x4e\x93\x76\xe5\xbe\xe9\x58\x66\x8f\x0a\x6d\x4f\xa4\x7e\x19\x6c\x71\x21\xcd\x24\xd4\xc9\x28\x50\x6b\xb6\x43\x27\x96\x8b\xa6\x2d\x3c\x53\xd6\xd8\xa1\x77\x87\x1d\x56\x30\x9b\x05\x79\x44\x59\x84\xea\x2d\xac\x9e\x15\x83\xa0\xc8\xfb\x5e\x29\xa8\x1f\x57\x12\xee\x5d\x49\x08\xaa\xf4\x43\x53\xc5\xf4\x3e\x10\xea\xee\x33\xe9\xf7\xf8\xc7\x38\x91\x22\x61\x66\x3e\x5b\xc0\xcc\x4f\x7a\xb0\x49\xf9\x7f\xa8\xbb\x89\x67\x51\xfd\x32\x09\xf2\xfa\x7e\x13\x1b\xe9\xb8\xe7\x51\xc3\x33\xbb\xc0\xef\x4e\xe0\x7d\xdd\x67\x87\x0f\x85\xe7\x3e\x58\xf1\x9e\x7c\x86\x2a\x45\x3b\x79\xaf\x5d\x86\x66\x8c\xe7\x6e\xa4\x63\x4d\xea\xda\x29\x28\x97\xf2\x41\x43\xce\x1f\xe8\x9d\xeb\x25\x6c\x51\x29\xa9\x96\x2e\xcd\x97\xf0\x51\x96\x22\x0d\x27\xf5\x12\x6e\xe2\x97\x5f\x7f\x4a\x90\xe1\x9b\x9f\xdf\x60\xfa\x8a\xbd\xc6\xd7\x2c\x1e\xab\xab\x8b\x30\xf9\xa0\x02\x6c\x3d\x9f\xac\x21\xf3\xd9\xa4\x21\xb3\x29\x80\x5d\x44\xa2\x41\x85\x03\xcc\x35\x06\xb2\xd4\x4e\xc1\xdf\x32\x45\x4d\xe6\x44\x70\xb2\x1a\xcd\x82\x61\x11\xee\xff\xf5\xd4\x9b\x71\x7b\x53\x31\x28\xd4\x52\x25\x08\x09\x13\x34\xcf\xda\xad\xcd\x48\x9a\x80\xc1\x7e\x2d\xe4\x11\x3b\xf3\x70\x33\x60\x79\x0d\x1b\x52\x6e\xf3\x86\xa9\x73\xa5\xcd\x9b\xfe\x48\x57\x49\xca\xfa\x26\xb4\x50\xd2\x9e\x96\xa6\x1f\x3c\xd1\x64\x0d\x29\x6d\xed\xa0\x6a\xfd\x1c\x2b\x86\x26\xd0\xa8\x17\x52\x31\x67\x81\x71\x2b\x1a\x44\x39\x93\xaa\x36\x81\xb6\xab\xd6\x1a\x3f\x19\x2e\xcf\x37\xac\x9d\xe9\xa8\xef\x8c\x06\xb0\x0b\x8e\x0b\x87\x8f\x4f\x15\xa6\x3e\x44\xcf\x0f\x55\x08\xa4\x11\x55\xdf\x1d\xa7\xd8\x19\x32\x7f\xc0\xf3\xb2\x96\x34\x9e\xed\x5d\xb0\x34\x9a\x89\x45\x83\x3e\x6b\x77\x19\xe1\x4d\x04\x47\xa6\x38\xbb\xcb\xb1\xce\xb2\x23\xcb\x4b\xa4\xdd\x78\xdb\x59\x4b\xb6\xa3\xd0\x4d\x2b\x0e\xac\x36\x03\x5c\x2e\x8d\x36\x2b\xe8\x88\xe8\x71\xda\x12\xf4\xad\xdb\x55\xe7\x25\x1a\x81\xd2\xa0\x36\xef\x43\x6b\x97\x2d\x17\x14\x6e\xa2\xa0\xc6\x78\x28\xd5\x41\xea\xce\xdc\x42\x53\x57\xb5\x32\x27\xf5\x1d\xc9\x85\xbb\x8e\xea\xfa\xe0\xa0\xe4\x91\xa7\x63\xf3\xd0\xf5\x75\x50\x0c\xd7\x20\x69\x44\x3b\x71\xed\x6e\x2d\x48\xa9\x8d\x65\x73\x1c\x64\x69\x34\x4f\x71\x34\x7c\x41\x67\xbf\xd7\x36\x48\x8f\x42\x53\x2a\xe1\xa5\x81\xbf\xa1\x06\x2d\x0a\x34\x8e\x45\x57\x71\x34\xd9\x1c\x18\x55\xe6\xb6\x50\xd3\x6c\xcc\x8e\xae\x25\xd8\x4b\x38\x77\x6f\x02\x5a\x56\x97\x59\x0d\x4b\xd5\x3f\x1c\x98\xed\xcd\x9f\x76\x3b\x38\xfd\x4e\x4b\x78\x57\xd5\xd6\x3b\xeb\xed\x6d\x5a\xbf\x92\x35\x29\x51\x5d\xcf\x54\x9b\xbc\xbd\x92\x89\xad\x48\x2e\xb8\x99\x07\xae\x49\x82\x18\xd3\xd2\xef\x17\x1a\x58\xc1\xe3\x53\x9f\xc6\x3f\x78\x6e\xef\xec\x53\x8d\xdd\x32\xc1\x0a\xae\x2b\xbc\xae\xb3\x5c\x9e\x06\xf1\xb4\x6c\xad\xa8\x41\xcd\xf4\xcd\xeb\xe7\x48\xd8\x87\xd1\xa6\xd2\x39\xce\xb4\xca\xba\x90\xbd\x7d\x01\x89\x42\x66\x06\xfd\x78\x1e\xf5\xfd\xab\x42\x17\x53\x22\xcc\xdf\xbe\xb0\xbc\x0b\x30\x72\x39\xed\x7e\x54\x65\xd7\xd3\xd5\x7f\x01\x00\x00\xff\xff\x1f\x18\x00\x75\x45\x16\x00\x00" + +func dependencyauditCdcBytes() ([]byte, error) { + return bindataRead( + _dependencyauditCdc, + "DependencyAudit.cdc", + ) +} + +func dependencyauditCdc() (*asset, error) { + bytes, err := dependencyauditCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf5, 0xdf, 0x4b, 0x1c, 0xa5, 0xf6, 0xdf, 0x39, 0xb7, 0x3d, 0xab, 0x2f, 0xbe, 0x63, 0xbe, 0x5c, 0x16, 0xb, 0x1c, 0x46, 0x74, 0xb2, 0x4a, 0x35, 0x1d, 0x8, 0xdf, 0xe2, 0xd7, 0xf9, 0xa7, 0xb4}} + return a, nil +} + var _migrationcontractstagingCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x3c\xcb\x72\x5b\xb9\xb1\x7b\x7f\x45\x8b\x0b\x9b\xbc\x45\x51\x93\xa9\x5b\x77\xa1\x32\xe3\x51\x64\xcf\x1d\x2f\xec\x71\x59\x72\xb2\x70\xb9\x26\xd0\x39\x4d\x12\xe5\x43\x80\x05\xe0\x88\xd6\x75\xbc\xcf\x77\xde\x2f\x49\xe1\xfd\x38\x07\x24\xad\x99\x1a\x56\x12\xdb\x24\x80\x7e\xa0\xbb\xd1\xcf\x5c\x5c\x5c\xc0\xed\x86\x4a\x68\x38\x53\x82\x34\x0a\xa8\x04\xca\x14\xb2\x16\x5b\x58\x71\x01\xbd\x44\xa0\x0c\xd4\x06\xe1\x9a\xb4\xc8\x1a\x84\xbf\x2c\x7e\x88\xeb\xb7\x74\x2d\x88\xa2\x9c\x01\x69\x04\x97\xd2\xac\xfc\xb9\xe3\x7b\x60\xa8\xf6\x5c\x7c\x5e\x3c\xb9\xb8\xb8\xd0\xff\x85\xd7\x0c\x76\x02\x77\xc4\xad\xd7\xa7\x2b\x0d\x7b\x4b\x3b\x94\x8a\x33\x9c\xc3\x03\xef\x45\x3c\x7b\x4f\xbb\x0e\xde\xbe\x7a\xf5\x12\x14\x87\x3b\x84\x7e\xd7\x12\x85\xed\x19\xfc\xaa\xd1\x78\xe0\xfd\xb3\xfb\xf0\xa5\xdf\xda\xa2\x3e\xd8\xc0\x4b\xf0\x35\x27\xc3\x9b\x0f\x37\xb7\x20\x15\x59\x63\x01\xc8\x6c\x33\x54\xa6\xac\x90\x1c\xd4\x86\x28\x43\x91\x85\x02\x0d\x61\x1a\x11\xfc\x82\x4d\xaf\x81\x12\x09\x04\x76\x44\x28\xe0\x2b\xbd\xce\xc0\x75\x84\x9f\xef\x69\x8b\x1a\x9c\xc2\xc8\xa5\xc8\x8d\x5b\x3e\x8a\x8a\x05\x74\x69\x96\xfc\x65\x01\x8d\x40\xbd\x9f\xc0\x2f\x5c\x2a\x78\x0a\x92\xdc\x1b\x4c\xb3\x4d\xe7\x1b\x2e\x15\x65\x6b\x20\x4d\xc3\x7b\xa6\xcc\xe6\x1f\x17\xd0\x90\xae\xb3\x40\xae\xdd\xca\xe9\x0c\x76\x44\x4a\xb3\x16\x04\xae\x50\x18\x0e\x29\x6e\xf8\xa3\x61\xcc\x0d\xb9\x01\x1d\x46\xb6\x38\x07\xc2\xda\x84\x0b\x6d\xe0\xac\xe6\x5b\x24\xc8\x30\xcf\x32\xa8\xe5\xcc\xa0\x49\x40\xc3\xea\x10\x94\x20\x4c\x92\x46\xb3\xe0\x0c\x7e\xe6\x02\xb6\x5c\xd8\xfd\x06\x16\x7e\x51\x73\x90\x88\xb0\x51\x6a\x27\x2f\x2f\x2e\xd6\x54\x6d\xfa\xbb\x45\xc3\xb7\x17\x9c\xad\x3a\xbe\xbf\x08\xc4\x5a\x24\xcc\x15\x3f\x21\x4d\x83\x52\x4e\x49\xd7\xcd\x22\xce\x6f\x3c\xb3\x3d\xd5\x37\x8a\xac\x35\xc9\x5f\x9f\x3c\x01\x00\xb8\xb8\x80\x77\x44\x6d\xf4\x06\xa9\x08\x53\xd2\x7d\x6b\xfe\x70\x27\x4a\xec\x56\x33\xe8\x50\x41\x8b\x1d\xdd\x52\x85\xe2\x12\x6e\x94\xa0\x6c\x3d\xbe\xac\x21\x3b\xd9\x77\xa8\x0f\x7e\x27\x70\x45\xbf\x8c\x2d\x37\x78\xea\xd5\x9a\xd3\x37\x8a\x0b\xb2\x36\x3b\xf4\xda\xf0\x8f\xd1\x0d\x57\xed\x96\xb2\x83\x3b\xf4\x15\xbc\x21\xbb\x44\x7e\x49\xdb\x0a\x94\x12\xa5\xbe\x5f\xc2\x80\x08\x41\x1e\xb4\xa0\x1a\x91\x68\xf3\x4b\x96\xe3\x64\xd9\xa5\x9e\x91\xf2\x12\xbe\x5e\xd9\x53\x2f\xe1\xa3\xa5\xef\xd3\xb7\x00\xfe\x76\x83\x70\xd7\xf1\xe6\x33\x6c\x90\xae\x37\x0a\x88\x82\xfd\x86\x36\x1b\x27\x38\x56\x3c\x18\xd7\xff\xe9\x38\x5b\xa3\xd0\xb2\x62\x41\x2c\xe0\xf5\x0a\x18\xed\xe6\xd9\xda\xf0\x33\x50\xd6\xe2\x8a\x32\xaa\xb0\x7b\x80\x9e\x29\xda\x05\xb0\x46\x60\x7b\xc5\x57\x2b\xb8\x27\x5d\x8f\xda\x86\x49\x54\x8b\x21\x45\xf7\x44\x98\xf3\x28\x5b\x5f\x9b\x0d\x97\xf0\xe1\x35\x53\xff\xf3\xdf\x2f\xc2\x61\xef\x51\xf6\x9d\x92\x4e\x9f\xa1\x23\x52\x01\x6e\xfb\xce\xc8\xfd\xd0\xea\xcd\xa1\xe1\xdb\x2d\x55\xfa\xd7\xbb\x07\xb3\x85\xe8\xab\x02\xb2\x52\x28\x80\xaf\x56\xcd\x86\x50\x36\xb2\x73\x70\xcd\x1a\x39\x0d\xee\x95\x83\x16\xc4\xd8\xa2\x74\x09\x95\x1f\x5e\x3c\x09\xc8\xbf\xba\x47\xa6\xd1\xb5\xf8\xec\x37\xa8\x35\xd0\x83\x7e\x26\x9d\x9d\x93\x8e\xa7\x73\x10\xb8\xeb\x48\x83\x2d\x68\x43\xcf\xec\xb7\xe1\xb0\x7f\x5a\x75\xfd\x27\xfc\xff\xbf\xff\x0d\x5f\x27\xe6\xd7\xc9\x1c\x26\x6e\x93\xfe\xab\xdb\x33\xf9\x06\x48\x9a\x0d\xb4\xc8\xb8\xb1\x43\x86\x0d\x66\x37\xdc\xa1\xf9\x82\x7c\x46\x06\xdc\xbe\x23\x85\xf8\x05\x80\x6f\x7f\xbd\x7d\x75\x09\x2f\x39\x4a\x60\x5c\xc1\xba\x27\x82\x30\x85\x18\xad\x70\x61\xb0\xa5\xbe\x6f\x1a\xcc\xd1\x80\xa3\x68\xd8\xe1\xb4\xff\x46\x11\xd5\xcb\x0f\xd6\x82\x4d\xcd\x5a\xfd\x71\x7a\xfb\xe1\xc3\xeb\x97\x5e\x18\xe6\xe1\x47\xe2\x65\xdd\x09\x7d\xfc\x45\x23\xe0\x35\x3c\xfd\xd6\xe2\x37\xfc\xc5\x72\x23\xb3\x09\xb3\x78\x6d\xe9\x85\x1d\x10\x36\x09\x1b\x6d\xfe\xef\x10\xb5\x40\x6d\x77\x1d\x2a\x7d\x8b\xfb\x0d\x0a\x84\x15\xa1\x5d\xa2\xa9\x40\x04\x1a\xc5\xf6\x72\x49\x45\x80\x17\x1f\xfb\x16\x99\xa2\x2b\x8a\x02\xce\xe1\x6a\x71\xf5\xf2\xe5\xfb\x57\x37\x37\x8b\xb7\x57\x6f\x5e\xb9\x53\xdd\x57\x9a\xd7\xfa\x02\xf4\x43\xe3\xb9\x02\x7b\xaa\x36\xbc\x57\xf0\xc3\x97\x0a\xe7\x2b\x02\x7b\xed\x35\x26\xde\x82\x64\x64\x27\x37\x5c\xdd\xd2\x2d\x4a\x45\xb6\xbb\x4b\xf8\xf0\x33\xfd\x92\xde\x45\xd0\xb3\x03\x6b\x0a\x1e\x44\x1b\x75\x88\xe1\x5e\x24\x83\x51\x88\x56\xc4\xbd\x77\x87\x05\xcb\x6e\xf2\x82\xc5\xbb\x36\x18\x95\x39\x30\xdc\x87\x7f\xcd\x9e\x38\x45\xfd\xaf\x91\x4f\x20\xe1\x5d\x7f\xd7\xd1\x06\xde\xa0\xda\xf0\xd6\x1a\x65\x18\xdb\x70\xe1\x0f\x83\xf3\xf3\x73\x8f\x8a\xdf\x66\xbe\x0b\x4b\xb4\x27\x01\xe7\x70\xed\x5d\x09\x7b\x89\xac\x75\xce\x84\x3a\xea\x4f\x68\x3b\x5e\x7b\x54\x17\xc5\x53\xe6\x41\x06\xd0\x16\xac\xf4\x2e\x8c\x44\x71\x6f\x8e\x96\x41\xfa\x9a\xd4\x1f\x4c\x94\xdc\x41\x5f\xc0\xfb\xd4\x51\x31\x3e\x9a\x40\xc9\x7b\xd1\x60\x94\x60\x23\x9f\x51\xc2\x49\xd7\x19\x28\x4e\x54\x25\xd7\x74\x6e\x7b\xa9\xcc\x93\x42\xee\xcd\x8b\x12\xe8\x93\x16\x7f\xb8\xc3\x95\x76\x4b\xac\xcd\xea\x25\xb6\x1a\xa0\xf5\xd2\x48\xe9\xa2\x2d\x32\x4a\x53\xe9\x58\xf5\xcc\xf9\x6d\x9a\xe2\xe9\xec\x12\x7e\x32\xa4\x7f\x0d\x97\x2c\x50\xf5\x82\xc1\xf3\x73\xef\xdf\xd9\x85\xe6\xf7\x6f\xf1\xd6\x7e\xd4\xb7\x36\xe6\xc3\x69\xcd\x8b\xfa\x18\xfd\x38\x7d\xa9\xd9\xab\x9e\x7f\x63\xac\xa6\x76\xf4\xf6\x54\x6e\x02\x69\x83\x1b\xd3\x37\x6b\xf9\x59\x6c\xf5\x37\xb4\xa6\xf7\xc8\x4a\x40\x6a\x60\x20\xcc\x93\x9e\x9d\x42\x25\x90\x4e\x20\x69\x1f\xfc\x13\x94\x3f\xe2\x1a\x88\x71\xfa\xef\x30\xbc\x4d\x8b\xe2\x7d\xd8\x92\xcf\xe6\x76\x9c\x97\xe0\xa9\x68\xed\x6e\x81\x12\x95\x7b\x17\xac\x58\x49\x63\xf7\x1d\xee\x44\x05\x64\x0e\xdf\x5f\xce\x71\x4d\xd5\x25\x3c\xb5\xfe\xb1\x26\x37\x18\xf8\xec\x21\x98\x25\x57\xbc\x13\x98\xfc\xcb\xd8\x38\xec\x56\x0b\x2a\x9d\xde\xbc\x43\x41\x79\x7b\xd5\x28\x7a\x8f\x5a\x44\x26\x5e\x85\x77\xe6\x07\xd8\x10\x09\x26\x0a\x9b\x84\x43\xbe\x85\xbf\x15\x0e\x27\x2c\xed\xe1\x2d\x0a\x7a\x8f\xd7\xf6\x87\x44\x27\xa7\x9e\xe6\xe0\xbb\x69\x82\x16\xee\x9a\xa6\xb3\x79\x60\xca\x5b\x43\x9b\xa6\x70\x16\x80\xd1\x95\x3d\xbd\x70\x05\x3f\xe6\x67\x7c\x82\xe5\x52\xfb\x6f\x05\xd1\x17\x17\xf0\x33\x15\x52\x81\xa2\x5b\x84\x3d\x3e\x13\xa8\xfd\x7c\x4d\x68\x13\x9e\xaa\x95\xe0\x5b\xab\xd7\x5e\x5f\xcf\x81\x32\x89\x42\x39\x87\xca\x7e\x39\x90\xee\x21\x7b\x0b\x1c\x17\xf6\x94\xe9\x67\x7c\x18\xd2\xfc\x51\x1f\xf1\x69\x56\xa2\x1b\xcc\x24\xc3\x3d\x38\x5e\x5a\x29\xd3\xa6\x21\xf3\x5f\xda\x1c\x83\xe4\x56\xb4\x6a\x1b\x84\xac\x7e\xbb\x63\x9c\x1c\x6d\x12\x31\xb2\xf1\x95\x15\x22\xfd\xbf\xb3\x21\x4d\xde\x0c\x6a\xab\x35\x7d\x7e\xee\x20\xcc\x41\xf1\xcb\x54\x08\xf2\x9d\xd6\xc2\x8c\x88\xce\xc5\x05\xfc\x03\x75\xdc\x2c\x31\xd1\xe1\xf4\x0e\xb2\x37\xde\x59\xc4\x73\x68\x36\xd8\x7c\xd6\xb2\x70\x58\xa1\x53\xa9\x31\xfc\x70\x2b\x5f\xb3\x16\xbf\x78\x39\x3d\x22\x49\x67\x8b\x95\x16\x19\xb3\x65\xca\x57\x4e\x1e\x87\x82\x75\x7b\x10\x13\x38\xf7\x26\x24\xd8\x96\xea\x6d\x2d\x73\x4e\xdf\x71\x21\xf8\xfe\xf9\x53\x77\x6d\x7f\x9d\x6a\xe6\x1c\x60\xb6\xfe\xbc\x78\x01\x3b\xc2\x68\x33\x9d\x5c\xf3\xbe\x6b\x8d\x07\x6b\xcf\x01\xfc\x42\xed\x73\xea\xa5\xc9\xf0\xda\xbf\x39\xda\x30\x15\x1e\xf1\x24\x3f\xde\xc1\x5d\x38\x72\xae\x79\x8b\xd3\x9a\xc4\x1c\xba\xf7\x44\x11\x9d\xbf\x53\x24\x3c\xce\xf5\xb5\x0f\xe3\x7f\xfb\xea\x22\x74\x54\x9a\x3c\x47\x14\x1a\x87\xb7\x26\x41\xdf\xe1\x93\x43\xba\x38\xbc\x65\xb2\xdb\x21\x6b\xa7\xb9\xb5\x19\x13\xf9\xc7\x69\x52\x45\x43\x92\xf7\xf5\x3d\x6e\xf9\xbd\x7b\xe9\xca\x98\xd8\x3e\x78\x56\x29\x22\xbf\x90\xdd\x53\xc1\xd9\x16\xd9\x91\xf7\xc3\x45\x46\xc7\x5f\x90\x3f\xed\xcd\xd8\xe5\x2e\x88\xfe\x9c\x25\xc7\x63\x3b\x25\xb5\xd7\x21\x32\x58\x03\xbd\x4e\x54\x4e\x2a\xea\xdd\x93\xea\x43\xe5\x4d\xc9\xb2\x38\xf7\xe8\x03\xe3\x56\x56\x5e\x96\xaa\xa4\x27\x8a\xad\xa3\x3a\xaf\xdc\xc2\x5c\xf6\x4d\x06\x23\x92\xec\xfe\x92\xd1\xfa\x64\x5c\xbf\xdf\x09\x7e\xd7\xe1\x16\x5a\x94\x4a\xf0\x87\xe8\x8c\x78\xfd\x4e\xd4\x57\x87\xe2\x47\x02\x50\x28\x83\xd0\xe4\x1f\xf3\x6c\xd5\x00\xd9\xfc\x0c\x23\xf9\x93\x49\xf9\xad\x8f\x48\x8d\x7e\xe4\xe7\xb9\x98\x34\x84\xf1\xe1\xd7\x5c\x53\x6c\x88\xe1\x02\x93\xff\x45\xa5\x50\x0c\x23\x8c\xf7\xe6\x3a\x64\x4c\x9a\x1c\x4f\x04\x85\xe4\xce\x41\x4d\x5a\xa3\xca\x02\x2d\x2d\xf8\x2e\xa2\x1a\x7a\xd4\x41\x8e\xc2\xf2\xa1\xce\x5b\x3c\xf7\x1b\x54\x1b\x14\x99\x76\x3b\x35\xd2\x26\xb1\x17\x02\x99\xea\x1e\x0c\x93\xee\xf1\x20\x86\x55\xfd\xfc\x1b\xe7\xdd\x29\x38\x7a\x01\xff\xd7\xbf\x34\xb5\xd7\x16\xf6\xdf\x34\xff\xa6\xb3\x85\xe3\xe0\xf3\xe5\xc8\xc6\xb3\x1a\x75\x4a\xe8\x00\x76\xf8\x58\x47\xba\x5c\xd6\xad\x4a\xd8\x3d\xc5\x7d\x42\x5d\x6a\x1e\xae\x72\x5d\x71\x76\xec\x28\xb9\x63\xaa\xfd\x62\xa1\xb1\x23\x94\x49\xfb\x0c\x68\x35\x5b\x91\x4e\xe2\xe3\x09\x73\xae\x3f\xb6\xc6\x5f\xd4\x6c\xa5\x2b\xa0\xea\x99\x4d\x2a\x7d\x07\xd9\x7f\xf7\x07\x9d\x46\x79\x4d\x1a\x9d\xfc\x46\xea\xad\x05\x38\x6c\x7a\x5e\x2c\x52\xf8\x86\x2d\xcc\x65\x3c\xc7\x98\xb2\xb1\xa9\x1e\x93\xb5\x0c\xf1\x62\x9b\x7a\x77\x59\xe4\xe6\xe3\xb3\xe3\x5c\x18\x20\xaf\x03\x04\x39\x5d\x71\x71\x55\xf0\x64\x16\x93\x2d\x27\xca\x40\x3c\xe4\x93\xa6\xef\xe3\xa7\x43\xe4\x95\xcf\x73\x5a\x81\x18\xa7\xce\x5e\x3f\xd9\x1e\x08\xd4\xeb\x64\x1a\x1f\xeb\xe8\xb5\xdb\xbf\xfc\xc1\x17\x1f\x1c\xd5\x0a\x27\xf2\xd3\x40\x2a\xd1\x37\xaa\x16\x9a\x7b\xd1\x37\x29\xc3\x93\x65\xff\x28\xe6\x35\x86\xe4\xeb\x53\xc6\xfc\xee\x88\x35\x30\xeb\x48\xa8\xfa\xfb\xdc\xfa\x51\x1f\x23\x38\xe0\xda\x38\xe7\x1c\x89\xa0\xbf\x01\x76\xb2\x74\xdf\xdc\x7e\xaf\xba\x10\xfc\x94\x91\xbb\x4d\x0b\x34\x23\x3a\x9c\x85\x65\x78\xa2\xee\x5e\x75\x5d\x7e\x91\xda\xff\x94\xfa\x69\xfa\x18\x54\xef\x24\x65\x5d\x7c\xc6\x07\x59\xc5\x1c\x5a\x6a\x5c\x09\x22\xaa\xd8\xd7\xf5\xf4\x91\x94\x18\x0d\x1d\xb7\x43\x5f\xad\x3c\x7a\xb9\xfc\x56\x8a\x61\x6a\xca\x6a\x21\x69\x62\x9c\x52\xe9\x2a\xf6\xd6\xfd\x52\xf8\xfa\xad\xe2\x9a\x7a\x48\xda\x5b\x1b\x60\xba\x4c\xf7\x69\x76\x99\xf8\x2b\xa9\x1f\x19\xc0\x67\x05\x48\x27\xf6\xce\x0b\x5d\x9e\x68\x7e\x22\x89\x99\x05\x2a\xce\xd6\x9f\x88\xf2\x47\x97\xfb\x34\xa9\x13\x58\xfa\x54\xe8\x20\xb8\x1e\x23\xde\x8b\x57\x38\xac\x2a\x4f\x63\x2f\x98\xa9\xb4\x6f\xc9\x6e\xa7\x1d\x35\x2d\x64\xce\xca\x17\xa5\xcd\x91\x9a\xe6\x77\x8b\x96\x51\x90\x91\x3a\xe7\x69\xaa\x52\xd7\x92\xc4\xbe\xe5\x09\x25\x9f\x17\x70\x35\xc7\x15\x17\xdb\xcb\xb0\xdf\xfc\xe9\x92\x05\x17\x36\x12\x2e\x4b\xcd\xbf\xb9\x2a\xcd\x6f\x6f\xaf\xde\xbc\xaa\xd3\x7a\xba\xb1\xbd\x1a\x37\xb6\xc9\xc3\x17\x29\xc9\x95\x2b\xa9\x28\x39\x39\x1c\x60\x9b\x09\x8a\xf6\xff\x1a\xa2\xa6\xee\x35\x70\xa5\xf6\xd9\xe8\x9a\x02\xcd\x85\xe2\x16\xa1\xe9\x6c\x7c\xfd\xf7\x9c\xf9\x36\x7b\x47\xdc\xf5\xa6\x3c\x8a\x84\x5d\x26\x44\xd6\x62\xc4\x98\x03\xb2\x4c\x0f\x57\x9c\x72\x4e\xeb\x77\x66\x0a\x27\x23\x71\xd7\x9f\xf6\xd1\xd1\xdc\x23\xc1\xea\x77\xdf\xfa\x21\xf2\xfb\xf7\x3e\x1e\xec\xef\xf9\x98\xd8\xd5\x01\x3e\xfc\x09\x37\x5c\xa9\x66\xda\xdf\x8f\x1c\x92\x05\xca\x3b\x81\x12\x99\xb2\xee\x9c\x88\xfd\x06\xe4\x60\xf1\xd7\x2a\x23\xa1\xcc\x17\xd8\xa5\x22\x42\xc1\xd3\xa4\x01\xc1\xa4\xf6\xb4\xdb\x4b\xd8\x83\xab\x85\x06\xb0\xb9\x61\x34\xa5\x99\xa4\xa4\xb5\x27\x21\x99\xe7\xba\x18\xec\xe9\xe1\x44\x6a\xc3\xa7\x8e\x4a\x65\x4b\x67\x45\xa9\x75\x0e\x54\xc9\xa2\xb9\xc1\x16\xe2\x4c\x9c\xdf\x70\x26\x69\x8b\x02\x5b\x90\xbd\xb1\x4d\xab\xbe\xab\x5a\x67\xe7\xd3\x56\x18\x9e\x58\x1c\xd3\x74\xe2\xcb\xc1\xb1\x4d\x20\xf6\xa4\xf9\xba\xb2\x21\xd0\x34\x21\x84\xbd\x65\x87\x8d\x5f\xea\xab\xca\xa7\x03\xf1\x57\xb8\x47\xd3\xd2\xe4\x6e\xa3\x0a\x28\xac\x18\x85\xf4\x3a\xd8\x96\xd0\x83\x12\x1f\x41\x03\xdc\x72\x3e\x2d\x71\xb5\xbd\xf0\x42\x11\x04\x28\xbf\x8a\x31\x3c\xea\xc5\xf2\xe8\xf1\x30\xaa\xa6\x25\x63\xe6\xf5\x9d\xa5\xf3\x30\x92\x73\x84\x90\x1e\xf6\x57\xf3\xdc\xbd\x13\x91\x2d\x93\x1b\xff\x9b\xaf\xd8\xba\x0e\xc4\x1d\x91\x6a\x52\x71\x34\x86\x07\x2f\xc3\x9d\x0e\x17\x45\xa5\x59\x8e\xe4\x5c\x94\xbf\xee\xe1\xc6\xb2\xcd\x62\x59\x72\xa3\xe2\xe9\x1f\x34\x2d\xb9\x8b\x56\xb7\x28\xe3\x66\x24\x16\xcc\xb5\xa2\x9a\x2f\x84\x40\xb9\xe3\xac\xb5\x75\xb6\xf6\x40\x0c\xec\x74\xad\x88\x2a\x73\x15\x73\x0f\x6e\x29\x8f\x79\xce\xbf\x14\xaf\x32\x58\xcc\x4e\xd4\xcf\x6d\x79\x5c\xf5\xa4\x34\xc8\xcc\xb5\x72\xa4\x25\xd1\x36\xa7\x26\xee\x68\xd9\x62\x95\x16\x6c\xab\x3a\xee\x6b\xd1\x44\xda\x64\x66\xda\x08\x32\x76\xa8\x5e\xe4\x32\xbb\x41\xab\x73\x2d\x3a\x1c\x3b\xd7\xeb\xc8\x41\xf0\x62\x1a\x9d\x14\x0c\x0d\x4b\x4c\xb0\xb0\xac\x94\x46\x0d\x41\xcb\x61\x1d\xcc\xfc\x98\xe0\x7f\xa2\x42\x7c\x7b\x92\x31\xcf\x27\xab\x64\x34\x90\xb6\xf9\x28\x08\x8b\xa9\x82\x49\xdf\x27\xa0\x88\x58\x47\x21\x59\xa4\x67\x8d\x33\xd9\x3b\xb1\xf6\x98\x91\xec\x2a\x44\xbf\x4d\x3b\xf5\x36\xe6\x9f\xa6\xac\x9b\x2d\x82\x25\x5d\xd8\x57\x30\x24\x1f\x03\xfb\x66\x35\x02\x6f\x50\x50\xd2\xd1\xff\x73\xe5\xa2\x32\xc9\x04\x94\xe9\x48\x44\xab\x93\x0b\x50\xbc\x27\x0f\x3f\x7c\x49\xfb\xaa\x4e\xa7\x34\xba\xb7\x5e\x2e\xc6\xa9\x4d\x49\x4c\x7c\x62\xef\xe1\x4e\x16\x93\x59\xe6\x11\x9f\x4a\xa6\x61\x4e\xa3\x2c\x65\xd4\x54\xfb\x0c\x12\x89\x8b\x9f\x92\x79\xac\x7d\xac\x23\xcd\x67\xe9\x7b\xc5\x4e\x62\x40\x04\x54\x65\x81\x79\xb8\x09\x93\x3f\x84\xda\xf2\x08\x23\x64\x47\x1b\x74\xc9\x9e\x1f\xe7\xd0\xef\x6e\xf9\x65\x75\x71\x87\x6c\x5d\xd6\x77\x35\x94\x9d\x89\x5d\x60\x09\x93\xab\xc9\x28\x6b\x0d\x16\x19\xd7\xc7\x2e\xcb\x1e\x73\xfa\x7d\x0c\xcb\x15\x69\xc1\xd6\x45\xfc\x3b\x22\x4d\xaf\xd2\xa0\x5f\x35\x71\x1e\xbd\xbb\xe0\xfc\x04\x27\xf9\xae\x8d\x61\x91\x1b\x67\xd3\x67\x63\xd2\xf0\xd0\x98\x40\x66\x8b\x84\xa5\x0e\xc7\x86\x48\xf6\x4c\x3f\xcc\xeb\x9e\xcd\x33\x73\xa9\xbf\xa6\xac\xe9\xfa\xd6\xba\x89\x16\x15\x83\x01\x17\xe9\x11\x89\x7b\x7a\x9a\x30\xa4\xf9\xf0\x51\xe5\x8f\xa3\x0c\xce\x72\x47\x1a\x9d\xfb\x50\x61\x8e\x51\xe2\x96\xb6\x1a\x77\x8d\xd6\x58\x6e\xe5\x40\x63\x2e\x2c\xeb\xcd\x71\x87\xb6\x0d\xfd\xa2\x54\xa1\x53\x8b\xfc\xfc\x10\xf8\xe8\xef\x0c\xce\xd3\x9f\xa7\x4f\xe1\xec\xd0\xee\xc2\x7b\x29\x4c\x62\xaa\x82\xb3\x03\x8e\x97\xc3\x3c\x96\x6e\x46\x45\xd9\xb4\x2f\x8c\x66\xb1\x5d\xe7\x97\xe9\x6a\x23\x5a\xd9\xf8\x3d\x6d\x7d\xae\xba\x22\x1f\x5e\x0b\x6c\x11\x2e\x6d\x8e\xf8\xed\xf8\x6b\xfa\x87\xbf\x86\x70\xaa\xaf\xa7\x3f\xbf\x04\xc7\xe9\x88\x97\x77\x83\xe2\x1e\x65\xa5\x59\x92\x98\x36\x47\x14\xcf\xe4\x20\x97\xea\x74\xf8\x66\x63\xd4\x37\x6d\x79\xf4\x6d\x27\x26\x4c\x34\x8c\x04\x49\x56\xb8\xee\x89\x68\xed\x40\x4b\x6c\x27\x5c\x0b\xa2\xfd\x4b\xb7\x4c\xf1\x64\x34\xc6\xc9\xb7\x09\x23\x87\x31\xa6\xc9\x55\xef\xa9\xdc\xd8\x06\xbd\x16\x3b\x5c\xdb\x62\x85\x6b\x3b\xe1\x40\x18\x37\x06\xcd\xb7\x60\x4e\x71\xb1\x5e\xc0\xb6\xef\x14\x95\x34\x76\x9e\x4a\x54\xfd\x0e\x90\x91\x3b\xdb\xcf\x09\x2d\xde\x63\xc7\x77\x18\xbb\x99\x43\x8b\x26\x67\xe6\x99\xba\xc3\x0d\xe9\x56\x33\x1d\x91\x82\xb4\x0c\x08\x53\x34\xef\xde\xbf\xfe\xfb\xd5\xed\x2b\xdb\x8a\xda\x90\x1d\xb9\xa3\x1d\x55\x0f\x86\x1b\xbb\xfe\xae\xa3\x72\xa3\xb7\xb9\x86\x17\x81\x0d\xd2\xfb\xa4\x11\xb6\xee\x46\x87\x86\xd4\xa2\xd3\xb3\xac\xde\x84\x75\x7c\xcf\xd2\x9b\x3b\xdd\x10\x86\xfe\x89\xe0\x4a\x1e\x70\x0b\x0c\x94\x17\xc1\x77\x8c\x09\x2a\x83\x26\x95\xd0\x33\xbd\xa4\x3d\x9b\xcc\x1e\x2b\xcb\x2e\xb3\x75\x62\xd0\xe2\xa8\x37\x5a\x6e\x12\xa0\x12\x76\xe8\xe3\x94\xec\x55\x93\x76\x7e\x68\xb4\xdc\xb5\x80\x5f\x59\x10\xa6\x41\x67\xae\xaf\x33\x04\xb0\xab\xd0\xf8\x34\xd7\x27\xba\x54\x9c\x6f\x34\xb5\xc2\x61\xcb\xc5\x06\xa5\x76\x38\x0a\x16\x5a\x91\xaf\xd8\x83\x4b\x8a\x0c\x9a\x72\xcd\xb4\x15\x0d\x39\x67\xd8\x92\x16\x81\xac\x09\x8d\xad\xcd\x52\x7b\x8a\xfe\xd0\xe4\xe1\x0c\x03\x76\x39\x66\xa1\x05\x16\xae\xa4\xe9\xdb\x95\x88\xf3\x6c\x25\x95\xb0\x45\x81\xdd\x43\x80\x1a\x86\xf7\xb2\x0c\xb3\x86\x32\x07\x32\x70\x1d\x64\x80\x15\x46\xda\xee\x1e\xca\x99\xb5\x74\xb2\xcf\xcd\xb6\x39\x37\x3e\x40\x4d\xa3\xaf\x30\xce\x77\x82\xb6\x78\x3a\xbe\x0e\xe2\xba\xac\x38\xea\x5a\x3f\xdb\x41\xcc\x68\x05\xc9\xd3\xe0\xa2\xb4\x45\xa9\x40\x71\x9c\xc9\x4d\xd7\x95\x01\x77\x1e\xaa\x8d\x2f\x1a\xe4\x36\x06\xcd\x5a\xfa\xe3\x0a\x22\x31\x4a\x99\xdc\xda\x48\x27\x60\xdc\xfa\xf9\x16\xb3\xe6\x68\x36\x23\x14\x75\xfa\x24\x37\x50\xf7\x13\xc7\x6a\xe5\xee\x08\x27\x64\xc6\x59\xe7\xab\xaa\x6a\x9d\x6e\x89\x46\xca\xa1\x25\xd3\x0e\x98\xa6\x63\xf4\x24\xce\xc2\x68\x31\x31\xf4\xc0\xdb\x14\xfa\xd8\x68\xe2\x23\xdd\x87\xa3\xce\x83\xbb\xe4\x72\x4f\xee\x20\x9d\xd8\xfa\x05\x65\xfb\x97\x85\xd0\xd3\x76\x3e\x58\x17\x72\x08\x29\x16\xa3\xcd\x60\x10\x1a\xc2\x8c\xe6\x8f\xfc\xe6\xdb\xc2\xd2\xa3\x86\x2d\x62\x90\xb6\x89\xf9\xc1\xaf\x6c\xc5\xa3\xdf\x0d\x33\xd1\x78\xd2\xab\x61\x56\x46\x9b\x61\xa6\x92\x77\x49\x2c\x33\x32\xbc\x73\xdc\xf2\xd8\x43\xbf\x96\xd1\xaf\xcb\xca\x9f\x34\xc5\x58\x8e\x30\x1e\xd5\x1c\x33\x58\x50\xb6\xb3\x11\xe5\xe0\xc4\x41\xa1\x93\x2c\x8d\x43\x2e\xb6\x8e\xd9\x2f\xce\xe0\xaf\xd5\x26\xb2\xcb\xd1\x08\x61\xf2\x8b\x3d\xc9\xe7\x5a\xf5\x71\x5c\xc0\xda\x3c\x8b\x66\x68\x82\xf9\xf6\xaa\x8c\x2f\x87\x4c\x57\x2a\xfc\x23\xf3\x51\xd5\x78\x29\xbb\x4a\x37\x3e\x65\xa1\xe5\xca\x75\xda\x01\xb0\x74\x9b\x6b\x56\xc6\x4e\xa2\x7d\x67\x21\xe6\xa4\x6b\xb6\xf9\xe5\x22\xd8\x92\xd5\x5c\x7a\x3d\x85\xfe\xa8\xd0\x72\x59\xab\x9d\x0c\x6d\x4f\xc4\xc8\xff\x6d\x68\x01\x06\xf9\xfe\x22\x78\x87\xcc\x0e\x84\xfb\x3f\x7d\xfc\xaf\x44\x26\x19\xf1\xab\x63\x35\x36\x10\xf8\x18\x6e\x9d\xc5\x62\xc0\xef\x25\xfd\xb8\x09\x8c\x36\xf0\x35\x53\x28\x18\xe9\x8e\x8f\xfa\xa5\xb6\x30\x4e\xd3\x79\xd7\x29\x58\xb4\xe2\x41\xfc\xc5\x4f\xf9\xe5\x2f\xf2\x02\xfe\xe1\xbc\x25\xe7\xeb\xba\x84\xac\xad\x53\xb7\xb0\x23\x6a\xe3\xfd\xdf\x41\x60\xf7\x4c\x96\x23\x73\xa3\x3e\x9e\xf5\xb7\xe2\x18\x5c\xde\xb4\x7f\x7c\x8c\xea\x12\x7e\x1a\x3a\x86\x59\x87\x4b\xad\xa7\xa5\xde\xb9\x3e\x3e\x64\x53\x8c\xec\xb8\x38\xd1\xe3\xeb\x1d\x41\xfb\xe7\x1f\xd2\xd5\x3d\xf2\xb2\xd7\x90\xcf\xcf\xaa\x3c\xe6\x27\xf5\x77\x8f\x76\x77\x43\x3e\x87\x98\x44\x71\x87\x27\x24\x2c\x33\x9e\xc9\xf1\x69\x16\x2d\x70\x22\xf1\x45\x4d\x07\xbe\x73\xda\x6d\x07\x7e\x1b\xdb\x5d\x44\x6c\xcf\x0d\x10\x5d\x0e\x71\xc5\x7b\xa6\xe3\x9e\x4e\x72\xb7\x4f\x8e\x0c\xa6\x64\xf3\x19\x69\x55\xce\x35\x0a\x1d\x91\xce\xc3\x23\x01\xb5\x26\xc7\x61\xf3\xf9\xc9\x83\x4e\xbe\xed\x79\x7c\xc2\xe9\x2c\x1c\x78\x64\xb3\xc5\x7b\x4a\xd4\x65\x0e\x76\x96\x3c\x4d\xee\xea\x0c\x77\x7c\x9e\xe0\x18\xbb\xec\x55\x98\x31\x12\xc6\x87\x2d\x58\x02\xb7\x69\x30\x9b\x36\x24\xc6\x00\xea\xc8\x2c\xc7\x99\x4b\xb0\x6b\xbf\xe5\x87\x31\xdf\xba\x6c\x3c\x74\xb4\x9a\x09\x3e\x5f\xc7\x29\xec\x2d\x14\x91\x85\x1b\xcc\xf0\x5a\x7c\x7c\xc6\x23\x11\xf8\x97\x76\xaf\xcc\xa2\xec\x60\x62\x0f\xd8\xca\x03\x36\xb2\xa6\x14\x31\x83\x65\xce\x34\x80\x13\xf5\xb0\x97\x61\xa2\xc4\x4a\xd7\x6e\x94\xe4\x1a\xc9\xdf\x29\xc3\x7f\x76\x83\xae\x9f\x92\xf4\xe9\x95\x8e\x93\xf6\xf9\x4f\xa7\xf7\xe7\x0e\x47\x7d\x52\x33\x9b\x2d\x75\x1c\xca\x0c\x5d\x21\x3c\xc9\x49\x75\x09\x2b\xda\xf0\x4d\xc2\x20\x45\x2b\x6f\x3a\x83\x25\x4c\x7e\x9b\xe4\x3f\x16\x03\xf3\xb0\xcc\xfa\xcc\x06\x1e\x48\xda\x78\x36\xa9\xf9\x37\xfa\xcc\x49\xa5\xef\x2d\xfb\xda\x73\x7a\x58\xf9\xca\x1d\xb8\xd9\xa1\x66\x36\xe3\x5a\x24\x48\x4f\x8a\xf1\xbd\xf2\xff\xac\x06\x96\xb1\x83\xb1\x46\x41\x12\x0e\x86\x1c\x7d\xd9\x39\xa8\xb9\x59\xdb\xef\x67\xaf\x32\x2a\xbe\xa7\x13\xf0\x64\xf6\x8c\x99\xa9\xbc\x71\x77\x6c\xc2\x27\x6b\x02\x0f\x55\x86\xba\x03\xaf\x97\xe7\xeb\xcb\x39\x60\xeb\xab\x18\xbe\x4d\xdd\xb0\xe3\x28\xf7\xbd\x8d\xfb\xf6\xe4\x3f\x01\x00\x00\xff\xff\xac\x90\x9d\x2a\xee\x4b\x00\x00" func migrationcontractstagingCdcBytes() ([]byte, error) { @@ -180,6 +201,7 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ + "DependencyAudit.cdc": dependencyauditCdc, "MigrationContractStaging.cdc": migrationcontractstagingCdc, } @@ -229,6 +251,7 @@ type bintree struct { } var _bintree = &bintree{nil, map[string]*bintree{ + "DependencyAudit.cdc": {dependencyauditCdc, map[string]*bintree{}}, "MigrationContractStaging.cdc": {migrationcontractstagingCdc, map[string]*bintree{}}, }} diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 05aa235..ffa68ae 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -24,6 +24,8 @@ // transactions/coordinator/set_block_update_boundary.cdc (415B) // transactions/delegatee/execute_all_delegated_updates.cdc (687B) // transactions/delegatee/remove_delegated_updaters.cdc (567B) +// transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (330B) +// transactions/dependency-audit/admin/test_check_dependencies.cdc (440B) // transactions/host/publish_host_capability.cdc (2.303kB) // transactions/migration-contract-staging/admin/commit_migration_results.cdc (809B) // transactions/migration-contract-staging/admin/set_staging_cutoff.cdc (606B) @@ -588,6 +590,46 @@ func transactionsDelegateeRemove_delegated_updatersCdc() (*asset, error) { return a, nil } +var _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x8f\xc1\x4a\xc4\x40\x0c\x86\xef\xf3\x14\xb1\x07\x6d\x2f\x7d\x80\x22\x96\xaa\x77\x17\x64\x1f\x20\xce\xc4\x76\x60\x9b\x0c\x49\x8a\x88\xec\xbb\x4b\xad\x16\xf5\xb0\xb9\x25\xff\x9f\xfc\x5f\xf2\x5c\x44\x1d\xaa\x47\x2a\xc4\x89\x38\xbe\x0f\x4b\xca\x5e\x85\xe0\x8a\x6c\x18\x3d\x0b\xd7\x36\xc9\x72\x4a\x07\xe4\x1c\x3b\xb8\x17\x39\x35\xf0\x11\x00\x00\x8a\x52\x41\xa5\xda\xf2\xc8\xa4\x1d\x0c\x8b\x4f\x43\x8c\xb2\xb0\xff\x58\xd6\xda\xe4\xf6\x45\x54\xe5\xed\xf6\xfa\x5f\x58\x3b\xa4\x39\x73\x36\x57\x74\xd1\xbb\xfa\x55\x65\xee\xe0\xa2\xe9\xd9\x45\x71\xa4\x03\xfa\xd4\xf4\xad\x91\x7f\xb1\x3d\xf1\x91\xcd\x71\xa4\xb4\x2f\x67\xb2\xbf\xf4\xbf\x9a\x66\xe7\xeb\x7b\x28\xeb\xa4\xae\x1e\x56\x15\x58\x1c\x36\x58\x38\x96\x84\x4e\x0a\x2b\xd4\xf7\x1f\x37\x06\xb6\xe5\x5f\x55\xdb\x8d\x73\x38\x87\xcf\x00\x00\x00\xff\xff\xf6\xe7\x19\x2d\x4a\x01\x00\x00" + +func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, + "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc", + ) +} + +func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc() (*asset, error) { + bytes, err := transactionsDependencyAuditAdminSet_unstaged_cause_panicCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xce, 0x5a, 0xec, 0xee, 0x60, 0xe0, 0x8e, 0x75, 0xc8, 0xcc, 0xa3, 0x9f, 0xc0, 0x79, 0xa0, 0x82, 0x86, 0x36, 0xb5, 0x65, 0x77, 0xef, 0xe2, 0xad, 0x3f, 0x39, 0xf9, 0x73, 0xa9, 0x33, 0x6f, 0x22}} + return a, nil +} + +var _transactionsDependencyAuditAdminTest_check_dependenciesCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x8f\x41\x4b\xc3\x60\x0c\x86\xef\xfd\x15\xb1\x07\x6d\x61\xf4\x07\x14\xb1\x94\xed\x2c\xc2\x8e\xb2\xc3\xe7\xf7\xc5\x36\x68\x93\x92\xa4\x88\xca\xfe\xbb\xcc\x6e\x52\xc7\x58\x4e\x81\xf7\x4d\x78\x1e\x1a\x46\x51\x87\x7c\x83\x23\x72\x42\x8e\x9f\xed\x94\xc8\xf3\x2c\x73\x0d\x6c\x21\x3a\x09\x17\xe9\x94\x12\x5a\x9b\x92\xa2\x19\x5a\x0d\xcf\xc7\x7d\xb7\x82\x65\xe3\x31\x0c\xbf\xe9\xd6\x95\xb8\xdb\xad\x20\x4c\xde\x8b\xd2\x17\xea\xf2\xa8\x84\xef\x0c\x00\x60\x54\x1c\x83\x62\x61\xd4\x31\x6a\x0d\xed\xe4\x7d\x1b\xa3\x4c\xec\xa7\xca\x61\xe6\xb8\x7a\x11\x55\xf9\xb8\xbf\x3d\x03\xae\xda\x34\x10\x93\xb9\x06\x17\x7d\x28\x5e\x55\x86\x1a\xae\x96\xb6\x2e\x1a\x3a\x7c\x0a\xde\x97\x4d\xe5\x68\xbe\xee\x31\xbe\x6d\x16\x26\x97\xc5\x2f\xd8\xfe\x73\x2c\xff\x98\x9b\x06\xc6\xc0\x14\x8b\x7c\x2d\xd3\x7b\x02\x16\x87\x59\xe0\x3a\x1a\x1c\xf0\x8f\xc6\x77\x06\x36\x93\xde\xe4\xf3\xe7\x7d\xb6\xcf\x7e\x02\x00\x00\xff\xff\x32\x55\xf2\x44\xb8\x01\x00\x00" + +func transactionsDependencyAuditAdminTest_check_dependenciesCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsDependencyAuditAdminTest_check_dependenciesCdc, + "transactions/dependency-audit/admin/test_check_dependencies.cdc", + ) +} + +func transactionsDependencyAuditAdminTest_check_dependenciesCdc() (*asset, error) { + bytes, err := transactionsDependencyAuditAdminTest_check_dependenciesCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/dependency-audit/admin/test_check_dependencies.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1e, 0x86, 0xa7, 0xd0, 0xea, 0x8d, 0xb3, 0xf0, 0xf9, 0xc8, 0xa2, 0xad, 0x64, 0x33, 0x95, 0xf, 0x14, 0x3b, 0x93, 0xeb, 0xcc, 0xbf, 0x44, 0x28, 0xdc, 0x19, 0x7c, 0xff, 0x38, 0xe5, 0xd7, 0x49}} + return a, nil +} + var _transactionsHostPublish_host_capabilityCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x55\xef\x6b\xe3\x46\x10\xfd\xae\xbf\x62\xe2\xc2\x55\x06\xd7\xfe\x6e\x2e\x77\x84\x94\xe3\x0a\xe5\x08\xa4\xfd\x5c\xc6\xab\xb1\x34\x64\xbd\xbb\xcc\x8e\xec\x98\x92\xff\xbd\xac\x7e\xd8\x92\x63\xa5\xc9\xe9\x8b\xb1\xbd\xf3\xde\xbc\x37\xf3\xb4\xbf\xa0\xb5\xfe\x70\x67\x8c\xaf\x9d\xfe\xc9\xee\x89\x5d\x99\x65\xbc\x0b\x5e\x14\x66\x8f\x8a\x25\x15\xf7\xde\xa9\xa0\xd1\xbf\x43\x81\x4a\x71\x96\x65\xab\xd5\x0a\xd2\xe1\x08\x5a\x11\x44\x2e\x1d\xc9\xaf\x11\xee\x6a\xad\x3a\x28\x40\x57\x00\x39\x83\x21\xd6\x36\x55\x01\x3b\x40\xf8\xee\xa3\x82\x50\xf4\xb5\x18\x5a\x40\xa8\x37\x96\x63\xc5\xae\xec\xff\xbb\xc7\x80\x1b\xb6\xac\x47\xd8\x7a\x69\xe1\x03\x19\xde\x32\x15\x0d\xad\x90\xe1\xc0\xe4\x74\x09\x7f\x55\x1c\xe1\xe0\x6b\x9b\x98\x70\x63\xa9\x39\x7e\x3a\x00\xea\x81\x9e\xc9\xd4\x4a\x80\xb2\x61\x15\x94\x23\x98\x4e\x0c\xd4\xad\x1a\xf0\x6e\x2c\x62\x43\x15\xda\xed\x32\x91\x65\x2a\xe8\x22\x1a\x65\xef\xf2\xae\xd7\x6f\x5e\xd6\x70\x57\x14\x42\x31\xce\xe1\xdf\x2c\x03\x00\x08\x42\x01\x85\xf2\x16\x64\x3d\x34\xe2\x74\x26\x3d\xab\x15\xfc\x4e\xc2\x7b\x82\x80\x5a\xc5\x46\xe2\xd0\xb4\x4f\x17\x26\x30\xc5\x05\x70\x41\x4e\x79\x7b\x4c\x2e\x8d\x05\x7a\x37\x70\xf0\x44\x62\x49\x01\x5b\xc0\x7b\x0c\x0f\xc2\x7b\x54\x7a\x40\xad\xe0\x16\x06\xdf\xf2\x53\x41\xff\x74\x44\x9c\x14\x5c\x1f\xfd\xdd\x09\xf6\x9f\xd9\xd2\x78\x67\x50\x3b\xcd\x4b\x6c\x2d\x59\xaa\x7f\x54\x61\x57\xe6\xf3\xf9\x88\x60\x7e\x33\x6a\xb0\xf2\x51\xa7\x5b\xfb\xff\x4e\x92\x4f\xe7\x1e\xce\xb3\x19\xf2\xcf\x6f\x46\xce\x3f\x92\xd6\x61\xb8\x60\xde\x41\xed\x0a\x12\xdb\x58\x9b\x74\xa4\xcf\xd4\x59\xef\xdf\xa9\x9c\xb7\x70\xd3\x09\x2d\x49\xcf\x18\x9f\x3f\x0d\xc6\xf7\x25\xbf\x6a\xfb\x7c\x69\x2a\x32\x4f\x79\xda\x84\xa1\x23\x1d\x5e\xed\x2c\xbb\xa7\x89\xd2\x6b\x05\xe9\x78\xc7\xf8\x9e\xaa\xf4\x7c\xfd\x0a\x01\x1d\x9b\x7c\xf6\x20\x7e\x63\x69\x07\xb6\x8d\xfa\x68\xfb\xce\xb2\x66\x67\x88\x97\x89\xbd\x82\x5b\xf8\x69\x43\xce\x63\xc1\x18\x49\x86\x32\x7a\xaf\x16\xb0\xa3\x18\xb1\xa4\x35\xcc\xfe\x70\x7b\xb4\x5c\x4c\xf4\x0a\x42\x2a\x4c\x7b\x2a\x66\xf3\x2b\xf3\xbe\x78\xe3\x1c\x04\x43\xe8\x93\x14\x84\xf6\xec\xeb\x68\x9b\xd7\xc2\x96\xcb\x5a\xa8\xe8\x35\x82\x49\x14\xd8\x70\x0c\xf7\xa0\x53\xad\xc7\x40\x39\xea\x1a\xae\xae\xe7\x32\xd1\x3e\xaa\x17\x2c\x5b\xc9\x70\x7b\x0b\x8e\xed\xf5\x15\x88\xb8\xa7\xd7\x71\xfc\xfc\xdb\x04\xb6\x11\x42\xa5\x1f\x74\x48\x24\x03\xef\xd6\x83\xf1\xcc\x17\xaf\xf0\xd4\xbf\xb3\xd9\x71\x6e\xaf\x6c\xc2\x74\x1a\xa6\xf1\xbf\xe4\x17\x91\x7f\x5f\x2c\x2e\x8b\xa6\x02\xf1\x21\xea\x05\x28\x4a\x49\xef\x1e\xde\x44\x18\x12\xea\x5b\x49\xf8\x88\x19\xaf\x22\xd1\x81\xbf\x95\x87\xcb\x0b\x73\x2a\x08\xdf\xd8\xa1\xb5\xc7\xfe\xae\x68\x56\xff\xb2\x56\x7d\xf3\x73\xbf\xfb\x5a\xa1\xc2\x81\xad\x85\xa8\x5e\xda\x8b\xb5\x15\x20\xd9\x85\xfb\xec\x36\xfe\x79\xd9\x61\x8f\xb7\xb8\xd3\x30\x5e\x45\x87\x3b\x9a\x32\xbe\xc1\xfa\xde\x56\x75\x9d\xfd\xc0\x1d\x3d\x08\x6d\xf9\xf9\xed\x97\xfd\x98\xe4\x74\x47\xae\xe1\x7c\x3c\x1b\xef\xf4\x4b\xf6\x92\xfd\x17\x00\x00\xff\xff\x61\x05\xe9\x2d\xff\x08\x00\x00" func transactionsHostPublish_host_capabilityCdcBytes() ([]byte, error) { @@ -1003,6 +1045,8 @@ var _bindata = map[string]func() (*asset, error){ "transactions/coordinator/set_block_update_boundary.cdc": transactionsCoordinatorSet_block_update_boundaryCdc, "transactions/delegatee/execute_all_delegated_updates.cdc": transactionsDelegateeExecute_all_delegated_updatesCdc, "transactions/delegatee/remove_delegated_updaters.cdc": transactionsDelegateeRemove_delegated_updatersCdc, + "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc": transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, + "transactions/dependency-audit/admin/test_check_dependencies.cdc": transactionsDependencyAuditAdminTest_check_dependenciesCdc, "transactions/host/publish_host_capability.cdc": transactionsHostPublish_host_capabilityCdc, "transactions/migration-contract-staging/admin/commit_migration_results.cdc": transactionsMigrationContractStagingAdminCommit_migration_resultsCdc, "transactions/migration-contract-staging/admin/set_staging_cutoff.cdc": transactionsMigrationContractStagingAdminSet_staging_cutoffCdc, @@ -1105,6 +1149,12 @@ var _bintree = &bintree{nil, map[string]*bintree{ "execute_all_delegated_updates.cdc": {transactionsDelegateeExecute_all_delegated_updatesCdc, map[string]*bintree{}}, "remove_delegated_updaters.cdc": {transactionsDelegateeRemove_delegated_updatersCdc, map[string]*bintree{}}, }}, + "dependency-audit": {nil, map[string]*bintree{ + "admin": {nil, map[string]*bintree{ + "set_unstaged_cause_panic.cdc": {transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, map[string]*bintree{}}, + "test_check_dependencies.cdc": {transactionsDependencyAuditAdminTest_check_dependenciesCdc, map[string]*bintree{}}, + }}, + }}, "host": {nil, map[string]*bintree{ "publish_host_capability.cdc": {transactionsHostPublish_host_capabilityCdc, map[string]*bintree{}}, }}, diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc new file mode 100644 index 0000000..84352e1 --- /dev/null +++ b/tests/dependency_audit_tests.cdc @@ -0,0 +1,220 @@ +import Test +import BlockchainHelpers +import "DependencyAudit" + +// NOTE: This is an artifact of the implicit Test API - it's not clear how block height transitions between test cases +access(all) let blockHeightBoundaryDelay: UInt64 = 15 + +// Contract hosts as defined in flow.json +access(all) let adminAccount = Test.getAccount(0x0000000000000007) +access(all) let fooAccount = Test.getAccount(0x0000000000000008) +access(all) let aAccount = Test.getAccount(0x0000000000000009) +access(all) let bcAccount = Test.getAccount(0x0000000000000010) + +// Content of update contracts as hex strings +access(all) let aUpdateCode = "61636365737328616c6c2920636f6e747261637420696e746572666163652041207b0a202020200a2020202061636365737328616c6c29207265736f7572636520696e746572666163652049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e670a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e670a202020207d0a0a2020202061636365737328616c6c29207265736f757263652052203a2049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a20202020202020202020202072657475726e2022666f6f220a20202020202020207d0a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e67207b0a20202020202020202020202072657475726e2022626172220a20202020202020207d0a202020207d0a7d" +access(all) let aUpdateCadence = String.fromUTF8(aUpdateCode.decodeHex()) ?? panic("Problem decoding aUpdateCode") + +access(all) fun setup() { + var err = Test.deployContract( + name: "MigrationContractStaging", + path: "../contracts/MigrationContractStaging.cdc", + arguments: [] + ) + Test.expect(err, Test.beNil()) + + err = Test.deployContract( + name: "Foo", + path: "../contracts/test/Foo.cdc", + arguments: [] + ) + Test.expect(err, Test.beNil()) + + err = Test.deployContract( + name: "A", + path: "../contracts/test/A.cdc", + arguments: [] + ) + Test.expect(err, Test.beNil()) + + err = Test.deployContract( + name: "B", + path: "../contracts/test/B.cdc", + arguments: [] + ) + Test.expect(err, Test.beNil()) + + err = Test.deployContract( + name: "C", + path: "../contracts/test/C.cdc", + arguments: [] + ) + Test.expect(err, Test.beNil()) + + let excludedAddresses: [Address] = [ + // exclude the admin account + 0x0000000000000007 + ] + err = Test.deployContract( + name: "DependencyAudit", + path: "../contracts/DependencyAudit.cdc", + arguments: [excludedAddresses] + ) + Test.expect(err, Test.beNil()) + + +} + + +access(all) fun testChekDependenciesWithEmptyList() { + let addresses: [Address] = [] + let names: [String] = [] + let authorizers: [Address] = [] + let commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + let events = Test.eventsOfType(Type()) + Test.assertEqual(0, events.length) +} + +access(all) fun testChekDependenciesWithExcludedEntries() { + let addresses: [Address] = [adminAccount.address] + let names: [String] = ["DependencyAudit"] + let authorizers: [Address] = [] + let commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + let events = Test.eventsOfType(Type()) + Test.assertEqual(0, events.length) +} + +access(all) fun testChekDependenciesWithUnstagedEntries() { + let addresses: [Address] = [fooAccount.address] + let names: [String] = ["Foo"] + let authorizers: [Address] = [] + let commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + let events = Test.eventsOfType(Type()) + Test.assertEqual(1, events.length) + + let evt = events[0] as! DependencyAudit.UnstagedDependencies + Test.assertEqual(1, evt.dependenciesAddresses.length) + Test.assertEqual(1, evt.dependenciesNames.length) + Test.assertEqual(fooAccount.address, evt.dependenciesAddresses[0]) + Test.assertEqual("Foo", evt.dependenciesNames[0]) +} + + +access(all) fun testChekDependenciesWithStagedEntries() { + var events = Test.eventsOfType(Type()) + Test.assertEqual(1, events.length) + + let addresses: [Address] = [aAccount.address] + let names: [String] = ["A"] + let authorizers: [Address] = [] + var commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(2, events.length) + let evt = events[1] as! DependencyAudit.UnstagedDependencies + Test.assertEqual(1, evt.dependenciesAddresses.length) + Test.assertEqual(1, evt.dependenciesNames.length) + Test.assertEqual(aAccount.address, evt.dependenciesAddresses[0]) + Test.assertEqual("A", evt.dependenciesNames[0]) + + let aStagingTxResult = executeTransaction( + "../transactions/migration-contract-staging/stage_contract.cdc", + ["A", aUpdateCadence], + aAccount + ) + Test.expect(aStagingTxResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(2, events.length) + + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(2, events.length) +} + + +access(all) fun testChekDependenciesWithMixedEntries() { + var events = Test.eventsOfType(Type()) + Test.assertEqual(2, events.length) + + let addresses: [Address] = [adminAccount.address, fooAccount.address, aAccount.address, bcAccount.address] + let names: [String] = ["DependencyAudit", "Foo", "A", "B"] + let authorizers: [Address] = [] + var commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(3, events.length) + + let evt = events[2] as! DependencyAudit.UnstagedDependencies + Test.assertEqual(2, evt.dependenciesAddresses.length) + Test.assertEqual(2, evt.dependenciesNames.length) + Test.assertEqual(fooAccount.address, evt.dependenciesAddresses[0]) + Test.assertEqual("Foo", evt.dependenciesNames[0]) + Test.assertEqual(bcAccount.address, evt.dependenciesAddresses[1]) + Test.assertEqual("B", evt.dependenciesNames[1]) +} + +access(all) fun testSetPanic() { + let shouldPanic: Bool = true + var commitResult = executeTransaction( + "../transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc", + [shouldPanic], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + var events = Test.eventsOfType(Type()) + Test.assertEqual(1, events.length) + + let evt = events[0] as! DependencyAudit.PanicOnUnstagedDependenciesChanged + Test.assertEqual(true, evt.shouldPanic) +} + + +access(all) fun testChekDependenciesWithUnstagedEntriesPanics() { + let addresses: [Address] = [fooAccount.address] + let names: [String] = ["Foo"] + let authorizers: [Address] = [] + let commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beFailed()) + // not sure how to test this: + // Test.expect(commitResult.error!.message, Test.contain("panic: Found unstaged dependencies: A.0x0000000000000008.Foo") ) +} diff --git a/transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc b/transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc new file mode 100644 index 0000000..ff4a452 --- /dev/null +++ b/transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc @@ -0,0 +1,8 @@ +import "DependencyAudit" + +transaction(shouldPanic: Bool) { + prepare(signer: AuthAccount) { + signer.borrow<&DependencyAudit.Administrator>(from: DependencyAudit.AdministratorStoragePath)?.setPanicOnUnstagedDependencies(shouldPanic: shouldPanic) + ?? panic("Could not borrow DependencyAudit.Administrator from signer's storage!") + } +} diff --git a/transactions/dependency-audit/admin/test_check_dependencies.cdc b/transactions/dependency-audit/admin/test_check_dependencies.cdc new file mode 100644 index 0000000..83b3df3 --- /dev/null +++ b/transactions/dependency-audit/admin/test_check_dependencies.cdc @@ -0,0 +1,8 @@ +import "DependencyAudit" + +transaction(dependenciesAddresses: [Address], dependenciesNames: [String], authorizers: [Address]) { + prepare(signer: AuthAccount) { + signer.borrow<&DependencyAudit.Administrator>(from: DependencyAudit.AdministratorStoragePath)?.testCheckDependencies(dependenciesAddresses, dependenciesNames, authorizers) + ?? panic("Could not borrow DependencyAudit.Administrator from signer's storage!") + } +} From 9d409fb753efcfc08ba47be5083187ecefe01bc3 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Fri, 17 May 2024 13:38:43 +0200 Subject: [PATCH 04/16] address review comments --- contracts/DependencyAudit.cdc | 32 +++++++++++++++------- lib/go/contracts/internal/assets/assets.go | 6 ++-- lib/go/templates/internal/assets/assets.go | 6 ++-- tests/dependency_audit_tests.cdc | 25 ++++++++--------- 4 files changed, 39 insertions(+), 30 deletions(-) diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 651b0d9..0e48676 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -1,6 +1,6 @@ import "MigrationContractStaging" -// This contract ist is used by the FVM calling the `checkDependencies` function from a function of the same name and singature in the FlowServiceAccount contract, +// This contract is is used by the FVM calling the `checkDependencies` function from a function of the same name and singnature in the FlowServiceAccount contract, // at the end of every transaction. // The `dependenciesAddresses` and `dependenciesNames` will be all the dependencies needded to run that transaction. // @@ -15,14 +15,13 @@ access(all) contract DependencyAudit { access(all) var panicOnUnstaged: Bool - access(all) event UnstagedDependencies(dependenciesAddresses: [Address], dependenciesNames: [String]) + access(all) event UnstagedDependencies(dependencies: [Dependency]) access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) // checkDependencies is called from the FlowServiceAccount contract access(self) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { - var unstagedDependenciesAddresses: [Address] = [] - var unstagedDependenciesNames: [String] = [] + var unstagedDependencies: [Dependency] = [] var numDependencies = dependenciesAddresses.length var i = 0 @@ -35,25 +34,24 @@ access(all) contract DependencyAudit { let staged = MigrationContractStaging.isStaged(address: dependenciesAddresses[i], name: dependenciesNames[i]) if !staged { - unstagedDependenciesAddresses.append(dependenciesAddresses[i]) - unstagedDependenciesNames.append(dependenciesNames[i]) + unstagedDependencies.append(Dependency(address: dependenciesAddresses[i], name: dependenciesNames[i])) } i = i + 1 } - if unstagedDependenciesAddresses.length > 0 { + if unstagedDependencies.length > 0 { if DependencyAudit.panicOnUnstaged { // If `panicOnUnstaged` is set to true, the transaction will panic if there are any unstaged dependencies // the panic message will include the unstaged dependencies var unstagedDependenciesString = "" - var numUnstagedDependencies = unstagedDependenciesAddresses.length + var numUnstagedDependencies = unstagedDependencies.length var j = 0 while j < numUnstagedDependencies { if j > 0 { unstagedDependenciesString = unstagedDependenciesString.concat(", ") } - unstagedDependenciesString = unstagedDependenciesString.concat("A.").concat(unstagedDependenciesAddresses[j].toString()).concat(".").concat(unstagedDependenciesNames[j]) + unstagedDependenciesString = unstagedDependenciesString.concat(unstagedDependencies[j].toString()) j = j + 1 } @@ -61,7 +59,7 @@ access(all) contract DependencyAudit { // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.0x2ceae959ed1a7e7a.MigrationContractStaging, A.0x2ceae959ed1a7e7a.DependencyAudit` panic("Found unstaged dependencies: ".concat(unstagedDependenciesString)) } else { - emit UnstagedDependencies(dependenciesAddresses: unstagedDependenciesAddresses, dependenciesNames: unstagedDependenciesNames) + emit UnstagedDependencies(dependencies: unstagedDependencies) } } } @@ -97,6 +95,20 @@ access(all) contract DependencyAudit { } } + access(all) struct Dependency { + access(all) let address: Address + access(all) let name: String + + init(address: Address, name: String) { + self.address = address + self.name = name + } + + access(all) fun toString(): String { + return "A.".concat(self.address.toString()).concat(".").concat(self.name) + } + } + // The admin resource is saved to the storage so that the admin can be accessed by the service account // The `excludedAddresses` will be the addresses with the system contracracts. init(excludedAddresses: [Address]) { diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index f9becc7..12b218c 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (5.701kB) +// DependencyAudit.cdc (5.808kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\xdd\x6f\xdb\x36\x10\x7f\xcf\x5f\x71\xf3\x93\x85\xb9\x4a\x3b\x60\x28\x6a\xd4\x2b\xb2\xae\x05\xf6\xd0\xad\x40\xb6\xbd\x18\x46\xcd\x48\x27\x9b\x89\x44\x1a\x24\x65\xd7\x0b\xf2\xbf\x0f\x47\xea\x9b\x94\x9c\x3e\xac\x02\x5a\x44\xd6\x7d\xfe\xee\x78\x1f\xe4\xc5\x41\x2a\x03\xb3\x4f\x7c\xa7\x98\xe1\x52\xbc\x97\xc2\x28\x96\x98\x5b\xc3\x76\x5c\xec\x66\x57\x57\xd7\xd7\xf0\xd7\x9e\x6b\x48\xaa\x2f\xc0\x35\xfd\x83\x52\x63\x0a\x77\x67\x30\x7b\x84\x8f\xff\x7c\x82\x84\xe5\x39\x17\x3b\xfb\xbe\x4d\xf6\x98\x3c\xfc\x86\x07\x14\x29\x8a\x84\xa3\xde\x42\x56\x8a\x84\x34\x40\xa6\x64\x01\xac\x7d\x97\x99\xe5\xd1\xac\x40\x10\xf4\x1f\x13\x29\x68\x2e\x76\xcc\x94\x0a\x81\x0b\xa7\x22\x97\xa7\x5b\x54\x47\x9e\xe0\x4d\x92\xc8\x52\x98\xc6\xa2\x05\xd9\xc8\x8c\x25\x43\x91\x92\x40\x3c\xa2\x3a\x83\x51\x4c\x68\x66\xb5\xc4\xce\x0f\x84\x6d\xda\xb1\xea\x26\x4d\x15\x6a\x4d\xe6\x91\xd2\xde\xb7\x3f\x58\x41\xbf\x9f\x78\x9e\xc3\x1d\x02\xcb\x73\xab\xa0\x4b\x02\x02\x31\x4d\x31\x05\x23\x41\x95\x64\x27\x59\xd1\x57\xda\xe8\x9d\x82\xc4\x2a\xb1\x04\xc0\x33\x60\xe2\x5c\x83\xd2\xd3\xc6\x14\x82\x90\x06\xb4\x61\x3b\x4c\x6b\x60\xc6\x42\xd7\xc0\x63\x5d\xff\xfd\xb9\x62\x17\x96\xa0\x6f\x19\x16\xdc\x00\x13\x84\xaa\x30\x70\xe2\x66\x6f\x89\x4a\x51\x59\xd2\x15\xb7\x00\xa9\xe0\xc0\x04\x4f\xc8\x95\xad\xfd\xeb\x4f\xf1\x77\x45\xba\xa5\xcc\xd1\x68\x08\x31\xa3\x4a\x8c\xaf\x58\x92\xa0\xd6\x73\x96\xe7\x51\x9b\x62\x0d\x4c\xe7\x9b\x32\xe5\x06\x1e\xaf\xae\x00\x00\xba\xb4\x39\x1a\xb8\x49\x0b\x2e\xb8\x36\x8a\x19\xa9\x6e\x8d\x54\x6c\x87\x9f\x99\xd9\x2f\xa1\xf3\xe2\x58\xab\x28\xe8\xb3\x36\x58\x00\xab\xe3\x0e\x7b\x76\xc4\x46\xaf\x76\x11\xb4\x3e\x13\x22\x77\xe8\x40\xd1\x70\xe4\xcc\xba\x5c\xd4\x60\xb7\xb6\x6a\x09\x27\x04\xfc\x9a\xe4\x65\x8a\x44\x54\xb8\x0c\xef\xe1\x7c\xa6\xe8\x3e\x24\xba\xeb\x86\xc6\x3c\x8b\xe0\xc8\x54\xcd\x9c\x36\xe9\xb8\x84\xc7\xea\xef\x25\xfc\x2a\x65\xfe\xe4\xfb\x4f\x7c\x03\x70\x1d\xad\x4f\xea\xc2\x56\x53\x75\x53\x70\x1e\x3c\x0c\x4b\x58\x57\x7f\x6f\x16\xe0\x1d\x89\x25\xac\x6f\x8d\xe2\x62\xb7\x89\xc6\x54\x7d\xee\xdb\xd5\xd5\xf8\x7e\xcf\xc4\x0e\xd3\xb9\xde\xcb\x32\x4f\x2d\xa1\x33\x3b\x6a\xe2\xe4\x1d\x14\xca\x19\xaa\x2e\x98\xb6\xc8\x4e\x94\x03\x1f\xe3\xac\x14\xbe\xd4\xf9\x17\xb8\xec\xfd\x97\x29\xff\xe9\x33\x2b\xcd\x5e\x2a\xfe\x2f\xaa\x2e\x63\x04\x8f\xd6\x0a\x7a\x28\x50\x65\x00\x89\x90\x42\x58\xc1\x7a\x73\x91\x73\x60\x86\x63\xea\x71\x89\xb2\xe8\x01\xb8\x0a\xbb\x1a\xe7\x28\x76\x66\xdf\x63\xe5\xb0\x82\x97\xcd\x2f\xa7\x3d\xcf\x11\x38\xbc\xf5\x44\xb6\x0e\xd2\x43\xa7\x91\xeb\x0f\x55\x1e\xc3\x6a\x78\x82\x63\x2f\xc5\xd7\x41\x8b\xd6\x7c\xb3\x81\x77\xef\x20\x63\xb9\xc6\x9e\x06\x9e\x75\x15\xf4\xb5\xdb\xef\xb0\x02\x0e\x3f\xc2\x2b\xef\x0b\xe5\x05\x17\x65\x5f\xdc\xd3\x95\x67\x7f\x55\xcc\x56\xa3\x15\x35\xe6\xfa\xd6\xd2\xcc\x59\x7d\x38\xc7\x9c\x58\xd8\x4e\xb6\xf4\xb3\x67\xcd\x37\xd1\xd0\xaf\x1f\x2a\xcd\xbe\x53\x93\x79\x13\xb3\x03\xfd\x1a\x3e\xc3\x9e\x9e\x31\x71\xd6\xaa\x90\xa8\xb0\xb9\x03\xdc\x7c\xd4\x3b\x04\x3c\xbb\xe0\x80\x4b\x3f\xf8\x05\x5e\x0e\x7c\xe7\x99\x97\x40\x83\x5a\x17\x00\xcb\x75\xb9\x4b\x1d\xc7\xf5\xb7\x4e\x93\x76\xe5\xbe\xe9\x58\x66\x8f\x0a\x6d\x4f\xa4\x7e\x19\x6c\x71\x21\xcd\x24\xd4\xc9\x28\x50\x6b\xb6\x43\x27\x96\x8b\xa6\x2d\x3c\x53\xd6\xd8\xa1\x77\x87\x1d\x56\x30\x9b\x05\x79\x44\x59\x84\xea\x2d\xac\x9e\x15\x83\xa0\xc8\xfb\x5e\x29\xa8\x1f\x57\x12\xee\x5d\x49\x08\xaa\xf4\x43\x53\xc5\xf4\x3e\x10\xea\xee\x33\xe9\xf7\xf8\xc7\x38\x91\x22\x61\x66\x3e\x5b\xc0\xcc\x4f\x7a\xb0\x49\xf9\x7f\xa8\xbb\x89\x67\x51\xfd\x32\x09\xf2\xfa\x7e\x13\x1b\xe9\xb8\xe7\x51\xc3\x33\xbb\xc0\xef\x4e\xe0\x7d\xdd\x67\x87\x0f\x85\xe7\x3e\x58\xf1\x9e\x7c\x86\x2a\x45\x3b\x79\xaf\x5d\x86\x66\x8c\xe7\x6e\xa4\x63\x4d\xea\xda\x29\x28\x97\xf2\x41\x43\xce\x1f\xe8\x9d\xeb\x25\x6c\x51\x29\xa9\x96\x2e\xcd\x97\xf0\x51\x96\x22\x0d\x27\xf5\x12\x6e\xe2\x97\x5f\x7f\x4a\x90\xe1\x9b\x9f\xdf\x60\xfa\x8a\xbd\xc6\xd7\x2c\x1e\xab\xab\x8b\x30\xf9\xa0\x02\x6c\x3d\x9f\xac\x21\xf3\xd9\xa4\x21\xb3\x29\x80\x5d\x44\xa2\x41\x85\x03\xcc\x35\x06\xb2\xd4\x4e\xc1\xdf\x32\x45\x4d\xe6\x44\x70\xb2\x1a\xcd\x82\x61\x11\xee\xff\xf5\xd4\x9b\x71\x7b\x53\x31\x28\xd4\x52\x25\x08\x09\x13\x34\xcf\xda\xad\xcd\x48\x9a\x80\xc1\x7e\x2d\xe4\x11\x3b\xf3\x70\x33\x60\x79\x0d\x1b\x52\x6e\xf3\x86\xa9\x73\xa5\xcd\x9b\xfe\x48\x57\x49\xca\xfa\x26\xb4\x50\xd2\x9e\x96\xa6\x1f\x3c\xd1\x64\x0d\x29\x6d\xed\xa0\x6a\xfd\x1c\x2b\x86\x26\xd0\xa8\x17\x52\x31\x67\x81\x71\x2b\x1a\x44\x39\x93\xaa\x36\x81\xb6\xab\xd6\x1a\x3f\x19\x2e\xcf\x37\xac\x9d\xe9\xa8\xef\x8c\x06\xb0\x0b\x8e\x0b\x87\x8f\x4f\x15\xa6\x3e\x44\xcf\x0f\x55\x08\xa4\x11\x55\xdf\x1d\xa7\xd8\x19\x32\x7f\xc0\xf3\xb2\x96\x34\x9e\xed\x5d\xb0\x34\x9a\x89\x45\x83\x3e\x6b\x77\x19\xe1\x4d\x04\x47\xa6\x38\xbb\xcb\xb1\xce\xb2\x23\xcb\x4b\xa4\xdd\x78\xdb\x59\x4b\xb6\xa3\xd0\x4d\x2b\x0e\xac\x36\x03\x5c\x2e\x8d\x36\x2b\xe8\x88\xe8\x71\xda\x12\xf4\xad\xdb\x55\xe7\x25\x1a\x81\xd2\xa0\x36\xef\x43\x6b\x97\x2d\x17\x14\x6e\xa2\xa0\xc6\x78\x28\xd5\x41\xea\xce\xdc\x42\x53\x57\xb5\x32\x27\xf5\x1d\xc9\x85\xbb\x8e\xea\xfa\xe0\xa0\xe4\x91\xa7\x63\xf3\xd0\xf5\x75\x50\x0c\xd7\x20\x69\x44\x3b\x71\xed\x6e\x2d\x48\xa9\x8d\x65\x73\x1c\x64\x69\x34\x4f\x71\x34\x7c\x41\x67\xbf\xd7\x36\x48\x8f\x42\x53\x2a\xe1\xa5\x81\xbf\xa1\x06\x2d\x0a\x34\x8e\x45\x57\x71\x34\xd9\x1c\x18\x55\xe6\xb6\x50\xd3\x6c\xcc\x8e\xae\x25\xd8\x4b\x38\x77\x6f\x02\x5a\x56\x97\x59\x0d\x4b\xd5\x3f\x1c\x98\xed\xcd\x9f\x76\x3b\x38\xfd\x4e\x4b\x78\x57\xd5\xd6\x3b\xeb\xed\x6d\x5a\xbf\x92\x35\x29\x51\x5d\xcf\x54\x9b\xbc\xbd\x92\x89\xad\x48\x2e\xb8\x99\x07\xae\x49\x82\x18\xd3\xd2\xef\x17\x1a\x58\xc1\xe3\x53\x9f\xc6\x3f\x78\x6e\xef\xec\x53\x8d\xdd\x32\xc1\x0a\xae\x2b\xbc\xae\xb3\x5c\x9e\x06\xf1\xb4\x6c\xad\xa8\x41\xcd\xf4\xcd\xeb\xe7\x48\xd8\x87\xd1\xa6\xd2\x39\xce\xb4\xca\xba\x90\xbd\x7d\x01\x89\x42\x66\x06\xfd\x78\x1e\xf5\xfd\xab\x42\x17\x53\x22\xcc\xdf\xbe\xb0\xbc\x0b\x30\x72\x39\xed\x7e\x54\x65\xd7\xd3\xd5\x7f\x01\x00\x00\xff\xff\x1f\x18\x00\x75\x45\x16\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x5f\x6f\xdb\x38\x12\x7f\xf7\xa7\x98\xf3\x93\x84\x73\x95\xf6\x80\x43\x51\xa3\xbe\x22\xd7\x6d\x81\x7d\xe8\x6e\x81\xec\xee\x8b\x11\xac\x19\x69\x6c\x33\x91\xc9\x80\xa4\x9c\x7a\x83\x7c\xf7\xc5\x90\xfa\x43\x8a\x94\x93\x45\x81\x1a\x41\x60\x59\xc3\x99\xdf\xfc\x66\x38\x33\x24\x3f\xdc\x4b\x65\x60\xfe\x85\xef\x14\x33\x5c\x8a\x8f\x52\x18\xc5\x4a\x73\x65\xd8\x8e\x8b\xdd\x7c\x36\xbb\xb8\x80\xdf\xf6\x5c\x43\xd9\xbe\x01\xae\xe9\xaf\xd1\x58\xc1\xcd\x09\xcc\x1e\xe1\xf3\x1f\x5f\xa0\x64\x75\xcd\xc5\xce\x3e\x6f\xca\x3d\x96\x77\x3f\xe1\x3d\x8a\x0a\x45\xc9\x51\x6f\x60\xdb\x88\x92\x0c\xc0\x56\xc9\x03\xb0\xe1\x59\x6e\xed\x1a\xcd\x0e\x08\x82\xfe\x31\x51\x81\xe6\x62\x27\x98\x69\x14\x02\x17\xce\x46\x2d\x1f\xae\x50\x1d\x79\x89\x97\x65\x29\x1b\x61\x7a\x44\x0b\xc2\xc8\x8c\x15\x43\x51\x91\x46\x3c\xa2\x3a\x81\x51\x4c\x68\x66\xcd\x14\xce\x0f\x84\x4d\xe5\xc1\xba\xac\x2a\x85\x5a\x13\x3e\xb2\x1a\xbc\xfb\x85\x1d\xe8\xf7\x07\x5e\xd7\x70\x83\xc0\xea\xda\x1a\xf0\x45\x40\x20\x56\x15\x56\x60\x24\xa8\x86\x70\x12\x8a\xd0\x68\x6f\xf7\x1c\x27\xd6\x88\x15\x00\xbe\x05\x26\x4e\x1d\x2b\x81\x35\xa6\x10\x84\x34\xa0\x0d\xdb\x61\xd5\x11\x33\x15\xba\x9e\x1e\xeb\xfa\xcf\x2f\x55\xbb\xb0\x02\x21\x32\x3c\x70\x03\x4c\x10\xab\xc2\xc0\x03\x37\x7b\x2b\xd4\x88\x16\x89\xaf\x6e\x01\x52\xc1\x3d\x13\xbc\x24\x57\x36\xf6\xdb\xaf\xe2\xf7\x56\x74\x43\xa9\xa3\xd1\x10\x63\x46\x35\x58\xcc\x58\x59\xa2\xd6\x19\xab\xeb\x7c\x48\xb1\x9e\xa6\xd3\x65\x53\x71\x03\x8f\xb3\x19\x00\x80\x2f\x5b\xa3\x81\xcb\xea\xc0\x05\xd7\x46\x31\x23\xd5\x95\x91\x8a\xed\xf0\x2b\x33\xfb\x25\x78\x0f\x6e\x69\x1b\x05\x7d\xd2\x06\x0f\xc0\xba\xb8\xc3\x9e\x1d\xb1\xb7\xab\x5d\x04\xad\xcf\xc4\xc8\x0d\x3a\x52\x34\x1c\x39\xb3\x2e\x1f\x3a\xb2\x07\xac\x5a\xc2\x03\x02\x7e\x2b\xeb\xa6\x42\x12\x3a\xb8\x14\x0f\x78\x3e\x51\x74\xef\x4a\xed\xbb\xa1\xb1\xde\xe6\x70\x64\xaa\x5b\x5c\xf5\xe9\xb8\x84\xc7\xf6\xfb\x12\xfe\x2f\x65\xfd\x14\xfb\x4f\xeb\x46\xe4\x3a\xd9\x58\xd4\x85\xad\x93\xf2\x53\x30\xf3\x23\xb7\x84\xf5\xc0\xfb\x75\x3e\xa5\xe7\x6b\x68\xd4\x57\xf7\x71\xcf\xc4\x0e\xab\x4c\xef\x65\x53\x57\x56\xd0\x61\xca\xfb\x20\x44\xbb\x80\x12\x82\x6a\x07\x56\x03\x6d\x67\xf6\x7a\x4c\xe0\xb6\x11\xb1\xd6\xec\x4f\x48\xee\xf3\x25\xac\xdb\xef\xd7\x0b\x08\x65\xec\x7e\x5f\xc2\xfa\xca\x28\x2e\x76\xf6\x35\x6b\xcc\x5e\x2a\xfe\x17\x2a\x7f\x61\x0e\x8f\x16\x05\x7d\x28\x0a\x4d\x82\x89\x90\x4b\x58\xc1\xfa\x7a\x16\x2c\x12\xcd\x21\x60\x61\x95\xc6\x5b\xd4\x28\x76\x66\x1f\x2c\xe5\xb0\x82\xd7\xfd\x2f\x0f\x7b\x5e\x23\x70\x78\x1f\xa9\x1c\x50\xd2\x87\xf6\x0b\xd7\x9f\xda\x4c\x83\xd5\x78\x8f\x15\x51\x12\xae\x93\x88\xd6\xfc\xfa\x1a\x3e\x7c\x80\x2d\xab\x35\x06\x16\xf8\xd6\x37\x10\x5a\xb7\xef\x61\x05\x1c\xfe\x0d\x6f\xa2\x37\x14\x5c\x2e\x9a\x50\xdd\xd3\x2c\xc2\xdf\x96\x9b\xd5\x64\xcd\x2b\xb8\xbe\xb2\x32\x19\xeb\xb6\xcf\x94\x13\x0b\xdb\x6c\x96\x71\x0a\xac\xf9\x75\x3e\xf6\xeb\x5f\xad\xe5\xd8\xa9\x54\xf0\x0b\x76\x4f\x0f\xd9\xc0\xf0\x77\xc2\xc9\xcf\x11\x13\xd3\xea\x09\xf0\x6d\x1a\xa1\x4b\x2b\xf8\x1f\xbc\x1e\xf9\xc4\xb7\x51\x62\x8c\xaa\x4c\x82\x04\xd7\x5f\x9e\xab\xf5\xae\xb3\x78\xed\xd1\x15\xda\xbe\x57\x98\x3d\x2a\xb4\xdd\x88\x3a\x55\xb2\xb9\xa4\x2c\x93\x52\xa7\xe3\x80\x5a\xb3\x1d\x3a\xb5\x5c\xf4\x05\xf9\x85\xba\xa6\xf6\xb2\x2b\x08\xb0\x82\xf9\x3c\xb9\x46\x34\x87\x54\x31\x84\xd5\x39\xea\x93\x9a\x6e\x83\x9d\xdd\x7d\xdc\x0e\xbf\x75\x3b\x3c\x69\x29\x8e\x48\x1b\xca\xdb\x44\x84\xfd\xcf\x59\x77\xa7\x5f\x16\xa5\x14\x25\x33\xd9\x7c\x01\xf3\x3c\xa9\xfc\x29\xf9\xeb\x77\x9a\x4b\x49\xac\x6f\xaf\x0b\x23\x9d\x5c\x96\xe7\xb3\xa4\x5d\xe2\xf5\x36\x59\x79\x9e\xe2\x05\x6d\x4a\x79\x79\xaa\x5d\x46\x6d\x19\xaf\xdd\xf0\xc3\xfa\x54\xb3\xf3\x42\x2d\xe5\x9d\x86\x9a\xdf\xd1\x33\xd7\x4b\xd8\xa0\x52\x52\x2d\x5d\x5a\x2e\xe1\xb3\x6c\x44\x95\x4e\xc2\x25\x5c\x16\xaf\xbf\xfd\xa7\x44\x86\xef\xfe\xfb\x0e\xab\x37\xec\x2d\xbe\x65\xc5\x54\x7d\x5b\xa4\xc5\x47\x3b\x76\x13\xf9\x64\x81\x64\xf3\xb3\x40\xe6\xe7\x68\x76\x04\x8f\x0b\x11\x60\xad\x31\x91\x5e\x76\x5e\x7c\xc1\xbc\x91\xb2\x34\xae\x75\xe1\xb7\xa7\x60\x9a\x0b\xe6\x3f\x50\xa8\xa5\x2a\x11\x4a\x26\x68\x72\xb3\x07\x14\x23\x69\xd6\x03\xfb\xf6\x20\x8f\xe8\x4d\x7e\xfd\xb4\x11\x35\x3e\xa8\xb8\x8d\x3b\x53\xa7\xd6\x5a\x34\x0a\x91\xad\x86\x8c\x85\x10\x06\x2a\xe8\x44\x52\x55\x9f\x22\xd5\x84\x86\x8c\x0e\x38\xa8\x3a\xbe\x04\xc5\x18\x02\xcd\x3d\x29\x13\x19\x4b\x0c\x3b\xf9\x28\x4a\x5b\xa9\x3a\x08\x74\x8e\x18\xd0\xc4\xc1\x7c\x7e\x4e\x68\x57\xd3\x98\x43\x75\x7e\x32\x80\x3e\x39\x2e\x1c\x31\x3f\x6d\x98\x42\x8a\x5e\x1e\xaa\x14\x49\x13\xa6\x7e\x38\x4f\x85\x03\x92\xdd\xe1\x69\xd9\x69\x9a\xce\x76\x9f\x2c\x8d\xe6\xcc\xd4\x4d\xaf\xb5\x3b\x77\x47\x1d\xf8\xc8\x14\x67\x37\x35\x76\x59\x76\x64\x75\x83\x74\x0a\xdc\x78\x33\xfa\x66\x92\xba\xf3\x86\x13\x73\xfe\x88\x97\xe7\x46\x89\x15\x78\x2a\x82\x95\xb6\x84\xfc\xd3\xa3\x86\xf7\x90\x4f\x50\x69\x50\x9b\x8f\xa9\x33\x88\x2d\x17\x14\x6e\x92\xa0\x8e\x74\xdf\xa8\x7b\xa9\xbd\x39\x81\xa6\x9c\xf6\x70\x58\x76\xb7\x01\xcf\x9c\xea\xdb\x83\xf2\xbd\x92\x47\x5e\x4d\xcd\x1f\x17\x17\x49\x35\x5c\x83\xa4\x91\xe8\x81\x6b\x77\x3e\x27\xa3\x36\x96\xfd\x76\x90\x8d\xd1\xbc\xc2\xc9\xf0\x25\x9d\xfd\x51\x47\x23\xfa\x28\x34\x8d\x12\x51\x1a\xc4\xc7\xb5\x24\xa2\x45\x0c\x62\xe1\x1b\xce\xd3\xcd\xc1\x67\x41\x1b\xd5\x04\xf7\x09\x1e\xc0\xf1\x6d\x42\x3f\xa3\xb7\x00\x26\x05\xdd\xa4\xee\xc8\xf0\x46\x6d\xc1\x4d\x36\xd6\xb1\x08\x84\xc7\xf4\xd0\x01\xb6\xe8\xca\xcb\xaa\x03\x10\x8b\xd8\x6b\xb1\x95\x55\x95\x4a\xeb\x28\xec\xfd\x3c\xd4\x19\x4e\x87\x65\x7e\x59\xf4\x4d\xdf\x87\xe2\x0f\x54\xfd\xa8\x57\xcc\xf3\x40\x96\xc0\x4c\x04\xa0\xed\xce\x8c\x5a\xe3\xd0\x29\xe9\x30\xc0\x8e\xae\x27\xdb\x0b\x3f\x77\x45\x03\x5a\xb6\xf7\x66\xfd\x92\xb6\x81\x3b\xb7\x86\x5b\x46\xed\x6e\x04\xe8\x77\xd9\x08\xe3\x9b\xda\x44\xc5\x76\xb8\xb8\x0b\x5b\x49\xbf\x27\xdb\x9b\xa0\xf6\x5e\xc1\xde\xfe\x14\xb3\x3e\x8e\x89\x1b\x99\x64\x92\x5b\x2a\xe2\xae\xb4\x82\xc7\xa7\x50\x26\xae\x7c\xee\x00\x1d\x4a\x4d\x5d\x68\xc1\x0a\x2e\x5a\xbe\x2e\xb6\xb5\x7c\x18\x6d\x28\xbb\x6c\x50\x35\x6a\x5a\x31\xbc\x44\x16\xbe\xbc\xab\x7b\x89\xe7\x76\x0d\x85\xec\xfd\x2b\x28\x15\x32\x33\x1a\x88\xb2\x3c\xf4\xaf\x0d\x5d\x41\x89\x90\xbd\x7f\x65\xd7\x2e\xc0\xc8\xe5\x79\xf7\xf3\x36\xbb\x9e\x66\x7f\x07\x00\x00\xff\xff\xac\xc5\x56\x51\xb0\x16\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf5, 0xdf, 0x4b, 0x1c, 0xa5, 0xf6, 0xdf, 0x39, 0xb7, 0x3d, 0xab, 0x2f, 0xbe, 0x63, 0xbe, 0x5c, 0x16, 0xb, 0x1c, 0x46, 0x74, 0xb2, 0x4a, 0x35, 0x1d, 0x8, 0xdf, 0xe2, 0xd7, 0xf9, 0xa7, 0xb4}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x41, 0xc2, 0x63, 0x5c, 0x48, 0xdc, 0x67, 0xbb, 0x4b, 0x59, 0xea, 0xcd, 0xf0, 0x53, 0x36, 0x6a, 0x27, 0xf1, 0xf2, 0x6c, 0xdf, 0x87, 0xd4, 0xea, 0xc0, 0xb8, 0x4b, 0x6, 0xfa, 0xdf, 0xca, 0x5f}} return a, nil } diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index ffa68ae..cf3ebd6 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -24,7 +24,7 @@ // transactions/coordinator/set_block_update_boundary.cdc (415B) // transactions/delegatee/execute_all_delegated_updates.cdc (687B) // transactions/delegatee/remove_delegated_updaters.cdc (567B) -// transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (330B) +// transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (352B) // transactions/dependency-audit/admin/test_check_dependencies.cdc (440B) // transactions/host/publish_host_capability.cdc (2.303kB) // transactions/migration-contract-staging/admin/commit_migration_results.cdc (809B) @@ -590,7 +590,7 @@ func transactionsDelegateeRemove_delegated_updatersCdc() (*asset, error) { return a, nil } -var _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x8f\xc1\x4a\xc4\x40\x0c\x86\xef\xf3\x14\xb1\x07\x6d\x2f\x7d\x80\x22\x96\xaa\x77\x17\x64\x1f\x20\xce\xc4\x76\x60\x9b\x0c\x49\x8a\x88\xec\xbb\x4b\xad\x16\xf5\xb0\xb9\x25\xff\x9f\xfc\x5f\xf2\x5c\x44\x1d\xaa\x47\x2a\xc4\x89\x38\xbe\x0f\x4b\xca\x5e\x85\xe0\x8a\x6c\x18\x3d\x0b\xd7\x36\xc9\x72\x4a\x07\xe4\x1c\x3b\xb8\x17\x39\x35\xf0\x11\x00\x00\x8a\x52\x41\xa5\xda\xf2\xc8\xa4\x1d\x0c\x8b\x4f\x43\x8c\xb2\xb0\xff\x58\xd6\xda\xe4\xf6\x45\x54\xe5\xed\xf6\xfa\x5f\x58\x3b\xa4\x39\x73\x36\x57\x74\xd1\xbb\xfa\x55\x65\xee\xe0\xa2\xe9\xd9\x45\x71\xa4\x03\xfa\xd4\xf4\xad\x91\x7f\xb1\x3d\xf1\x91\xcd\x71\xa4\xb4\x2f\x67\xb2\xbf\xf4\xbf\x9a\x66\xe7\xeb\x7b\x28\xeb\xa4\xae\x1e\x56\x15\x58\x1c\x36\x58\x38\x96\x84\x4e\x0a\x2b\xd4\xf7\x1f\x37\x06\xb6\xe5\x5f\x55\xdb\x8d\x73\x38\x87\xcf\x00\x00\x00\xff\xff\xf6\xe7\x19\x2d\x4a\x01\x00\x00" +var _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcf\x41\x4e\xc4\x30\x0c\x05\xd0\x7d\x4e\x61\xba\x80\x76\xd3\x03\x54\x88\xaa\xc0\x9e\x91\x10\x07\x08\x89\x69\x2d\x4d\xed\xc8\x76\x85\x10\x9a\xbb\xa3\x52\x18\xc1\x2c\x9a\x5d\xf2\x7f\x92\x67\x9a\x8b\xa8\x43\xf5\x88\x05\x39\x23\xa7\x8f\x61\xc9\xe4\x55\x08\xae\x91\x2d\x26\x27\xe1\xda\x26\x59\x8e\xf9\x10\x99\x52\x07\xf7\x22\xc7\x06\x3e\x03\x00\x40\x51\x2c\x51\xb1\x36\x1a\x19\xb5\x83\x61\xf1\x69\x48\x49\x16\xf6\xdf\xca\xba\xb6\xb8\x7d\x15\x55\x79\xbf\xbd\xbe\xf8\xac\x1d\xf2\x4c\x4c\xe6\x1a\x5d\xf4\xae\x7e\x53\x99\x3b\xd8\x2d\x3d\xbb\x68\x1c\xf1\x10\x7d\x6a\xfa\xd6\xd0\xbf\x6d\x4f\xfc\xc2\xe6\x71\xc4\x7c\xbe\x4c\x68\xff\xf5\x7f\x36\xcd\xd9\xd7\xf7\x50\xd6\x93\xba\x7a\x58\x53\x60\x71\xd8\xb0\xfb\x0c\x58\xa9\x3f\xd3\xdd\x18\xd8\xa6\xba\xaa\xb6\x97\x4f\xe1\x14\xbe\x02\x00\x00\xff\xff\x63\x20\x68\x33\x60\x01\x00\x00" func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdcBytes() ([]byte, error) { return bindataRead( @@ -606,7 +606,7 @@ func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc() (*asset, erro } info := bindataFileInfo{name: "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xce, 0x5a, 0xec, 0xee, 0x60, 0xe0, 0x8e, 0x75, 0xc8, 0xcc, 0xa3, 0x9f, 0xc0, 0x79, 0xa0, 0x82, 0x86, 0x36, 0xb5, 0x65, 0x77, 0xef, 0xe2, 0xad, 0x3f, 0x39, 0xf9, 0x73, 0xa9, 0x33, 0x6f, 0x22}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6b, 0xe2, 0xb7, 0x16, 0xc1, 0xb0, 0xf2, 0x3f, 0x3d, 0x5d, 0xee, 0xc2, 0x64, 0xce, 0x79, 0x30, 0x58, 0xd8, 0x8d, 0x14, 0xd8, 0x90, 0x9e, 0x3c, 0x50, 0x1, 0xaf, 0xfb, 0x4d, 0xce, 0xfe, 0x48}} return a, nil } diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index 84352e1..e75c2be 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -111,10 +111,9 @@ access(all) fun testChekDependenciesWithUnstagedEntries() { Test.assertEqual(1, events.length) let evt = events[0] as! DependencyAudit.UnstagedDependencies - Test.assertEqual(1, evt.dependenciesAddresses.length) - Test.assertEqual(1, evt.dependenciesNames.length) - Test.assertEqual(fooAccount.address, evt.dependenciesAddresses[0]) - Test.assertEqual("Foo", evt.dependenciesNames[0]) + Test.assertEqual(1, evt.dependencies.length) + Test.assertEqual(fooAccount.address, evt.dependencies[0].address) + Test.assertEqual("Foo", evt.dependencies[0].name) } @@ -135,10 +134,9 @@ access(all) fun testChekDependenciesWithStagedEntries() { events = Test.eventsOfType(Type()) Test.assertEqual(2, events.length) let evt = events[1] as! DependencyAudit.UnstagedDependencies - Test.assertEqual(1, evt.dependenciesAddresses.length) - Test.assertEqual(1, evt.dependenciesNames.length) - Test.assertEqual(aAccount.address, evt.dependenciesAddresses[0]) - Test.assertEqual("A", evt.dependenciesNames[0]) + Test.assertEqual(1, evt.dependencies.length) + Test.assertEqual(aAccount.address, evt.dependencies[0].address) + Test.assertEqual("A", evt.dependencies[0].name) let aStagingTxResult = executeTransaction( "../transactions/migration-contract-staging/stage_contract.cdc", @@ -180,12 +178,11 @@ access(all) fun testChekDependenciesWithMixedEntries() { Test.assertEqual(3, events.length) let evt = events[2] as! DependencyAudit.UnstagedDependencies - Test.assertEqual(2, evt.dependenciesAddresses.length) - Test.assertEqual(2, evt.dependenciesNames.length) - Test.assertEqual(fooAccount.address, evt.dependenciesAddresses[0]) - Test.assertEqual("Foo", evt.dependenciesNames[0]) - Test.assertEqual(bcAccount.address, evt.dependenciesAddresses[1]) - Test.assertEqual("B", evt.dependenciesNames[1]) + Test.assertEqual(2, evt.dependencies.length) + Test.assertEqual(fooAccount.address, evt.dependencies[0].address) + Test.assertEqual("Foo", evt.dependencies[0].name) + Test.assertEqual(bcAccount.address, evt.dependencies[1].address) + Test.assertEqual("B", evt.dependencies[1].name) } access(all) fun testSetPanic() { From cae832985ef893f2c02d4a2725493fbf52d6084d Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Tue, 21 May 2024 16:10:21 +0200 Subject: [PATCH 05/16] address review comments --- contracts/DependencyAudit.cdc | 11 +++++++---- lib/go/contracts/internal/assets/assets.go | 6 +++--- tests/dependency_audit_tests.cdc | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 0e48676..6315ffe 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -20,7 +20,7 @@ access(all) contract DependencyAudit { access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) // checkDependencies is called from the FlowServiceAccount contract - access(self) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { + access(contract) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { var unstagedDependencies: [Dependency] = [] var numDependencies = dependenciesAddresses.length @@ -56,7 +56,7 @@ access(all) contract DependencyAudit { j = j + 1 } - // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.0x2ceae959ed1a7e7a.MigrationContractStaging, A.0x2ceae959ed1a7e7a.DependencyAudit` + // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.2ceae959ed1a7e7a.MigrationContractStaging, A.2ceae959ed1a7e7a.DependencyAudit` panic("Found unstaged dependencies: ".concat(unstagedDependenciesString)) } else { emit UnstagedDependencies(dependencies: unstagedDependencies) @@ -105,12 +105,15 @@ access(all) contract DependencyAudit { } access(all) fun toString(): String { - return "A.".concat(self.address.toString()).concat(".").concat(self.name) + var addressString = self.address.toString() + // remove 0x prefix + addressString = addressString.slice(from: 2, upTo: addressString.length) + return "A.".concat(addressString).concat(".").concat(self.name) } } // The admin resource is saved to the storage so that the admin can be accessed by the service account - // The `excludedAddresses` will be the addresses with the system contracracts. + // The `excludedAddresses` will be the addresses with the system contracts. init(excludedAddresses: [Address]) { self.excludedAddresses = {} self.panicOnUnstaged = false diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 12b218c..90bd524 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (5.808kB) +// DependencyAudit.cdc (5.968kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x5f\x6f\xdb\x38\x12\x7f\xf7\xa7\x98\xf3\x93\x84\x73\x95\xf6\x80\x43\x51\xa3\xbe\x22\xd7\x6d\x81\x7d\xe8\x6e\x81\xec\xee\x8b\x11\xac\x19\x69\x6c\x33\x91\xc9\x80\xa4\x9c\x7a\x83\x7c\xf7\xc5\x90\xfa\x43\x8a\x94\x93\x45\x81\x1a\x41\x60\x59\xc3\x99\xdf\xfc\x66\x38\x33\x24\x3f\xdc\x4b\x65\x60\xfe\x85\xef\x14\x33\x5c\x8a\x8f\x52\x18\xc5\x4a\x73\x65\xd8\x8e\x8b\xdd\x7c\x36\xbb\xb8\x80\xdf\xf6\x5c\x43\xd9\xbe\x01\xae\xe9\xaf\xd1\x58\xc1\xcd\x09\xcc\x1e\xe1\xf3\x1f\x5f\xa0\x64\x75\xcd\xc5\xce\x3e\x6f\xca\x3d\x96\x77\x3f\xe1\x3d\x8a\x0a\x45\xc9\x51\x6f\x60\xdb\x88\x92\x0c\xc0\x56\xc9\x03\xb0\xe1\x59\x6e\xed\x1a\xcd\x0e\x08\x82\xfe\x31\x51\x81\xe6\x62\x27\x98\x69\x14\x02\x17\xce\x46\x2d\x1f\xae\x50\x1d\x79\x89\x97\x65\x29\x1b\x61\x7a\x44\x0b\xc2\xc8\x8c\x15\x43\x51\x91\x46\x3c\xa2\x3a\x81\x51\x4c\x68\x66\xcd\x14\xce\x0f\x84\x4d\xe5\xc1\xba\xac\x2a\x85\x5a\x13\x3e\xb2\x1a\xbc\xfb\x85\x1d\xe8\xf7\x07\x5e\xd7\x70\x83\xc0\xea\xda\x1a\xf0\x45\x40\x20\x56\x15\x56\x60\x24\xa8\x86\x70\x12\x8a\xd0\x68\x6f\xf7\x1c\x27\xd6\x88\x15\x00\xbe\x05\x26\x4e\x1d\x2b\x81\x35\xa6\x10\x84\x34\xa0\x0d\xdb\x61\xd5\x11\x33\x15\xba\x9e\x1e\xeb\xfa\xcf\x2f\x55\xbb\xb0\x02\x21\x32\x3c\x70\x03\x4c\x10\xab\xc2\xc0\x03\x37\x7b\x2b\xd4\x88\x16\x89\xaf\x6e\x01\x52\xc1\x3d\x13\xbc\x24\x57\x36\xf6\xdb\xaf\xe2\xf7\x56\x74\x43\xa9\xa3\xd1\x10\x63\x46\x35\x58\xcc\x58\x59\xa2\xd6\x19\xab\xeb\x7c\x48\xb1\x9e\xa6\xd3\x65\x53\x71\x03\x8f\xb3\x19\x00\x80\x2f\x5b\xa3\x81\xcb\xea\xc0\x05\xd7\x46\x31\x23\xd5\x95\x91\x8a\xed\xf0\x2b\x33\xfb\x25\x78\x0f\x6e\x69\x1b\x05\x7d\xd2\x06\x0f\xc0\xba\xb8\xc3\x9e\x1d\xb1\xb7\xab\x5d\x04\xad\xcf\xc4\xc8\x0d\x3a\x52\x34\x1c\x39\xb3\x2e\x1f\x3a\xb2\x07\xac\x5a\xc2\x03\x02\x7e\x2b\xeb\xa6\x42\x12\x3a\xb8\x14\x0f\x78\x3e\x51\x74\xef\x4a\xed\xbb\xa1\xb1\xde\xe6\x70\x64\xaa\x5b\x5c\xf5\xe9\xb8\x84\xc7\xf6\xfb\x12\xfe\x2f\x65\xfd\x14\xfb\x4f\xeb\x46\xe4\x3a\xd9\x58\xd4\x85\xad\x93\xf2\x53\x30\xf3\x23\xb7\x84\xf5\xc0\xfb\x75\x3e\xa5\xe7\x6b\x68\xd4\x57\xf7\x71\xcf\xc4\x0e\xab\x4c\xef\x65\x53\x57\x56\xd0\x61\xca\xfb\x20\x44\xbb\x80\x12\x82\x6a\x07\x56\x03\x6d\x67\xf6\x7a\x4c\xe0\xb6\x11\xb1\xd6\xec\x4f\x48\xee\xf3\x25\xac\xdb\xef\xd7\x0b\x08\x65\xec\x7e\x5f\xc2\xfa\xca\x28\x2e\x76\xf6\x35\x6b\xcc\x5e\x2a\xfe\x17\x2a\x7f\x61\x0e\x8f\x16\x05\x7d\x28\x0a\x4d\x82\x89\x90\x4b\x58\xc1\xfa\x7a\x16\x2c\x12\xcd\x21\x60\x61\x95\xc6\x5b\xd4\x28\x76\x66\x1f\x2c\xe5\xb0\x82\xd7\xfd\x2f\x0f\x7b\x5e\x23\x70\x78\x1f\xa9\x1c\x50\xd2\x87\xf6\x0b\xd7\x9f\xda\x4c\x83\xd5\x78\x8f\x15\x51\x12\xae\x93\x88\xd6\xfc\xfa\x1a\x3e\x7c\x80\x2d\xab\x35\x06\x16\xf8\xd6\x37\x10\x5a\xb7\xef\x61\x05\x1c\xfe\x0d\x6f\xa2\x37\x14\x5c\x2e\x9a\x50\xdd\xd3\x2c\xc2\xdf\x96\x9b\xd5\x64\xcd\x2b\xb8\xbe\xb2\x32\x19\xeb\xb6\xcf\x94\x13\x0b\xdb\x6c\x96\x71\x0a\xac\xf9\x75\x3e\xf6\xeb\x5f\xad\xe5\xd8\xa9\x54\xf0\x0b\x76\x4f\x0f\xd9\xc0\xf0\x77\xc2\xc9\xcf\x11\x13\xd3\xea\x09\xf0\x6d\x1a\xa1\x4b\x2b\xf8\x1f\xbc\x1e\xf9\xc4\xb7\x51\x62\x8c\xaa\x4c\x82\x04\xd7\x5f\x9e\xab\xf5\xae\xb3\x78\xed\xd1\x15\xda\xbe\x57\x98\x3d\x2a\xb4\xdd\x88\x3a\x55\xb2\xb9\xa4\x2c\x93\x52\xa7\xe3\x80\x5a\xb3\x1d\x3a\xb5\x5c\xf4\x05\xf9\x85\xba\xa6\xf6\xb2\x2b\x08\xb0\x82\xf9\x3c\xb9\x46\x34\x87\x54\x31\x84\xd5\x39\xea\x93\x9a\x6e\x83\x9d\xdd\x7d\xdc\x0e\xbf\x75\x3b\x3c\x69\x29\x8e\x48\x1b\xca\xdb\x44\x84\xfd\xcf\x59\x77\xa7\x5f\x16\xa5\x14\x25\x33\xd9\x7c\x01\xf3\x3c\xa9\xfc\x29\xf9\xeb\x77\x9a\x4b\x49\xac\x6f\xaf\x0b\x23\x9d\x5c\x96\xe7\xb3\xa4\x5d\xe2\xf5\x36\x59\x79\x9e\xe2\x05\x6d\x4a\x79\x79\xaa\x5d\x46\x6d\x19\xaf\xdd\xf0\xc3\xfa\x54\xb3\xf3\x42\x2d\xe5\x9d\x86\x9a\xdf\xd1\x33\xd7\x4b\xd8\xa0\x52\x52\x2d\x5d\x5a\x2e\xe1\xb3\x6c\x44\x95\x4e\xc2\x25\x5c\x16\xaf\xbf\xfd\xa7\x44\x86\xef\xfe\xfb\x0e\xab\x37\xec\x2d\xbe\x65\xc5\x54\x7d\x5b\xa4\xc5\x47\x3b\x76\x13\xf9\x64\x81\x64\xf3\xb3\x40\xe6\xe7\x68\x76\x04\x8f\x0b\x11\x60\xad\x31\x91\x5e\x76\x5e\x7c\xc1\xbc\x91\xb2\x34\xae\x75\xe1\xb7\xa7\x60\x9a\x0b\xe6\x3f\x50\xa8\xa5\x2a\x11\x4a\x26\x68\x72\xb3\x07\x14\x23\x69\xd6\x03\xfb\xf6\x20\x8f\xe8\x4d\x7e\xfd\xb4\x11\x35\x3e\xa8\xb8\x8d\x3b\x53\xa7\xd6\x5a\x34\x0a\x91\xad\x86\x8c\x85\x10\x06\x2a\xe8\x44\x52\x55\x9f\x22\xd5\x84\x86\x8c\x0e\x38\xa8\x3a\xbe\x04\xc5\x18\x02\xcd\x3d\x29\x13\x19\x4b\x0c\x3b\xf9\x28\x4a\x5b\xa9\x3a\x08\x74\x8e\x18\xd0\xc4\xc1\x7c\x7e\x4e\x68\x57\xd3\x98\x43\x75\x7e\x32\x80\x3e\x39\x2e\x1c\x31\x3f\x6d\x98\x42\x8a\x5e\x1e\xaa\x14\x49\x13\xa6\x7e\x38\x4f\x85\x03\x92\xdd\xe1\x69\xd9\x69\x9a\xce\x76\x9f\x2c\x8d\xe6\xcc\xd4\x4d\xaf\xb5\x3b\x77\x47\x1d\xf8\xc8\x14\x67\x37\x35\x76\x59\x76\x64\x75\x83\x74\x0a\xdc\x78\x33\xfa\x66\x92\xba\xf3\x86\x13\x73\xfe\x88\x97\xe7\x46\x89\x15\x78\x2a\x82\x95\xb6\x84\xfc\xd3\xa3\x86\xf7\x90\x4f\x50\x69\x50\x9b\x8f\xa9\x33\x88\x2d\x17\x14\x6e\x92\xa0\x8e\x74\xdf\xa8\x7b\xa9\xbd\x39\x81\xa6\x9c\xf6\x70\x58\x76\xb7\x01\xcf\x9c\xea\xdb\x83\xf2\xbd\x92\x47\x5e\x4d\xcd\x1f\x17\x17\x49\x35\x5c\x83\xa4\x91\xe8\x81\x6b\x77\x3e\x27\xa3\x36\x96\xfd\x76\x90\x8d\xd1\xbc\xc2\xc9\xf0\x25\x9d\xfd\x51\x47\x23\xfa\x28\x34\x8d\x12\x51\x1a\xc4\xc7\xb5\x24\xa2\x45\x0c\x62\xe1\x1b\xce\xd3\xcd\xc1\x67\x41\x1b\xd5\x04\xf7\x09\x1e\xc0\xf1\x6d\x42\x3f\xa3\xb7\x00\x26\x05\xdd\xa4\xee\xc8\xf0\x46\x6d\xc1\x4d\x36\xd6\xb1\x08\x84\xc7\xf4\xd0\x01\xb6\xe8\xca\xcb\xaa\x03\x10\x8b\xd8\x6b\xb1\x95\x55\x95\x4a\xeb\x28\xec\xfd\x3c\xd4\x19\x4e\x87\x65\x7e\x59\xf4\x4d\xdf\x87\xe2\x0f\x54\xfd\xa8\x57\xcc\xf3\x40\x96\xc0\x4c\x04\xa0\xed\xce\x8c\x5a\xe3\xd0\x29\xe9\x30\xc0\x8e\xae\x27\xdb\x0b\x3f\x77\x45\x03\x5a\xb6\xf7\x66\xfd\x92\xb6\x81\x3b\xb7\x86\x5b\x46\xed\x6e\x04\xe8\x77\xd9\x08\xe3\x9b\xda\x44\xc5\x76\xb8\xb8\x0b\x5b\x49\xbf\x27\xdb\x9b\xa0\xf6\x5e\xc1\xde\xfe\x14\xb3\x3e\x8e\x89\x1b\x99\x64\x92\x5b\x2a\xe2\xae\xb4\x82\xc7\xa7\x50\x26\xae\x7c\xee\x00\x1d\x4a\x4d\x5d\x68\xc1\x0a\x2e\x5a\xbe\x2e\xb6\xb5\x7c\x18\x6d\x28\xbb\x6c\x50\x35\x6a\x5a\x31\xbc\x44\x16\xbe\xbc\xab\x7b\x89\xe7\x76\x0d\x85\xec\xfd\x2b\x28\x15\x32\x33\x1a\x88\xb2\x3c\xf4\xaf\x0d\x5d\x41\x89\x90\xbd\x7f\x65\xd7\x2e\xc0\xc8\xe5\x79\xf7\xf3\x36\xbb\x9e\x66\x7f\x07\x00\x00\xff\xff\xac\xc5\x56\x51\xb0\x16\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x51\x6f\xdb\xb6\x13\x7f\xf7\xa7\xb8\xbf\x9f\x2c\xfc\x5d\xa5\x2d\x30\x14\x15\xea\x15\x59\xd7\x02\x7b\xe8\x56\x20\xdd\x5e\x8c\x60\x66\xa4\xb3\xcd\x44\x26\x0d\x92\x72\xea\x05\xf9\xee\xc3\x91\x92\x4c\x8a\x94\x93\xa1\x40\x8d\x20\x90\xc4\xe3\xdd\xf1\x77\xc7\xbb\x1f\xc9\x77\x7b\xa9\x0c\x4c\x3f\xf3\x8d\x62\x86\x4b\xf1\x41\x0a\xa3\x58\x69\xae\x0c\xdb\x70\xb1\x99\x4e\x26\x17\x17\xf0\x75\xcb\x35\x94\xed\x08\x70\x4d\x7f\x8d\xc6\x0a\x6e\x8e\x60\xb6\x08\x9f\xfe\xfa\x0c\x25\xab\x6b\x2e\x36\xf6\x7d\x55\x6e\xb1\xbc\xfb\x15\xf7\x28\x2a\x14\x25\x47\xbd\x82\x75\x23\x4a\x32\x00\x6b\x25\x77\xc0\x4e\xef\x72\x6d\xe7\x68\xb6\x43\x10\xf4\x8f\x89\x0a\x34\x17\x1b\xc1\x4c\xa3\x10\xb8\x70\x36\x6a\x79\x7f\x85\xea\xc0\x4b\xbc\x2c\x4b\xd9\x08\xd3\x7b\x34\x27\x1f\x99\xb1\x62\x28\x2a\xd2\x88\x07\x54\x47\x30\x8a\x09\xcd\xac\x99\xdc\xad\x03\x61\x55\x79\x6e\x5d\x56\x95\x42\xad\xc9\x3f\xb2\x1a\x8c\xfd\xce\x76\xf4\xfd\x9e\xd7\x35\xdc\x20\xb0\xba\xb6\x06\x7c\x11\x10\x88\x55\x85\x15\x18\x09\xaa\x21\x3f\xc9\x8b\xd0\x68\x6f\xf7\x1c\x26\xd6\x88\x15\x00\xbe\x06\x26\x8e\x1d\x2a\x81\x35\xa6\x10\x84\x34\xa0\x0d\xdb\x60\xd5\x01\x33\x16\xba\x1e\x1e\xbb\xf4\xdf\x9e\xab\x76\x6e\x05\x42\xcf\x70\xc7\x0d\x30\x41\xa8\x0a\x03\xf7\xdc\x6c\xad\x50\x23\x5a\x4f\x7c\x75\x73\x90\x0a\xf6\x4c\xf0\x92\x96\xb2\xb2\x4f\x7f\x88\x3f\x5b\xd1\x15\xa5\x8e\x46\x43\x88\x19\xd5\x60\x3e\x61\x65\x89\x5a\xcf\x58\x5d\x67\xa7\x14\xeb\x61\x3a\x5e\x36\x15\x37\xf0\x30\x99\x00\x00\xf8\xb2\x35\x1a\xb8\xac\x76\x5c\x70\x6d\x14\x33\x52\x5d\x19\xa9\xd8\x06\xbf\x30\xb3\x2d\xc0\x7b\x71\x53\xdb\x28\xe8\xa3\x36\xb8\x03\xd6\xc5\x1d\xb6\xec\x80\xbd\x5d\xed\x22\x68\xd7\x4c\x88\xdc\xa0\x03\x45\xc3\x81\x33\xbb\xe4\x5d\x07\xf6\xc9\x57\x2d\xe1\x1e\x01\xbf\x95\x75\x53\x21\x09\xed\x5c\x8a\x07\x38\x1f\x29\xba\x77\xa5\xf6\x97\xa1\xb1\x5e\x67\x70\x60\xaa\x9b\x5c\xf5\xe9\x58\xc0\x43\xfb\x5c\xc0\x2f\x52\xd6\x8f\xf1\xfa\x69\xde\x00\x5c\x27\x1b\x8b\xba\xb0\x75\x52\x7e\x0a\xce\xfc\xc8\x15\xb0\x3c\xe1\x7e\x9d\x8d\xe9\xf9\x12\x1a\xf5\xd5\x7d\xd8\x32\xb1\xc1\x6a\xa6\xb7\xb2\xa9\x2b\x2b\xe8\x7c\xca\xfa\x20\x44\xbb\x80\x12\x82\x6a\x07\x56\x27\xd8\xce\xec\x75\xdf\xa9\xee\x5b\x46\xe9\x1a\x6b\x9e\xfd\x0d\xc9\xbd\x5e\xc0\xb2\x7d\xbe\x9e\x43\x28\x63\xf7\x7c\x01\xcb\x2b\xa3\xb8\xd8\xd8\x61\xd6\x98\xad\x54\xfc\x1f\x54\xfe\xc4\x0c\x1e\xac\x27\xf4\xa3\x48\x34\x09\x34\x42\x3c\x61\x01\xcb\xeb\x49\x30\x49\x34\xbb\x00\x89\x45\xda\xdf\xbc\x46\xb1\x31\xdb\x60\x2a\x87\x05\xbc\xec\xbf\xdc\x6f\x79\x8d\xc0\xe1\x5d\xa4\xf2\xe4\x25\xfd\x68\xcf\x70\xfd\xb1\xcd\x36\x58\x0c\xf7\x59\x1e\x25\xe2\x32\xe9\xd1\x92\x5f\x5f\xc3\xfb\xf7\xb0\x66\xb5\xc6\xc0\x02\x5f\xfb\x06\x42\xeb\x76\x1c\x16\xc0\xe1\xff\xf0\x2a\x1a\xa1\x60\x72\xd1\x84\xea\x1e\x27\x91\xff\x6d\xc9\x59\x8c\xd6\xbd\x9c\xeb\x2b\x2b\x33\x63\xdd\x16\x1a\x5b\xc4\xdc\x36\x9c\x22\x4e\x81\x25\xbf\xce\x86\xeb\xfa\x5f\x6b\x39\x5e\x54\x2a\xf8\x39\xdb\xd3\xcb\xec\x84\xf0\x77\xba\x93\x9d\x03\x26\x86\xd5\x13\xe0\xeb\xb4\x87\x2e\xad\xe0\x67\x78\x39\x58\x13\x5f\x47\x89\x31\xa8\x34\x09\x10\x5c\x8f\x79\xaa\xde\xbb\xee\xe2\xb5\x48\x57\x6c\xfb\x7e\x61\xb6\xa8\xd0\x76\x24\xea\x56\xc9\x06\x93\xb2\x4c\x4a\x9d\x8e\x1d\x6a\xcd\x36\xe8\xd4\x72\xd1\x17\xe5\x67\xea\x1a\xdb\xcb\xae\x20\xc0\x02\xa6\xd3\xe4\x1c\xd1\xec\x52\x05\x11\x16\xe7\xa0\x4f\x6a\xba\x0d\x76\x76\xf7\x73\x3b\xfc\xd6\xed\xf0\xa4\xa5\x38\x22\x6d\x28\x6f\x13\x11\xf6\x7f\x67\x97\x3b\x3e\x98\x97\x52\x94\xcc\xcc\xa6\x73\x98\x66\x49\xe5\x8f\xc9\xaf\xdf\x69\x2e\x25\xb1\xbc\xbd\xce\x8d\x74\x72\xb3\x2c\x9b\x24\xed\x12\xae\xb7\xc9\xca\xf3\x18\x4f\x68\x53\xca\xcb\x53\xed\x32\x6a\xcd\x78\xed\x08\x10\xeb\x53\xcd\x72\x86\x5a\xca\x3b\x0d\x35\xbf\xa3\x77\xae\x0b\x58\xa1\x52\x52\x15\x2e\x2d\x0b\xf8\x24\x1b\x51\xa5\x93\xb0\x80\xcb\xfc\x75\x89\x0c\xdf\xfe\xf4\x16\xab\x57\xec\x0d\xbe\x61\xf9\x58\x75\x9b\xa7\x84\x07\xbb\x75\x15\xad\xc7\x3a\x31\x9b\x9e\x75\x62\x7a\x0e\x62\x07\xee\xb0\x08\x01\xd6\x1a\x13\xa9\x65\xf9\xe2\x33\xf8\x46\xca\xd2\xb0\xce\x85\x4f\x8f\x01\x9b\x0b\xf8\x1f\x28\xd4\x52\x95\x08\x25\x13\xc4\xdc\xec\x01\xc5\x48\xe2\x7a\x60\x47\x77\xf2\x80\x1e\xf3\xeb\xd9\x46\xd4\xf4\xa0\xe2\x36\xe6\x4c\x1d\x5b\x6b\x11\x15\x22\x5b\x0d\x19\x0b\x5d\x38\x41\x41\x27\x92\xaa\xfa\x18\xa9\x26\x6f\xc8\xe8\xc9\x0f\xaa\x8c\xcf\xf1\x62\xe8\x02\x71\x9e\x94\x89\x19\x4b\x10\x9d\x6c\x10\xa5\xb5\x54\x9d\x0b\x74\x8e\x38\x79\x13\x07\xf3\x69\x8e\xd0\xce\x26\x8a\x43\x35\x7e\x34\x80\x3e\x38\x2e\x1c\x31\x3e\x6d\x98\x42\x88\x9e\x1f\xaa\x14\x48\x23\xa6\x7e\x38\x4e\xb9\x73\x64\x76\x87\xc7\xa2\xd3\x34\x9e\xed\x3e\x58\x1a\xcd\x19\xd6\x4d\xc3\xda\x9d\xbb\xa3\xee\x7b\x60\x8a\xb3\x9b\x1a\xbb\x2c\x3b\xb0\xba\x41\x3a\x05\xae\x3c\x8e\xbe\x1a\x85\xee\xbc\xe1\x04\xcf\x1f\xe0\xf2\x14\x8d\x58\x80\xa7\x22\x98\x69\x4b\xc8\x7f\x3d\x6a\x78\x2f\xd9\x08\x94\x06\xb5\xf9\x90\x3a\x83\xd8\x72\x41\xe1\x26\x09\xea\x46\xfb\x46\xed\xa5\xf6\x38\x02\x31\x9c\xf6\x70\x58\x76\xb7\x01\x4f\x9c\xea\xdb\x83\xf2\x5e\xc9\x03\xaf\xc6\xb8\xc7\xc5\x45\x52\x0d\xd7\x20\x89\x0e\xdd\x73\xed\xce\xe7\x64\xd4\xc6\xb2\xdf\x0e\xb2\x31\x9a\x57\x38\x1a\xbe\xe4\x62\x7f\xd4\xb1\x88\x7e\x0a\x4d\xa3\x44\x94\x06\xf1\x51\x2d\xe9\xd1\x3c\x76\x62\xee\x1b\xce\xd2\xcd\xc1\x47\x41\x1b\xd5\x04\xf7\x09\x9e\x83\xc3\xdb\x84\x9e\x9f\xb7\x0e\x8c\x0a\x3a\x96\xee\xc0\xf0\x68\xb6\xe0\x66\x36\xd4\x31\x0f\x84\x87\xf0\x68\xac\xd7\x79\x57\x5e\x16\x9d\x03\xb1\x88\xbd\x16\x5b\x58\x55\xa9\xb4\x8e\xc2\xde\x73\xa1\xce\xf0\xc0\x2e\xf1\xcc\xd6\x58\x4f\xbd\x7c\x5f\x3c\x36\x15\xcc\xeb\xeb\x36\xbc\xfc\x06\x7b\x85\x6b\xfe\x2d\x18\x1f\xea\x0c\xde\x73\x5d\xf3\x12\x67\x94\xbc\x05\xbc\x9e\x43\xb3\xff\x2a\x8b\x81\x88\xe3\xc5\x59\x2a\x87\xa6\x97\x79\xcf\x50\x82\x49\x59\xcf\x44\xf3\x69\xff\xdc\xc3\x36\x92\x23\x2d\x81\x60\xd4\xbd\x4f\xcd\x9c\xce\x2a\xec\xe0\x68\x83\xbd\x93\x74\xb7\x48\xa0\x65\x7b\xb5\xd7\x4f\x69\x39\x86\x43\xfe\x74\x11\xaa\xdd\xa5\x05\x7d\x97\x8d\x30\xbe\xa9\x55\xd4\x0f\x4e\x77\x8b\x61\xb7\xeb\xcb\x46\x7b\x59\xd5\xdf\x4e\xe5\x93\x3e\xcf\x12\x37\x46\xc9\x4d\x68\x71\x88\xbb\xe6\x02\x1e\x1e\x43\x99\xb8\x32\xbb\xc3\x7d\x28\x35\x76\xe1\x06\x0b\xb8\x68\xc1\xba\x58\xd7\xf2\x7e\xb0\xe1\xed\xb4\x93\xaa\x41\x53\x8d\xdd\x4b\xec\x92\xe7\xb3\x0e\x6f\x63\xb8\x5d\x4d\xf1\x7a\xf7\x02\x4a\x85\xcc\x0c\x08\x9b\x97\xdf\x2e\xff\x5d\xdc\x72\xca\x82\xd9\xbb\x17\x76\xee\x1c\x8c\x2c\xce\x2f\x3f\x6b\x53\xeb\x71\xf2\x6f\x00\x00\x00\xff\xff\xcd\x64\xc2\xd1\x50\x17\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x41, 0xc2, 0x63, 0x5c, 0x48, 0xdc, 0x67, 0xbb, 0x4b, 0x59, 0xea, 0xcd, 0xf0, 0x53, 0x36, 0x6a, 0x27, 0xf1, 0xf2, 0x6c, 0xdf, 0x87, 0xd4, 0xea, 0xc0, 0xb8, 0x4b, 0x6, 0xfa, 0xdf, 0xca, 0x5f}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc5, 0xe8, 0xd8, 0x74, 0x31, 0x6b, 0x70, 0x66, 0xa8, 0x2d, 0x1d, 0x3d, 0x59, 0x5c, 0xb1, 0xa7, 0xe4, 0xd2, 0x47, 0x33, 0xd3, 0xf1, 0xc5, 0x83, 0xc3, 0x1a, 0xa, 0xc8, 0x2b, 0x5, 0xa7, 0xb0}} return a, nil } diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index e75c2be..b34e5e9 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -213,5 +213,5 @@ access(all) fun testChekDependenciesWithUnstagedEntriesPanics() { ) Test.expect(commitResult, Test.beFailed()) // not sure how to test this: - // Test.expect(commitResult.error!.message, Test.contain("panic: Found unstaged dependencies: A.0x0000000000000008.Foo") ) + // Test.expect(commitResult.error!.message, Test.contain("panic: Found unstaged dependencies: A.0000000000000008.Foo") ) } From 698a7fd66446feb842f25e4d22d7f841a0692779 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Wed, 22 May 2024 16:51:47 +0200 Subject: [PATCH 06/16] change function access and panic message --- contracts/DependencyAudit.cdc | 4 ++-- lib/go/contracts/internal/assets/assets.go | 6 +++--- tests/dependency_audit_tests.cdc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 6315ffe..ed5132b 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -20,7 +20,7 @@ access(all) contract DependencyAudit { access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) // checkDependencies is called from the FlowServiceAccount contract - access(contract) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { + access(account) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { var unstagedDependencies: [Dependency] = [] var numDependencies = dependenciesAddresses.length @@ -57,7 +57,7 @@ access(all) contract DependencyAudit { } // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.2ceae959ed1a7e7a.MigrationContractStaging, A.2ceae959ed1a7e7a.DependencyAudit` - panic("Found unstaged dependencies: ".concat(unstagedDependenciesString)) + panic("This transaction is using dependencies not staged for Crescendo upgrade coming soon! Learn more: https://bit.ly/FLOWCRESCENDO. Dependencies not staged: ".concat(unstagedDependenciesString)) } else { emit UnstagedDependencies(dependencies: unstagedDependencies) } diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 90bd524..2f2abc0 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (5.968kB) +// DependencyAudit.cdc (6.09kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x51\x6f\xdb\xb6\x13\x7f\xf7\xa7\xb8\xbf\x9f\x2c\xfc\x5d\xa5\x2d\x30\x14\x15\xea\x15\x59\xd7\x02\x7b\xe8\x56\x20\xdd\x5e\x8c\x60\x66\xa4\xb3\xcd\x44\x26\x0d\x92\x72\xea\x05\xf9\xee\xc3\x91\x92\x4c\x8a\x94\x93\xa1\x40\x8d\x20\x90\xc4\xe3\xdd\xf1\x77\xc7\xbb\x1f\xc9\x77\x7b\xa9\x0c\x4c\x3f\xf3\x8d\x62\x86\x4b\xf1\x41\x0a\xa3\x58\x69\xae\x0c\xdb\x70\xb1\x99\x4e\x26\x17\x17\xf0\x75\xcb\x35\x94\xed\x08\x70\x4d\x7f\x8d\xc6\x0a\x6e\x8e\x60\xb6\x08\x9f\xfe\xfa\x0c\x25\xab\x6b\x2e\x36\xf6\x7d\x55\x6e\xb1\xbc\xfb\x15\xf7\x28\x2a\x14\x25\x47\xbd\x82\x75\x23\x4a\x32\x00\x6b\x25\x77\xc0\x4e\xef\x72\x6d\xe7\x68\xb6\x43\x10\xf4\x8f\x89\x0a\x34\x17\x1b\xc1\x4c\xa3\x10\xb8\x70\x36\x6a\x79\x7f\x85\xea\xc0\x4b\xbc\x2c\x4b\xd9\x08\xd3\x7b\x34\x27\x1f\x99\xb1\x62\x28\x2a\xd2\x88\x07\x54\x47\x30\x8a\x09\xcd\xac\x99\xdc\xad\x03\x61\x55\x79\x6e\x5d\x56\x95\x42\xad\xc9\x3f\xb2\x1a\x8c\xfd\xce\x76\xf4\xfd\x9e\xd7\x35\xdc\x20\xb0\xba\xb6\x06\x7c\x11\x10\x88\x55\x85\x15\x18\x09\xaa\x21\x3f\xc9\x8b\xd0\x68\x6f\xf7\x1c\x26\xd6\x88\x15\x00\xbe\x06\x26\x8e\x1d\x2a\x81\x35\xa6\x10\x84\x34\xa0\x0d\xdb\x60\xd5\x01\x33\x16\xba\x1e\x1e\xbb\xf4\xdf\x9e\xab\x76\x6e\x05\x42\xcf\x70\xc7\x0d\x30\x41\xa8\x0a\x03\xf7\xdc\x6c\xad\x50\x23\x5a\x4f\x7c\x75\x73\x90\x0a\xf6\x4c\xf0\x92\x96\xb2\xb2\x4f\x7f\x88\x3f\x5b\xd1\x15\xa5\x8e\x46\x43\x88\x19\xd5\x60\x3e\x61\x65\x89\x5a\xcf\x58\x5d\x67\xa7\x14\xeb\x61\x3a\x5e\x36\x15\x37\xf0\x30\x99\x00\x00\xf8\xb2\x35\x1a\xb8\xac\x76\x5c\x70\x6d\x14\x33\x52\x5d\x19\xa9\xd8\x06\xbf\x30\xb3\x2d\xc0\x7b\x71\x53\xdb\x28\xe8\xa3\x36\xb8\x03\xd6\xc5\x1d\xb6\xec\x80\xbd\x5d\xed\x22\x68\xd7\x4c\x88\xdc\xa0\x03\x45\xc3\x81\x33\xbb\xe4\x5d\x07\xf6\xc9\x57\x2d\xe1\x1e\x01\xbf\x95\x75\x53\x21\x09\xed\x5c\x8a\x07\x38\x1f\x29\xba\x77\xa5\xf6\x97\xa1\xb1\x5e\x67\x70\x60\xaa\x9b\x5c\xf5\xe9\x58\xc0\x43\xfb\x5c\xc0\x2f\x52\xd6\x8f\xf1\xfa\x69\xde\x00\x5c\x27\x1b\x8b\xba\xb0\x75\x52\x7e\x0a\xce\xfc\xc8\x15\xb0\x3c\xe1\x7e\x9d\x8d\xe9\xf9\x12\x1a\xf5\xd5\x7d\xd8\x32\xb1\xc1\x6a\xa6\xb7\xb2\xa9\x2b\x2b\xe8\x7c\xca\xfa\x20\x44\xbb\x80\x12\x82\x6a\x07\x56\x27\xd8\xce\xec\x75\xdf\xa9\xee\x5b\x46\xe9\x1a\x6b\x9e\xfd\x0d\xc9\xbd\x5e\xc0\xb2\x7d\xbe\x9e\x43\x28\x63\xf7\x7c\x01\xcb\x2b\xa3\xb8\xd8\xd8\x61\xd6\x98\xad\x54\xfc\x1f\x54\xfe\xc4\x0c\x1e\xac\x27\xf4\xa3\x48\x34\x09\x34\x42\x3c\x61\x01\xcb\xeb\x49\x30\x49\x34\xbb\x00\x89\x45\xda\xdf\xbc\x46\xb1\x31\xdb\x60\x2a\x87\x05\xbc\xec\xbf\xdc\x6f\x79\x8d\xc0\xe1\x5d\xa4\xf2\xe4\x25\xfd\x68\xcf\x70\xfd\xb1\xcd\x36\x58\x0c\xf7\x59\x1e\x25\xe2\x32\xe9\xd1\x92\x5f\x5f\xc3\xfb\xf7\xb0\x66\xb5\xc6\xc0\x02\x5f\xfb\x06\x42\xeb\x76\x1c\x16\xc0\xe1\xff\xf0\x2a\x1a\xa1\x60\x72\xd1\x84\xea\x1e\x27\x91\xff\x6d\xc9\x59\x8c\xd6\xbd\x9c\xeb\x2b\x2b\x33\x63\xdd\x16\x1a\x5b\xc4\xdc\x36\x9c\x22\x4e\x81\x25\xbf\xce\x86\xeb\xfa\x5f\x6b\x39\x5e\x54\x2a\xf8\x39\xdb\xd3\xcb\xec\x84\xf0\x77\xba\x93\x9d\x03\x26\x86\xd5\x13\xe0\xeb\xb4\x87\x2e\xad\xe0\x67\x78\x39\x58\x13\x5f\x47\x89\x31\xa8\x34\x09\x10\x5c\x8f\x79\xaa\xde\xbb\xee\xe2\xb5\x48\x57\x6c\xfb\x7e\x61\xb6\xa8\xd0\x76\x24\xea\x56\xc9\x06\x93\xb2\x4c\x4a\x9d\x8e\x1d\x6a\xcd\x36\xe8\xd4\x72\xd1\x17\xe5\x67\xea\x1a\xdb\xcb\xae\x20\xc0\x02\xa6\xd3\xe4\x1c\xd1\xec\x52\x05\x11\x16\xe7\xa0\x4f\x6a\xba\x0d\x76\x76\xf7\x73\x3b\xfc\xd6\xed\xf0\xa4\xa5\x38\x22\x6d\x28\x6f\x13\x11\xf6\x7f\x67\x97\x3b\x3e\x98\x97\x52\x94\xcc\xcc\xa6\x73\x98\x66\x49\xe5\x8f\xc9\xaf\xdf\x69\x2e\x25\xb1\xbc\xbd\xce\x8d\x74\x72\xb3\x2c\x9b\x24\xed\x12\xae\xb7\xc9\xca\xf3\x18\x4f\x68\x53\xca\xcb\x53\xed\x32\x6a\xcd\x78\xed\x08\x10\xeb\x53\xcd\x72\x86\x5a\xca\x3b\x0d\x35\xbf\xa3\x77\xae\x0b\x58\xa1\x52\x52\x15\x2e\x2d\x0b\xf8\x24\x1b\x51\xa5\x93\xb0\x80\xcb\xfc\x75\x89\x0c\xdf\xfe\xf4\x16\xab\x57\xec\x0d\xbe\x61\xf9\x58\x75\x9b\xa7\x84\x07\xbb\x75\x15\xad\xc7\x3a\x31\x9b\x9e\x75\x62\x7a\x0e\x62\x07\xee\xb0\x08\x01\xd6\x1a\x13\xa9\x65\xf9\xe2\x33\xf8\x46\xca\xd2\xb0\xce\x85\x4f\x8f\x01\x9b\x0b\xf8\x1f\x28\xd4\x52\x95\x08\x25\x13\xc4\xdc\xec\x01\xc5\x48\xe2\x7a\x60\x47\x77\xf2\x80\x1e\xf3\xeb\xd9\x46\xd4\xf4\xa0\xe2\x36\xe6\x4c\x1d\x5b\x6b\x11\x15\x22\x5b\x0d\x19\x0b\x5d\x38\x41\x41\x27\x92\xaa\xfa\x18\xa9\x26\x6f\xc8\xe8\xc9\x0f\xaa\x8c\xcf\xf1\x62\xe8\x02\x71\x9e\x94\x89\x19\x4b\x10\x9d\x6c\x10\xa5\xb5\x54\x9d\x0b\x74\x8e\x38\x79\x13\x07\xf3\x69\x8e\xd0\xce\x26\x8a\x43\x35\x7e\x34\x80\x3e\x38\x2e\x1c\x31\x3e\x6d\x98\x42\x88\x9e\x1f\xaa\x14\x48\x23\xa6\x7e\x38\x4e\xb9\x73\x64\x76\x87\xc7\xa2\xd3\x34\x9e\xed\x3e\x58\x1a\xcd\x19\xd6\x4d\xc3\xda\x9d\xbb\xa3\xee\x7b\x60\x8a\xb3\x9b\x1a\xbb\x2c\x3b\xb0\xba\x41\x3a\x05\xae\x3c\x8e\xbe\x1a\x85\xee\xbc\xe1\x04\xcf\x1f\xe0\xf2\x14\x8d\x58\x80\xa7\x22\x98\x69\x4b\xc8\x7f\x3d\x6a\x78\x2f\xd9\x08\x94\x06\xb5\xf9\x90\x3a\x83\xd8\x72\x41\xe1\x26\x09\xea\x46\xfb\x46\xed\xa5\xf6\x38\x02\x31\x9c\xf6\x70\x58\x76\xb7\x01\x4f\x9c\xea\xdb\x83\xf2\x5e\xc9\x03\xaf\xc6\xb8\xc7\xc5\x45\x52\x0d\xd7\x20\x89\x0e\xdd\x73\xed\xce\xe7\x64\xd4\xc6\xb2\xdf\x0e\xb2\x31\x9a\x57\x38\x1a\xbe\xe4\x62\x7f\xd4\xb1\x88\x7e\x0a\x4d\xa3\x44\x94\x06\xf1\x51\x2d\xe9\xd1\x3c\x76\x62\xee\x1b\xce\xd2\xcd\xc1\x47\x41\x1b\xd5\x04\xf7\x09\x9e\x83\xc3\xdb\x84\x9e\x9f\xb7\x0e\x8c\x0a\x3a\x96\xee\xc0\xf0\x68\xb6\xe0\x66\x36\xd4\x31\x0f\x84\x87\xf0\x68\xac\xd7\x79\x57\x5e\x16\x9d\x03\xb1\x88\xbd\x16\x5b\x58\x55\xa9\xb4\x8e\xc2\xde\x73\xa1\xce\xf0\xc0\x2e\xf1\xcc\xd6\x58\x4f\xbd\x7c\x5f\x3c\x36\x15\xcc\xeb\xeb\x36\xbc\xfc\x06\x7b\x85\x6b\xfe\x2d\x18\x1f\xea\x0c\xde\x73\x5d\xf3\x12\x67\x94\xbc\x05\xbc\x9e\x43\xb3\xff\x2a\x8b\x81\x88\xe3\xc5\x59\x2a\x87\xa6\x97\x79\xcf\x50\x82\x49\x59\xcf\x44\xf3\x69\xff\xdc\xc3\x36\x92\x23\x2d\x81\x60\xd4\xbd\x4f\xcd\x9c\xce\x2a\xec\xe0\x68\x83\xbd\x93\x74\xb7\x48\xa0\x65\x7b\xb5\xd7\x4f\x69\x39\x86\x43\xfe\x74\x11\xaa\xdd\xa5\x05\x7d\x97\x8d\x30\xbe\xa9\x55\xd4\x0f\x4e\x77\x8b\x61\xb7\xeb\xcb\x46\x7b\x59\xd5\xdf\x4e\xe5\x93\x3e\xcf\x12\x37\x46\xc9\x4d\x68\x71\x88\xbb\xe6\x02\x1e\x1e\x43\x99\xb8\x32\xbb\xc3\x7d\x28\x35\x76\xe1\x06\x0b\xb8\x68\xc1\xba\x58\xd7\xf2\x7e\xb0\xe1\xed\xb4\x93\xaa\x41\x53\x8d\xdd\x4b\xec\x92\xe7\xb3\x0e\x6f\x63\xb8\x5d\x4d\xf1\x7a\xf7\x02\x4a\x85\xcc\x0c\x08\x9b\x97\xdf\x2e\xff\x5d\xdc\x72\xca\x82\xd9\xbb\x17\x76\xee\x1c\x8c\x2c\xce\x2f\x3f\x6b\x53\xeb\x71\xf2\x6f\x00\x00\x00\xff\xff\xcd\x64\xc2\xd1\x50\x17\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x6d\x6f\xdb\xb6\x13\x7f\xef\x4f\x71\xf5\x2b\x0b\x7f\x57\x6e\x0b\xfc\x51\x54\xa8\x57\x64\x69\x0a\x0c\xe8\x13\x96\x6e\x7b\x61\x04\x33\x23\x9d\x6d\x26\x32\x69\x90\x94\x53\x2f\xc8\x77\x1f\x8e\x94\x25\x52\xa2\x9c\x0c\x05\x2a\x04\x81\x64\x1e\xef\x8e\xbf\x7b\xe0\x8f\xe4\xdb\x9d\x54\x06\xc6\x9f\xf8\x5a\x31\xc3\xa5\x38\x97\xc2\x28\x96\x9b\x4b\xc3\xd6\x5c\xac\xc7\xa3\xd1\x6c\x06\xdf\x36\x5c\x43\x5e\x8f\x00\xd7\xf4\x57\x69\x2c\xe0\xfa\x00\x66\x83\xf0\xe1\xcf\x4f\x90\xb3\xb2\xe4\x62\x6d\xbf\x97\xf9\x06\xf3\xdb\xf7\xb8\x43\x51\xa0\xc8\x39\xea\x25\xac\x2a\x91\x93\x01\x58\x29\xb9\x05\xd6\x7e\xcb\x95\x9d\xa3\xd9\x16\x41\xd0\x3f\x26\x0a\xd0\x5c\xac\x05\x33\x95\x42\xe0\xc2\xd9\x28\xe5\xdd\x25\xaa\x3d\xcf\xf1\x2c\xcf\x65\x25\x4c\xe3\xd1\x94\x7c\x64\xc6\x8a\xa1\x28\x48\x23\xee\x51\x1d\xc0\x28\x26\x34\xb3\x66\x52\xb7\x0e\x84\x65\xe1\xb9\x75\x56\x14\x0a\xb5\x26\xff\xc8\x6a\x30\xf6\x99\x6d\xe9\xf7\x3b\x5e\x96\x70\x8d\xc0\xca\xd2\x1a\xf0\x45\x40\x20\x16\x05\x16\x60\x24\xa8\x8a\xfc\x24\x2f\x42\xa3\x8d\xdd\x53\x98\x58\x23\x56\x00\xf8\x0a\x98\x38\x1c\x51\x09\xac\x31\x85\x20\xa4\x01\x6d\xd8\x1a\x8b\x23\x30\x43\xa1\x6b\xe0\xb1\x4b\xff\xed\xa9\x6a\xa7\x56\x20\xf4\x0c\xb7\xdc\x00\x13\x84\xaa\x30\x70\xc7\xcd\xc6\x0a\x55\xa2\xf6\xc4\x57\x37\x05\xa9\x60\xc7\x04\xcf\x69\x29\x4b\xfb\xf6\x45\xfc\x51\x8b\x2e\x29\x75\x34\x1a\x42\xcc\xa8\x0a\xd3\x11\xcb\x73\xd4\x7a\xc2\xca\x32\x69\x53\xac\x81\xe9\x70\x56\x15\xdc\xc0\xfd\x68\x04\x00\xe0\xcb\x96\x68\xe0\xac\xd8\x72\xc1\xb5\x51\xcc\x48\x75\x69\xa4\x62\x6b\xfc\xca\xcc\x26\x03\xef\xc3\x4d\xad\xa3\xa0\x0f\xda\xe0\x16\xd8\x31\xee\xb0\x61\x7b\x6c\xec\x6a\x17\x41\xbb\x66\x42\xe4\x1a\x1d\x28\x1a\xf6\x9c\xd9\x25\x6f\x8f\x60\xb7\xbe\x6a\x09\x77\x08\xf8\x3d\x2f\xab\x02\x49\x68\xeb\x52\x3c\xc0\xf9\x40\xd1\xbd\xcd\xb5\xbf\x0c\x8d\xe5\x2a\x81\x3d\x53\xc7\xc9\x45\x93\x8e\x19\xdc\xd7\xef\x19\xfc\x2a\x65\xf9\xd0\x5f\x3f\xcd\xeb\x80\xeb\x64\xfb\xa2\x2e\x6c\x47\x29\x3f\x05\x27\x7e\xe4\x32\x58\xb4\xb8\x5f\x25\x43\x7a\xbe\x86\x46\x7d\x75\xe7\x1b\x26\xd6\x58\x4c\xf4\x46\x56\x65\x61\x05\x9d\x4f\x49\x13\x84\x5e\x15\x50\x42\x50\xef\xc0\xa2\x85\xed\x44\xad\x07\x4e\xb9\xb1\x84\xb2\xb5\xaf\x78\xf2\x37\x44\x4b\x3d\x83\x45\xfd\x7e\x35\x85\x50\xc6\x96\x7c\x06\x8b\x4b\xa3\xb8\x58\xdb\x61\x56\x99\x8d\x54\xfc\x1f\x54\xfe\xc4\x04\xee\xad\x23\xf4\x50\x20\xaa\x08\x18\x21\x9c\x30\x87\xc5\xd5\x28\x98\x24\xaa\x6d\x00\xc4\x3c\xee\x6f\x5a\xa2\x58\x9b\x4d\x30\x95\xc3\x1c\x5e\x34\xbf\xdc\x6d\x78\x89\xc0\xe1\x6d\x4f\x65\xeb\x25\x3d\x54\x32\x5c\x5f\xd4\xc9\x06\xf3\x6e\x99\xa5\xbd\x3c\x5c\x44\x3d\x5a\xf0\xab\x2b\x78\xf7\x0e\x56\xac\xd4\x18\x58\xe0\x2b\xdf\x40\x68\xdd\x8e\xc3\x1c\x38\xfc\x0f\x5e\xf6\x46\x28\xbe\x5c\x54\xa1\xba\x87\x51\xcf\xff\xba\xe3\xcc\x07\xdb\x5e\xca\xf5\xa5\x95\x99\xb0\x63\x05\x0d\x2d\x62\x6a\xf7\x9b\xac\x9f\x02\x0b\x7e\x95\x74\xd7\xf5\xac\xb6\xdc\x5f\x54\x2c\xf8\x29\xdb\xd1\xc7\xa4\x45\xf8\x07\xdd\x49\x4e\x01\xd3\x87\xd5\x13\xe0\xab\xb8\x87\x2e\xad\xe0\x17\x78\xd1\x59\x13\x5f\xf5\x12\xa3\xd3\x68\x22\x20\xb8\x2d\xe6\xb1\x76\xef\x36\x17\x6f\x87\x74\xbd\xb6\xd9\x2e\xcc\x06\x15\xda\x0d\x89\x36\xab\xe8\xfe\x12\xb3\x4c\x4a\x9d\x8e\x2d\x6a\xcd\xd6\xe8\xd4\x72\xd1\xf4\xe4\x27\xea\x1a\xaa\x65\xd7\x10\x60\x0e\xe3\x71\x74\x8e\xa8\xb6\xb1\x7e\x08\xf3\x53\xd0\x47\x35\xdd\x04\x95\x7d\x7c\x5c\x85\xdf\xb8\x0a\x8f\x5a\xea\x47\xa4\x0e\xe5\x4d\x24\xc2\xfe\x73\x72\xb9\xc3\x83\x69\x2e\x45\xce\xcc\x64\x3c\x85\x71\x12\x55\xfe\x10\xfd\xf5\x07\xcd\xc5\x24\x16\x37\x57\xa9\x91\x4e\x6e\x92\x24\xa3\xa8\x5d\xc2\xf5\x26\xda\x79\x1e\xfa\x13\xea\x94\xf2\xf2\x54\xbb\x8c\x5a\x31\x5e\x3a\xfe\xc3\x9a\x54\xb3\x94\xa1\x94\xf2\x56\x43\xc9\x6f\xe9\x9b\xeb\x0c\x96\xa8\x94\x54\x99\x4b\xcb\x0c\x3e\xc8\x4a\x14\xf1\x24\xcc\xe0\x2c\x7d\x95\x23\xc3\x37\xff\x7f\x83\xc5\x4b\xf6\x1a\x5f\xb3\x74\xa8\xbb\x4d\x63\xc2\x9d\x6a\x5d\xf6\xd6\x63\x9d\x98\x8c\x2d\x8d\xf7\x8b\xcf\xd2\x78\x82\x3e\x24\xb5\x2d\xc5\x5c\x49\x05\xe7\x0a\x75\x8e\xa2\x90\x50\xed\xd6\x8a\x15\x44\x97\xb6\x34\x49\x4b\x29\x9e\xc1\x47\x64\x4a\xc0\x56\x2a\xcc\x60\x63\xcc\x4e\x67\xb3\xd9\x35\x37\x69\x79\x98\x7d\xf8\xf8\xe5\xaf\xf3\xdf\x2f\x2e\xcf\x2f\x3e\xbf\xff\x92\xc2\xfb\xb8\x91\x0c\xc6\xa7\xa2\xeb\xe2\xda\xed\x7f\x80\xa5\xc6\x48\x56\x5b\xa6\xfa\x04\xa6\x13\xb3\xd4\x6d\xb1\xe1\xdb\x43\xc0\x23\x03\xe6\x09\x0a\xb5\x54\x39\x42\xce\x04\x71\x46\x7b\x34\x32\x92\x58\x26\xd8\xd1\xad\xdc\xa3\xc7\x39\x1b\x9e\xd3\xdb\x6f\xa1\xe0\x36\x32\x4c\x1d\x6a\x6b\x3d\x12\x46\xb6\x2a\x32\x16\xba\xd0\x42\x41\x67\xa1\xa2\xb8\xe8\xa9\x26\x6f\xc8\x68\xeb\x07\x35\xe5\xa7\x78\xd1\x75\x81\xe8\x56\xcc\xc4\x84\x45\x38\x56\xd2\x89\x12\xa5\x54\x2d\x47\x27\x98\xd6\x9b\x7e\x30\x1f\xa7\x27\xf5\x6c\x62\x57\xb4\xbd\x0c\x06\xd0\x07\xc7\x85\xa3\x8f\x4f\x1d\xa6\x10\xa2\xa7\x87\x2a\x06\xd2\x80\xa9\x9f\x8e\x53\xea\x1c\x99\xdc\xe2\x21\x3b\x6a\x1a\xce\x76\x1f\x2c\x8d\xe6\x04\xdf\xa7\x61\xed\x4e\xfc\xbd\x8d\x7f\xcf\x14\x67\xd7\x25\x1e\xb3\x6c\xcf\xca\x0a\xe9\xfc\xb9\xf4\x4e\x07\xcb\x41\xe8\x4e\x1b\x8e\x9c\x30\x3a\xb8\x3c\xc6\x60\xe6\xe0\xa9\x08\x66\xda\x16\xf2\x5f\x0f\x39\xde\x47\x32\x00\xa5\x41\x6d\xce\x63\xa7\x1f\xdb\x2e\x28\xdc\x24\x41\x8d\x75\x57\xa9\x9d\xd4\x1e\x3d\x21\x72\x55\x1f\x4b\xf3\xe3\x3d\xc4\x23\xf7\x09\xf5\x11\x7d\xa7\xe4\x9e\x17\x43\xb4\x67\x36\x8b\xaa\xe1\x1a\x24\x31\xb1\x3b\xae\xdd\xcd\x00\x19\xb5\xb1\x6c\xca\x41\x56\x46\xf3\x02\x07\xc3\x17\x5d\xec\xcf\x3a\x91\xd1\xa3\xd0\x54\x4a\xf4\xd2\xa0\x7f\x4a\x8c\x7a\x34\xed\x3b\x31\xf5\x0d\x27\xf1\xcd\xc1\x47\x41\x1b\x55\x05\x37\x19\x9e\x83\xdd\x7b\x8c\xe6\x68\x50\x3b\x30\x28\xe8\x0e\x08\x0e\x0c\x8f\xe1\x0b\x6e\x26\x5d\x1d\xd3\x40\xb8\x0b\x8f\xc6\x72\x95\x1e\xdb\xcb\xfc\xe8\x40\x5f\xc4\x5e\xc8\xcd\xad\xaa\x58\x5a\xf7\xc2\xde\xd0\xb0\xa3\xe1\x8e\x5d\xa2\xb8\xb5\xb1\x86\xf5\xf9\xbe\x78\x44\x2e\x98\xd7\xf4\x6d\x78\xf1\x1d\x76\x0a\x57\xfc\x7b\x30\xde\xd5\x19\x7c\xa7\xba\xe4\x39\x4e\x28\x79\x33\x78\x35\x85\x6a\xf7\x4d\x66\x1d\x11\x47\xc9\x93\x58\x0e\x8d\xcf\xd2\x86\xa1\x04\x93\x92\x86\x04\xa7\xe3\xe6\xbd\x81\x6d\x20\x47\x6a\x02\xc1\x68\xf7\x6e\x37\x73\x3a\x26\xb1\xbd\xa3\x0d\xf6\x36\xd4\xdd\x5f\x81\x96\xf5\xa5\x62\x33\xa5\xe6\x18\x0e\xf9\xf6\x0a\x56\xbb\xeb\x12\xa8\xef\x44\x7c\x53\xcb\xde\x7e\xd0\xde\x6a\x86\xbb\x5d\xd3\x36\xea\x6b\xb2\xe6\x5e\x2c\x1d\x35\x79\x16\xb9\xab\x8a\x16\xa1\xc5\xa1\xbf\x6b\xce\xe1\xfe\x21\x94\xe9\x77\x66\x77\xaf\x10\x4a\x0d\x5d\xf5\xc1\x1c\x66\x35\x58\xb3\x55\x29\xef\x3a\x05\x6f\xa7\xb5\xaa\x3a\x9b\x6a\xdf\xbd\x48\x95\x3c\x9d\x75\x78\x85\xe1\xaa\x9a\xe2\xf5\xf6\x39\xe4\x0a\x99\xe9\x10\x36\x2f\xbf\x5d\xfe\xbb\xb8\xa5\x94\x05\x93\xb7\xcf\xed\xdc\x29\x18\x99\x9d\x5e\x7e\x52\xa7\xd6\xc3\xe8\xdf\x00\x00\x00\xff\xff\xd9\xff\x40\x24\xca\x17\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc5, 0xe8, 0xd8, 0x74, 0x31, 0x6b, 0x70, 0x66, 0xa8, 0x2d, 0x1d, 0x3d, 0x59, 0x5c, 0xb1, 0xa7, 0xe4, 0xd2, 0x47, 0x33, 0xd3, 0xf1, 0xc5, 0x83, 0xc3, 0x1a, 0xa, 0xc8, 0x2b, 0x5, 0xa7, 0xb0}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9e, 0xcf, 0xd7, 0x43, 0x2a, 0xa5, 0x5d, 0x83, 0x82, 0x97, 0xa4, 0xbe, 0x2e, 0x25, 0xfc, 0x48, 0x92, 0x88, 0xc0, 0x47, 0x21, 0x52, 0x14, 0xc1, 0x62, 0xc4, 0xb7, 0x26, 0xb7, 0x8c, 0xa9, 0x6c}} return a, nil } diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index b34e5e9..fec67a6 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -213,5 +213,5 @@ access(all) fun testChekDependenciesWithUnstagedEntriesPanics() { ) Test.expect(commitResult, Test.beFailed()) // not sure how to test this: - // Test.expect(commitResult.error!.message, Test.contain("panic: Found unstaged dependencies: A.0000000000000008.Foo") ) + // Test.expect(commitResult.error!.message, Test.contain("panic: This transaction is using dependencies not staged for Crescendo upgrade coming soon! Learn more: https://bit.ly/FLOWCRESCENDO. Dependencies not staged: A.0000000000000008.Foo") ) } From db30f013146c535d0799c4a80ad071abedda03be Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Tue, 28 May 2024 14:48:36 +0200 Subject: [PATCH 07/16] add excluded addresses --- lib/go/templates/internal/assets/assets.go | 23 ++++++++++++++ tests/dependency_audit_tests.cdc | 31 +++++++++++++++++++ .../admin/add_excluded_addresses.cdc | 8 +++++ 3 files changed, 62 insertions(+) create mode 100644 transactions/dependency-audit/admin/add_excluded_addresses.cdc diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index cf3ebd6..43c9034 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -24,6 +24,7 @@ // transactions/coordinator/set_block_update_boundary.cdc (415B) // transactions/delegatee/execute_all_delegated_updates.cdc (687B) // transactions/delegatee/remove_delegated_updaters.cdc (567B) +// transactions/dependency-audit/admin/add_excluded_addresses.cdc (341B) // transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (352B) // transactions/dependency-audit/admin/test_check_dependencies.cdc (440B) // transactions/host/publish_host_capability.cdc (2.303kB) @@ -590,6 +591,26 @@ func transactionsDelegateeRemove_delegated_updatersCdc() (*asset, error) { return a, nil } +var _transactionsDependencyAuditAdminAdd_excluded_addressesCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcf\xc1\x4a\x03\x31\x10\x06\xe0\x7b\x9e\x62\xdc\x83\x6e\x2f\xfb\x00\x8b\xb8\x04\xf5\x2e\x78\x14\x0f\x63\x66\x6c\x03\xdd\x99\x30\x99\xa0\x22\x7d\x77\x29\xb1\x45\x3c\x34\xa7\x1f\xf2\x93\xff\x4b\x5e\x8b\x9a\xc3\xf0\xc0\x85\x85\x58\xd2\x57\x6c\x94\x7d\x08\xc1\x0d\xa5\x62\xf2\xac\x32\x22\x91\x71\xad\x5c\x67\x78\x89\x3d\xbf\x6e\xe0\x3b\x00\x00\x14\xe3\x82\xc6\x63\xcd\x5b\x61\x9b\x21\x36\xdf\xc5\x94\xb4\x89\x9f\x2a\xc7\xd3\xaf\xa7\x37\x35\xd3\x8f\xdb\xeb\x7f\x7b\x53\xa4\x35\x4b\xae\x6e\xe8\x6a\x77\xe3\xbb\xe9\x3a\xc3\xc5\xd2\xb3\xab\xe1\x96\x9f\xd0\x77\x9b\x65\x42\xa2\xc7\xcf\xb4\x6f\xc4\x14\x4f\xd8\xbf\xec\x73\xdc\x9c\x45\xcb\x02\x05\x25\xa7\x71\xb8\xd7\xb6\x27\x10\x75\xe8\xbc\xcb\xc3\x70\xc4\xfd\xfe\xe7\xa6\x42\xed\x8e\xab\xa1\xbf\x7c\x08\x87\xf0\x13\x00\x00\xff\xff\xc2\xb5\x55\x59\x55\x01\x00\x00" + +func transactionsDependencyAuditAdminAdd_excluded_addressesCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsDependencyAuditAdminAdd_excluded_addressesCdc, + "transactions/dependency-audit/admin/add_excluded_addresses.cdc", + ) +} + +func transactionsDependencyAuditAdminAdd_excluded_addressesCdc() (*asset, error) { + bytes, err := transactionsDependencyAuditAdminAdd_excluded_addressesCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/dependency-audit/admin/add_excluded_addresses.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8e, 0x12, 0xbe, 0xf6, 0x7, 0x8e, 0xe6, 0x8e, 0x7a, 0xe2, 0xbf, 0x4e, 0x3, 0x50, 0x19, 0xbc, 0x3f, 0x48, 0x8, 0x4e, 0xb0, 0xdb, 0x7b, 0xcf, 0x73, 0xc0, 0xcb, 0x7c, 0x87, 0x7b, 0xe4, 0x79}} + return a, nil +} + var _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcf\x41\x4e\xc4\x30\x0c\x05\xd0\x7d\x4e\x61\xba\x80\x76\xd3\x03\x54\x88\xaa\xc0\x9e\x91\x10\x07\x08\x89\x69\x2d\x4d\xed\xc8\x76\x85\x10\x9a\xbb\xa3\x52\x18\xc1\x2c\x9a\x5d\xf2\x7f\x92\x67\x9a\x8b\xa8\x43\xf5\x88\x05\x39\x23\xa7\x8f\x61\xc9\xe4\x55\x08\xae\x91\x2d\x26\x27\xe1\xda\x26\x59\x8e\xf9\x10\x99\x52\x07\xf7\x22\xc7\x06\x3e\x03\x00\x40\x51\x2c\x51\xb1\x36\x1a\x19\xb5\x83\x61\xf1\x69\x48\x49\x16\xf6\xdf\xca\xba\xb6\xb8\x7d\x15\x55\x79\xbf\xbd\xbe\xf8\xac\x1d\xf2\x4c\x4c\xe6\x1a\x5d\xf4\xae\x7e\x53\x99\x3b\xd8\x2d\x3d\xbb\x68\x1c\xf1\x10\x7d\x6a\xfa\xd6\xd0\xbf\x6d\x4f\xfc\xc2\xe6\x71\xc4\x7c\xbe\x4c\x68\xff\xf5\x7f\x36\xcd\xd9\xd7\xf7\x50\xd6\x93\xba\x7a\x58\x53\x60\x71\xd8\xb0\xfb\x0c\x58\xa9\x3f\xd3\xdd\x18\xd8\xa6\xba\xaa\xb6\x97\x4f\xe1\x14\xbe\x02\x00\x00\xff\xff\x63\x20\x68\x33\x60\x01\x00\x00" func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdcBytes() ([]byte, error) { @@ -1045,6 +1066,7 @@ var _bindata = map[string]func() (*asset, error){ "transactions/coordinator/set_block_update_boundary.cdc": transactionsCoordinatorSet_block_update_boundaryCdc, "transactions/delegatee/execute_all_delegated_updates.cdc": transactionsDelegateeExecute_all_delegated_updatesCdc, "transactions/delegatee/remove_delegated_updaters.cdc": transactionsDelegateeRemove_delegated_updatersCdc, + "transactions/dependency-audit/admin/add_excluded_addresses.cdc": transactionsDependencyAuditAdminAdd_excluded_addressesCdc, "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc": transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, "transactions/dependency-audit/admin/test_check_dependencies.cdc": transactionsDependencyAuditAdminTest_check_dependenciesCdc, "transactions/host/publish_host_capability.cdc": transactionsHostPublish_host_capabilityCdc, @@ -1151,6 +1173,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ }}, "dependency-audit": {nil, map[string]*bintree{ "admin": {nil, map[string]*bintree{ + "add_excluded_addresses.cdc": {transactionsDependencyAuditAdminAdd_excluded_addressesCdc, map[string]*bintree{}}, "set_unstaged_cause_panic.cdc": {transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, map[string]*bintree{}}, "test_check_dependencies.cdc": {transactionsDependencyAuditAdminTest_check_dependenciesCdc, map[string]*bintree{}}, }}, diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index fec67a6..43c3555 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -185,6 +185,37 @@ access(all) fun testChekDependenciesWithMixedEntries() { Test.assertEqual("B", evt.dependencies[1].name) } +access(all) fun testSetExcludedAddresses() { + var addresses: [Address] = [bcAccount.address] + var commitResult = executeTransaction( + "../transactions/dependency-audit/admin/add_excluded_addresses.cdc", + [addresses], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + var events = Test.eventsOfType(Type()) + Test.assertEqual(3, events.length) + + addresses = [adminAccount.address, fooAccount.address, aAccount.address, bcAccount.address] + let names: [String] = ["DependencyAudit", "Foo", "A", "B"] + let authorizers: [Address] = [] + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(4, events.length) + + let evt = events[3] as! DependencyAudit.UnstagedDependencies + Test.assertEqual(1, evt.dependencies.length) + Test.assertEqual(fooAccount.address, evt.dependencies[0].address) + Test.assertEqual("Foo", evt.dependencies[0].name) +} + access(all) fun testSetPanic() { let shouldPanic: Bool = true var commitResult = executeTransaction( diff --git a/transactions/dependency-audit/admin/add_excluded_addresses.cdc b/transactions/dependency-audit/admin/add_excluded_addresses.cdc new file mode 100644 index 0000000..a5ce411 --- /dev/null +++ b/transactions/dependency-audit/admin/add_excluded_addresses.cdc @@ -0,0 +1,8 @@ +import "DependencyAudit" + +transaction(addresses: [Address]) { + prepare(signer: AuthAccount) { + signer.borrow<&DependencyAudit.Administrator>(from: DependencyAudit.AdministratorStoragePath)?.addExcludedAddresses(addresses: addresses) + ?? panic("Could not borrow DependencyAudit.Administrator from signer's storage!") + } +} From e203a59caffb310ba94910a80123da3475d7202c Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Mon, 10 Jun 2024 20:03:52 +0200 Subject: [PATCH 08/16] Add random chance to panic mode --- contracts/DependencyAudit.cdc | 121 +++++++++++++++--- lib/go/contracts/internal/assets/assets.go | 6 +- lib/go/templates/internal/assets/assets.go | 23 ++++ tests/dependency_audit_tests.cdc | 63 +++++++++ .../admin/set_start_end_block.cdc | 8 ++ 5 files changed, 199 insertions(+), 22 deletions(-) create mode 100644 transactions/dependency-audit/admin/set_start_end_block.cdc diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index ed5132b..367a4f9 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -41,27 +41,99 @@ access(all) contract DependencyAudit { } if unstagedDependencies.length > 0 { - if DependencyAudit.panicOnUnstaged { - // If `panicOnUnstaged` is set to true, the transaction will panic if there are any unstaged dependencies - // the panic message will include the unstaged dependencies - var unstagedDependenciesString = "" - var numUnstagedDependencies = unstagedDependencies.length - var j = 0 - while j < numUnstagedDependencies { - if j > 0 { - unstagedDependenciesString = unstagedDependenciesString.concat(", ") - } - unstagedDependenciesString = unstagedDependenciesString.concat(unstagedDependencies[j].toString()) - - j = j + 1 - } - - // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.2ceae959ed1a7e7a.MigrationContractStaging, A.2ceae959ed1a7e7a.DependencyAudit` - panic("This transaction is using dependencies not staged for Crescendo upgrade coming soon! Learn more: https://bit.ly/FLOWCRESCENDO. Dependencies not staged: ".concat(unstagedDependenciesString)) - } else { - emit UnstagedDependencies(dependencies: unstagedDependencies) + self.maybePanicOnUnstagedDependencies(unstagedDependencies) + + emit UnstagedDependencies(dependencies: unstagedDependencies) + } + } + + access(self) fun maybePanicOnUnstagedDependencies(_ unstagedDependencies: [Dependency]) { + // If `panicOnUnstaged` is set to false, the function will return without panicking + if !DependencyAudit.panicOnUnstaged { + return + } + + // check if we should panic randomly + if !self.shouldPanicRandomly() { + return + } + + var unstagedDependenciesString = "" + var numUnstagedDependencies = unstagedDependencies.length + var j = 0 + while j < numUnstagedDependencies { + if j > 0 { + unstagedDependenciesString = unstagedDependenciesString.concat(", ") } + unstagedDependenciesString = unstagedDependenciesString.concat(unstagedDependencies[j].toString()) + + j = j + 1 + } + + // the transactions will fail with a message that looks like this: `error: panic: Found unstaged dependencies: A.2ceae959ed1a7e7a.MigrationContractStaging, A.2ceae959ed1a7e7a.DependencyAudit` + panic("This transaction is using dependencies not staged for Crescendo upgrade coming soon! Learn more: https://bit.ly/FLOWCRESCENDO. Dependencies not staged: ".concat(unstagedDependenciesString)) + } + + // shouldPanicRandomly is used to randomly panic on unstaged dependencies + // The probability of panicking is based on the current block height and the start and end block heights + // If the start block height is greater than or equal to the end block height, the function will return true + // The function will always return true if the current block is more than the end block height + // The function will always return false if the current block is less than the start block height + // The function will return true if a random number between the start and end block heights is less than the current block height + // This means the probability of panicking increases linearly as the current block height approaches the end block height + access(self) fun shouldPanicRandomly(): Bool { + // get start block height or true + // get end block height or true + // get current block height + // get random number between start and end + // if random number is less than current block return true + // else return false + + let maybeBoundaries = self.getBoundaries() + if maybeBoundaries == nil { + // if settings are invalid use default behaviour: panic true + return true + } + let boundaries = maybeBoundaries! + + let startBlock: UInt64 = boundaries.start + let endBlock: UInt64 = boundaries.end + let currentBlock: UInt64 = getCurrentBlock().height + + if startBlock >= endBlock { + // if settings are invalid use default behaviour: panic true + return true } + + let dif = endBlock - startBlock + var rnd = revertibleRandom() % dif + rnd = rnd + startBlock + + // fail if the random number is less than the current block + return rnd < currentBlock + } + + access(all) struct Boundaries { + access(all) let start: UInt64 + access(all) let end: UInt64 + + init(start: UInt64, end: UInt64) { + self.start = start + self.end = end + } + } + + access(self) fun getBoundaries(): Boundaries? { + return self.account.copy(from: /storage/flowDependencyAuditBoundaries) + } + + access(self) fun setBoundaries(boundaries: Boundaries) { + self.account.load(from: /storage/flowDependencyAuditBoundaries) + self.account.save(boundaries, to: /storage/flowDependencyAuditBoundaries) + } + + access(self) fun unsetBoundaries() { + self.account.load(from: /storage/flowDependencyAuditBoundaries) } // The Administrator resorce can be used to add or remove addresses from the excludedAddresses dictionary @@ -87,6 +159,17 @@ access(all) contract DependencyAudit { emit PanicOnUnstagedDependenciesChanged(shouldPanic: shouldPanic) } + // setStartEndBlock sets the start and end block heights for the `shouldPanicRandomly` function + access(all) fun setStartEndBlock(start: UInt64, end: UInt64) { + let boundaries = Boundaries(start: start, end: end) + DependencyAudit.setBoundaries(boundaries: boundaries) + } + + // unsetStartEndBlock unsets the start and end block heights for the `shouldPanicRandomly` function + access(all) fun unsetStartEndBlock() { + DependencyAudit.unsetBoundaries() + } + // testCheckDependencies is used for testing purposes // It will call the `checkDependencies` function with the provided dependencies // `checkDependencies` is otherwise not callable from the outside diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 2f2abc0..4e8db2b 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (6.09kB) +// DependencyAudit.cdc (8.469kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x6d\x6f\xdb\xb6\x13\x7f\xef\x4f\x71\xf5\x2b\x0b\x7f\x57\x6e\x0b\xfc\x51\x54\xa8\x57\x64\x69\x0a\x0c\xe8\x13\x96\x6e\x7b\x61\x04\x33\x23\x9d\x6d\x26\x32\x69\x90\x94\x53\x2f\xc8\x77\x1f\x8e\x94\x25\x52\xa2\x9c\x0c\x05\x2a\x04\x81\x64\x1e\xef\x8e\xbf\x7b\xe0\x8f\xe4\xdb\x9d\x54\x06\xc6\x9f\xf8\x5a\x31\xc3\xa5\x38\x97\xc2\x28\x96\x9b\x4b\xc3\xd6\x5c\xac\xc7\xa3\xd1\x6c\x06\xdf\x36\x5c\x43\x5e\x8f\x00\xd7\xf4\x57\x69\x2c\xe0\xfa\x00\x66\x83\xf0\xe1\xcf\x4f\x90\xb3\xb2\xe4\x62\x6d\xbf\x97\xf9\x06\xf3\xdb\xf7\xb8\x43\x51\xa0\xc8\x39\xea\x25\xac\x2a\x91\x93\x01\x58\x29\xb9\x05\xd6\x7e\xcb\x95\x9d\xa3\xd9\x16\x41\xd0\x3f\x26\x0a\xd0\x5c\xac\x05\x33\x95\x42\xe0\xc2\xd9\x28\xe5\xdd\x25\xaa\x3d\xcf\xf1\x2c\xcf\x65\x25\x4c\xe3\xd1\x94\x7c\x64\xc6\x8a\xa1\x28\x48\x23\xee\x51\x1d\xc0\x28\x26\x34\xb3\x66\x52\xb7\x0e\x84\x65\xe1\xb9\x75\x56\x14\x0a\xb5\x26\xff\xc8\x6a\x30\xf6\x99\x6d\xe9\xf7\x3b\x5e\x96\x70\x8d\xc0\xca\xd2\x1a\xf0\x45\x40\x20\x16\x05\x16\x60\x24\xa8\x8a\xfc\x24\x2f\x42\xa3\x8d\xdd\x53\x98\x58\x23\x56\x00\xf8\x0a\x98\x38\x1c\x51\x09\xac\x31\x85\x20\xa4\x01\x6d\xd8\x1a\x8b\x23\x30\x43\xa1\x6b\xe0\xb1\x4b\xff\xed\xa9\x6a\xa7\x56\x20\xf4\x0c\xb7\xdc\x00\x13\x84\xaa\x30\x70\xc7\xcd\xc6\x0a\x55\xa2\xf6\xc4\x57\x37\x05\xa9\x60\xc7\x04\xcf\x69\x29\x4b\xfb\xf6\x45\xfc\x51\x8b\x2e\x29\x75\x34\x1a\x42\xcc\xa8\x0a\xd3\x11\xcb\x73\xd4\x7a\xc2\xca\x32\x69\x53\xac\x81\xe9\x70\x56\x15\xdc\xc0\xfd\x68\x04\x00\xe0\xcb\x96\x68\xe0\xac\xd8\x72\xc1\xb5\x51\xcc\x48\x75\x69\xa4\x62\x6b\xfc\xca\xcc\x26\x03\xef\xc3\x4d\xad\xa3\xa0\x0f\xda\xe0\x16\xd8\x31\xee\xb0\x61\x7b\x6c\xec\x6a\x17\x41\xbb\x66\x42\xe4\x1a\x1d\x28\x1a\xf6\x9c\xd9\x25\x6f\x8f\x60\xb7\xbe\x6a\x09\x77\x08\xf8\x3d\x2f\xab\x02\x49\x68\xeb\x52\x3c\xc0\xf9\x40\xd1\xbd\xcd\xb5\xbf\x0c\x8d\xe5\x2a\x81\x3d\x53\xc7\xc9\x45\x93\x8e\x19\xdc\xd7\xef\x19\xfc\x2a\x65\xf9\xd0\x5f\x3f\xcd\xeb\x80\xeb\x64\xfb\xa2\x2e\x6c\x47\x29\x3f\x05\x27\x7e\xe4\x32\x58\xb4\xb8\x5f\x25\x43\x7a\xbe\x86\x46\x7d\x75\xe7\x1b\x26\xd6\x58\x4c\xf4\x46\x56\x65\x61\x05\x9d\x4f\x49\x13\x84\x5e\x15\x50\x42\x50\xef\xc0\xa2\x85\xed\x44\xad\x07\x4e\xb9\xb1\x84\xb2\xb5\xaf\x78\xf2\x37\x44\x4b\x3d\x83\x45\xfd\x7e\x35\x85\x50\xc6\x96\x7c\x06\x8b\x4b\xa3\xb8\x58\xdb\x61\x56\x99\x8d\x54\xfc\x1f\x54\xfe\xc4\x04\xee\xad\x23\xf4\x50\x20\xaa\x08\x18\x21\x9c\x30\x87\xc5\xd5\x28\x98\x24\xaa\x6d\x00\xc4\x3c\xee\x6f\x5a\xa2\x58\x9b\x4d\x30\x95\xc3\x1c\x5e\x34\xbf\xdc\x6d\x78\x89\xc0\xe1\x6d\x4f\x65\xeb\x25\x3d\x54\x32\x5c\x5f\xd4\xc9\x06\xf3\x6e\x99\xa5\xbd\x3c\x5c\x44\x3d\x5a\xf0\xab\x2b\x78\xf7\x0e\x56\xac\xd4\x18\x58\xe0\x2b\xdf\x40\x68\xdd\x8e\xc3\x1c\x38\xfc\x0f\x5e\xf6\x46\x28\xbe\x5c\x54\xa1\xba\x87\x51\xcf\xff\xba\xe3\xcc\x07\xdb\x5e\xca\xf5\xa5\x95\x99\xb0\x63\x05\x0d\x2d\x62\x6a\xf7\x9b\xac\x9f\x02\x0b\x7e\x95\x74\xd7\xf5\xac\xb6\xdc\x5f\x54\x2c\xf8\x29\xdb\xd1\xc7\xa4\x45\xf8\x07\xdd\x49\x4e\x01\xd3\x87\xd5\x13\xe0\xab\xb8\x87\x2e\xad\xe0\x17\x78\xd1\x59\x13\x5f\xf5\x12\xa3\xd3\x68\x22\x20\xb8\x2d\xe6\xb1\x76\xef\x36\x17\x6f\x87\x74\xbd\xb6\xd9\x2e\xcc\x06\x15\xda\x0d\x89\x36\xab\xe8\xfe\x12\xb3\x4c\x4a\x9d\x8e\x2d\x6a\xcd\xd6\xe8\xd4\x72\xd1\xf4\xe4\x27\xea\x1a\xaa\x65\xd7\x10\x60\x0e\xe3\x71\x74\x8e\xa8\xb6\xb1\x7e\x08\xf3\x53\xd0\x47\x35\xdd\x04\x95\x7d\x7c\x5c\x85\xdf\xb8\x0a\x8f\x5a\xea\x47\xa4\x0e\xe5\x4d\x24\xc2\xfe\x73\x72\xb9\xc3\x83\x69\x2e\x45\xce\xcc\x64\x3c\x85\x71\x12\x55\xfe\x10\xfd\xf5\x07\xcd\xc5\x24\x16\x37\x57\xa9\x91\x4e\x6e\x92\x24\xa3\xa8\x5d\xc2\xf5\x26\xda\x79\x1e\xfa\x13\xea\x94\xf2\xf2\x54\xbb\x8c\x5a\x31\x5e\x3a\xfe\xc3\x9a\x54\xb3\x94\xa1\x94\xf2\x56\x43\xc9\x6f\xe9\x9b\xeb\x0c\x96\xa8\x94\x54\x99\x4b\xcb\x0c\x3e\xc8\x4a\x14\xf1\x24\xcc\xe0\x2c\x7d\x95\x23\xc3\x37\xff\x7f\x83\xc5\x4b\xf6\x1a\x5f\xb3\x74\xa8\xbb\x4d\x63\xc2\x9d\x6a\x5d\xf6\xd6\x63\x9d\x98\x8c\x2d\x8d\xf7\x8b\xcf\xd2\x78\x82\x3e\x24\xb5\x2d\xc5\x5c\x49\x05\xe7\x0a\x75\x8e\xa2\x90\x50\xed\xd6\x8a\x15\x44\x97\xb6\x34\x49\x4b\x29\x9e\xc1\x47\x64\x4a\xc0\x56\x2a\xcc\x60\x63\xcc\x4e\x67\xb3\xd9\x35\x37\x69\x79\x98\x7d\xf8\xf8\xe5\xaf\xf3\xdf\x2f\x2e\xcf\x2f\x3e\xbf\xff\x92\xc2\xfb\xb8\x91\x0c\xc6\xa7\xa2\xeb\xe2\xda\xed\x7f\x80\xa5\xc6\x48\x56\x5b\xa6\xfa\x04\xa6\x13\xb3\xd4\x6d\xb1\xe1\xdb\x43\xc0\x23\x03\xe6\x09\x0a\xb5\x54\x39\x42\xce\x04\x71\x46\x7b\x34\x32\x92\x58\x26\xd8\xd1\xad\xdc\xa3\xc7\x39\x1b\x9e\xd3\xdb\x6f\xa1\xe0\x36\x32\x4c\x1d\x6a\x6b\x3d\x12\x46\xb6\x2a\x32\x16\xba\xd0\x42\x41\x67\xa1\xa2\xb8\xe8\xa9\x26\x6f\xc8\x68\xeb\x07\x35\xe5\xa7\x78\xd1\x75\x81\xe8\x56\xcc\xc4\x84\x45\x38\x56\xd2\x89\x12\xa5\x54\x2d\x47\x27\x98\xd6\x9b\x7e\x30\x1f\xa7\x27\xf5\x6c\x62\x57\xb4\xbd\x0c\x06\xd0\x07\xc7\x85\xa3\x8f\x4f\x1d\xa6\x10\xa2\xa7\x87\x2a\x06\xd2\x80\xa9\x9f\x8e\x53\xea\x1c\x99\xdc\xe2\x21\x3b\x6a\x1a\xce\x76\x1f\x2c\x8d\xe6\x04\xdf\xa7\x61\xed\x4e\xfc\xbd\x8d\x7f\xcf\x14\x67\xd7\x25\x1e\xb3\x6c\xcf\xca\x0a\xe9\xfc\xb9\xf4\x4e\x07\xcb\x41\xe8\x4e\x1b\x8e\x9c\x30\x3a\xb8\x3c\xc6\x60\xe6\xe0\xa9\x08\x66\xda\x16\xf2\x5f\x0f\x39\xde\x47\x32\x00\xa5\x41\x6d\xce\x63\xa7\x1f\xdb\x2e\x28\xdc\x24\x41\x8d\x75\x57\xa9\x9d\xd4\x1e\x3d\x21\x72\x55\x1f\x4b\xf3\xe3\x3d\xc4\x23\xf7\x09\xf5\x11\x7d\xa7\xe4\x9e\x17\x43\xb4\x67\x36\x8b\xaa\xe1\x1a\x24\x31\xb1\x3b\xae\xdd\xcd\x00\x19\xb5\xb1\x6c\xca\x41\x56\x46\xf3\x02\x07\xc3\x17\x5d\xec\xcf\x3a\x91\xd1\xa3\xd0\x54\x4a\xf4\xd2\xa0\x7f\x4a\x8c\x7a\x34\xed\x3b\x31\xf5\x0d\x27\xf1\xcd\xc1\x47\x41\x1b\x55\x05\x37\x19\x9e\x83\xdd\x7b\x8c\xe6\x68\x50\x3b\x30\x28\xe8\x0e\x08\x0e\x0c\x8f\xe1\x0b\x6e\x26\x5d\x1d\xd3\x40\xb8\x0b\x8f\xc6\x72\x95\x1e\xdb\xcb\xfc\xe8\x40\x5f\xc4\x5e\xc8\xcd\xad\xaa\x58\x5a\xf7\xc2\xde\xd0\xb0\xa3\xe1\x8e\x5d\xa2\xb8\xb5\xb1\x86\xf5\xf9\xbe\x78\x44\x2e\x98\xd7\xf4\x6d\x78\xf1\x1d\x76\x0a\x57\xfc\x7b\x30\xde\xd5\x19\x7c\xa7\xba\xe4\x39\x4e\x28\x79\x33\x78\x35\x85\x6a\xf7\x4d\x66\x1d\x11\x47\xc9\x93\x58\x0e\x8d\xcf\xd2\x86\xa1\x04\x93\x92\x86\x04\xa7\xe3\xe6\xbd\x81\x6d\x20\x47\x6a\x02\xc1\x68\xf7\x6e\x37\x73\x3a\x26\xb1\xbd\xa3\x0d\xf6\x36\xd4\xdd\x5f\x81\x96\xf5\xa5\x62\x33\xa5\xe6\x18\x0e\xf9\xf6\x0a\x56\xbb\xeb\x12\xa8\xef\x44\x7c\x53\xcb\xde\x7e\xd0\xde\x6a\x86\xbb\x5d\xd3\x36\xea\x6b\xb2\xe6\x5e\x2c\x1d\x35\x79\x16\xb9\xab\x8a\x16\xa1\xc5\xa1\xbf\x6b\xce\xe1\xfe\x21\x94\xe9\x77\x66\x77\xaf\x10\x4a\x0d\x5d\xf5\xc1\x1c\x66\x35\x58\xb3\x55\x29\xef\x3a\x05\x6f\xa7\xb5\xaa\x3a\x9b\x6a\xdf\xbd\x48\x95\x3c\x9d\x75\x78\x85\xe1\xaa\x9a\xe2\xf5\xf6\x39\xe4\x0a\x99\xe9\x10\x36\x2f\xbf\x5d\xfe\xbb\xb8\xa5\x94\x05\x93\xb7\xcf\xed\xdc\x29\x18\x99\x9d\x5e\x7e\x52\xa7\xd6\xc3\xe8\xdf\x00\x00\x00\xff\xff\xd9\xff\x40\x24\xca\x17\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x59\x6d\x6f\x1b\x37\x12\xfe\xae\x5f\x31\x11\x70\x80\x84\xaa\xab\xb4\xb8\xbb\xa2\x42\x94\xc0\x71\x12\x20\x40\xdb\x14\x75\x7b\xf7\xc1\x30\x2a\x6a\x39\x92\x68\xaf\x48\x1d\xc9\x95\xa3\x33\xfc\xdf\x0f\x7c\xd9\x5d\x92\xcb\x95\x5d\xb4\x17\xa3\x68\x24\x71\x38\x6f\x9c\x19\x3e\x33\x64\xfb\x83\x90\x1a\xc6\x3f\xb2\xad\x24\x9a\x09\x7e\x29\xb8\x96\xa4\xd4\x57\x9a\x6c\x19\xdf\x8e\x47\xa3\xf9\x1c\x7e\xdd\x31\x05\xa5\x5f\x01\xa6\xcc\x7f\xb5\x42\x0a\xeb\x13\xe8\x1d\xc2\x87\x7f\xfd\x08\x25\xa9\x2a\xc6\xb7\xf6\xfb\xaa\xdc\x61\x79\xf7\x0e\x0f\xc8\x29\xf2\x92\xa1\x5a\xc1\xa6\xe6\xa5\x11\x00\x1b\x29\xf6\x40\xba\xef\x62\x63\xf7\x28\xb2\x47\xe0\xe6\x7f\x84\x53\x50\x8c\x6f\x39\xd1\xb5\x44\x60\xdc\xc9\xa8\xc4\xfd\x15\xca\x23\x2b\xf1\xa2\x2c\x45\xcd\x75\xab\xd1\xcc\xe8\x48\xb4\x25\x43\x4e\x0d\x47\x3c\xa2\x3c\x81\x96\x84\x2b\x62\xc5\x14\xce\x0e\x84\x15\x0d\xd4\xba\xa0\x54\xa2\x52\x46\x3f\x23\x35\x5a\xfb\x89\xec\xcd\xef\xf7\xac\xaa\x60\x8d\x40\xaa\xca\x0a\x08\x49\x80\x23\x52\x8a\x14\xb4\x00\x59\x1b\x3d\x8d\x16\xb1\xd0\x56\xee\x39\x9f\x58\x21\x96\x00\xd8\x06\x08\x3f\x35\x5e\x89\xa4\x11\x89\xc0\x85\x06\xa5\xc9\x16\x69\xe3\x98\xa1\xa3\x6b\xdd\x63\x4d\xff\xf8\x5c\xb6\x33\x4b\x10\x6b\x86\x7b\xa6\x81\x70\xe3\x55\xae\xe1\x9e\xe9\x9d\x25\xaa\xb9\xd7\x24\x64\x37\x03\x21\xe1\x40\x38\x2b\x8d\x29\x2b\xfb\xe9\x13\xff\xcd\x93\xae\x4c\xe8\x28\xd4\xc6\x63\x5a\xd6\x58\x8c\x48\x59\xa2\x52\x13\x52\x55\xd3\x2e\xc4\x5a\x37\x9d\x2e\x6a\xca\x34\x3c\x8c\x46\x00\x00\x21\x6d\x85\x1a\x2e\xe8\x9e\x71\xa6\xb4\x24\x5a\xc8\x2b\x2d\x24\xd9\xe2\xcf\x44\xef\x16\x10\x7c\x71\x5b\xfd\x29\xa8\x93\xd2\xb8\x07\xd2\x9c\x3b\xec\xc8\x11\x5b\xb9\xca\x9d\xa0\xb5\xd9\x78\x64\x8d\xce\x29\x0a\x8e\x8c\x58\x93\xf7\x8d\xb3\x3b\x5d\x95\x80\x7b\x04\xfc\x5c\x56\x35\x45\x43\xb4\x77\x21\x1e\xf9\xf9\x64\x4e\xf7\xae\x54\xa1\x19\x0a\xab\xcd\x14\x8e\x44\x36\x9b\x69\x1b\x8e\x0b\x78\xf0\x9f\x17\xf0\x56\x88\xea\xb1\x6f\xbf\xd9\x97\x38\xd7\xd1\xf6\x49\xdd\xb1\x35\x54\x61\x08\x4e\xc2\x93\x5b\xc0\x75\xe7\xf7\x9b\xe9\x10\x9f\x9f\x63\xa1\x21\xbb\xcb\x1d\xe1\x5b\xa4\x13\xb5\x13\x75\x45\x2d\xa1\xd3\x69\xda\x1e\x42\x2f\x0b\x4c\x40\x98\xda\x81\xb4\x73\xdb\x99\x5c\x8f\x94\x72\x6b\x53\x13\xad\x7d\xc6\x93\xdf\x21\x9b\xea\x0b\xb8\xf6\x9f\x6f\x66\x10\xd3\xd8\x94\x5f\xc0\xf5\x95\x96\x8c\x6f\xed\x32\xa9\xf5\x4e\x48\xf6\x5f\x94\xe1\xc6\x29\x3c\x58\x45\xcc\x9f\x39\x88\x3a\xe3\x8c\xd8\x9d\xb0\x84\xeb\x9b\x51\xb4\x89\xd7\xfb\xc8\x11\xcb\xbc\xbe\x45\x85\x7c\xab\x77\xd1\x56\x06\x4b\x78\xd9\xfe\x72\xbf\x63\x15\x02\x83\x57\x3d\x96\x9d\x96\xe6\xcf\xa4\x0c\x53\xef\x7d\xb0\xc1\x32\x4d\xb3\xa2\x17\x87\xd7\x59\x8d\xae\xd9\xcd\x0d\xbc\x79\x03\x1b\x52\x29\x8c\x24\xb0\x4d\x28\x20\x96\x6e\xd7\x61\x09\x0c\xbe\x82\x6f\x7a\x2b\xe6\x7c\x19\xaf\x63\x76\x8f\xa3\x9e\xfe\xbe\xe2\x2c\x07\xcb\x5e\xc1\xd4\x95\xa5\x99\x90\x26\x83\x86\x8c\x98\xd9\xfb\x66\xd1\x0f\x81\x6b\x76\x33\x4d\xed\x7a\xe1\x25\xf7\x8d\xca\x1d\x7e\x41\x0e\xe6\xcb\xa4\xf3\xf0\x9f\x54\x67\x7a\xce\x31\x7d\xb7\x06\x04\x6c\x93\xd7\xd0\x85\x15\xbc\x86\x97\x89\x4d\xa6\x2e\x15\x7b\x72\x5a\xe3\x99\x54\x9f\xe4\x78\x4e\x63\xb5\xec\xb5\xf1\x8c\xb2\x93\x67\xd5\x99\x12\x18\x14\x95\x4e\x93\xf6\x4f\xea\xf9\xfb\x33\x92\x33\x4c\x67\x73\xd4\x69\x5e\x24\x75\x36\xf1\x97\x44\x5d\x4b\x3e\xe0\xfa\x17\xd6\x9b\x41\x41\xfc\x85\x70\x2a\xf6\xd5\x69\x32\x7d\x36\x9b\xa1\x0a\xe3\xca\x14\x2c\x61\x3c\x4e\x0b\x4b\xce\x15\xb0\x3c\x17\x08\x11\x87\xdb\x4c\x7d\xb9\x75\xf5\x25\xcb\xf9\x21\xcd\x96\xdb\x4c\x5c\xc1\x40\xae\xb4\x66\x0c\x2f\x16\xa5\xe0\x25\xd1\x93\xf1\x0c\xc6\x69\x26\xfc\x85\xec\x73\x14\xd7\xb7\x37\x85\x16\x8e\x6e\x32\x4d\x22\xdc\xf8\xe9\x76\x28\xf1\xe6\x73\x7b\x99\x05\x78\x50\x39\x68\xb1\x21\xac\x72\x28\x8a\xc0\x1e\x95\x22\x5b\x74\xc0\xa3\x12\xe2\x4e\x41\xc5\xee\xcc\x77\xa6\x16\xb0\x42\x29\x85\x5c\xb8\x8b\x7e\x01\x1f\x44\xcd\x69\x1e\x76\x2d\xe0\xa2\xf8\xb6\x44\x82\xdf\xff\xe3\x7b\xa4\xdf\x90\xef\xf0\x3b\x52\x0c\xd5\xc8\x59\x8e\x38\x09\xfa\x55\x6b\x87\x15\x3e\x19\xdb\x26\x20\x30\xc6\x35\x01\xc6\xb5\x31\x24\xee\x00\xea\x46\x48\xb8\x94\xa8\x4a\xe4\x54\x40\x7d\xd8\x4a\x42\x0d\xd8\xda\x9b\x4d\x4a\x08\xfe\x02\x7e\x40\x22\x39\xec\x85\xc4\x05\xec\xb4\x3e\xa8\xc5\x7c\xbe\x66\xba\xa8\x4e\xf3\x0f\x3f\x7c\xfa\xf7\xe5\x2f\xef\xaf\x2e\xdf\xff\xf4\xee\x53\x01\xef\xf2\x42\x16\x30\x3e\x77\x7a\xee\xdc\x7c\xf5\x7c\x6c\x51\x48\x26\x1f\xdb\x9e\xc6\x60\xf9\xe6\x37\x87\x63\x05\xcf\xfb\x3c\x04\x96\x07\x29\xd6\x64\xcd\x2a\xa6\x2d\xc8\xb6\x1b\xef\x8c\x9d\x4c\xc1\x9a\x18\xbe\xc2\xc1\xf5\xb2\x96\xd2\xc0\xa8\x75\x25\xca\x3b\xd8\x21\xdb\xee\xb4\x6d\x3e\x6c\x13\xa4\x89\x74\xdf\x4c\x1f\x13\x92\xb4\xc2\x3e\x6e\x02\xca\x88\x09\x53\xb0\x95\x48\x34\x4a\x13\x4d\xdc\xe0\x70\xfc\x4f\x4d\x2a\x8b\xb5\x7d\x6b\x14\x6e\xc8\x21\x7d\x57\x84\x2c\x34\xcf\xd7\xdb\x6c\x25\x73\x20\x2f\x48\xf7\xf9\x1c\xb6\xee\xb2\x4e\x95\x14\xb2\x63\x1e\x50\xa6\xba\x0d\xd1\xe5\xbc\x97\xd2\xb8\xd3\x33\xb5\x6a\x8d\x12\xd6\xa8\xef\x11\x79\xec\xda\x70\x0b\xdb\x24\x3b\x98\x82\x0a\x95\x72\x4e\x8c\x05\xa6\xee\xf1\x2c\xb0\x52\xd8\xac\x39\x50\xd4\xae\x1a\xcc\x62\xef\xa8\xb7\x26\x77\x89\x74\x75\xd8\x5e\x0a\x5b\xd4\xdd\x8f\x93\x69\x78\x6b\xf4\x76\x2c\x81\xb3\x2a\xa9\xa7\x4e\x77\x85\x5a\x33\xbe\x75\x6d\x1c\xe3\x47\x52\x31\x6a\x02\x19\x28\x6e\x48\x5d\x99\x26\x66\x47\x8e\x4c\xd4\x4d\x19\x89\xb5\x87\xf6\xe6\x89\x7f\x7f\x8c\x2c\x58\x87\xca\x27\xca\xbd\x88\x8d\xb5\x7e\x7e\x6b\xbc\xb5\x80\xdf\x3e\x72\xfd\xcf\xbf\xc3\x32\xd8\x5f\xd8\xf5\x68\x07\x72\x7a\x86\x3e\x3c\xad\xaa\x8b\x80\x74\xc7\x16\xf5\x65\xb0\x32\x99\x16\x3e\x38\x42\xb7\x76\xba\xc1\xeb\x65\x2b\xf7\xcb\xba\x35\x32\x86\xb2\x0d\x04\x8a\x7c\x1d\x68\x18\xdd\xc7\x92\x1b\xc8\x2b\xf1\x88\x52\xb3\x75\x85\x2e\xf5\x26\x53\xf8\x9b\x61\xd1\x92\x7a\x32\x4e\xe1\xab\x90\x53\x18\xaa\xf6\xee\x61\xae\x86\x9c\x09\xfb\x5e\xa5\x1a\x25\x56\x19\x21\xaf\xa2\xc3\xc8\xc0\x34\xdb\x35\x2a\x2d\xeb\x52\x43\x10\xcd\x9d\xbf\xd3\x86\xde\x2a\xdd\x9c\xea\x20\x15\x72\xda\xd2\x74\xc7\xcb\x99\x9e\x44\xfb\x67\x21\x61\x8a\xb6\x1c\x2c\xb3\x35\x61\x09\x71\x4c\xb6\xcb\x68\xdd\x19\x06\xe0\x79\x2c\x9a\x24\xf4\x22\xb0\xf9\x4d\x20\xde\x7b\xd0\x8a\xf0\x2d\x6c\x51\x8a\xc3\xe9\x55\x47\xfe\x7a\x62\x7a\xe1\x05\xcc\x95\x9b\x63\xcc\x37\x95\xb8\x4f\x2e\xe8\x8e\x7a\x7a\x56\x2b\x15\x69\xd5\x65\x56\xa8\x5e\xe8\x9d\x48\xaf\x4a\x10\xfa\x27\xf5\xea\xf1\x54\xe4\x88\x81\x1e\x33\xd0\xe2\xaf\xb1\xb4\xe6\xb1\xad\xff\x4f\xab\x1e\xa3\xb1\x52\x34\x88\x02\x89\x4a\xc8\x12\xa1\x24\x1c\xd6\xd8\xa2\x0a\x42\x29\xd8\xd5\xbd\x38\x62\x30\x82\x6a\xc7\x1e\xbd\xf6\x1b\x28\xb3\x77\x33\x91\x27\x2f\xad\x97\x5d\x46\x56\x6d\x84\xc5\x2a\x44\x57\x31\xa1\xf4\x7d\x8f\xb5\xd1\xc6\x08\xed\xf4\x68\x60\xc2\x53\x5a\xa4\x2a\x18\xd7\xe7\x44\x4c\x48\x66\xe4\x92\xe6\xa1\xc1\x88\x9e\x0e\x18\x0f\xb4\xe9\xf7\x0e\x4f\x4f\x2b\xfc\xee\x1b\x58\xf6\xab\xf1\xe3\x00\x44\x77\xc7\xd1\xf7\x8f\x3f\xa6\xd8\x45\xcf\x3f\xaa\x9c\x93\x06\x44\x7d\x71\x3f\x15\x4e\x91\xc9\x1d\x9e\x16\x0d\xa7\xa1\xae\x2a\x76\x96\x42\x7d\xa6\xd7\x36\xcb\xca\x3d\x00\xf4\xc6\xbe\x47\x22\x19\x59\x57\xd8\x44\xd9\x91\x54\x35\x1a\xa4\xbc\x0a\x10\xe5\x6a\xd0\x75\xe7\x05\x67\x06\x8e\x89\x5f\x9e\xea\xe8\x97\x21\xb0\xed\x0f\x31\xfe\xe8\xcc\x33\xf8\x32\xcd\xb9\x32\x63\xde\x95\xb9\x83\xde\x7b\x24\xf0\x07\x2e\xb2\x1e\x3c\x0b\x0a\xa0\xe7\x62\xff\xf1\x4c\x90\xd3\xe9\x59\xcf\x0c\x5f\x17\xeb\x4c\x61\x3f\x63\x93\xad\xc6\xb1\x55\x4f\x9d\x4a\xaf\x80\x0f\xb5\xd5\xa8\xf4\x65\x6e\x90\x6c\x4b\xad\x49\x15\x43\x61\xba\xaf\x43\x2d\x0f\x42\xf9\x56\xcd\xef\xfe\xe8\x27\xfc\x65\xf3\xa4\xf3\xc4\xd3\x8c\x7f\xed\x38\x48\x71\x64\x34\xd7\x02\x7a\xbe\x39\x36\x4c\x81\xd0\x3b\x94\xf7\x4c\xb9\x47\x16\x23\xd4\xe6\x41\x5b\x4a\x44\xad\x15\xa3\x38\xe8\xc7\xac\xb1\x5f\x6a\xb8\x0d\x1d\x5e\x49\x0f\xab\x3f\x70\xcf\x6a\x34\xeb\x2b\x31\x0b\x05\x9f\x1f\xf4\x85\x08\xb2\x53\xe0\x0c\x82\x6c\xa7\xac\x5e\x81\x41\x42\x37\x6b\x75\xce\x48\x50\x64\xca\x63\x16\x11\x67\x91\x64\x53\x9a\x97\x8d\x02\x7d\x12\xfb\xb6\xb9\xb4\xac\x9e\x93\x3e\xdd\xcc\xa9\x11\x9c\xc8\x35\x7d\x81\x17\xd6\x8e\xb8\x42\x5d\x82\xa9\x55\xda\xdf\xf8\xbb\xed\xe5\x67\x38\x48\xdc\xb0\xcf\xd1\x7a\xca\x33\xfa\x5e\xa8\x8a\x95\xe8\xf1\xd2\xb7\x33\xa8\x0f\xbf\x8a\x45\x42\xe2\xe6\x89\xd3\x5c\x0c\x8d\x2f\x8a\x76\x5c\x13\x6d\x9a\xb6\x13\xbe\x62\xdc\x7e\x6e\xdd\x36\x10\x23\x1e\x7c\x11\x83\x7c\x3a\x20\xc4\x14\x18\x84\x49\x9b\x9b\xc6\x83\x3a\x50\xc2\xbf\xcf\xb6\x5b\x3c\x3e\x73\x9e\xef\x5e\xb3\x95\x7b\x79\x02\x8f\x16\x43\x51\xab\xde\x5d\xda\x3d\x10\xc7\x48\xa1\x2d\x1b\xfe\xc5\xb1\x7d\x62\x2c\x46\x6d\x9c\x65\x9e\xfd\xb2\x49\xe8\x9a\x91\x1e\xe2\x58\xc2\xc3\x63\x4c\xd3\xbf\xd5\x92\x69\x84\xa5\x1a\x7a\x35\x85\xe5\x59\x04\x6c\xb7\x75\xac\x12\x40\xd2\x57\x2f\x93\x25\xcf\x47\x6c\x49\x9f\xec\xce\xeb\xd5\xd7\x50\xda\x01\x57\x0c\x76\x27\xe7\xfa\x8c\x57\x5f\xdb\xbd\xae\xc9\x38\x6b\x7e\x83\xeb\x1f\x47\xff\x0b\x00\x00\xff\xff\x8e\xd3\x79\x2b\x15\x21\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9e, 0xcf, 0xd7, 0x43, 0x2a, 0xa5, 0x5d, 0x83, 0x82, 0x97, 0xa4, 0xbe, 0x2e, 0x25, 0xfc, 0x48, 0x92, 0x88, 0xc0, 0x47, 0x21, 0x52, 0x14, 0xc1, 0x62, 0xc4, 0xb7, 0x26, 0xb7, 0x8c, 0xa9, 0x6c}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x84, 0xa0, 0x47, 0x2e, 0x93, 0xd0, 0x81, 0x2b, 0xa8, 0x76, 0xca, 0xfe, 0xf0, 0x9, 0xbb, 0x77, 0x54, 0xb7, 0xca, 0x6c, 0xa0, 0x26, 0xad, 0xab, 0x2b, 0x3e, 0x77, 0x35, 0x2c, 0x90, 0x86, 0x69}} return a, nil } diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 43c9034..a7e29c1 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -25,6 +25,7 @@ // transactions/delegatee/execute_all_delegated_updates.cdc (687B) // transactions/delegatee/remove_delegated_updaters.cdc (567B) // transactions/dependency-audit/admin/add_excluded_addresses.cdc (341B) +// transactions/dependency-audit/admin/set_start_end_block.cdc (345B) // transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (352B) // transactions/dependency-audit/admin/test_check_dependencies.cdc (440B) // transactions/host/publish_host_capability.cdc (2.303kB) @@ -611,6 +612,26 @@ func transactionsDependencyAuditAdminAdd_excluded_addressesCdc() (*asset, error) return a, nil } +var _transactionsDependencyAuditAdminSet_start_end_blockCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcf\xcf\x4a\xc4\x30\x10\x06\xf0\x7b\x9e\x62\xec\x41\x5b\x90\x9e\xc4\x43\x11\x4b\xfd\x73\xf0\x26\x2c\x3e\xc0\x98\x8c\xbb\xc1\xed\x4c\x98\x4c\x10\x91\x7d\x77\xa9\xd9\x7a\xd8\xc3\xe6\x12\x42\x3e\xe6\xfb\x4d\x9c\x93\xa8\x41\xf3\x44\x89\x38\x10\xfb\xef\xa9\x84\x68\x8d\x73\xa6\xc8\x19\xbd\x45\xe1\x36\x1b\xaa\x0d\xf0\xf6\xc2\x76\x7b\x73\x0d\xc4\x61\x7d\x74\xf0\xe3\x00\x00\x92\x52\x42\xa5\x36\xc7\x2d\x93\x0e\x30\x15\xdb\x4d\xde\x4b\x61\x5b\x23\xcb\xa9\xdf\xfd\xbb\xa8\xca\xd7\xdd\xe5\x49\x6b\x3f\x85\x39\x72\xcc\xa6\x68\xa2\xf7\xed\x87\xca\x3c\xc0\xd9\xd0\xc6\x44\x71\x4b\xaf\x68\xbb\x6e\xec\x33\xd9\x66\xa1\x3e\x73\x78\xd8\x8b\xff\x5c\xe1\x7f\xd7\xd1\x4d\x1c\xba\x7f\xcf\x38\x42\x42\x8e\xbe\x6d\x1e\xa5\xec\x03\xb0\x18\x54\xdc\xf9\x5a\x58\x68\xc7\x6d\xae\x32\xe4\xaa\xb8\x68\xea\xe4\x83\x3b\xb8\xdf\x00\x00\x00\xff\xff\x28\xf0\x8b\x80\x59\x01\x00\x00" + +func transactionsDependencyAuditAdminSet_start_end_blockCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsDependencyAuditAdminSet_start_end_blockCdc, + "transactions/dependency-audit/admin/set_start_end_block.cdc", + ) +} + +func transactionsDependencyAuditAdminSet_start_end_blockCdc() (*asset, error) { + bytes, err := transactionsDependencyAuditAdminSet_start_end_blockCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/dependency-audit/admin/set_start_end_block.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x35, 0xa0, 0x10, 0x93, 0xe9, 0x18, 0x86, 0xf1, 0x3e, 0xdf, 0x9c, 0xb1, 0x5, 0xbb, 0xa2, 0x9c, 0xe2, 0x4c, 0x4c, 0x80, 0x75, 0xe, 0x9d, 0x9b, 0xb4, 0xf1, 0x64, 0x46, 0x34, 0xa9, 0xff, 0x43}} + return a, nil +} + var _transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcf\x41\x4e\xc4\x30\x0c\x05\xd0\x7d\x4e\x61\xba\x80\x76\xd3\x03\x54\x88\xaa\xc0\x9e\x91\x10\x07\x08\x89\x69\x2d\x4d\xed\xc8\x76\x85\x10\x9a\xbb\xa3\x52\x18\xc1\x2c\x9a\x5d\xf2\x7f\x92\x67\x9a\x8b\xa8\x43\xf5\x88\x05\x39\x23\xa7\x8f\x61\xc9\xe4\x55\x08\xae\x91\x2d\x26\x27\xe1\xda\x26\x59\x8e\xf9\x10\x99\x52\x07\xf7\x22\xc7\x06\x3e\x03\x00\x40\x51\x2c\x51\xb1\x36\x1a\x19\xb5\x83\x61\xf1\x69\x48\x49\x16\xf6\xdf\xca\xba\xb6\xb8\x7d\x15\x55\x79\xbf\xbd\xbe\xf8\xac\x1d\xf2\x4c\x4c\xe6\x1a\x5d\xf4\xae\x7e\x53\x99\x3b\xd8\x2d\x3d\xbb\x68\x1c\xf1\x10\x7d\x6a\xfa\xd6\xd0\xbf\x6d\x4f\xfc\xc2\xe6\x71\xc4\x7c\xbe\x4c\x68\xff\xf5\x7f\x36\xcd\xd9\xd7\xf7\x50\xd6\x93\xba\x7a\x58\x53\x60\x71\xd8\xb0\xfb\x0c\x58\xa9\x3f\xd3\xdd\x18\xd8\xa6\xba\xaa\xb6\x97\x4f\xe1\x14\xbe\x02\x00\x00\xff\xff\x63\x20\x68\x33\x60\x01\x00\x00" func transactionsDependencyAuditAdminSet_unstaged_cause_panicCdcBytes() ([]byte, error) { @@ -1067,6 +1088,7 @@ var _bindata = map[string]func() (*asset, error){ "transactions/delegatee/execute_all_delegated_updates.cdc": transactionsDelegateeExecute_all_delegated_updatesCdc, "transactions/delegatee/remove_delegated_updaters.cdc": transactionsDelegateeRemove_delegated_updatersCdc, "transactions/dependency-audit/admin/add_excluded_addresses.cdc": transactionsDependencyAuditAdminAdd_excluded_addressesCdc, + "transactions/dependency-audit/admin/set_start_end_block.cdc": transactionsDependencyAuditAdminSet_start_end_blockCdc, "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc": transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, "transactions/dependency-audit/admin/test_check_dependencies.cdc": transactionsDependencyAuditAdminTest_check_dependenciesCdc, "transactions/host/publish_host_capability.cdc": transactionsHostPublish_host_capabilityCdc, @@ -1174,6 +1196,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "dependency-audit": {nil, map[string]*bintree{ "admin": {nil, map[string]*bintree{ "add_excluded_addresses.cdc": {transactionsDependencyAuditAdminAdd_excluded_addressesCdc, map[string]*bintree{}}, + "set_start_end_block.cdc": {transactionsDependencyAuditAdminSet_start_end_blockCdc, map[string]*bintree{}}, "set_unstaged_cause_panic.cdc": {transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, map[string]*bintree{}}, "test_check_dependencies.cdc": {transactionsDependencyAuditAdminTest_check_dependenciesCdc, map[string]*bintree{}}, }}, diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index 43c3555..5d26358 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -246,3 +246,66 @@ access(all) fun testChekDependenciesWithUnstagedEntriesPanics() { // not sure how to test this: // Test.expect(commitResult.error!.message, Test.contain("panic: This transaction is using dependencies not staged for Crescendo upgrade coming soon! Learn more: https://bit.ly/FLOWCRESCENDO. Dependencies not staged: A.0000000000000008.Foo") ) } + +access(all) fun testBoundaries() { + var commitResult = executeTransaction( + "../transactions/dependency-audit/admin/set_start_end_block.cdc", + [100 as UInt64, 200 as UInt64], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + var addresses: [Address] = [fooAccount.address] + var names: [String] = ["Foo"] + var authorizers: [Address] = [] + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/set_start_end_block.cdc", + [1 as UInt64, 2 as UInt64], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + addresses = [fooAccount.address] + names = ["Foo"] + authorizers = [] + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + Test.expect(commitResult, Test.beFailed()) + + // The block height is 42 at this point + + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/set_start_end_block.cdc", + [0 as UInt64, 100 as UInt64], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + var i = 0 + var failCount = 0 + while i < 10 { + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/test_check_dependencies.cdc", + [addresses, names, authorizers], + adminAccount + ) + if commitResult.error != nil { + failCount = failCount + 1 + } + i = i + 1 + } + + // expect 2-8 failures in 10 attempts + Test.expect(failCount, Test.beGreaterThan(1)) + Test.expect(failCount, Test.beLessThan(9)) +} diff --git a/transactions/dependency-audit/admin/set_start_end_block.cdc b/transactions/dependency-audit/admin/set_start_end_block.cdc new file mode 100644 index 0000000..262a243 --- /dev/null +++ b/transactions/dependency-audit/admin/set_start_end_block.cdc @@ -0,0 +1,8 @@ +import "DependencyAudit" + +transaction(start: UInt64, end: UInt64) { + prepare(signer: AuthAccount) { + signer.borrow<&DependencyAudit.Administrator>(from: DependencyAudit.AdministratorStoragePath)?.setStartEndBlock(start: start, end: end) + ?? panic("Could not borrow DependencyAudit.Administrator from signer's storage!") + } +} From 636670d078225e84134fb4a7fe621b30d8420ecc Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Tue, 11 Jun 2024 21:21:52 +0200 Subject: [PATCH 09/16] add event for boundaries change --- contracts/DependencyAudit.cdc | 17 ++++++---- lib/go/contracts/internal/assets/assets.go | 6 ++-- lib/go/templates/internal/assets/assets.go | 23 ++++++++++++++ tests/dependency_audit_tests.cdc | 31 +++++++++++++++++-- .../admin/unset_start_end_block.cdc | 8 +++++ 5 files changed, 73 insertions(+), 12 deletions(-) create mode 100644 transactions/dependency-audit/admin/unset_start_end_block.cdc diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 367a4f9..63b40bd 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -19,6 +19,8 @@ access(all) contract DependencyAudit { access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) + access(all) event BlockBoundariesChanged(boundaries: Boundaries?) + // checkDependencies is called from the FlowServiceAccount contract access(account) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { var unstagedDependencies: [Dependency] = [] @@ -49,12 +51,8 @@ access(all) contract DependencyAudit { access(self) fun maybePanicOnUnstagedDependencies(_ unstagedDependencies: [Dependency]) { // If `panicOnUnstaged` is set to false, the function will return without panicking - if !DependencyAudit.panicOnUnstaged { - return - } - - // check if we should panic randomly - if !self.shouldPanicRandomly() { + // Then check if we should panic randomly + if !DependencyAudit.panicOnUnstaged || !self.shouldPanicRandomly() { return } @@ -101,6 +99,7 @@ access(all) contract DependencyAudit { let currentBlock: UInt64 = getCurrentBlock().height if startBlock >= endBlock { + // this should never happen becuse we validate the boundaries when setting them // if settings are invalid use default behaviour: panic true return true } @@ -161,13 +160,19 @@ access(all) contract DependencyAudit { // setStartEndBlock sets the start and end block heights for the `shouldPanicRandomly` function access(all) fun setStartEndBlock(start: UInt64, end: UInt64) { + pre { + start < end: "Start block height must be less than end block height" + } + let boundaries = Boundaries(start: start, end: end) DependencyAudit.setBoundaries(boundaries: boundaries) + emit BlockBoundariesChanged(boundaries: boundaries) } // unsetStartEndBlock unsets the start and end block heights for the `shouldPanicRandomly` function access(all) fun unsetStartEndBlock() { DependencyAudit.unsetBoundaries() + emit BlockBoundariesChanged(boundaries: nil) } // testCheckDependencies is used for testing purposes diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 4e8db2b..91c7386 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (8.469kB) +// DependencyAudit.cdc (9.646kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x59\x6d\x6f\x1b\x37\x12\xfe\xae\x5f\x31\x11\x70\x80\x84\xaa\xab\xb4\xb8\xbb\xa2\x42\x94\xc0\x71\x12\x20\x40\xdb\x14\x75\x7b\xf7\xc1\x30\x2a\x6a\x39\x92\x68\xaf\x48\x1d\xc9\x95\xa3\x33\xfc\xdf\x0f\x7c\xd9\x5d\x92\xcb\x95\x5d\xb4\x17\xa3\x68\x24\x71\x38\x6f\x9c\x19\x3e\x33\x64\xfb\x83\x90\x1a\xc6\x3f\xb2\xad\x24\x9a\x09\x7e\x29\xb8\x96\xa4\xd4\x57\x9a\x6c\x19\xdf\x8e\x47\xa3\xf9\x1c\x7e\xdd\x31\x05\xa5\x5f\x01\xa6\xcc\x7f\xb5\x42\x0a\xeb\x13\xe8\x1d\xc2\x87\x7f\xfd\x08\x25\xa9\x2a\xc6\xb7\xf6\xfb\xaa\xdc\x61\x79\xf7\x0e\x0f\xc8\x29\xf2\x92\xa1\x5a\xc1\xa6\xe6\xa5\x11\x00\x1b\x29\xf6\x40\xba\xef\x62\x63\xf7\x28\xb2\x47\xe0\xe6\x7f\x84\x53\x50\x8c\x6f\x39\xd1\xb5\x44\x60\xdc\xc9\xa8\xc4\xfd\x15\xca\x23\x2b\xf1\xa2\x2c\x45\xcd\x75\xab\xd1\xcc\xe8\x48\xb4\x25\x43\x4e\x0d\x47\x3c\xa2\x3c\x81\x96\x84\x2b\x62\xc5\x14\xce\x0e\x84\x15\x0d\xd4\xba\xa0\x54\xa2\x52\x46\x3f\x23\x35\x5a\xfb\x89\xec\xcd\xef\xf7\xac\xaa\x60\x8d\x40\xaa\xca\x0a\x08\x49\x80\x23\x52\x8a\x14\xb4\x00\x59\x1b\x3d\x8d\x16\xb1\xd0\x56\xee\x39\x9f\x58\x21\x96\x00\xd8\x06\x08\x3f\x35\x5e\x89\xa4\x11\x89\xc0\x85\x06\xa5\xc9\x16\x69\xe3\x98\xa1\xa3\x6b\xdd\x63\x4d\xff\xf8\x5c\xb6\x33\x4b\x10\x6b\x86\x7b\xa6\x81\x70\xe3\x55\xae\xe1\x9e\xe9\x9d\x25\xaa\xb9\xd7\x24\x64\x37\x03\x21\xe1\x40\x38\x2b\x8d\x29\x2b\xfb\xe9\x13\xff\xcd\x93\xae\x4c\xe8\x28\xd4\xc6\x63\x5a\xd6\x58\x8c\x48\x59\xa2\x52\x13\x52\x55\xd3\x2e\xc4\x5a\x37\x9d\x2e\x6a\xca\x34\x3c\x8c\x46\x00\x00\x21\x6d\x85\x1a\x2e\xe8\x9e\x71\xa6\xb4\x24\x5a\xc8\x2b\x2d\x24\xd9\xe2\xcf\x44\xef\x16\x10\x7c\x71\x5b\xfd\x29\xa8\x93\xd2\xb8\x07\xd2\x9c\x3b\xec\xc8\x11\x5b\xb9\xca\x9d\xa0\xb5\xd9\x78\x64\x8d\xce\x29\x0a\x8e\x8c\x58\x93\xf7\x8d\xb3\x3b\x5d\x95\x80\x7b\x04\xfc\x5c\x56\x35\x45\x43\xb4\x77\x21\x1e\xf9\xf9\x64\x4e\xf7\xae\x54\xa1\x19\x0a\xab\xcd\x14\x8e\x44\x36\x9b\x69\x1b\x8e\x0b\x78\xf0\x9f\x17\xf0\x56\x88\xea\xb1\x6f\xbf\xd9\x97\x38\xd7\xd1\xf6\x49\xdd\xb1\x35\x54\x61\x08\x4e\xc2\x93\x5b\xc0\x75\xe7\xf7\x9b\xe9\x10\x9f\x9f\x63\xa1\x21\xbb\xcb\x1d\xe1\x5b\xa4\x13\xb5\x13\x75\x45\x2d\xa1\xd3\x69\xda\x1e\x42\x2f\x0b\x4c\x40\x98\xda\x81\xb4\x73\xdb\x99\x5c\x8f\x94\x72\x6b\x53\x13\xad\x7d\xc6\x93\xdf\x21\x9b\xea\x0b\xb8\xf6\x9f\x6f\x66\x10\xd3\xd8\x94\x5f\xc0\xf5\x95\x96\x8c\x6f\xed\x32\xa9\xf5\x4e\x48\xf6\x5f\x94\xe1\xc6\x29\x3c\x58\x45\xcc\x9f\x39\x88\x3a\xe3\x8c\xd8\x9d\xb0\x84\xeb\x9b\x51\xb4\x89\xd7\xfb\xc8\x11\xcb\xbc\xbe\x45\x85\x7c\xab\x77\xd1\x56\x06\x4b\x78\xd9\xfe\x72\xbf\x63\x15\x02\x83\x57\x3d\x96\x9d\x96\xe6\xcf\xa4\x0c\x53\xef\x7d\xb0\xc1\x32\x4d\xb3\xa2\x17\x87\xd7\x59\x8d\xae\xd9\xcd\x0d\xbc\x79\x03\x1b\x52\x29\x8c\x24\xb0\x4d\x28\x20\x96\x6e\xd7\x61\x09\x0c\xbe\x82\x6f\x7a\x2b\xe6\x7c\x19\xaf\x63\x76\x8f\xa3\x9e\xfe\xbe\xe2\x2c\x07\xcb\x5e\xc1\xd4\x95\xa5\x99\x90\x26\x83\x86\x8c\x98\xd9\xfb\x66\xd1\x0f\x81\x6b\x76\x33\x4d\xed\x7a\xe1\x25\xf7\x8d\xca\x1d\x7e\x41\x0e\xe6\xcb\xa4\xf3\xf0\x9f\x54\x67\x7a\xce\x31\x7d\xb7\x06\x04\x6c\x93\xd7\xd0\x85\x15\xbc\x86\x97\x89\x4d\xa6\x2e\x15\x7b\x72\x5a\xe3\x99\x54\x9f\xe4\x78\x4e\x63\xb5\xec\xb5\xf1\x8c\xb2\x93\x67\xd5\x99\x12\x18\x14\x95\x4e\x93\xf6\x4f\xea\xf9\xfb\x33\x92\x33\x4c\x67\x73\xd4\x69\x5e\x24\x75\x36\xf1\x97\x44\x5d\x4b\x3e\xe0\xfa\x17\xd6\x9b\x41\x41\xfc\x85\x70\x2a\xf6\xd5\x69\x32\x7d\x36\x9b\xa1\x0a\xe3\xca\x14\x2c\x61\x3c\x4e\x0b\x4b\xce\x15\xb0\x3c\x17\x08\x11\x87\xdb\x4c\x7d\xb9\x75\xf5\x25\xcb\xf9\x21\xcd\x96\xdb\x4c\x5c\xc1\x40\xae\xb4\x66\x0c\x2f\x16\xa5\xe0\x25\xd1\x93\xf1\x0c\xc6\x69\x26\xfc\x85\xec\x73\x14\xd7\xb7\x37\x85\x16\x8e\x6e\x32\x4d\x22\xdc\xf8\xe9\x76\x28\xf1\xe6\x73\x7b\x99\x05\x78\x50\x39\x68\xb1\x21\xac\x72\x28\x8a\xc0\x1e\x95\x22\x5b\x74\xc0\xa3\x12\xe2\x4e\x41\xc5\xee\xcc\x77\xa6\x16\xb0\x42\x29\x85\x5c\xb8\x8b\x7e\x01\x1f\x44\xcd\x69\x1e\x76\x2d\xe0\xa2\xf8\xb6\x44\x82\xdf\xff\xe3\x7b\xa4\xdf\x90\xef\xf0\x3b\x52\x0c\xd5\xc8\x59\x8e\x38\x09\xfa\x55\x6b\x87\x15\x3e\x19\xdb\x26\x20\x30\xc6\x35\x01\xc6\xb5\x31\x24\xee\x00\xea\x46\x48\xb8\x94\xa8\x4a\xe4\x54\x40\x7d\xd8\x4a\x42\x0d\xd8\xda\x9b\x4d\x4a\x08\xfe\x02\x7e\x40\x22\x39\xec\x85\xc4\x05\xec\xb4\x3e\xa8\xc5\x7c\xbe\x66\xba\xa8\x4e\xf3\x0f\x3f\x7c\xfa\xf7\xe5\x2f\xef\xaf\x2e\xdf\xff\xf4\xee\x53\x01\xef\xf2\x42\x16\x30\x3e\x77\x7a\xee\xdc\x7c\xf5\x7c\x6c\x51\x48\x26\x1f\xdb\x9e\xc6\x60\xf9\xe6\x37\x87\x63\x05\xcf\xfb\x3c\x04\x96\x07\x29\xd6\x64\xcd\x2a\xa6\x2d\xc8\xb6\x1b\xef\x8c\x9d\x4c\xc1\x9a\x18\xbe\xc2\xc1\xf5\xb2\x96\xd2\xc0\xa8\x75\x25\xca\x3b\xd8\x21\xdb\xee\xb4\x6d\x3e\x6c\x13\xa4\x89\x74\xdf\x4c\x1f\x13\x92\xb4\xc2\x3e\x6e\x02\xca\x88\x09\x53\xb0\x95\x48\x34\x4a\x13\x4d\xdc\xe0\x70\xfc\x4f\x4d\x2a\x8b\xb5\x7d\x6b\x14\x6e\xc8\x21\x7d\x57\x84\x2c\x34\xcf\xd7\xdb\x6c\x25\x73\x20\x2f\x48\xf7\xf9\x1c\xb6\xee\xb2\x4e\x95\x14\xb2\x63\x1e\x50\xa6\xba\x0d\xd1\xe5\xbc\x97\xd2\xb8\xd3\x33\xb5\x6a\x8d\x12\xd6\xa8\xef\x11\x79\xec\xda\x70\x0b\xdb\x24\x3b\x98\x82\x0a\x95\x72\x4e\x8c\x05\xa6\xee\xf1\x2c\xb0\x52\xd8\xac\x39\x50\xd4\xae\x1a\xcc\x62\xef\xa8\xb7\x26\x77\x89\x74\x75\xd8\x5e\x0a\x5b\xd4\xdd\x8f\x93\x69\x78\x6b\xf4\x76\x2c\x81\xb3\x2a\xa9\xa7\x4e\x77\x85\x5a\x33\xbe\x75\x6d\x1c\xe3\x47\x52\x31\x6a\x02\x19\x28\x6e\x48\x5d\x99\x26\x66\x47\x8e\x4c\xd4\x4d\x19\x89\xb5\x87\xf6\xe6\x89\x7f\x7f\x8c\x2c\x58\x87\xca\x27\xca\xbd\x88\x8d\xb5\x7e\x7e\x6b\xbc\xb5\x80\xdf\x3e\x72\xfd\xcf\xbf\xc3\x32\xd8\x5f\xd8\xf5\x68\x07\x72\x7a\x86\x3e\x3c\xad\xaa\x8b\x80\x74\xc7\x16\xf5\x65\xb0\x32\x99\x16\x3e\x38\x42\xb7\x76\xba\xc1\xeb\x65\x2b\xf7\xcb\xba\x35\x32\x86\xb2\x0d\x04\x8a\x7c\x1d\x68\x18\xdd\xc7\x92\x1b\xc8\x2b\xf1\x88\x52\xb3\x75\x85\x2e\xf5\x26\x53\xf8\x9b\x61\xd1\x92\x7a\x32\x4e\xe1\xab\x90\x53\x18\xaa\xf6\xee\x61\xae\x86\x9c\x09\xfb\x5e\xa5\x1a\x25\x56\x19\x21\xaf\xa2\xc3\xc8\xc0\x34\xdb\x35\x2a\x2d\xeb\x52\x43\x10\xcd\x9d\xbf\xd3\x86\xde\x2a\xdd\x9c\xea\x20\x15\x72\xda\xd2\x74\xc7\xcb\x99\x9e\x44\xfb\x67\x21\x61\x8a\xb6\x1c\x2c\xb3\x35\x61\x09\x71\x4c\xb6\xcb\x68\xdd\x19\x06\xe0\x79\x2c\x9a\x24\xf4\x22\xb0\xf9\x4d\x20\xde\x7b\xd0\x8a\xf0\x2d\x6c\x51\x8a\xc3\xe9\x55\x47\xfe\x7a\x62\x7a\xe1\x05\xcc\x95\x9b\x63\xcc\x37\x95\xb8\x4f\x2e\xe8\x8e\x7a\x7a\x56\x2b\x15\x69\xd5\x65\x56\xa8\x5e\xe8\x9d\x48\xaf\x4a\x10\xfa\x27\xf5\xea\xf1\x54\xe4\x88\x81\x1e\x33\xd0\xe2\xaf\xb1\xb4\xe6\xb1\xad\xff\x4f\xab\x1e\xa3\xb1\x52\x34\x88\x02\x89\x4a\xc8\x12\xa1\x24\x1c\xd6\xd8\xa2\x0a\x42\x29\xd8\xd5\xbd\x38\x62\x30\x82\x6a\xc7\x1e\xbd\xf6\x1b\x28\xb3\x77\x33\x91\x27\x2f\xad\x97\x5d\x46\x56\x6d\x84\xc5\x2a\x44\x57\x31\xa1\xf4\x7d\x8f\xb5\xd1\xc6\x08\xed\xf4\x68\x60\xc2\x53\x5a\xa4\x2a\x18\xd7\xe7\x44\x4c\x48\x66\xe4\x92\xe6\xa1\xc1\x88\x9e\x0e\x18\x0f\xb4\xe9\xf7\x0e\x4f\x4f\x2b\xfc\xee\x1b\x58\xf6\xab\xf1\xe3\x00\x44\x77\xc7\xd1\xf7\x8f\x3f\xa6\xd8\x45\xcf\x3f\xaa\x9c\x93\x06\x44\x7d\x71\x3f\x15\x4e\x91\xc9\x1d\x9e\x16\x0d\xa7\xa1\xae\x2a\x76\x96\x42\x7d\xa6\xd7\x36\xcb\xca\x3d\x00\xf4\xc6\xbe\x47\x22\x19\x59\x57\xd8\x44\xd9\x91\x54\x35\x1a\xa4\xbc\x0a\x10\xe5\x6a\xd0\x75\xe7\x05\x67\x06\x8e\x89\x5f\x9e\xea\xe8\x97\x21\xb0\xed\x0f\x31\xfe\xe8\xcc\x33\xf8\x32\xcd\xb9\x32\x63\xde\x95\xb9\x83\xde\x7b\x24\xf0\x07\x2e\xb2\x1e\x3c\x0b\x0a\xa0\xe7\x62\xff\xf1\x4c\x90\xd3\xe9\x59\xcf\x0c\x5f\x17\xeb\x4c\x61\x3f\x63\x93\xad\xc6\xb1\x55\x4f\x9d\x4a\xaf\x80\x0f\xb5\xd5\xa8\xf4\x65\x6e\x90\x6c\x4b\xad\x49\x15\x43\x61\xba\xaf\x43\x2d\x0f\x42\xf9\x56\xcd\xef\xfe\xe8\x27\xfc\x65\xf3\xa4\xf3\xc4\xd3\x8c\x7f\xed\x38\x48\x71\x64\x34\xd7\x02\x7a\xbe\x39\x36\x4c\x81\xd0\x3b\x94\xf7\x4c\xb9\x47\x16\x23\xd4\xe6\x41\x5b\x4a\x44\xad\x15\xa3\x38\xe8\xc7\xac\xb1\x5f\x6a\xb8\x0d\x1d\x5e\x49\x0f\xab\x3f\x70\xcf\x6a\x34\xeb\x2b\x31\x0b\x05\x9f\x1f\xf4\x85\x08\xb2\x53\xe0\x0c\x82\x6c\xa7\xac\x5e\x81\x41\x42\x37\x6b\x75\xce\x48\x50\x64\xca\x63\x16\x11\x67\x91\x64\x53\x9a\x97\x8d\x02\x7d\x12\xfb\xb6\xb9\xb4\xac\x9e\x93\x3e\xdd\xcc\xa9\x11\x9c\xc8\x35\x7d\x81\x17\xd6\x8e\xb8\x42\x5d\x82\xa9\x55\xda\xdf\xf8\xbb\xed\xe5\x67\x38\x48\xdc\xb0\xcf\xd1\x7a\xca\x33\xfa\x5e\xa8\x8a\x95\xe8\xf1\xd2\xb7\x33\xa8\x0f\xbf\x8a\x45\x42\xe2\xe6\x89\xd3\x5c\x0c\x8d\x2f\x8a\x76\x5c\x13\x6d\x9a\xb6\x13\xbe\x62\xdc\x7e\x6e\xdd\x36\x10\x23\x1e\x7c\x11\x83\x7c\x3a\x20\xc4\x14\x18\x84\x49\x9b\x9b\xc6\x83\x3a\x50\xc2\xbf\xcf\xb6\x5b\x3c\x3e\x73\x9e\xef\x5e\xb3\x95\x7b\x79\x02\x8f\x16\x43\x51\xab\xde\x5d\xda\x3d\x10\xc7\x48\xa1\x2d\x1b\xfe\xc5\xb1\x7d\x62\x2c\x46\x6d\x9c\x65\x9e\xfd\xb2\x49\xe8\x9a\x91\x1e\xe2\x58\xc2\xc3\x63\x4c\xd3\xbf\xd5\x92\x69\x84\xa5\x1a\x7a\x35\x85\xe5\x59\x04\x6c\xb7\x75\xac\x12\x40\xd2\x57\x2f\x93\x25\xcf\x47\x6c\x49\x9f\xec\xce\xeb\xd5\xd7\x50\xda\x01\x57\x0c\x76\x27\xe7\xfa\x8c\x57\x5f\xdb\xbd\xae\xc9\x38\x6b\x7e\x83\xeb\x1f\x47\xff\x0b\x00\x00\xff\xff\x8e\xd3\x79\x2b\x15\x21\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\x6d\x6f\x1b\x37\x12\xfe\xae\x5f\x31\x11\x70\x80\x84\x2a\xeb\xb4\xb8\xbb\xa2\x82\x95\xc0\x71\x1c\x20\x40\xdb\x14\x75\x7a\xf7\xc1\x30\x2a\x6a\x77\x24\xd1\x5e\x91\x3a\x92\x2b\x45\xe7\xfa\xbf\x1f\xf8\xb2\xbb\x24\x97\xbb\x76\xaf\x6d\x8c\xa2\x91\xb4\xc3\x79\x79\x66\x38\x9c\x19\x2e\xdd\xed\xb9\x50\x30\xfe\x81\x6e\x04\x51\x94\xb3\x4b\xce\x94\x20\xb9\xba\x56\x64\x43\xd9\x66\x3c\x1a\x9d\x9d\xc1\xa7\x2d\x95\x90\xbb\x27\x40\xa5\xfe\xaf\x92\x58\xc0\xea\x04\x6a\x8b\xf0\xfe\x5f\x3f\x40\x4e\xca\x92\xb2\x8d\xf9\xbe\xcc\xb7\x98\xdf\xbf\xc3\x3d\xb2\x02\x59\x4e\x51\x2e\x61\x5d\xb1\x5c\x0b\x80\xb5\xe0\x3b\x20\xed\x77\xbe\x36\x6b\x24\xd9\x21\x30\xfd\x3f\xc2\x0a\x90\x94\x6d\x18\x51\x95\x40\xa0\xcc\xca\x28\xf9\xf1\x1a\xc5\x81\xe6\x78\x91\xe7\xbc\x62\xaa\xd1\x68\xa6\x75\x24\xca\x90\x21\x2b\x34\x47\x3c\xa0\x38\x81\x12\x84\x49\x62\xc4\x64\xd6\x0e\x84\x65\xe1\xa9\x75\x51\x14\x02\xa5\xd4\xfa\x69\xa9\xc1\xb3\x1f\xc9\x4e\xff\x7e\xa4\x65\x09\x2b\x04\x52\x96\x46\x80\x4f\x02\x0c\xb1\x28\xb0\x00\xc5\x41\x54\x5a\x4f\xad\x45\x28\xb4\x91\x3b\x84\x89\x11\x62\x08\x80\xae\x81\xb0\x53\x8d\x4a\x20\x8d\x08\x04\xc6\x15\x48\x45\x36\x58\xd4\xc0\xf4\xb9\xae\x81\xc7\x98\xfe\xe1\xb9\x6c\x67\x86\x20\xd4\x0c\x77\x54\x01\x61\x1a\x55\xa6\xe0\x48\xd5\xd6\x10\x55\xcc\x69\xe2\xb3\x9b\x01\x17\xb0\x27\x8c\xe6\xda\x94\xa5\xf9\xf4\x91\xfd\xe2\x48\x97\x3a\x74\x24\x2a\x8d\x98\x12\x15\x66\x23\x92\xe7\x28\xe5\x84\x94\xe5\xb4\x0d\xb1\x06\xa6\xd3\x45\x55\x50\x05\x0f\xa3\x11\x00\x80\x4f\x5b\xa2\x82\x8b\x62\x47\x19\x95\x4a\x10\xc5\xc5\xb5\xe2\x82\x6c\xf0\x27\xa2\xb6\x73\xf0\xbe\xd8\xa5\xce\x0b\xf2\x24\x15\xee\x80\xd4\x7e\x87\x2d\x39\x60\x23\x57\x5a\x0f\x1a\x9b\x35\x22\x2b\xb4\xa0\x48\x38\x50\x62\x4c\xde\xd5\x60\xb7\xba\x4a\x0e\x47\x04\xfc\x9c\x97\x55\x81\x9a\x68\x67\x43\x3c\xc0\xf9\xa4\xbd\x7b\x9f\x4b\xdf\x0c\x89\xe5\x7a\x0a\x07\x22\xea\xc5\x45\x13\x8e\x73\x78\x70\x9f\xe7\xf0\x96\xf3\xf2\xb1\x6b\xbf\x5e\x17\x81\x6b\x69\xbb\xa4\xd6\x6d\x35\x95\x1f\x82\x13\xdf\x73\x73\xb8\x69\x71\xbf\x9d\xf6\xf1\xf9\x29\x14\xea\xb3\xbb\xdc\x12\xb6\xc1\x62\x22\xb7\xbc\x2a\x0b\x43\x68\x75\xea\x65\xf6\xb6\xe4\xf9\xfd\x5b\x5e\xb1\x82\x08\x8f\xc1\xaa\xf9\x45\xaf\xaf\x3f\xbf\x99\x36\xbe\xec\x6c\x26\x1d\x57\x3a\x05\x61\xd1\xa2\x3f\x90\x32\x02\x75\xec\xb3\xa9\x0e\xfa\x2e\xe3\xc9\xaf\x90\xcc\x18\x73\xb8\x71\x9f\x6f\x67\x10\xd2\x98\xcc\x31\x87\x9b\x6b\x25\x28\xdb\x98\xc7\xa4\x52\x5b\x2e\xe8\x7f\x51\xf8\x0b\xa7\xf0\x60\x14\xd1\x7f\xda\x9f\x55\x02\xd3\xd0\x2b\xb0\x80\x9b\xdb\x51\xb0\x88\x55\xbb\x00\x88\x45\x5a\xdf\xac\x44\xb6\x51\xdb\x60\x29\x85\x05\xbc\x6a\x7e\x39\x6e\x69\x89\x40\xe1\xbc\xc3\xb2\xd5\x52\xff\xe9\x9d\x47\xe5\x95\x8b\x59\x58\xc4\xbb\x35\xeb\x84\xf3\x4d\x52\xa3\x1b\x7a\x7b\x0b\x6f\xde\xc0\x9a\x94\x12\x03\x09\x74\xed\x0b\x08\xa5\x9b\xe7\xb0\x00\x0a\x5f\xc1\xd7\x9d\x27\xda\xbf\x94\x55\x21\xbb\xc7\x51\x47\x7f\x97\xb8\x16\xbd\xd9\x33\xa3\xf2\xda\xd0\x4c\x48\xbd\x11\xfb\x8c\x98\x99\x63\x6b\xde\x0d\x81\x1b\x7a\x3b\x8d\xed\x7a\xe1\x24\x77\x8d\x4a\x39\x3f\x23\x7b\xfd\x65\xd2\x22\xfc\x07\xd5\x99\x0e\x01\xd3\x85\xd5\x23\xa0\xeb\xb4\x86\x36\xac\xe0\x35\xbc\x8a\x6c\xd2\xe9\x2d\xdb\x91\xd3\x0a\x07\x32\xc6\x24\xc5\x73\x1a\xaa\x65\x4e\x9f\x67\x64\xaf\x34\xab\xd6\x14\xcf\xa0\x20\x03\xeb\x6d\xff\xa4\x9e\xbf\x3e\x63\x73\xfa\xdb\xd9\x1e\xb9\x43\xc7\x9f\x09\xfb\xd4\x69\x2b\x50\x55\x82\x99\x63\x96\x57\xca\x26\xf9\x7b\xca\x36\x3e\xef\x4f\x5b\x64\x6d\xc1\x70\x44\xb0\x29\xd7\x1d\xbc\x82\xb0\x82\xef\xca\x93\xef\xbc\x17\xf1\x2e\x8d\x54\x83\xdf\x7e\x83\x17\xc6\x67\x5e\xf6\xfe\xd9\x31\x9a\x4c\x23\xe7\x5a\x1d\x53\x71\xd2\x97\xc7\x6c\x32\x84\x05\x8c\xc7\x71\xfa\x4a\x01\x0e\x8b\xa1\x70\x0b\x38\xdc\x25\xb2\xd8\x9d\xcd\x62\x49\xce\x0f\xf1\x9e\xbc\x4b\x44\x6f\xdf\x8e\x6c\xcc\xe8\x7f\x98\xe5\x9c\xe5\x44\x4d\xc6\x33\x18\xc7\xfb\xed\x4f\x64\x9f\xa2\xb8\xb9\xbb\xcd\x14\xb7\x74\x93\x69\xb4\x8f\x34\x4e\x77\x7d\xdb\xfb\xec\xcc\x44\xa2\x57\xbc\x4a\x1b\x8d\x6b\x42\x4b\x5b\xf2\x11\xd8\xa1\x94\x64\x83\xb6\x4a\x2a\x39\xbf\x97\x50\xd2\x7b\xfd\x9d\xca\x39\x2c\x51\x08\x2e\xe6\x36\x06\xe7\xf0\x5e\x9f\xdb\xe9\x1a\x71\x0e\x17\xd9\x37\x39\x12\xfc\xee\x1f\xdf\x61\xf1\x35\xf9\x16\xbf\x25\x59\x5f\x26\x9e\xa5\x88\xa3\x60\x5e\x36\x76\x18\xe1\x93\xb1\xe9\x58\x3c\x63\x6c\xc7\xa2\xa1\x0d\xeb\xf7\xb6\x9a\x5e\x73\x01\x97\x02\x65\x8e\xac\xe0\x50\xed\x37\x82\x14\xba\x32\xdc\xe9\x45\x92\x73\xf6\x02\xbe\x47\x22\x18\xec\xb8\xc0\x39\x6c\x95\xda\xcb\xf9\xd9\xd9\x8a\xaa\xac\x3c\x9d\xbd\xff\xfe\xe3\xbf\x2f\x7f\xbe\xba\xbe\xbc\xfa\xf1\xdd\xc7\x0c\xde\xa5\x85\xcc\x61\x3c\xe4\x3d\xeb\x37\x97\xa3\x1f\x9b\x5a\x27\xb1\x1f\x9b\x06\x4c\x37\x1e\xf5\x6f\x76\xef\x73\x96\xc6\xdc\xaf\x82\xf7\x82\xaf\xc8\x8a\x96\x54\x99\x8e\xa0\xc9\x30\x9a\xed\x8a\x68\xbe\xdc\xf6\x16\x79\x25\x84\x2e\xd3\x56\xba\x4c\x83\x2d\xd2\xcd\x56\x99\x4e\xc9\x74\x6c\x8a\x08\xfb\x4d\x37\x5d\x3e\x49\x23\xec\xc3\xda\xa3\x0c\x98\x50\x09\x1b\x81\x44\xa1\xd0\xd1\xc4\x74\xd3\x80\xff\xa9\x48\x69\x1a\x03\xd7\xc7\xf9\x0b\x06\x12\xa5\xee\x23\x7c\xeb\x42\x22\x52\x1e\xc9\x49\xfa\xb4\x7a\xcb\x77\x8d\xa3\xd2\x78\xd6\x6a\x93\xd2\xe0\xb9\x22\x4c\x5e\xef\x95\x51\xa2\x94\xad\x8c\x2e\x30\xfd\x52\x22\x0b\x88\x73\xbc\x4e\x73\x2b\x14\xb0\x42\x75\x44\x64\x4f\x79\xa6\xab\x43\xca\xc7\xad\x16\x1a\x16\x24\x4c\x1a\xd2\xfe\xb8\x61\xb9\x40\xa2\xfb\xa9\x92\x32\x24\xa2\x3c\x01\x91\x03\x11\xb4\xdf\x0b\x4e\xf2\x2d\xca\x7e\xa4\x3b\x47\x74\xf2\x58\xb2\xed\x45\x78\xee\x6e\x6c\x7d\x17\x47\x1c\x17\x6d\xa4\x78\x94\xb1\xf0\x3e\xba\x5e\x98\x3c\x9a\xb4\x47\x02\x6f\xf8\x4b\xe8\x3a\x5a\x11\xf8\x26\x14\x18\xc7\xba\x63\x81\x3a\xd6\xfc\xc0\x6b\x33\xba\x2e\x73\x4d\x59\xd3\x36\x50\xb0\xb0\x55\xd9\x06\x55\xfb\xe3\x64\xea\x97\x09\x9d\x15\x0b\x60\xb4\x8c\x0e\x47\xab\xbb\x44\xa5\x28\xdb\xd8\x01\x02\x65\x07\x52\xd2\x42\x67\x25\x28\x70\x4d\xaa\x52\xb7\xcf\x5b\x72\xa0\xbc\xaa\xcf\x84\x50\x7b\x68\xca\x88\xf0\xf7\xc7\xc0\x82\x95\xaf\x7c\xa4\xdc\x8b\xd0\x58\x83\xb3\x69\x28\xe7\xf0\xcb\x07\xa6\xfe\xf9\x77\x58\x78\xeb\x33\xf3\x3c\x58\x81\xac\x18\xa0\xf7\xbd\x55\xb6\x11\x10\xaf\xd8\xa0\xba\xf4\x9e\x4c\xa6\x99\x0b\x0e\x1f\xd6\x56\x37\x78\xbd\x68\xe4\x76\x61\xd5\x27\x69\x5d\xcb\x31\x3c\xa0\x80\xad\x69\x01\x60\x85\xb9\x86\xf6\x88\x60\x70\x26\xca\x8c\x1a\x7c\x78\x8e\xba\x24\x74\x3e\x31\x63\x88\x2f\xe9\xb2\x00\xa8\x82\xae\xc1\x33\xf2\xa5\x67\x7d\x50\xb8\x09\xa6\x3b\x30\xa1\xcd\x54\x74\x55\xa2\xdd\xd6\x93\x29\xfc\x4d\xb3\x68\x48\x1d\x19\x2b\xe0\x2b\x9f\x93\xbf\x0d\x4c\x91\xe2\x52\xee\xc0\x96\xea\x24\xa4\x51\x64\x95\x16\x72\x1e\x38\x3a\xd1\x35\x98\xf1\x85\x54\xa2\xca\x95\x37\x9c\xf0\x7c\x19\x8f\xa9\x8c\xd2\x75\xc4\xf4\x52\x21\x2b\x1a\x9a\x36\x74\x18\x55\x93\x60\xfd\xcc\x27\x8c\xcb\x72\x5b\xbf\x9b\x7c\xb3\x80\x30\xde\x9b\xc7\x68\xe0\xf4\x83\x7b\xb8\x35\x8a\x92\x45\x30\x90\xf1\xc4\x3b\x04\x8d\x08\x37\x51\xc9\x72\xbe\x3f\x9d\xb7\xe4\xaf\x27\x6b\xc1\x77\x73\x38\x93\x76\x3a\x77\xb6\x2e\xf9\x31\xaa\xe4\x5a\xea\xe9\xa0\x56\x32\xd0\x2a\x3d\x2f\xf2\xd1\x09\xf4\x2a\x39\x29\xfe\xa0\x5e\x1d\x9e\x92\x1c\xd0\xd3\x63\x06\x8a\xff\x39\x96\x56\x2c\xb4\xf5\xaf\xb4\xea\x31\x18\x96\x06\xe3\x55\x10\x28\xb9\xc8\x11\x72\xa2\xb3\x51\x53\x7e\x92\xa2\x00\xf3\x74\xc7\x0f\xe8\x0d\x56\x9b\x29\x5c\x67\x1a\x04\x05\x35\x65\x0d\x11\x27\x27\xad\xb3\xbb\xb4\xac\x4a\x0b\x0b\x55\x08\x8e\x79\x52\x14\x57\x1d\xd6\x5a\x1b\x2d\xb4\xd5\xa3\xae\x27\x9f\xd2\x22\x56\x41\x43\x9f\x12\x31\x21\x89\x09\x60\xbc\x0f\x75\x33\xe1\xe8\x80\x32\x4f\x9b\x6e\x93\xf9\xf4\xf0\xcc\xad\xbe\x85\x45\x37\x1b\x3f\xf6\xf4\x72\xd6\x1d\x5d\x7c\x9c\x9b\x42\x88\x9e\xef\xaa\x14\x48\x3d\xa2\xbe\x38\x4e\x99\x55\x64\x72\x8f\xa7\x79\xcd\xa9\xaf\xfd\x0e\xc1\x92\xa8\x06\x46\x3f\xfa\xb1\xad\x53\xbb\xd3\x9c\x03\x11\x94\xac\x4a\xac\xa3\xec\x40\xca\x0a\x75\x69\xbc\xf4\xaa\xd5\x65\x2f\x74\xc3\x82\x13\x63\xf4\x08\x97\xa7\x46\x3a\x0b\xbf\x68\xee\xce\xd4\x7e\xef\x24\xdf\xfb\x32\xed\x87\xf2\x5a\x1f\x3b\x57\xf5\xe1\xdf\x80\x37\xd4\x93\xe8\x30\x30\x00\x27\x6a\xfc\xf6\x96\x6c\x08\xc6\x40\xe8\xef\x38\x30\xf7\x02\x13\xb1\x66\x75\x3d\xb7\x0b\xc7\xd7\xdd\x5e\x62\x57\x49\x73\x3b\xd4\x96\x16\xb1\x51\xe3\xa7\x26\xd0\x41\x61\xeb\xa5\x77\xa7\xbb\xf9\xc7\xa9\x8e\xac\x98\x0e\xfa\xbd\xff\x30\x5c\x25\x8e\xad\xc6\xff\xcf\xb8\x7c\x49\xad\x0f\x3d\x6e\x8e\xa7\xd0\xe7\xe6\xa7\xbf\xdc\xeb\x5d\xc1\x9d\x29\x65\x8c\x53\xe7\x28\xfd\xbf\x30\x61\xb4\xec\x03\x43\xa1\x54\x97\xa9\xab\x29\x73\x5a\x1a\x83\x51\x9a\x02\x7d\x5f\x89\x3d\x97\x6e\x2c\xe3\x56\x7f\x70\x57\x8f\x79\x7d\xd7\xfc\xc4\x9d\xb1\xbb\x86\xdd\x0b\x7e\xa0\x45\x6a\xdc\xe3\xf8\xa6\xd8\x50\x09\x5c\x6d\x51\x1c\xa9\xb4\xb7\xbf\x5a\xa8\x49\x65\xcd\x69\xc0\x2b\x25\x69\x81\xbd\x0e\x48\x1a\xfb\xa5\xae\xcb\xa0\x2d\x39\x63\x2f\x77\xaf\xf0\x92\x1a\xcd\xba\x4a\xcc\x7c\xc1\xc3\x57\x07\x7e\x13\xd0\x2a\x30\xd0\x04\x34\xf7\x36\x4e\x81\x5e\x42\x7b\x7b\x63\xc1\x88\x1a\x81\x98\xc7\x2c\x20\x4e\x36\x03\xf5\xe9\xba\xa8\x15\xe8\x92\x98\x97\x2e\x16\x86\x55\x2a\xac\x3b\x6e\x6f\xe6\xcb\xb5\xe0\x48\xae\x6e\xed\x9c\xb0\x66\x9c\xed\xeb\xe2\x4d\xa8\xe3\x16\xd5\x95\x27\xaf\x3e\xeb\xc4\xbc\xa6\x9f\x83\xe7\x31\xcf\xe0\x7b\x26\x4b\x9a\xa3\x2b\x79\xbf\x99\x41\xb5\xff\xc4\xe7\x11\x89\xbd\x3b\x98\xa6\x62\x68\x7c\x91\x35\xa3\xd9\x60\xd1\xb4\x99\xe6\x67\xe3\xe6\x73\x03\x5b\x4f\x8c\xb8\xfa\x99\xe8\xe2\xb5\xad\x65\x75\x67\x4f\x0e\xb6\x6a\xb6\xb9\xd1\xd4\xe5\x20\xb9\x7b\x71\xa4\x59\xe2\x4a\x6c\x8b\x7c\xfb\x9a\x8d\xb4\x77\xd9\xe0\x0a\x7e\x5f\xd4\xb2\x53\x0e\xb5\x6f\xae\x84\xc5\x5e\x93\x36\xdc\xab\x10\xcd\xbb\x0f\xd9\xa8\x89\xb3\xc4\xfb\x08\xc9\x4d\x68\xfb\xc9\x4e\xd1\xb8\x80\x87\xc7\x90\xa6\x5b\x98\x44\xc3\x2a\x43\xd5\xf7\x3a\x07\x2c\x06\x9b\x18\xb3\xac\x65\x15\xd5\x94\x5d\xf5\x12\xbb\xe4\xf9\x45\x77\x34\xea\xb0\xfe\x3a\x7f\x09\xb9\x19\x66\x87\xfd\xca\x64\xa8\x55\x3c\x7f\x69\xd6\xda\x3e\x71\xd0\xfc\xba\x35\x7b\x1c\xfd\x2f\x00\x00\xff\xff\xf8\x17\x47\x8b\xae\x25\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x84, 0xa0, 0x47, 0x2e, 0x93, 0xd0, 0x81, 0x2b, 0xa8, 0x76, 0xca, 0xfe, 0xf0, 0x9, 0xbb, 0x77, 0x54, 0xb7, 0xca, 0x6c, 0xa0, 0x26, 0xad, 0xab, 0x2b, 0x3e, 0x77, 0x35, 0x2c, 0x90, 0x86, 0x69}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x87, 0x8, 0x8b, 0xa5, 0xd, 0x96, 0x6b, 0x2d, 0x19, 0xf5, 0x91, 0x68, 0x62, 0x44, 0x18, 0x70, 0xc1, 0x91, 0x19, 0x3d, 0x49, 0xf4, 0xf9, 0xce, 0x20, 0x1c, 0xb5, 0x5e, 0x23, 0x13, 0xbe, 0x6b}} return a, nil } diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index a7e29c1..587cd57 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -28,6 +28,7 @@ // transactions/dependency-audit/admin/set_start_end_block.cdc (345B) // transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc (352B) // transactions/dependency-audit/admin/test_check_dependencies.cdc (440B) +// transactions/dependency-audit/admin/unset_start_end_block.cdc (299B) // transactions/host/publish_host_capability.cdc (2.303kB) // transactions/migration-contract-staging/admin/commit_migration_results.cdc (809B) // transactions/migration-contract-staging/admin/set_staging_cutoff.cdc (606B) @@ -672,6 +673,26 @@ func transactionsDependencyAuditAdminTest_check_dependenciesCdc() (*asset, error return a, nil } +var _transactionsDependencyAuditAdminUnset_start_end_blockCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x8e\x4d\x4e\x03\x31\x0c\x46\xf7\x39\x85\xc9\x02\x32\x9b\x39\x40\x85\x18\x85\x9f\x3d\x52\x4f\x60\x12\xd3\x46\x74\xec\xc8\x71\x84\x10\xea\xdd\x51\x15\x60\xd1\xc5\x78\xeb\x4f\xef\xbd\xb2\x56\x51\x03\xff\x4c\x95\x38\x13\xa7\xaf\xd8\x73\x31\xef\x9c\x29\x72\xc3\x64\x45\x38\x4c\xf0\xed\x00\x00\xaa\x52\x45\xa5\xd0\xca\x81\x49\x77\x10\xbb\x1d\x63\x4a\xd2\xd9\xfe\x26\x97\x1b\xef\xf9\x4d\x54\xe5\xf3\xfe\xf6\x8a\x3d\xc7\xbc\x16\x2e\xcd\x14\x4d\xf4\x21\xbc\xab\xac\x3b\xd8\x1c\xed\x4d\x14\x0f\xf4\x8a\x76\x9c\x96\xb9\x73\x23\xdb\x1b\xaa\xbd\x70\x7e\x3c\x49\xfa\x08\xd3\xbf\x7b\x59\xa0\x22\x97\x14\xfc\x93\xf4\x53\x06\x16\x83\x11\xb2\xad\x80\x4b\xc6\x6f\xf9\x5d\x83\x36\x8c\x37\x7e\x90\xcf\xee\xec\x7e\x02\x00\x00\xff\xff\xbd\x3e\x87\xbb\x2b\x01\x00\x00" + +func transactionsDependencyAuditAdminUnset_start_end_blockCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsDependencyAuditAdminUnset_start_end_blockCdc, + "transactions/dependency-audit/admin/unset_start_end_block.cdc", + ) +} + +func transactionsDependencyAuditAdminUnset_start_end_blockCdc() (*asset, error) { + bytes, err := transactionsDependencyAuditAdminUnset_start_end_blockCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/dependency-audit/admin/unset_start_end_block.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0x7a, 0x3e, 0xba, 0x10, 0xdf, 0x67, 0x91, 0xb6, 0xbe, 0xb5, 0xc2, 0x70, 0x95, 0xd1, 0x6, 0x5d, 0x65, 0xce, 0x1b, 0xa3, 0xa0, 0x45, 0x70, 0x8d, 0x28, 0x94, 0xcd, 0xbb, 0x60, 0x29, 0x81}} + return a, nil +} + var _transactionsHostPublish_host_capabilityCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x55\xef\x6b\xe3\x46\x10\xfd\xae\xbf\x62\xe2\xc2\x55\x06\xd7\xfe\x6e\x2e\x77\x84\x94\xe3\x0a\xe5\x08\xa4\xfd\x5c\xc6\xab\xb1\x34\x64\xbd\xbb\xcc\x8e\xec\x98\x92\xff\xbd\xac\x7e\xd8\x92\x63\xa5\xc9\xe9\x8b\xb1\xbd\xf3\xde\xbc\x37\xf3\xb4\xbf\xa0\xb5\xfe\x70\x67\x8c\xaf\x9d\xfe\xc9\xee\x89\x5d\x99\x65\xbc\x0b\x5e\x14\x66\x8f\x8a\x25\x15\xf7\xde\xa9\xa0\xd1\xbf\x43\x81\x4a\x71\x96\x65\xab\xd5\x0a\xd2\xe1\x08\x5a\x11\x44\x2e\x1d\xc9\xaf\x11\xee\x6a\xad\x3a\x28\x40\x57\x00\x39\x83\x21\xd6\x36\x55\x01\x3b\x40\xf8\xee\xa3\x82\x50\xf4\xb5\x18\x5a\x40\xa8\x37\x96\x63\xc5\xae\xec\xff\xbb\xc7\x80\x1b\xb6\xac\x47\xd8\x7a\x69\xe1\x03\x19\xde\x32\x15\x0d\xad\x90\xe1\xc0\xe4\x74\x09\x7f\x55\x1c\xe1\xe0\x6b\x9b\x98\x70\x63\xa9\x39\x7e\x3a\x00\xea\x81\x9e\xc9\xd4\x4a\x80\xb2\x61\x15\x94\x23\x98\x4e\x0c\xd4\xad\x1a\xf0\x6e\x2c\x62\x43\x15\xda\xed\x32\x91\x65\x2a\xe8\x22\x1a\x65\xef\xf2\xae\xd7\x6f\x5e\xd6\x70\x57\x14\x42\x31\xce\xe1\xdf\x2c\x03\x00\x08\x42\x01\x85\xf2\x16\x64\x3d\x34\xe2\x74\x26\x3d\xab\x15\xfc\x4e\xc2\x7b\x82\x80\x5a\xc5\x46\xe2\xd0\xb4\x4f\x17\x26\x30\xc5\x05\x70\x41\x4e\x79\x7b\x4c\x2e\x8d\x05\x7a\x37\x70\xf0\x44\x62\x49\x01\x5b\xc0\x7b\x0c\x0f\xc2\x7b\x54\x7a\x40\xad\xe0\x16\x06\xdf\xf2\x53\x41\xff\x74\x44\x9c\x14\x5c\x1f\xfd\xdd\x09\xf6\x9f\xd9\xd2\x78\x67\x50\x3b\xcd\x4b\x6c\x2d\x59\xaa\x7f\x54\x61\x57\xe6\xf3\xf9\x88\x60\x7e\x33\x6a\xb0\xf2\x51\xa7\x5b\xfb\xff\x4e\x92\x4f\xe7\x1e\xce\xb3\x19\xf2\xcf\x6f\x46\xce\x3f\x92\xd6\x61\xb8\x60\xde\x41\xed\x0a\x12\xdb\x58\x9b\x74\xa4\xcf\xd4\x59\xef\xdf\xa9\x9c\xb7\x70\xd3\x09\x2d\x49\xcf\x18\x9f\x3f\x0d\xc6\xf7\x25\xbf\x6a\xfb\x7c\x69\x2a\x32\x4f\x79\xda\x84\xa1\x23\x1d\x5e\xed\x2c\xbb\xa7\x89\xd2\x6b\x05\xe9\x78\xc7\xf8\x9e\xaa\xf4\x7c\xfd\x0a\x01\x1d\x9b\x7c\xf6\x20\x7e\x63\x69\x07\xb6\x8d\xfa\x68\xfb\xce\xb2\x66\x67\x88\x97\x89\xbd\x82\x5b\xf8\x69\x43\xce\x63\xc1\x18\x49\x86\x32\x7a\xaf\x16\xb0\xa3\x18\xb1\xa4\x35\xcc\xfe\x70\x7b\xb4\x5c\x4c\xf4\x0a\x42\x2a\x4c\x7b\x2a\x66\xf3\x2b\xf3\xbe\x78\xe3\x1c\x04\x43\xe8\x93\x14\x84\xf6\xec\xeb\x68\x9b\xd7\xc2\x96\xcb\x5a\xa8\xe8\x35\x82\x49\x14\xd8\x70\x0c\xf7\xa0\x53\xad\xc7\x40\x39\xea\x1a\xae\xae\xe7\x32\xd1\x3e\xaa\x17\x2c\x5b\xc9\x70\x7b\x0b\x8e\xed\xf5\x15\x88\xb8\xa7\xd7\x71\xfc\xfc\xdb\x04\xb6\x11\x42\xa5\x1f\x74\x48\x24\x03\xef\xd6\x83\xf1\xcc\x17\xaf\xf0\xd4\xbf\xb3\xd9\x71\x6e\xaf\x6c\xc2\x74\x1a\xa6\xf1\xbf\xe4\x17\x91\x7f\x5f\x2c\x2e\x8b\xa6\x02\xf1\x21\xea\x05\x28\x4a\x49\xef\x1e\xde\x44\x18\x12\xea\x5b\x49\xf8\x88\x19\xaf\x22\xd1\x81\xbf\x95\x87\xcb\x0b\x73\x2a\x08\xdf\xd8\xa1\xb5\xc7\xfe\xae\x68\x56\xff\xb2\x56\x7d\xf3\x73\xbf\xfb\x5a\xa1\xc2\x81\xad\x85\xa8\x5e\xda\x8b\xb5\x15\x20\xd9\x85\xfb\xec\x36\xfe\x79\xd9\x61\x8f\xb7\xb8\xd3\x30\x5e\x45\x87\x3b\x9a\x32\xbe\xc1\xfa\xde\x56\x75\x9d\xfd\xc0\x1d\x3d\x08\x6d\xf9\xf9\xed\x97\xfd\x98\xe4\x74\x47\xae\xe1\x7c\x3c\x1b\xef\xf4\x4b\xf6\x92\xfd\x17\x00\x00\xff\xff\x61\x05\xe9\x2d\xff\x08\x00\x00" func transactionsHostPublish_host_capabilityCdcBytes() ([]byte, error) { @@ -1091,6 +1112,7 @@ var _bindata = map[string]func() (*asset, error){ "transactions/dependency-audit/admin/set_start_end_block.cdc": transactionsDependencyAuditAdminSet_start_end_blockCdc, "transactions/dependency-audit/admin/set_unstaged_cause_panic.cdc": transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, "transactions/dependency-audit/admin/test_check_dependencies.cdc": transactionsDependencyAuditAdminTest_check_dependenciesCdc, + "transactions/dependency-audit/admin/unset_start_end_block.cdc": transactionsDependencyAuditAdminUnset_start_end_blockCdc, "transactions/host/publish_host_capability.cdc": transactionsHostPublish_host_capabilityCdc, "transactions/migration-contract-staging/admin/commit_migration_results.cdc": transactionsMigrationContractStagingAdminCommit_migration_resultsCdc, "transactions/migration-contract-staging/admin/set_staging_cutoff.cdc": transactionsMigrationContractStagingAdminSet_staging_cutoffCdc, @@ -1199,6 +1221,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "set_start_end_block.cdc": {transactionsDependencyAuditAdminSet_start_end_blockCdc, map[string]*bintree{}}, "set_unstaged_cause_panic.cdc": {transactionsDependencyAuditAdminSet_unstaged_cause_panicCdc, map[string]*bintree{}}, "test_check_dependencies.cdc": {transactionsDependencyAuditAdminTest_check_dependenciesCdc, map[string]*bintree{}}, + "unset_start_end_block.cdc": {transactionsDependencyAuditAdminUnset_start_end_blockCdc, map[string]*bintree{}}, }}, }}, "host": {nil, map[string]*bintree{ diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index 5d26358..9d1d211 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -265,6 +265,13 @@ access(all) fun testBoundaries() { ) Test.expect(commitResult, Test.beSucceeded()) + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/set_start_end_block.cdc", + [2 as UInt64, 1 as UInt64], + adminAccount + ) + Test.expect(commitResult, Test.beFailed()) + commitResult = executeTransaction( "../transactions/dependency-audit/admin/set_start_end_block.cdc", [1 as UInt64, 2 as UInt64], @@ -272,6 +279,24 @@ access(all) fun testBoundaries() { ) Test.expect(commitResult, Test.beSucceeded()) + var events = Test.eventsOfType(Type()) + Test.assertEqual(2, events.length) + var evt = events[1] as! DependencyAudit.BlockBoundariesChanged + Test.assertEqual(1 as UInt64, evt.boundaries!.start) + Test.assertEqual(2 as UInt64, evt.boundaries!.end) + + commitResult = executeTransaction( + "../transactions/dependency-audit/admin/unset_start_end_block.cdc", + [], + adminAccount + ) + Test.expect(commitResult, Test.beSucceeded()) + + events = Test.eventsOfType(Type()) + Test.assertEqual(3, events.length) + evt = events[2] as! DependencyAudit.BlockBoundariesChanged + Test.assertEqual(nil, evt.boundaries) + addresses = [fooAccount.address] names = ["Foo"] authorizers = [] @@ -305,7 +330,7 @@ access(all) fun testBoundaries() { i = i + 1 } - // expect 2-8 failures in 10 attempts - Test.expect(failCount, Test.beGreaterThan(1)) - Test.expect(failCount, Test.beLessThan(9)) + // expect 1-9 failures in 10 attempts + Test.expect(failCount, Test.beGreaterThan(0)) + Test.expect(failCount, Test.beLessThan(10)) } diff --git a/transactions/dependency-audit/admin/unset_start_end_block.cdc b/transactions/dependency-audit/admin/unset_start_end_block.cdc new file mode 100644 index 0000000..15ff5dd --- /dev/null +++ b/transactions/dependency-audit/admin/unset_start_end_block.cdc @@ -0,0 +1,8 @@ +import "DependencyAudit" + +transaction() { + prepare(signer: AuthAccount) { + signer.borrow<&DependencyAudit.Administrator>(from: DependencyAudit.AdministratorStoragePath)?.unsetStartEndBlock() + ?? panic("Could not borrow DependencyAudit.Administrator from signer's storage!") + } +} From 32e6f4eeabe1eafc1481f7b8a871120ce1e1817d Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Wed, 12 Jun 2024 15:33:59 +0200 Subject: [PATCH 10/16] change event fields --- contracts/DependencyAudit.cdc | 6 +++--- lib/go/contracts/internal/assets/assets.go | 6 +++--- tests/dependency_audit_tests.cdc | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 63b40bd..89a9f58 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -19,7 +19,7 @@ access(all) contract DependencyAudit { access(all) event PanicOnUnstagedDependenciesChanged(shouldPanic: Bool) - access(all) event BlockBoundariesChanged(boundaries: Boundaries?) + access(all) event BlockBoundariesChanged(start: UInt64?, end: UInt64?) // checkDependencies is called from the FlowServiceAccount contract access(account) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) { @@ -166,13 +166,13 @@ access(all) contract DependencyAudit { let boundaries = Boundaries(start: start, end: end) DependencyAudit.setBoundaries(boundaries: boundaries) - emit BlockBoundariesChanged(boundaries: boundaries) + emit BlockBoundariesChanged(start: start, end: end) } // unsetStartEndBlock unsets the start and end block heights for the `shouldPanicRandomly` function access(all) fun unsetStartEndBlock() { DependencyAudit.unsetBoundaries() - emit BlockBoundariesChanged(boundaries: nil) + emit BlockBoundariesChanged(start: nil, end: nil) } // testCheckDependencies is used for testing purposes diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 91c7386..1bfa3e0 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (9.646kB) +// DependencyAudit.cdc (9.656kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\x6d\x6f\x1b\x37\x12\xfe\xae\x5f\x31\x11\x70\x80\x84\x2a\xeb\xb4\xb8\xbb\xa2\x82\x95\xc0\x71\x1c\x20\x40\xdb\x14\x75\x7a\xf7\xc1\x30\x2a\x6a\x77\x24\xd1\x5e\x91\x3a\x92\x2b\x45\xe7\xfa\xbf\x1f\xf8\xb2\xbb\x24\x97\xbb\x76\xaf\x6d\x8c\xa2\x91\xb4\xc3\x79\x79\x66\x38\x9c\x19\x2e\xdd\xed\xb9\x50\x30\xfe\x81\x6e\x04\x51\x94\xb3\x4b\xce\x94\x20\xb9\xba\x56\x64\x43\xd9\x66\x3c\x1a\x9d\x9d\xc1\xa7\x2d\x95\x90\xbb\x27\x40\xa5\xfe\xaf\x92\x58\xc0\xea\x04\x6a\x8b\xf0\xfe\x5f\x3f\x40\x4e\xca\x92\xb2\x8d\xf9\xbe\xcc\xb7\x98\xdf\xbf\xc3\x3d\xb2\x02\x59\x4e\x51\x2e\x61\x5d\xb1\x5c\x0b\x80\xb5\xe0\x3b\x20\xed\x77\xbe\x36\x6b\x24\xd9\x21\x30\xfd\x3f\xc2\x0a\x90\x94\x6d\x18\x51\x95\x40\xa0\xcc\xca\x28\xf9\xf1\x1a\xc5\x81\xe6\x78\x91\xe7\xbc\x62\xaa\xd1\x68\xa6\x75\x24\xca\x90\x21\x2b\x34\x47\x3c\xa0\x38\x81\x12\x84\x49\x62\xc4\x64\xd6\x0e\x84\x65\xe1\xa9\x75\x51\x14\x02\xa5\xd4\xfa\x69\xa9\xc1\xb3\x1f\xc9\x4e\xff\x7e\xa4\x65\x09\x2b\x04\x52\x96\x46\x80\x4f\x02\x0c\xb1\x28\xb0\x00\xc5\x41\x54\x5a\x4f\xad\x45\x28\xb4\x91\x3b\x84\x89\x11\x62\x08\x80\xae\x81\xb0\x53\x8d\x4a\x20\x8d\x08\x04\xc6\x15\x48\x45\x36\x58\xd4\xc0\xf4\xb9\xae\x81\xc7\x98\xfe\xe1\xb9\x6c\x67\x86\x20\xd4\x0c\x77\x54\x01\x61\x1a\x55\xa6\xe0\x48\xd5\xd6\x10\x55\xcc\x69\xe2\xb3\x9b\x01\x17\xb0\x27\x8c\xe6\xda\x94\xa5\xf9\xf4\x91\xfd\xe2\x48\x97\x3a\x74\x24\x2a\x8d\x98\x12\x15\x66\x23\x92\xe7\x28\xe5\x84\x94\xe5\xb4\x0d\xb1\x06\xa6\xd3\x45\x55\x50\x05\x0f\xa3\x11\x00\x80\x4f\x5b\xa2\x82\x8b\x62\x47\x19\x95\x4a\x10\xc5\xc5\xb5\xe2\x82\x6c\xf0\x27\xa2\xb6\x73\xf0\xbe\xd8\xa5\xce\x0b\xf2\x24\x15\xee\x80\xd4\x7e\x87\x2d\x39\x60\x23\x57\x5a\x0f\x1a\x9b\x35\x22\x2b\xb4\xa0\x48\x38\x50\x62\x4c\xde\xd5\x60\xb7\xba\x4a\x0e\x47\x04\xfc\x9c\x97\x55\x81\x9a\x68\x67\x43\x3c\xc0\xf9\xa4\xbd\x7b\x9f\x4b\xdf\x0c\x89\xe5\x7a\x0a\x07\x22\xea\xc5\x45\x13\x8e\x73\x78\x70\x9f\xe7\xf0\x96\xf3\xf2\xb1\x6b\xbf\x5e\x17\x81\x6b\x69\xbb\xa4\xd6\x6d\x35\x95\x1f\x82\x13\xdf\x73\x73\xb8\x69\x71\xbf\x9d\xf6\xf1\xf9\x29\x14\xea\xb3\xbb\xdc\x12\xb6\xc1\x62\x22\xb7\xbc\x2a\x0b\x43\x68\x75\xea\x65\xf6\xb6\xe4\xf9\xfd\x5b\x5e\xb1\x82\x08\x8f\xc1\xaa\xf9\x45\xaf\xaf\x3f\xbf\x99\x36\xbe\xec\x6c\x26\x1d\x57\x3a\x05\x61\xd1\xa2\x3f\x90\x32\x02\x75\xec\xb3\xa9\x0e\xfa\x2e\xe3\xc9\xaf\x90\xcc\x18\x73\xb8\x71\x9f\x6f\x67\x10\xd2\x98\xcc\x31\x87\x9b\x6b\x25\x28\xdb\x98\xc7\xa4\x52\x5b\x2e\xe8\x7f\x51\xf8\x0b\xa7\xf0\x60\x14\xd1\x7f\xda\x9f\x55\x02\xd3\xd0\x2b\xb0\x80\x9b\xdb\x51\xb0\x88\x55\xbb\x00\x88\x45\x5a\xdf\xac\x44\xb6\x51\xdb\x60\x29\x85\x05\xbc\x6a\x7e\x39\x6e\x69\x89\x40\xe1\xbc\xc3\xb2\xd5\x52\xff\xe9\x9d\x47\xe5\x95\x8b\x59\x58\xc4\xbb\x35\xeb\x84\xf3\x4d\x52\xa3\x1b\x7a\x7b\x0b\x6f\xde\xc0\x9a\x94\x12\x03\x09\x74\xed\x0b\x08\xa5\x9b\xe7\xb0\x00\x0a\x5f\xc1\xd7\x9d\x27\xda\xbf\x94\x55\x21\xbb\xc7\x51\x47\x7f\x97\xb8\x16\xbd\xd9\x33\xa3\xf2\xda\xd0\x4c\x48\xbd\x11\xfb\x8c\x98\x99\x63\x6b\xde\x0d\x81\x1b\x7a\x3b\x8d\xed\x7a\xe1\x24\x77\x8d\x4a\x39\x3f\x23\x7b\xfd\x65\xd2\x22\xfc\x07\xd5\x99\x0e\x01\xd3\x85\xd5\x23\xa0\xeb\xb4\x86\x36\xac\xe0\x35\xbc\x8a\x6c\xd2\xe9\x2d\xdb\x91\xd3\x0a\x07\x32\xc6\x24\xc5\x73\x1a\xaa\x65\x4e\x9f\x67\x64\xaf\x34\xab\xd6\x14\xcf\xa0\x20\x03\xeb\x6d\xff\xa4\x9e\xbf\x3e\x63\x73\xfa\xdb\xd9\x1e\xb9\x43\xc7\x9f\x09\xfb\xd4\x69\x2b\x50\x55\x82\x99\x63\x96\x57\xca\x26\xf9\x7b\xca\x36\x3e\xef\x4f\x5b\x64\x6d\xc1\x70\x44\xb0\x29\xd7\x1d\xbc\x82\xb0\x82\xef\xca\x93\xef\xbc\x17\xf1\x2e\x8d\x54\x83\xdf\x7e\x83\x17\xc6\x67\x5e\xf6\xfe\xd9\x31\x9a\x4c\x23\xe7\x5a\x1d\x53\x71\xd2\x97\xc7\x6c\x32\x84\x05\x8c\xc7\x71\xfa\x4a\x01\x0e\x8b\xa1\x70\x0b\x38\xdc\x25\xb2\xd8\x9d\xcd\x62\x49\xce\x0f\xf1\x9e\xbc\x4b\x44\x6f\xdf\x8e\x6c\xcc\xe8\x7f\x98\xe5\x9c\xe5\x44\x4d\xc6\x33\x18\xc7\xfb\xed\x4f\x64\x9f\xa2\xb8\xb9\xbb\xcd\x14\xb7\x74\x93\x69\xb4\x8f\x34\x4e\x77\x7d\xdb\xfb\xec\xcc\x44\xa2\x57\xbc\x4a\x1b\x8d\x6b\x42\x4b\x5b\xf2\x11\xd8\xa1\x94\x64\x83\xb6\x4a\x2a\x39\xbf\x97\x50\xd2\x7b\xfd\x9d\xca\x39\x2c\x51\x08\x2e\xe6\x36\x06\xe7\xf0\x5e\x9f\xdb\xe9\x1a\x71\x0e\x17\xd9\x37\x39\x12\xfc\xee\x1f\xdf\x61\xf1\x35\xf9\x16\xbf\x25\x59\x5f\x26\x9e\xa5\x88\xa3\x60\x5e\x36\x76\x18\xe1\x93\xb1\xe9\x58\x3c\x63\x6c\xc7\xa2\xa1\x0d\xeb\xf7\xb6\x9a\x5e\x73\x01\x97\x02\x65\x8e\xac\xe0\x50\xed\x37\x82\x14\xba\x32\xdc\xe9\x45\x92\x73\xf6\x02\xbe\x47\x22\x18\xec\xb8\xc0\x39\x6c\x95\xda\xcb\xf9\xd9\xd9\x8a\xaa\xac\x3c\x9d\xbd\xff\xfe\xe3\xbf\x2f\x7f\xbe\xba\xbe\xbc\xfa\xf1\xdd\xc7\x0c\xde\xa5\x85\xcc\x61\x3c\xe4\x3d\xeb\x37\x97\xa3\x1f\x9b\x5a\x27\xb1\x1f\x9b\x06\x4c\x37\x1e\xf5\x6f\x76\xef\x73\x96\xc6\xdc\xaf\x82\xf7\x82\xaf\xc8\x8a\x96\x54\x99\x8e\xa0\xc9\x30\x9a\xed\x8a\x68\xbe\xdc\xf6\x16\x79\x25\x84\x2e\xd3\x56\xba\x4c\x83\x2d\xd2\xcd\x56\x99\x4e\xc9\x74\x6c\x8a\x08\xfb\x4d\x37\x5d\x3e\x49\x23\xec\xc3\xda\xa3\x0c\x98\x50\x09\x1b\x81\x44\xa1\xd0\xd1\xc4\x74\xd3\x80\xff\xa9\x48\x69\x1a\x03\xd7\xc7\xf9\x0b\x06\x12\xa5\xee\x23\x7c\xeb\x42\x22\x52\x1e\xc9\x49\xfa\xb4\x7a\xcb\x77\x8d\xa3\xd2\x78\xd6\x6a\x93\xd2\xe0\xb9\x22\x4c\x5e\xef\x95\x51\xa2\x94\xad\x8c\x2e\x30\xfd\x52\x22\x0b\x88\x73\xbc\x4e\x73\x2b\x14\xb0\x42\x75\x44\x64\x4f\x79\xa6\xab\x43\xca\xc7\xad\x16\x1a\x16\x24\x4c\x1a\xd2\xfe\xb8\x61\xb9\x40\xa2\xfb\xa9\x92\x32\x24\xa2\x3c\x01\x91\x03\x11\xb4\xdf\x0b\x4e\xf2\x2d\xca\x7e\xa4\x3b\x47\x74\xf2\x58\xb2\xed\x45\x78\xee\x6e\x6c\x7d\x17\x47\x1c\x17\x6d\xa4\x78\x94\xb1\xf0\x3e\xba\x5e\x98\x3c\x9a\xb4\x47\x02\x6f\xf8\x4b\xe8\x3a\x5a\x11\xf8\x26\x14\x18\xc7\xba\x63\x81\x3a\xd6\xfc\xc0\x6b\x33\xba\x2e\x73\x4d\x59\xd3\x36\x50\xb0\xb0\x55\xd9\x06\x55\xfb\xe3\x64\xea\x97\x09\x9d\x15\x0b\x60\xb4\x8c\x0e\x47\xab\xbb\x44\xa5\x28\xdb\xd8\x01\x02\x65\x07\x52\xd2\x42\x67\x25\x28\x70\x4d\xaa\x52\xb7\xcf\x5b\x72\xa0\xbc\xaa\xcf\x84\x50\x7b\x68\xca\x88\xf0\xf7\xc7\xc0\x82\x95\xaf\x7c\xa4\xdc\x8b\xd0\x58\x83\xb3\x69\x28\xe7\xf0\xcb\x07\xa6\xfe\xf9\x77\x58\x78\xeb\x33\xf3\x3c\x58\x81\xac\x18\xa0\xf7\xbd\x55\xb6\x11\x10\xaf\xd8\xa0\xba\xf4\x9e\x4c\xa6\x99\x0b\x0e\x1f\xd6\x56\x37\x78\xbd\x68\xe4\x76\x61\xd5\x27\x69\x5d\xcb\x31\x3c\xa0\x80\xad\x69\x01\x60\x85\xb9\x86\xf6\x88\x60\x70\x26\xca\x8c\x1a\x7c\x78\x8e\xba\x24\x74\x3e\x31\x63\x88\x2f\xe9\xb2\x00\xa8\x82\xae\xc1\x33\xf2\xa5\x67\x7d\x50\xb8\x09\xa6\x3b\x30\xa1\xcd\x54\x74\x55\xa2\xdd\xd6\x93\x29\xfc\x4d\xb3\x68\x48\x1d\x19\x2b\xe0\x2b\x9f\x93\xbf\x0d\x4c\x91\xe2\x52\xee\xc0\x96\xea\x24\xa4\x51\x64\x95\x16\x72\x1e\x38\x3a\xd1\x35\x98\xf1\x85\x54\xa2\xca\x95\x37\x9c\xf0\x7c\x19\x8f\xa9\x8c\xd2\x75\xc4\xf4\x52\x21\x2b\x1a\x9a\x36\x74\x18\x55\x93\x60\xfd\xcc\x27\x8c\xcb\x72\x5b\xbf\x9b\x7c\xb3\x80\x30\xde\x9b\xc7\x68\xe0\xf4\x83\x7b\xb8\x35\x8a\x92\x45\x30\x90\xf1\xc4\x3b\x04\x8d\x08\x37\x51\xc9\x72\xbe\x3f\x9d\xb7\xe4\xaf\x27\x6b\xc1\x77\x73\x38\x93\x76\x3a\x77\xb6\x2e\xf9\x31\xaa\xe4\x5a\xea\xe9\xa0\x56\x32\xd0\x2a\x3d\x2f\xf2\xd1\x09\xf4\x2a\x39\x29\xfe\xa0\x5e\x1d\x9e\x92\x1c\xd0\xd3\x63\x06\x8a\xff\x39\x96\x56\x2c\xb4\xf5\xaf\xb4\xea\x31\x18\x96\x06\xe3\x55\x10\x28\xb9\xc8\x11\x72\xa2\xb3\x51\x53\x7e\x92\xa2\x00\xf3\x74\xc7\x0f\xe8\x0d\x56\x9b\x29\x5c\x67\x1a\x04\x05\x35\x65\x0d\x11\x27\x27\xad\xb3\xbb\xb4\xac\x4a\x0b\x0b\x55\x08\x8e\x79\x52\x14\x57\x1d\xd6\x5a\x1b\x2d\xb4\xd5\xa3\xae\x27\x9f\xd2\x22\x56\x41\x43\x9f\x12\x31\x21\x89\x09\x60\xbc\x0f\x75\x33\xe1\xe8\x80\x32\x4f\x9b\x6e\x93\xf9\xf4\xf0\xcc\xad\xbe\x85\x45\x37\x1b\x3f\xf6\xf4\x72\xd6\x1d\x5d\x7c\x9c\x9b\x42\x88\x9e\xef\xaa\x14\x48\x3d\xa2\xbe\x38\x4e\x99\x55\x64\x72\x8f\xa7\x79\xcd\xa9\xaf\xfd\x0e\xc1\x92\xa8\x06\x46\x3f\xfa\xb1\xad\x53\xbb\xd3\x9c\x03\x11\x94\xac\x4a\xac\xa3\xec\x40\xca\x0a\x75\x69\xbc\xf4\xaa\xd5\x65\x2f\x74\xc3\x82\x13\x63\xf4\x08\x97\xa7\x46\x3a\x0b\xbf\x68\xee\xce\xd4\x7e\xef\x24\xdf\xfb\x32\xed\x87\xf2\x5a\x1f\x3b\x57\xf5\xe1\xdf\x80\x37\xd4\x93\xe8\x30\x30\x00\x27\x6a\xfc\xf6\x96\x6c\x08\xc6\x40\xe8\xef\x38\x30\xf7\x02\x13\xb1\x66\x75\x3d\xb7\x0b\xc7\xd7\xdd\x5e\x62\x57\x49\x73\x3b\xd4\x96\x16\xb1\x51\xe3\xa7\x26\xd0\x41\x61\xeb\xa5\x77\xa7\xbb\xf9\xc7\xa9\x8e\xac\x98\x0e\xfa\xbd\xff\x30\x5c\x25\x8e\xad\xc6\xff\xcf\xb8\x7c\x49\xad\x0f\x3d\x6e\x8e\xa7\xd0\xe7\xe6\xa7\xbf\xdc\xeb\x5d\xc1\x9d\x29\x65\x8c\x53\xe7\x28\xfd\xbf\x30\x61\xb4\xec\x03\x43\xa1\x54\x97\xa9\xab\x29\x73\x5a\x1a\x83\x51\x9a\x02\x7d\x5f\x89\x3d\x97\x6e\x2c\xe3\x56\x7f\x70\x57\x8f\x79\x7d\xd7\xfc\xc4\x9d\xb1\xbb\x86\xdd\x0b\x7e\xa0\x45\x6a\xdc\xe3\xf8\xa6\xd8\x50\x09\x5c\x6d\x51\x1c\xa9\xb4\xb7\xbf\x5a\xa8\x49\x65\xcd\x69\xc0\x2b\x25\x69\x81\xbd\x0e\x48\x1a\xfb\xa5\xae\xcb\xa0\x2d\x39\x63\x2f\x77\xaf\xf0\x92\x1a\xcd\xba\x4a\xcc\x7c\xc1\xc3\x57\x07\x7e\x13\xd0\x2a\x30\xd0\x04\x34\xf7\x36\x4e\x81\x5e\x42\x7b\x7b\x63\xc1\x88\x1a\x81\x98\xc7\x2c\x20\x4e\x36\x03\xf5\xe9\xba\xa8\x15\xe8\x92\x98\x97\x2e\x16\x86\x55\x2a\xac\x3b\x6e\x6f\xe6\xcb\xb5\xe0\x48\xae\x6e\xed\x9c\xb0\x66\x9c\xed\xeb\xe2\x4d\xa8\xe3\x16\xd5\x95\x27\xaf\x3e\xeb\xc4\xbc\xa6\x9f\x83\xe7\x31\xcf\xe0\x7b\x26\x4b\x9a\xa3\x2b\x79\xbf\x99\x41\xb5\xff\xc4\xe7\x11\x89\xbd\x3b\x98\xa6\x62\x68\x7c\x91\x35\xa3\xd9\x60\xd1\xb4\x99\xe6\x67\xe3\xe6\x73\x03\x5b\x4f\x8c\xb8\xfa\x99\xe8\xe2\xb5\xad\x65\x75\x67\x4f\x0e\xb6\x6a\xb6\xb9\xd1\xd4\xe5\x20\xb9\x7b\x71\xa4\x59\xe2\x4a\x6c\x8b\x7c\xfb\x9a\x8d\xb4\x77\xd9\xe0\x0a\x7e\x5f\xd4\xb2\x53\x0e\xb5\x6f\xae\x84\xc5\x5e\x93\x36\xdc\xab\x10\xcd\xbb\x0f\xd9\xa8\x89\xb3\xc4\xfb\x08\xc9\x4d\x68\xfb\xc9\x4e\xd1\xb8\x80\x87\xc7\x90\xa6\x5b\x98\x44\xc3\x2a\x43\xd5\xf7\x3a\x07\x2c\x06\x9b\x18\xb3\xac\x65\x15\xd5\x94\x5d\xf5\x12\xbb\xe4\xf9\x45\x77\x34\xea\xb0\xfe\x3a\x7f\x09\xb9\x19\x66\x87\xfd\xca\x64\xa8\x55\x3c\x7f\x69\xd6\xda\x3e\x71\xd0\xfc\xba\x35\x7b\x1c\xfd\x2f\x00\x00\xff\xff\xf8\x17\x47\x8b\xae\x25\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\x6d\x6f\x1b\x37\xf2\x7f\xef\x4f\x31\x11\xf0\x07\x24\x54\x59\xa7\xc5\xff\xae\xa8\x60\x25\x70\x9c\x04\x08\xd0\x36\x45\x9d\xde\xbd\x30\x8c\x8a\xda\x1d\x49\x8c\x29\x52\x47\x72\xa5\xe8\x5c\x7f\xf7\x03\x1f\xb4\x4b\x72\xb9\x6b\x07\x6d\x63\x14\x8d\x56\x3b\x9c\x87\xdf\x0c\x87\x33\x43\xd1\xed\x4e\x48\x0d\xa3\x9f\xe8\x5a\x12\x4d\x05\xbf\x12\x5c\x4b\x52\xea\x6b\x4d\xd6\x94\xaf\x47\x67\x67\xe7\xe7\xf0\x71\x43\x15\x94\xfe\x0d\x50\x65\xfe\xab\x15\x56\xb0\x3c\x82\xde\x20\xbc\xfb\xd7\x4f\x50\x12\xc6\x28\x5f\xdb\xe7\x45\xb9\xc1\xf2\xee\x0d\xee\x90\x57\xc8\x4b\x8a\x6a\x01\xab\x9a\x97\x46\x00\xac\xa4\xd8\x02\x69\x9f\xc5\xca\xae\x51\x64\x8b\xc0\xcd\xff\x08\xaf\x40\x51\xbe\xe6\x44\xd7\x12\x81\x72\x27\x83\x89\xc3\x35\xca\x3d\x2d\xf1\xb2\x2c\x45\xcd\x75\xa3\xd1\xd4\xe8\x48\xb4\x25\x43\x5e\x19\x8e\xb8\x47\x79\x04\x2d\x09\x57\xc4\x8a\x29\x9c\x1d\x08\x8b\x2a\x50\xeb\xb2\xaa\x24\x2a\x65\xf4\x33\x52\xa3\x77\x3f\x93\xad\xf9\xfe\x40\x19\x83\x25\x02\x61\xcc\x0a\x08\x49\x80\x23\x56\x15\x56\xa0\x05\xc8\xda\xe8\x69\xb4\x88\x85\x36\x72\x87\x30\xb1\x42\x2c\x01\xd0\x15\x10\x7e\x3c\xa1\x12\x49\x23\x12\x81\x0b\x0d\x4a\x93\x35\x56\x27\x60\xfa\x5c\xd7\xc0\x63\x4d\x7f\xff\x54\xb6\x53\x4b\x10\x6b\x86\x5b\xaa\x81\x70\x83\x2a\xd7\x70\xa0\x7a\x63\x89\x6a\xee\x35\x09\xd9\x4d\x41\x48\xd8\x11\x4e\x4b\x63\xca\xc2\x7e\xfa\xc0\x7f\xf3\xa4\x0b\x13\x3a\x0a\xb5\x41\x4c\xcb\x1a\x8b\x33\x52\x96\xa8\xd4\x98\x30\x36\x69\x43\xac\x81\xe9\x78\x59\x57\x54\xc3\xfd\xd9\x19\x00\x40\x48\xcb\x50\xc3\x65\xb5\xa5\x9c\x2a\x2d\x89\x16\xf2\x5a\x0b\x49\xd6\xf8\x0b\xd1\x9b\x19\x04\x0f\x6e\xa9\xf7\x82\x3a\x2a\x8d\x5b\x20\x27\xbf\xc3\x86\xec\xb1\x91\xab\x9c\x07\xad\xcd\x06\x91\x25\x3a\x50\x14\xec\x29\xb1\x26\x6f\x4f\x60\xb7\xba\x2a\x01\x07\x04\xfc\x5c\xb2\xba\x42\x43\xb4\x75\x21\x1e\xe1\x7c\x34\xde\xbd\x2b\x55\x68\x86\x42\xb6\x9a\xc0\x9e\xc8\xd3\xe2\xaa\x09\xc7\x19\xdc\xfb\xcf\x33\x78\x2d\x04\x7b\xe8\xda\x6f\xd6\x25\xe0\x3a\xda\x2e\xa9\x73\xdb\x89\x2a\x0c\xc1\x71\xe8\xb9\x19\xdc\xb4\xb8\xdf\x4e\xfa\xf8\xfc\x12\x0b\x0d\xd9\x5d\x6d\x08\x5f\x63\x35\x56\x1b\x51\xb3\xca\x12\x3a\x9d\x7a\x99\xbd\x66\xa2\xbc\x7b\x2d\x6a\x5e\x11\x19\x32\xd0\x44\xea\x19\xfc\xf6\x9e\xeb\x7f\xfe\xff\xab\xa9\xd9\xd5\xcd\xd3\xa4\x71\x68\x67\x47\x99\xe0\x32\x79\x08\xab\xd6\x05\x03\x79\x23\xd2\xc9\xbd\x9b\x98\xc8\xef\x32\x1e\xff\x0e\xd9\xb4\x31\x83\x1b\xff\xf9\x76\x0a\x31\x8d\x4d\x1f\x33\xb8\xb9\xd6\x92\xf2\xb5\x7d\x4d\x6a\xbd\x11\x92\xfe\x17\x65\xb8\x70\x02\xf7\x56\x11\xf3\x67\x9c\x5a\x67\x80\x8d\x5d\x03\x73\xb8\xb9\x3d\x8b\x16\xf1\x7a\x1b\x01\x31\xcf\xeb\x5b\x30\xe4\x6b\xbd\x89\x96\x52\x98\xc3\x8b\xe6\x9b\xc3\x86\x32\x04\x0a\x17\x1d\x96\xad\x96\xe6\xcf\x6c\x3f\xaa\xde\xfa\xc0\x85\x79\xba\x65\x8b\x4e\x4c\xdf\x64\x35\xba\xa1\xb7\xb7\xf0\xea\x15\xac\x08\x53\x18\x49\xa0\xab\x50\x40\x2c\xdd\xbe\x87\x39\x50\xf8\x06\xbe\xed\xbc\x31\xfe\xa5\xbc\x8e\xd9\x3d\x9c\x75\xf4\xf7\xd9\x6b\xde\x9b\x42\x0b\xaa\xae\x2d\xcd\x98\x9c\x76\x63\x9f\x11\x53\x7b\x76\xcd\xba\x21\x70\x43\x6f\x27\xa9\x5d\xcf\xbc\xe4\xae\x51\x39\xe7\x17\x64\x67\x1e\xc6\x2d\xc2\x7f\x52\x9d\xc9\x10\x30\x5d\x58\x03\x02\xba\xca\x6b\xe8\xc2\x0a\x5e\xc2\x8b\xc4\x26\x93\xe3\x8a\x2d\x39\x2e\x71\x20\x6d\x8c\x73\x3c\x27\xb1\x5a\xf6\x08\x7a\x42\x0a\xcb\xb3\x6a\x4d\x09\x0c\x8a\xd2\xb0\xd9\xf6\x8f\xea\xf9\xfb\x13\x36\x67\xb8\x9d\xdd\xb9\x3b\x74\x06\xda\xb0\xcf\x1d\xb9\x12\x75\x2d\xb9\x3d\x6b\x45\xad\x5d\xa6\xbf\xa3\x7c\x1d\xf2\xfe\xb8\x41\xde\x56\x0d\x07\x04\x97\x77\xfd\xe9\x2b\x09\xaf\xc4\x96\x1d\x43\xe7\x3d\x4b\x77\x69\xa2\x1a\xfc\xf1\x07\x3c\xb3\x3e\x0b\x52\xf8\xaf\x9e\xd1\x78\x92\x38\xd7\xe9\x98\x8b\x93\xbe\x3c\xe6\x92\x21\xcc\x61\x34\x4a\xd3\x57\x0e\x70\x98\x0f\x85\x5b\xc4\xe1\x53\x26\x8b\x7d\x72\x59\x2c\xcb\xf9\x3e\xdd\x93\x9f\x32\xd1\xdb\xb7\x23\x1b\x33\xfa\x5f\x16\xa5\xe0\x25\xd1\xe3\xd1\x14\x46\xe9\x7e\xfb\x0b\xd9\xe7\x28\x6e\x3e\xdd\x16\x5a\x38\xba\xf1\x24\xd9\x47\x06\xa7\x4f\x7d\xdb\xfb\xfc\xdc\x46\x62\x50\xc1\x2a\x17\x8d\x2b\x42\x99\xab\xfb\x08\x6c\x51\x29\xb2\x46\x57\x2a\x31\x21\xee\x14\x30\x7a\x67\x9e\xa9\x9a\xc1\x02\xa5\x14\x72\xe6\x62\x70\x06\xef\xcc\xd1\x9e\x2f\x14\x67\x70\x59\x7c\x57\x22\xc1\x1f\xfe\xf1\x03\x56\xdf\x92\xef\xf1\x7b\x52\xf4\x65\xe2\x69\x8e\x38\x09\xe6\x45\x63\x87\x15\x3e\x1e\xd9\xb6\x25\x30\xc6\xb5\x2d\x06\xda\xb8\x88\x6f\x4b\xea\x95\x90\x70\x25\x51\x95\xc8\x2b\x01\xf5\x6e\x2d\x49\x65\xca\xc3\xad\x59\xa4\x84\xe0\xcf\xe0\x47\x24\x92\xc3\x56\x48\x9c\xc1\x46\xeb\x9d\x9a\x9d\x9f\x2f\xa9\x2e\xd8\xf1\xfc\xdd\x8f\x1f\xfe\x7d\xf5\xeb\xdb\xeb\xab\xb7\x3f\xbf\xf9\x50\xc0\x9b\xbc\x90\x19\x8c\x86\xbc\xe7\xfc\xe6\x73\xf4\x43\x53\xeb\x64\xf6\x63\xd3\x85\x99\xee\xe3\xf4\x9d\xdb\xfb\x82\xe7\x31\x0f\x4b\xe1\x9d\x14\x4b\xb2\xa4\x8c\x6a\xdb\x16\x34\x19\xc6\xb0\x5d\x12\xc3\x57\xb8\x06\xa3\xac\xa5\x34\xb5\xda\xd2\xd4\x6a\xb0\x41\xba\xde\x68\xdb\x2e\xd9\xb6\xcd\x54\x6a\xf6\xc9\x74\x5e\x21\x49\x23\xec\xfd\x2a\xa0\x8c\x98\x50\x05\x6b\x89\x44\xa3\x34\xd1\xc4\x4d\xe7\x80\xff\xa9\x09\xb3\xdd\x81\x6f\xe6\xc2\x05\x03\x89\xd2\x34\x13\xa1\x75\x31\x11\x61\x07\x72\x54\x21\xad\xd9\xf2\x5d\xe3\xa8\xb2\x9e\x75\xda\xe4\x34\x78\xaa\x08\x9b\xd7\x7b\x65\x30\x54\xaa\x95\xd1\x05\xa6\x5f\x4a\x62\x01\xf1\x8e\x37\x69\x6e\x89\x12\x96\xa8\x0f\x88\xfc\x31\xcf\x74\x75\xc8\xf9\xb8\xd5\xc2\xc0\x82\x84\x2b\x4b\xda\x1f\x37\xbc\x94\x48\x4c\x53\xc5\x28\x47\x22\xd9\x11\x88\x1a\x88\xa0\xdd\x4e\x0a\x52\x6e\x50\xf5\x23\xdd\x39\xa2\xb3\xc7\x92\xeb\x31\xe2\x73\x77\xed\xea\xbb\x34\xe2\x84\x6c\x23\x25\xa0\x4c\x85\xf7\xd1\xf5\xc2\x14\xd0\xe4\x3d\x12\x79\x23\x5c\x42\x57\xc9\x8a\xc8\x37\xb1\xc0\x34\xd6\x3d\x0b\x34\xb1\x16\x06\x5e\x9b\xd1\x4d\x99\x6b\xcb\x9a\xb6\xc7\x82\xb9\xab\xca\xd6\xa8\xdb\x2f\xc7\x93\xb0\x4c\xe8\xac\x98\x03\xa7\x2c\x39\x1c\x9d\xee\x0a\xb5\xa6\x7c\xed\xa6\x08\x94\xef\x09\xa3\x95\xc9\x4a\x50\xe1\x8a\xd4\xcc\xf4\xd0\x1b\xb2\xa7\xa2\x3e\x9d\x09\xb1\xf6\xd0\x94\x11\xf1\xf7\x0f\x91\x05\xcb\x50\xf9\x44\xb9\x67\xb1\xb1\x16\x67\xdb\x55\x9e\x1a\x46\x98\x07\xeb\x0b\xfb\x3e\x5a\x81\xbc\x1a\xa0\x0f\xbd\xc5\xda\x08\x48\x57\xac\x51\x5f\x05\x6f\xc6\x93\xc2\x07\x47\x08\x6b\xab\x1b\xbc\x9c\x37\x72\xbb\xb0\x9a\x93\xf4\x54\xcb\x71\xdc\xa3\x84\x8d\x6d\x01\x60\x89\xa5\x81\xf6\x80\x60\x71\x26\xda\xce\x1b\x42\x78\x0e\xa6\x24\xf4\x3e\xb1\xb3\x88\xaf\xe9\xb2\x08\xa8\x8a\xae\x20\x30\xf2\x79\x60\x7d\x54\xb8\x49\x6e\x3a\x30\x69\xcc\xd4\x74\xc9\xd0\x6d\xeb\xf1\x04\xfe\xcf\xb0\x68\x48\x3d\x19\xaf\xe0\x9b\x90\x53\xb8\x0d\x6c\x91\xe2\x53\xee\xc0\x96\xea\x24\xa4\xb3\xc4\x2a\x23\xe4\x22\x72\x74\xa6\x6b\xb0\x33\x0c\xa5\x65\x5d\x6a\x08\x76\x4a\xeb\xcb\x74\x56\x15\x8d\x34\x7a\xa9\x82\x41\x47\x10\x3a\x9c\xea\x78\x24\x12\x4d\x44\xd2\xb2\xdc\xd5\xef\x36\xdf\xcc\x21\x8e\xf7\xe6\x35\x5a\x38\xc3\xe0\x1e\x6e\x8d\x92\x64\x31\x0b\x6c\x7e\x15\x88\xf7\x08\x5a\x11\x7e\xa2\x52\x94\x62\x77\xbc\x68\xc9\x5f\x8e\x57\x52\x6c\x67\x70\xae\xdc\x88\xee\x7c\xc5\xc4\x21\xa9\xe4\x5a\xea\xc9\xa0\x56\x2a\xd2\xaa\xdd\x06\xa1\x7a\x21\x3a\x91\x5e\x4c\x90\xea\x4f\xea\xd5\xe1\xa9\xc8\x1e\x03\x3d\xa6\xa0\xc5\x5f\x63\x69\xcd\x63\x5b\xff\x4e\xab\x1e\xa2\x89\x69\x34\x63\x05\x89\x4a\xc8\x12\xa1\x24\x26\x1b\x35\xe5\x27\xa9\x2a\xb0\x6f\xb7\x62\x8f\xc1\x74\xb5\x99\xc2\x75\xa6\x41\x50\x51\x5b\xd6\x10\x79\xf4\xd2\x3a\xbb\xcb\xc8\xaa\x8d\xb0\x58\x85\xe8\x98\x27\x55\xf5\xb6\xc3\xda\x68\x63\x84\xb6\x7a\x9c\xea\xc9\xc7\xb4\x48\x55\x30\xd0\xe7\x44\x8c\x49\x66\x02\x98\xee\x43\xd3\x4c\x78\x3a\xa0\x3c\xd0\xa6\xdb\x64\x3e\x3e\x3c\xf3\xab\x6f\x61\xde\xcd\xc6\x0f\x3d\xbd\x9c\x73\x47\x17\x1f\xef\xa6\x18\xa2\xa7\xbb\x2a\x07\x52\x8f\xa8\xaf\x8e\x53\xe1\x14\x19\xdf\xe1\x71\x76\xe2\xd4\xd7\x7e\xc7\x60\x29\xd4\x03\xa3\x1f\xf3\xda\xd5\xa9\xdd\x69\xce\x9e\x48\x4a\x96\x0c\x4f\x51\xb6\x27\xac\x46\x53\x1a\x2f\x82\x6a\x75\xd1\x0b\xdd\xb0\xe0\xcc\x2c\x3d\xc1\xe5\xb1\x91\xce\x3c\x2c\x9a\xbb\x33\xb5\x2f\x1d\xe7\x07\x0f\x93\x7e\x28\xaf\xcd\xb1\xf3\xf6\x74\xf8\x37\xe0\x0d\xf5\x24\x26\x0c\x2c\xc0\x99\x1a\xbf\xbd\x2a\x1b\x82\x31\x12\xfa\x05\x07\xe6\x4e\x62\x26\xd6\x9c\xae\x17\x6e\xe1\xe8\xba\xdb\x4b\x6c\x6b\x65\xaf\x88\xda\xd2\x22\x35\x6a\xf4\xd8\x04\x3a\x2a\x6c\x83\xf4\xee\x75\xb7\xff\x78\xd5\x91\x57\x93\x41\xbf\xf7\x1f\x86\xcb\xcc\xb1\xd5\xf8\x7f\xf8\x06\xa6\x57\x83\xd8\xe3\xf6\x78\x8a\x7d\x6e\xbf\xfa\xdb\xbd\xde\x15\xdc\x99\x52\xa6\x38\x75\x8e\xd2\x2f\xc5\x84\x53\xe6\x11\xe1\x94\xf5\x21\xa2\x51\xe9\xab\xdc\xfd\x94\x3d\x32\xad\xd5\xa8\x6c\x95\xbe\xab\xe5\x4e\x28\x3f\x9b\xf1\xab\xdf\xfb\x4b\xc8\xf2\x74\xeb\xfc\xc8\xed\xb1\xbf\x90\xdd\x49\xb1\xa7\x55\x6e\xe6\xe3\xf9\xe6\xd8\x50\x05\x42\x6f\x50\x1e\xa8\x72\xf7\xc0\x46\xa8\xcd\x67\xcd\x91\x20\x6a\xad\x68\x85\xbd\x5e\xc8\x1a\xfb\xb5\xee\xcc\xa0\xad\x3b\x53\x57\x77\xef\xf1\xb2\x1a\x4d\xbb\x4a\x4c\x43\xc1\xc3\xf7\x07\x61\x27\xd0\x2a\x30\xd0\x09\x34\x97\x37\x5e\x81\x5e\x42\x77\x85\xe3\xc0\x48\xba\x81\x94\xc7\x34\x22\xce\x76\x04\xa7\x23\x76\x7e\x52\xa0\x4b\x62\x7f\x7e\x31\xb7\xac\x72\x61\xdd\x71\x7b\x33\x64\x3e\x09\x4e\xe4\x9a\xfe\xce\x0b\x6b\x66\xda\xa1\x2e\xc1\x98\x3a\xed\x53\x7d\x8d\xf2\xe2\xb3\xc9\xce\x2b\xfa\x39\x7a\x9f\xf2\x8c\x9e\x0b\xc5\x68\x89\xbe\xee\xfd\x6e\x0a\xf5\xee\xa3\x98\x25\x24\xee\x02\x61\x92\x8b\xa1\xd1\x65\xd1\xcc\x67\xa3\x45\x93\x66\xa4\x5f\x8c\x9a\xcf\x0d\x6c\x3d\x31\xe2\x8b\x68\x62\x2a\xd8\xb6\xa0\x35\xed\x3d\xd9\xbb\xd2\xd9\x25\x48\x5b\x9c\x83\x12\xfe\x27\x24\xcd\x12\x5f\x67\x3b\xe4\xdb\x1f\xdc\x28\x77\xa1\x0d\xbe\xea\x0f\x45\x2d\x3a\x35\x51\xfb\x1b\x96\xb8\xe2\x6b\xd2\x86\xff\x51\x44\xf3\x2b\x88\xe2\xac\x89\xb3\xcc\x2f\x13\xb2\x9b\xd0\x35\x95\x9d\xca\x71\x0e\xf7\x0f\x31\x4d\xb7\x3a\x49\x26\x56\x96\xaa\xef\x87\x1d\x30\x1f\xec\x64\xec\xb2\x96\x55\x52\x58\x76\xd5\xcb\xec\x92\xa7\x57\xde\xc9\xbc\xc3\xf9\xeb\xe2\x39\x94\x76\xa2\x1d\x37\x2d\xe3\xa1\x7e\xf1\xe2\xb9\x5d\xeb\x9a\xc5\x41\xf3\x4f\xfd\xd9\xc3\xd9\xff\x02\x00\x00\xff\xff\x49\x78\x3d\x05\xb8\x25\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x87, 0x8, 0x8b, 0xa5, 0xd, 0x96, 0x6b, 0x2d, 0x19, 0xf5, 0x91, 0x68, 0x62, 0x44, 0x18, 0x70, 0xc1, 0x91, 0x19, 0x3d, 0x49, 0xf4, 0xf9, 0xce, 0x20, 0x1c, 0xb5, 0x5e, 0x23, 0x13, 0xbe, 0x6b}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2b, 0xd7, 0x6b, 0x7d, 0x26, 0xdd, 0xbc, 0x21, 0x74, 0x11, 0x61, 0x22, 0x24, 0x57, 0xb, 0x15, 0x57, 0xe9, 0xa9, 0xb0, 0x1c, 0x68, 0xd5, 0xad, 0xcf, 0x95, 0x26, 0x0, 0x3c, 0x7f, 0x51, 0x85}} return a, nil } diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index 9d1d211..638bc97 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -282,8 +282,8 @@ access(all) fun testBoundaries() { var events = Test.eventsOfType(Type()) Test.assertEqual(2, events.length) var evt = events[1] as! DependencyAudit.BlockBoundariesChanged - Test.assertEqual(1 as UInt64, evt.boundaries!.start) - Test.assertEqual(2 as UInt64, evt.boundaries!.end) + Test.assertEqual(1 as UInt64, evt.start!) + Test.assertEqual(2 as UInt64, evt.end!) commitResult = executeTransaction( "../transactions/dependency-audit/admin/unset_start_end_block.cdc", @@ -295,7 +295,8 @@ access(all) fun testBoundaries() { events = Test.eventsOfType(Type()) Test.assertEqual(3, events.length) evt = events[2] as! DependencyAudit.BlockBoundariesChanged - Test.assertEqual(nil, evt.boundaries) + Test.assertEqual(nil, evt.start) + Test.assertEqual(nil, evt.end) addresses = [fooAccount.address] names = ["Foo"] From 8e4e2662df190b45c88386e3e12ea234bf113ba8 Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Fri, 14 Jun 2024 19:19:30 +0200 Subject: [PATCH 11/16] Added observability to the DependencyAudit contract --- contracts/DependencyAudit.cdc | 34 ++++++++- lib/go/contracts/internal/assets/assets.go | 6 +- lib/go/templates/internal/assets/assets.go | 71 +++++++++++++++++++ scripts/dependency-audit/get_boundaries.cdc | 5 ++ .../get_failure_probability.cdc | 5 ++ .../get_should_panic_on_unstaged.cdc | 5 ++ tests/dependency_audit_tests.cdc | 9 +++ 7 files changed, 131 insertions(+), 4 deletions(-) create mode 100644 scripts/dependency-audit/get_boundaries.cdc create mode 100644 scripts/dependency-audit/get_failure_probability.cdc create mode 100644 scripts/dependency-audit/get_should_panic_on_unstaged.cdc diff --git a/contracts/DependencyAudit.cdc b/contracts/DependencyAudit.cdc index 89a9f58..db46aae 100644 --- a/contracts/DependencyAudit.cdc +++ b/contracts/DependencyAudit.cdc @@ -122,10 +122,42 @@ access(all) contract DependencyAudit { } } - access(self) fun getBoundaries(): Boundaries? { + access(all) fun getBoundaries(): Boundaries? { return self.account.copy(from: /storage/flowDependencyAuditBoundaries) } + access(all) fun getCurrentFailureProbability(): UFix64 { + if !DependencyAudit.panicOnUnstaged { + return 0.0 as UFix64 + } + + let maybeBoundaries = self.getBoundaries() + if maybeBoundaries == nil { + return 1.0 as UFix64 + } + + let boundaries = maybeBoundaries! + + let startBlock: UInt64 = boundaries.start + let endBlock: UInt64 = boundaries.end + let currentBlock: UInt64 = getCurrentBlock().height + + if startBlock >= endBlock { + return 1.0 as UFix64 + } + if currentBlock >= endBlock { + return 1.0 as UFix64 + } + if currentBlock < startBlock { + return 0.0 as UFix64 + } + + let dif = endBlock - startBlock + let currentDif = currentBlock - startBlock + + return UFix64(currentDif) / UFix64(dif) + } + access(self) fun setBoundaries(boundaries: Boundaries) { self.account.load(from: /storage/flowDependencyAuditBoundaries) self.account.save(boundaries, to: /storage/flowDependencyAuditBoundaries) diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 1bfa3e0..3feeb59 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// DependencyAudit.cdc (9.656kB) +// DependencyAudit.cdc (10.527kB) // MigrationContractStaging.cdc (19.438kB) package assets @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\x6d\x6f\x1b\x37\xf2\x7f\xef\x4f\x31\x11\xf0\x07\x24\x54\x59\xa7\xc5\xff\xae\xa8\x60\x25\x70\x9c\x04\x08\xd0\x36\x45\x9d\xde\xbd\x30\x8c\x8a\xda\x1d\x49\x8c\x29\x52\x47\x72\xa5\xe8\x5c\x7f\xf7\x03\x1f\xb4\x4b\x72\xb9\x6b\x07\x6d\x63\x14\x8d\x56\x3b\x9c\x87\xdf\x0c\x87\x33\x43\xd1\xed\x4e\x48\x0d\xa3\x9f\xe8\x5a\x12\x4d\x05\xbf\x12\x5c\x4b\x52\xea\x6b\x4d\xd6\x94\xaf\x47\x67\x67\xe7\xe7\xf0\x71\x43\x15\x94\xfe\x0d\x50\x65\xfe\xab\x15\x56\xb0\x3c\x82\xde\x20\xbc\xfb\xd7\x4f\x50\x12\xc6\x28\x5f\xdb\xe7\x45\xb9\xc1\xf2\xee\x0d\xee\x90\x57\xc8\x4b\x8a\x6a\x01\xab\x9a\x97\x46\x00\xac\xa4\xd8\x02\x69\x9f\xc5\xca\xae\x51\x64\x8b\xc0\xcd\xff\x08\xaf\x40\x51\xbe\xe6\x44\xd7\x12\x81\x72\x27\x83\x89\xc3\x35\xca\x3d\x2d\xf1\xb2\x2c\x45\xcd\x75\xa3\xd1\xd4\xe8\x48\xb4\x25\x43\x5e\x19\x8e\xb8\x47\x79\x04\x2d\x09\x57\xc4\x8a\x29\x9c\x1d\x08\x8b\x2a\x50\xeb\xb2\xaa\x24\x2a\x65\xf4\x33\x52\xa3\x77\x3f\x93\xad\xf9\xfe\x40\x19\x83\x25\x02\x61\xcc\x0a\x08\x49\x80\x23\x56\x15\x56\xa0\x05\xc8\xda\xe8\x69\xb4\x88\x85\x36\x72\x87\x30\xb1\x42\x2c\x01\xd0\x15\x10\x7e\x3c\xa1\x12\x49\x23\x12\x81\x0b\x0d\x4a\x93\x35\x56\x27\x60\xfa\x5c\xd7\xc0\x63\x4d\x7f\xff\x54\xb6\x53\x4b\x10\x6b\x86\x5b\xaa\x81\x70\x83\x2a\xd7\x70\xa0\x7a\x63\x89\x6a\xee\x35\x09\xd9\x4d\x41\x48\xd8\x11\x4e\x4b\x63\xca\xc2\x7e\xfa\xc0\x7f\xf3\xa4\x0b\x13\x3a\x0a\xb5\x41\x4c\xcb\x1a\x8b\x33\x52\x96\xa8\xd4\x98\x30\x36\x69\x43\xac\x81\xe9\x78\x59\x57\x54\xc3\xfd\xd9\x19\x00\x40\x48\xcb\x50\xc3\x65\xb5\xa5\x9c\x2a\x2d\x89\x16\xf2\x5a\x0b\x49\xd6\xf8\x0b\xd1\x9b\x19\x04\x0f\x6e\xa9\xf7\x82\x3a\x2a\x8d\x5b\x20\x27\xbf\xc3\x86\xec\xb1\x91\xab\x9c\x07\xad\xcd\x06\x91\x25\x3a\x50\x14\xec\x29\xb1\x26\x6f\x4f\x60\xb7\xba\x2a\x01\x07\x04\xfc\x5c\xb2\xba\x42\x43\xb4\x75\x21\x1e\xe1\x7c\x34\xde\xbd\x2b\x55\x68\x86\x42\xb6\x9a\xc0\x9e\xc8\xd3\xe2\xaa\x09\xc7\x19\xdc\xfb\xcf\x33\x78\x2d\x04\x7b\xe8\xda\x6f\xd6\x25\xe0\x3a\xda\x2e\xa9\x73\xdb\x89\x2a\x0c\xc1\x71\xe8\xb9\x19\xdc\xb4\xb8\xdf\x4e\xfa\xf8\xfc\x12\x0b\x0d\xd9\x5d\x6d\x08\x5f\x63\x35\x56\x1b\x51\xb3\xca\x12\x3a\x9d\x7a\x99\xbd\x66\xa2\xbc\x7b\x2d\x6a\x5e\x11\x19\x32\xd0\x44\xea\x19\xfc\xf6\x9e\xeb\x7f\xfe\xff\xab\xa9\xd9\xd5\xcd\xd3\xa4\x71\x68\x67\x47\x99\xe0\x32\x79\x08\xab\xd6\x05\x03\x79\x23\xd2\xc9\xbd\x9b\x98\xc8\xef\x32\x1e\xff\x0e\xd9\xb4\x31\x83\x1b\xff\xf9\x76\x0a\x31\x8d\x4d\x1f\x33\xb8\xb9\xd6\x92\xf2\xb5\x7d\x4d\x6a\xbd\x11\x92\xfe\x17\x65\xb8\x70\x02\xf7\x56\x11\xf3\x67\x9c\x5a\x67\x80\x8d\x5d\x03\x73\xb8\xb9\x3d\x8b\x16\xf1\x7a\x1b\x01\x31\xcf\xeb\x5b\x30\xe4\x6b\xbd\x89\x96\x52\x98\xc3\x8b\xe6\x9b\xc3\x86\x32\x04\x0a\x17\x1d\x96\xad\x96\xe6\xcf\x6c\x3f\xaa\xde\xfa\xc0\x85\x79\xba\x65\x8b\x4e\x4c\xdf\x64\x35\xba\xa1\xb7\xb7\xf0\xea\x15\xac\x08\x53\x18\x49\xa0\xab\x50\x40\x2c\xdd\xbe\x87\x39\x50\xf8\x06\xbe\xed\xbc\x31\xfe\xa5\xbc\x8e\xd9\x3d\x9c\x75\xf4\xf7\xd9\x6b\xde\x9b\x42\x0b\xaa\xae\x2d\xcd\x98\x9c\x76\x63\x9f\x11\x53\x7b\x76\xcd\xba\x21\x70\x43\x6f\x27\xa9\x5d\xcf\xbc\xe4\xae\x51\x39\xe7\x17\x64\x67\x1e\xc6\x2d\xc2\x7f\x52\x9d\xc9\x10\x30\x5d\x58\x03\x02\xba\xca\x6b\xe8\xc2\x0a\x5e\xc2\x8b\xc4\x26\x93\xe3\x8a\x2d\x39\x2e\x71\x20\x6d\x8c\x73\x3c\x27\xb1\x5a\xf6\x08\x7a\x42\x0a\xcb\xb3\x6a\x4d\x09\x0c\x8a\xd2\xb0\xd9\xf6\x8f\xea\xf9\xfb\x13\x36\x67\xb8\x9d\xdd\xb9\x3b\x74\x06\xda\xb0\xcf\x1d\xb9\x12\x75\x2d\xb9\x3d\x6b\x45\xad\x5d\xa6\xbf\xa3\x7c\x1d\xf2\xfe\xb8\x41\xde\x56\x0d\x07\x04\x97\x77\xfd\xe9\x2b\x09\xaf\xc4\x96\x1d\x43\xe7\x3d\x4b\x77\x69\xa2\x1a\xfc\xf1\x07\x3c\xb3\x3e\x0b\x52\xf8\xaf\x9e\xd1\x78\x92\x38\xd7\xe9\x98\x8b\x93\xbe\x3c\xe6\x92\x21\xcc\x61\x34\x4a\xd3\x57\x0e\x70\x98\x0f\x85\x5b\xc4\xe1\x53\x26\x8b\x7d\x72\x59\x2c\xcb\xf9\x3e\xdd\x93\x9f\x32\xd1\xdb\xb7\x23\x1b\x33\xfa\x5f\x16\xa5\xe0\x25\xd1\xe3\xd1\x14\x46\xe9\x7e\xfb\x0b\xd9\xe7\x28\x6e\x3e\xdd\x16\x5a\x38\xba\xf1\x24\xd9\x47\x06\xa7\x4f\x7d\xdb\xfb\xfc\xdc\x46\x62\x50\xc1\x2a\x17\x8d\x2b\x42\x99\xab\xfb\x08\x6c\x51\x29\xb2\x46\x57\x2a\x31\x21\xee\x14\x30\x7a\x67\x9e\xa9\x9a\xc1\x02\xa5\x14\x72\xe6\x62\x70\x06\xef\xcc\xd1\x9e\x2f\x14\x67\x70\x59\x7c\x57\x22\xc1\x1f\xfe\xf1\x03\x56\xdf\x92\xef\xf1\x7b\x52\xf4\x65\xe2\x69\x8e\x38\x09\xe6\x45\x63\x87\x15\x3e\x1e\xd9\xb6\x25\x30\xc6\xb5\x2d\x06\xda\xb8\x88\x6f\x4b\xea\x95\x90\x70\x25\x51\x95\xc8\x2b\x01\xf5\x6e\x2d\x49\x65\xca\xc3\xad\x59\xa4\x84\xe0\xcf\xe0\x47\x24\x92\xc3\x56\x48\x9c\xc1\x46\xeb\x9d\x9a\x9d\x9f\x2f\xa9\x2e\xd8\xf1\xfc\xdd\x8f\x1f\xfe\x7d\xf5\xeb\xdb\xeb\xab\xb7\x3f\xbf\xf9\x50\xc0\x9b\xbc\x90\x19\x8c\x86\xbc\xe7\xfc\xe6\x73\xf4\x43\x53\xeb\x64\xf6\x63\xd3\x85\x99\xee\xe3\xf4\x9d\xdb\xfb\x82\xe7\x31\x0f\x4b\xe1\x9d\x14\x4b\xb2\xa4\x8c\x6a\xdb\x16\x34\x19\xc6\xb0\x5d\x12\xc3\x57\xb8\x06\xa3\xac\xa5\x34\xb5\xda\xd2\xd4\x6a\xb0\x41\xba\xde\x68\xdb\x2e\xd9\xb6\xcd\x54\x6a\xf6\xc9\x74\x5e\x21\x49\x23\xec\xfd\x2a\xa0\x8c\x98\x50\x05\x6b\x89\x44\xa3\x34\xd1\xc4\x4d\xe7\x80\xff\xa9\x09\xb3\xdd\x81\x6f\xe6\xc2\x05\x03\x89\xd2\x34\x13\xa1\x75\x31\x11\x61\x07\x72\x54\x21\xad\xd9\xf2\x5d\xe3\xa8\xb2\x9e\x75\xda\xe4\x34\x78\xaa\x08\x9b\xd7\x7b\x65\x30\x54\xaa\x95\xd1\x05\xa6\x5f\x4a\x62\x01\xf1\x8e\x37\x69\x6e\x89\x12\x96\xa8\x0f\x88\xfc\x31\xcf\x74\x75\xc8\xf9\xb8\xd5\xc2\xc0\x82\x84\x2b\x4b\xda\x1f\x37\xbc\x94\x48\x4c\x53\xc5\x28\x47\x22\xd9\x11\x88\x1a\x88\xa0\xdd\x4e\x0a\x52\x6e\x50\xf5\x23\xdd\x39\xa2\xb3\xc7\x92\xeb\x31\xe2\x73\x77\xed\xea\xbb\x34\xe2\x84\x6c\x23\x25\xa0\x4c\x85\xf7\xd1\xf5\xc2\x14\xd0\xe4\x3d\x12\x79\x23\x5c\x42\x57\xc9\x8a\xc8\x37\xb1\xc0\x34\xd6\x3d\x0b\x34\xb1\x16\x06\x5e\x9b\xd1\x4d\x99\x6b\xcb\x9a\xb6\xc7\x82\xb9\xab\xca\xd6\xa8\xdb\x2f\xc7\x93\xb0\x4c\xe8\xac\x98\x03\xa7\x2c\x39\x1c\x9d\xee\x0a\xb5\xa6\x7c\xed\xa6\x08\x94\xef\x09\xa3\x95\xc9\x4a\x50\xe1\x8a\xd4\xcc\xf4\xd0\x1b\xb2\xa7\xa2\x3e\x9d\x09\xb1\xf6\xd0\x94\x11\xf1\xf7\x0f\x91\x05\xcb\x50\xf9\x44\xb9\x67\xb1\xb1\x16\x67\xdb\x55\x9e\x1a\x46\x98\x07\xeb\x0b\xfb\x3e\x5a\x81\xbc\x1a\xa0\x0f\xbd\xc5\xda\x08\x48\x57\xac\x51\x5f\x05\x6f\xc6\x93\xc2\x07\x47\x08\x6b\xab\x1b\xbc\x9c\x37\x72\xbb\xb0\x9a\x93\xf4\x54\xcb\x71\xdc\xa3\x84\x8d\x6d\x01\x60\x89\xa5\x81\xf6\x80\x60\x71\x26\xda\xce\x1b\x42\x78\x0e\xa6\x24\xf4\x3e\xb1\xb3\x88\xaf\xe9\xb2\x08\xa8\x8a\xae\x20\x30\xf2\x79\x60\x7d\x54\xb8\x49\x6e\x3a\x30\x69\xcc\xd4\x74\xc9\xd0\x6d\xeb\xf1\x04\xfe\xcf\xb0\x68\x48\x3d\x19\xaf\xe0\x9b\x90\x53\xb8\x0d\x6c\x91\xe2\x53\xee\xc0\x96\xea\x24\xa4\xb3\xc4\x2a\x23\xe4\x22\x72\x74\xa6\x6b\xb0\x33\x0c\xa5\x65\x5d\x6a\x08\x76\x4a\xeb\xcb\x74\x56\x15\x8d\x34\x7a\xa9\x82\x41\x47\x10\x3a\x9c\xea\x78\x24\x12\x4d\x44\xd2\xb2\xdc\xd5\xef\x36\xdf\xcc\x21\x8e\xf7\xe6\x35\x5a\x38\xc3\xe0\x1e\x6e\x8d\x92\x64\x31\x0b\x6c\x7e\x15\x88\xf7\x08\x5a\x11\x7e\xa2\x52\x94\x62\x77\xbc\x68\xc9\x5f\x8e\x57\x52\x6c\x67\x70\xae\xdc\x88\xee\x7c\xc5\xc4\x21\xa9\xe4\x5a\xea\xc9\xa0\x56\x2a\xd2\xaa\xdd\x06\xa1\x7a\x21\x3a\x91\x5e\x4c\x90\xea\x4f\xea\xd5\xe1\xa9\xc8\x1e\x03\x3d\xa6\xa0\xc5\x5f\x63\x69\xcd\x63\x5b\xff\x4e\xab\x1e\xa2\x89\x69\x34\x63\x05\x89\x4a\xc8\x12\xa1\x24\x26\x1b\x35\xe5\x27\xa9\x2a\xb0\x6f\xb7\x62\x8f\xc1\x74\xb5\x99\xc2\x75\xa6\x41\x50\x51\x5b\xd6\x10\x79\xf4\xd2\x3a\xbb\xcb\xc8\xaa\x8d\xb0\x58\x85\xe8\x98\x27\x55\xf5\xb6\xc3\xda\x68\x63\x84\xb6\x7a\x9c\xea\xc9\xc7\xb4\x48\x55\x30\xd0\xe7\x44\x8c\x49\x66\x02\x98\xee\x43\xd3\x4c\x78\x3a\xa0\x3c\xd0\xa6\xdb\x64\x3e\x3e\x3c\xf3\xab\x6f\x61\xde\xcd\xc6\x0f\x3d\xbd\x9c\x73\x47\x17\x1f\xef\xa6\x18\xa2\xa7\xbb\x2a\x07\x52\x8f\xa8\xaf\x8e\x53\xe1\x14\x19\xdf\xe1\x71\x76\xe2\xd4\xd7\x7e\xc7\x60\x29\xd4\x03\xa3\x1f\xf3\xda\xd5\xa9\xdd\x69\xce\x9e\x48\x4a\x96\x0c\x4f\x51\xb6\x27\xac\x46\x53\x1a\x2f\x82\x6a\x75\xd1\x0b\xdd\xb0\xe0\xcc\x2c\x3d\xc1\xe5\xb1\x91\xce\x3c\x2c\x9a\xbb\x33\xb5\x2f\x1d\xe7\x07\x0f\x93\x7e\x28\xaf\xcd\xb1\xf3\xf6\x74\xf8\x37\xe0\x0d\xf5\x24\x26\x0c\x2c\xc0\x99\x1a\xbf\xbd\x2a\x1b\x82\x31\x12\xfa\x05\x07\xe6\x4e\x62\x26\xd6\x9c\xae\x17\x6e\xe1\xe8\xba\xdb\x4b\x6c\x6b\x65\xaf\x88\xda\xd2\x22\x35\x6a\xf4\xd8\x04\x3a\x2a\x6c\x83\xf4\xee\x75\xb7\xff\x78\xd5\x91\x57\x93\x41\xbf\xf7\x1f\x86\xcb\xcc\xb1\xd5\xf8\x7f\xf8\x06\xa6\x57\x83\xd8\xe3\xf6\x78\x8a\x7d\x6e\xbf\xfa\xdb\xbd\xde\x15\xdc\x99\x52\xa6\x38\x75\x8e\xd2\x2f\xc5\x84\x53\xe6\x11\xe1\x94\xf5\x21\xa2\x51\xe9\xab\xdc\xfd\x94\x3d\x32\xad\xd5\xa8\x6c\x95\xbe\xab\xe5\x4e\x28\x3f\x9b\xf1\xab\xdf\xfb\x4b\xc8\xf2\x74\xeb\xfc\xc8\xed\xb1\xbf\x90\xdd\x49\xb1\xa7\x55\x6e\xe6\xe3\xf9\xe6\xd8\x50\x05\x42\x6f\x50\x1e\xa8\x72\xf7\xc0\x46\xa8\xcd\x67\xcd\x91\x20\x6a\xad\x68\x85\xbd\x5e\xc8\x1a\xfb\xb5\xee\xcc\xa0\xad\x3b\x53\x57\x77\xef\xf1\xb2\x1a\x4d\xbb\x4a\x4c\x43\xc1\xc3\xf7\x07\x61\x27\xd0\x2a\x30\xd0\x09\x34\x97\x37\x5e\x81\x5e\x42\x77\x85\xe3\xc0\x48\xba\x81\x94\xc7\x34\x22\xce\x76\x04\xa7\x23\x76\x7e\x52\xa0\x4b\x62\x7f\x7e\x31\xb7\xac\x72\x61\xdd\x71\x7b\x33\x64\x3e\x09\x4e\xe4\x9a\xfe\xce\x0b\x6b\x66\xda\xa1\x2e\xc1\x98\x3a\xed\x53\x7d\x8d\xf2\xe2\xb3\xc9\xce\x2b\xfa\x39\x7a\x9f\xf2\x8c\x9e\x0b\xc5\x68\x89\xbe\xee\xfd\x6e\x0a\xf5\xee\xa3\x98\x25\x24\xee\x02\x61\x92\x8b\xa1\xd1\x65\xd1\xcc\x67\xa3\x45\x93\x66\xa4\x5f\x8c\x9a\xcf\x0d\x6c\x3d\x31\xe2\x8b\x68\x62\x2a\xd8\xb6\xa0\x35\xed\x3d\xd9\xbb\xd2\xd9\x25\x48\x5b\x9c\x83\x12\xfe\x27\x24\xcd\x12\x5f\x67\x3b\xe4\xdb\x1f\xdc\x28\x77\xa1\x0d\xbe\xea\x0f\x45\x2d\x3a\x35\x51\xfb\x1b\x96\xb8\xe2\x6b\xd2\x86\xff\x51\x44\xf3\x2b\x88\xe2\xac\x89\xb3\xcc\x2f\x13\xb2\x9b\xd0\x35\x95\x9d\xca\x71\x0e\xf7\x0f\x31\x4d\xb7\x3a\x49\x26\x56\x96\xaa\xef\x87\x1d\x30\x1f\xec\x64\xec\xb2\x96\x55\x52\x58\x76\xd5\xcb\xec\x92\xa7\x57\xde\xc9\xbc\xc3\xf9\xeb\xe2\x39\x94\x76\xa2\x1d\x37\x2d\xe3\xa1\x7e\xf1\xe2\xb9\x5d\xeb\x9a\xc5\x41\xf3\x4f\xfd\xd9\xc3\xd9\xff\x02\x00\x00\xff\xff\x49\x78\x3d\x05\xb8\x25\x00\x00" +var _dependencyauditCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x5a\x5f\x6f\x1b\x37\x12\x7f\xf7\xa7\x98\x08\x38\x40\x42\x95\x75\x52\xf4\x5a\x54\xb0\x12\x38\x4e\x02\x04\x68\x9b\xa0\x4e\xee\x1e\x0c\xa3\xa2\x76\x47\x12\x63\x8a\xd4\x91\x5c\x29\x3a\xd7\xdf\xfd\xc0\x3f\xbb\x4b\xee\x72\xd7\xce\xa5\xc9\x4b\x8d\xa2\xd1\xee\x0e\x67\x7e\xf3\x87\xc3\x19\x92\x74\xbb\x13\x52\xc3\xe8\x57\xba\x96\x44\x53\xc1\x2f\x04\xd7\x92\xe4\xfa\x52\x93\x35\xe5\xeb\xd1\xc9\xc9\xe9\x29\xbc\xdf\x50\x05\xb9\xff\x02\x54\x99\xff\x4a\x85\x05\x2c\x8f\xa0\x37\x08\xaf\xff\xf5\x2b\xe4\x84\x31\xca\xd7\xf6\x79\x91\x6f\x30\xbf\x79\x89\x3b\xe4\x05\xf2\x9c\xa2\x5a\xc0\xaa\xe4\xb9\x11\x00\x2b\x29\xb6\x40\x9a\x67\xb1\xb2\x63\x14\xd9\x22\x70\xf3\x3f\xc2\x0b\x50\x94\xaf\x39\xd1\xa5\x44\xa0\xdc\xc9\x60\xe2\x70\x89\x72\x4f\x73\x3c\xcf\x73\x51\x72\x5d\x23\x9a\x1a\x8c\x44\x5b\x32\xe4\x85\xe1\x88\x7b\x94\x47\xd0\x92\x70\x45\xac\x98\xcc\xe9\x81\xb0\x28\x02\x58\xe7\x45\x21\x51\x29\x83\xcf\x48\x8d\xbe\xfd\x46\xb6\xe6\xfd\x81\x32\x06\x4b\x04\xc2\x98\x15\x10\x92\x00\x47\x2c\x0a\x2c\x40\x0b\x90\xa5\xc1\x69\x50\xc4\x42\x6b\xb9\x43\x36\xb1\x42\x2c\x01\xd0\x15\x10\x7e\xac\xac\x12\x49\x23\x12\x81\x0b\x0d\x4a\x93\x35\x16\x95\x61\xfa\x5c\x57\x9b\xc7\xaa\xfe\xe6\xa1\x6c\xa7\x96\x20\x46\x86\x5b\xaa\x81\x70\x63\x55\xae\xe1\x40\xf5\xc6\x12\x95\xdc\x23\x09\xd9\x4d\x41\x48\xd8\x11\x4e\x73\xa3\xca\xc2\xfe\x7a\xcb\x3f\x78\xd2\x85\x09\x1d\x85\xda\x58\x4c\xcb\x12\xb3\x13\x92\xe7\xa8\xd4\x98\x30\x36\x69\x42\xac\x36\xd3\xf1\xbc\x2c\xa8\x86\xdb\x93\x13\x00\x80\x90\x96\xa1\x86\xf3\x62\x4b\x39\x55\x5a\x12\x2d\xe4\xa5\x16\x92\xac\xf1\x1d\xd1\x9b\x19\x04\x0f\x6e\xa8\xf7\x82\x3a\x2a\x8d\x5b\x20\x95\xdf\x61\x43\xf6\x58\xcb\x55\xce\x83\x56\x67\x63\x91\x25\x3a\xa3\x28\xd8\x53\x62\x55\xde\x56\xc6\x6e\xb0\x2a\x01\x07\x04\xfc\x94\xb3\xb2\x40\x43\xb4\x75\x21\x1e\xd9\xf9\x68\xbc\x7b\x93\xab\x50\x0d\x85\x6c\x35\x81\x3d\x91\xd5\xe0\xa2\x0e\xc7\x19\xdc\xfa\xdf\x33\x78\x21\x04\xbb\xeb\xea\x6f\xc6\xb5\x8c\xeb\x68\xbb\xa4\xce\x6d\x15\x55\x18\x82\xe3\xd0\x73\x33\xb8\x6a\xec\x7e\x3d\xe9\xe3\xf3\x2e\x16\x1a\xb2\xbb\xd8\x10\xbe\xc6\x62\xac\x36\xa2\x64\x85\x25\x74\x98\x7a\x99\xbd\x60\x22\xbf\x79\x21\x4a\x5e\x10\x19\x32\xd0\x44\xea\x19\x7c\x78\xc3\xf5\x8f\x3f\x3c\x9f\x9a\x59\x5d\x3f\x4d\x6a\x87\x76\x66\x94\x09\x2e\x93\x87\xb0\x68\x5c\x30\x90\x37\x22\x4c\xee\xdb\xc4\x44\x7e\x97\xf1\xf8\x0f\x48\xa6\x8d\x19\x5c\xf9\xdf\xd7\x53\x88\x69\x6c\xfa\x98\xc1\xd5\xa5\x96\x94\xaf\xed\x67\x52\xea\x8d\x90\xf4\xbf\x28\xc3\x81\x13\xb8\xb5\x40\xcc\x9f\x71\x6a\x99\x30\x6c\xec\x1a\x98\xc3\xd5\xf5\x49\x34\x88\x97\xdb\xc8\x10\xf3\x34\xde\x8c\x21\x5f\xeb\x4d\x34\x94\xc2\x1c\x9e\xd4\x6f\x0e\x1b\xca\x10\x28\x9c\x75\x58\x36\x28\xcd\x9f\x99\x7e\x54\xbd\xf2\x81\x0b\xf3\xf6\x94\xcd\x3a\x31\x7d\x95\x44\x74\x45\xaf\xaf\xe1\xf9\x73\x58\x11\xa6\x30\x92\x40\x57\xa1\x80\x58\xba\xfd\x0e\x73\xa0\xf0\x1d\x3c\xed\x7c\x31\xfe\xa5\xbc\x8c\xd9\xdd\x9d\x74\xf0\xfb\xec\x35\xef\x4d\xa1\x19\x55\x97\x96\x66\x4c\xaa\xd9\xd8\xa7\xc4\xd4\xae\x5d\xb3\x6e\x08\x5c\xd1\xeb\x49\x5b\xaf\x47\x5e\x72\x57\xa9\x94\xf3\x33\xb2\x33\x0f\xe3\xc6\xc2\x5f\x08\x67\x32\x64\x98\xae\x59\x03\x02\xba\x4a\x23\x74\x61\x05\xcf\xe0\x49\x4b\x27\x93\xe3\xb2\x2d\x39\x2e\x71\x20\x6d\x8c\x53\x3c\x27\x31\x2c\xbb\x04\x3d\x20\x85\xa5\x59\x35\xaa\x04\x0a\x45\x69\xd8\x4c\xfb\x7b\x71\xfe\xf1\x80\xc9\x19\x4e\x67\xb7\xee\x0e\xad\x81\x36\xec\x53\x4b\xae\x44\x5d\x4a\x6e\xd7\x5a\x51\x6a\x97\xe9\x6f\x28\x5f\x87\xbc\xdf\x6f\x90\x37\x55\xc3\x01\xc1\xe5\x5d\xbf\xfa\x4a\xc2\x0b\xb1\x65\xc7\xd0\x79\x8f\xda\xb3\xb4\x05\x0d\xfe\xfc\x13\x1e\x59\x9f\x05\x29\xfc\x77\xcf\x68\x3c\x69\x39\xd7\x61\x4c\xc5\x49\x5f\x1e\x73\xc9\x10\xe6\x30\x1a\xb5\xd3\x57\xca\xe0\x30\x1f\x0a\xb7\x88\xc3\xc7\x44\x16\xfb\xe8\xb2\x58\x92\xf3\x6d\x7b\x4e\x7e\x4c\x44\x6f\xdf\x8c\xac\xd5\xe8\xff\x98\xe5\x82\xe7\x44\x8f\x47\x53\x18\xb5\xe7\xdb\x5f\xc8\x3e\x45\x71\xf5\xf1\x3a\xd3\xc2\xd1\x8d\x27\xad\x79\x64\xec\xf4\xb1\x6f\x7a\x9f\x9e\xda\x48\x0c\x2a\x58\xe5\xa2\x71\x45\x28\x73\x75\x1f\x81\x2d\x2a\x45\xd6\xe8\x4a\x25\x26\xc4\x8d\x02\x46\x6f\xcc\x33\x55\x33\x58\xa0\x94\x42\xce\x5c\x0c\xce\xe0\xb5\x59\xda\xd3\x85\xe2\x0c\xce\xb3\xef\x73\x24\xf8\xf3\x3f\x7f\xc6\xe2\x29\xf9\x09\x7f\x22\x59\x5f\x26\x9e\xa6\x88\x5b\xc1\xbc\xa8\xf5\xb0\xc2\xc7\x23\xdb\xb6\x04\xca\xb8\xb6\xc5\x98\x36\x2e\xe2\x9b\x92\x7a\x25\x24\x5c\x48\x54\x39\xf2\x42\x40\xb9\x5b\x4b\x52\x98\xf2\x70\x6b\x06\x29\x21\xf8\x23\xf8\x05\x89\xe4\xb0\x15\x12\x67\xb0\xd1\x7a\xa7\x66\xa7\xa7\x4b\xaa\x33\x76\x3c\x7d\xfd\xcb\xdb\x7f\x5f\xfc\xfe\xea\xf2\xe2\xd5\x6f\x2f\xdf\x66\xf0\x32\x2d\x64\x06\xa3\x21\xef\x39\xbf\xf9\x1c\x7d\x57\xd7\x3a\x89\xf9\x58\x77\x61\xa6\xfb\xa8\xde\xb9\xb9\x2f\x78\xda\xe6\x61\x29\xbc\x93\x62\x49\x96\x94\x51\x6d\xdb\x82\x3a\xc3\x18\xb6\x4b\x62\xf8\x0a\xd7\x60\xe4\xa5\x94\xa6\x56\x5b\x9a\x5a\x0d\x36\x48\xd7\x1b\x6d\xdb\x25\xdb\xb6\x99\x4a\xcd\x3e\x99\xce\x2b\x24\xa9\x85\xbd\x59\x05\x94\x11\x13\xaa\x60\x2d\x91\x68\x94\x26\x9a\xb8\xe9\x1c\xf0\x3f\x25\x61\xb6\x3b\xf0\xcd\x5c\x38\x60\x20\x51\x9a\x66\x22\xd4\x2e\x26\x22\xec\x40\x8e\x2a\xa4\x35\x53\xbe\xab\x1c\x55\xd6\xb3\x0e\x4d\x0a\xc1\x43\x45\xd8\xbc\xde\x2b\x83\xa1\x52\x8d\x8c\xae\x61\xfa\xa5\xb4\x34\x20\xde\xf1\x26\xcd\x2d\x51\xc2\x12\xf5\x01\x91\xdf\xe7\x99\x2e\x86\x94\x8f\x1b\x14\xc6\x2c\x48\xb8\xb2\xa4\xfd\x71\xc3\x73\x89\xc4\x34\x55\x8c\x72\x24\x92\x1d\x81\xa8\x81\x08\xda\xed\xa4\x20\xf9\x06\x55\xbf\xa5\x3b\x4b\x74\x72\x59\x72\x3d\x46\xbc\xee\xae\x5d\x7d\xd7\x8e\x38\x21\x9b\x48\x09\x28\xdb\xc2\xfb\xe8\x7a\xcd\x14\xd0\xa4\x3d\x12\x79\x23\x1c\x42\x57\xad\x11\x91\x6f\x62\x81\xed\x58\xf7\x2c\xd0\xc4\x5a\x18\x78\x4d\x46\x37\x65\xae\x2d\x6b\x9a\x1e\x0b\xe6\xae\x2a\x5b\xa3\x6e\x5e\x8e\x27\x61\x99\xd0\x19\x31\x07\x4e\x59\x6b\x71\x74\xd8\x15\x6a\x4d\xf9\xda\xed\x22\x50\xbe\x27\x8c\x16\x26\x2b\x41\x81\x2b\x52\x32\xd3\x43\x6f\xc8\x9e\x8a\xb2\x5a\x13\x62\xf4\x50\x97\x11\xf1\xfb\xbb\x48\x83\x65\x08\xbe\x05\xee\x51\xac\xac\xb5\xb3\xed\x2a\xab\x86\x11\xe6\xc1\xf8\xcc\x7e\x8f\x46\x20\x2f\x06\xe8\x43\x6f\xb1\x26\x02\xda\x23\xd6\xa8\x2f\x82\x2f\xe3\x49\xe6\x83\x23\x34\x6b\x83\x0d\x9e\xcd\x6b\xb9\x5d\xb3\x9a\x95\xb4\xaa\xe5\x38\xee\x51\xc2\xc6\xb6\x00\xb0\xc4\xdc\x98\xf6\x80\x60\xed\x4c\xb4\xdd\x6f\x08\xcd\x73\x30\x25\xa1\xf7\x89\xdd\x8b\xf8\x96\x2e\x8b\x0c\x55\xd0\x15\x04\x4a\x3e\x0e\xb4\x8f\x0a\x37\xc9\x4d\x07\x26\x8d\x9a\x9a\x2e\x19\xba\x69\x3d\x9e\xc0\x3f\x0c\x8b\x9a\xd4\x93\xf1\x02\xbe\x0b\x39\x85\xd3\xc0\x16\x29\x3e\xe5\x0e\x4c\xa9\x4e\x42\x3a\x69\x69\x65\x84\x9c\x45\x8e\x4e\x74\x0d\x76\x0f\x43\x69\x59\xe6\x1a\x82\x99\xd2\xf8\xb2\xbd\x57\x15\x6d\x69\xf4\x52\x05\x1b\x1d\x41\xe8\x70\xaa\xe3\x2d\x91\x68\x47\xa4\x5d\x96\xbb\xfa\xdd\xe6\x9b\x39\xc4\xf1\x5e\x7f\x46\x6b\xce\x30\xb8\x53\xad\x91\x85\x65\xd2\x6e\x2b\x57\xcc\x02\x95\x9f\x07\xd2\xbd\x01\xad\x04\xbf\xa1\x92\xe5\x62\x77\x3c\x6b\xc8\x9f\x8d\x57\x52\x6c\x67\x70\xaa\xdc\x0e\xdd\xe9\x8a\x89\x43\xab\x90\x6b\xa8\x27\xf7\x80\xf2\x73\xee\x35\xa1\xac\x94\xf8\xae\x59\x99\x0c\xc6\x0f\xaf\xe9\xa7\x1f\x7f\x08\xe0\x3d\xa4\x01\x4a\x75\x38\xf0\x24\x7b\x62\x96\x32\xc7\xb0\x2f\xe0\xbf\x52\x9a\xf5\x10\x9e\x3e\x04\xc2\xdf\x29\x4f\xde\x63\x97\x80\x5d\x08\xe5\xaf\x67\x78\x16\xc2\xfd\xff\xa3\xe7\x21\xe9\x32\xb0\xeb\x4b\x4b\x1e\x01\x79\x9c\xcc\x8b\x1e\x83\x13\x3e\x6e\x46\x4f\xe0\xb4\x7a\x59\xd0\x55\x6a\x9e\x05\x45\x57\x14\xc2\x8d\xd3\xc3\x34\x10\x26\xa1\x68\xfe\x33\x41\x8a\x2f\x9c\xff\x1d\x9e\x8a\xec\x31\xc0\x31\x05\x2d\xbe\x24\xa3\x34\x9a\x96\x3c\xd6\xf5\x6b\x6a\x75\x17\x1d\x4c\x44\x47\x19\x20\x51\x09\x99\x23\xe4\xc4\x2c\xfa\x75\x97\x47\x8a\x02\xec\xd7\xad\xd8\x63\x70\x88\x51\x6f\x76\x77\x36\x5d\xa1\xa0\xb6\x7b\x20\xf2\xe8\xa5\x75\x52\xa9\x91\x55\x1a\x61\x31\x84\xa8\x9a\x26\x45\xf1\xaa\xc3\xda\xa0\x31\x42\x1b\x1c\x55\xdb\x76\x1f\x8a\x36\x04\x63\xfa\x94\x88\x31\x49\x6c\xb4\xb7\x97\x3b\xd3\xb3\x7b\x3a\xa0\x3c\x40\xd3\xdd\xcb\xb9\x7f\x8f\xda\x8f\xbe\x86\x79\xb7\xe8\xb9\xeb\xd9\x32\x71\xee\xe8\xda\xc7\xbb\x29\x36\xd1\xc3\x5d\x95\x32\x52\x8f\xa8\x6f\x6e\xa7\xcc\x01\x19\xdf\xe0\x71\x56\x71\xea\xdb\xe5\x8a\x8d\xa5\x50\x0f\xec\xb0\x9a\xcf\xae\x1d\xec\x6e\x9a\xee\x89\xa4\x64\xc9\xb0\x8a\xb2\x3d\x61\x25\x9a\x0e\x74\x11\x34\x85\x8b\x5e\xd3\x0d\x0b\x4e\x1c\x59\xb5\xec\x72\x5f\xe1\x30\x0f\x7b\xd3\xee\xd6\xf5\xe7\x9e\x9a\x05\x0f\x93\x7e\x53\x5e\x9a\x8c\xff\xaa\x5a\x34\x6a\xe3\x0d\xb5\xfe\x26\x0c\xac\x81\x13\xad\x74\x73\x22\x3d\x64\xc6\x48\xe8\x67\xd4\xa5\x3b\x89\x89\x58\x73\x58\xcf\xdc\xc0\xd1\x65\xb7\x65\xdf\x96\xca\x9e\xc4\x36\x15\x7c\x5b\xa9\xd1\xd0\x79\x46\xa7\x2e\x0a\xd2\xbb\xc7\x6e\xff\xf1\xd0\x91\x17\x93\x41\xbf\xf7\x2f\x86\xcb\xc4\xb2\x55\xfb\x7f\xf8\xa0\xb3\x17\x41\xec\x71\xbb\x3c\xc5\x3e\xb7\xaf\xbe\xba\xd7\xbb\x82\x3b\x87\x01\x6d\x3b\x75\x96\xd2\xcf\xb5\x09\xa7\xcc\x5b\x84\x53\xd6\x67\x11\x8d\x4a\x5f\xa4\x8e\x81\xed\x92\x69\xb5\x46\x65\x9b\xe1\x5d\x29\x77\x42\xf9\x2d\x50\x3f\xfa\x8d\x3f\xeb\xcf\xab\xcb\x1d\xf7\x5c\xd2\xf0\xf7\x1e\x76\x52\xec\x69\x91\xda\x5a\xf5\x7c\x53\x6c\xa8\x02\xa1\x37\x28\x0f\x54\xb9\xeb\x16\x46\xa8\xcd\x67\xf5\x92\x20\x4a\xad\x68\x81\xbd\x5e\x48\x2a\xfb\xad\x8e\xa6\xa1\x29\x26\xdb\xae\xee\x1e\x97\x27\x11\x4d\xbb\x20\xa6\xa1\xe0\xe1\x63\xba\xb0\xe1\x6e\x00\x0c\x34\xdc\xf5\x19\xa9\x07\xd0\x4b\xe8\x4e\x4a\x9d\x31\x5a\x4d\x77\x9b\xc7\x34\x22\x4e\x36\xde\xd5\x12\x3b\xaf\x00\x74\x49\xec\x2d\xa7\xb9\x65\x95\x0a\xeb\x8e\xdb\xeb\xb3\x9c\x4a\x70\x4b\xee\x9e\xd4\x2b\x7b\x7d\x74\x14\x62\x09\x4e\x83\xda\xdb\x41\xbe\x46\x79\xf2\xc9\x64\xe7\x15\xfd\x14\x7d\x6f\xf3\x8c\x9e\x33\xc5\x68\x8e\xbe\xee\xfd\x7e\x0a\xe5\xee\xbd\x98\xb5\x48\xdc\x39\xdd\x24\x15\x43\xa3\xf3\xac\x3e\x06\x89\x06\x4d\xea\x93\xb3\x6c\x54\xff\xae\xcd\xd6\x13\x23\xbe\x88\x26\xa6\x82\x6d\x0a\x5a\xaa\xc0\x74\x0a\x45\x55\x31\xf8\xe2\x1c\x94\xf0\x37\xb5\xea\x21\xbe\xce\x76\x96\x6f\xee\xb5\x29\x77\x6f\x04\x7c\xd5\x1f\x8a\x5a\x74\x6a\xa2\xe6\xaa\x58\x5c\xf1\xd5\x69\xc3\xdf\x3d\xaa\x2f\x1b\x65\x27\x75\x9c\x25\x2e\x00\x25\x27\xa1\xdb\xbb\xe9\x54\x8e\x73\xb8\xbd\x8b\x69\xba\xd5\x49\x6b\x63\xd8\x52\xf5\xdd\x9f\x82\xf9\x60\x27\x63\x87\x35\xac\x5a\x85\x65\x17\x5e\x62\x96\x3c\xbc\xf2\x6e\xf5\xc9\xce\x5f\x67\x8f\x21\xb7\x07\x47\x71\xd3\x32\x1e\xea\x17\xcf\x1e\xdb\xb1\xae\x59\x1c\x54\xbf\xea\xcf\xee\x4e\xfe\x17\x00\x00\xff\xff\x76\x28\xb5\x8b\x1f\x29\x00\x00" func dependencyauditCdcBytes() ([]byte, error) { return bindataRead( @@ -86,7 +86,7 @@ func dependencyauditCdc() (*asset, error) { } info := bindataFileInfo{name: "DependencyAudit.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2b, 0xd7, 0x6b, 0x7d, 0x26, 0xdd, 0xbc, 0x21, 0x74, 0x11, 0x61, 0x22, 0x24, 0x57, 0xb, 0x15, 0x57, 0xe9, 0xa9, 0xb0, 0x1c, 0x68, 0xd5, 0xad, 0xcf, 0x95, 0x26, 0x0, 0x3c, 0x7f, 0x51, 0x85}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0x87, 0xbc, 0xe2, 0xb3, 0x2a, 0xea, 0xb8, 0x68, 0x8d, 0xac, 0x3f, 0xc8, 0x6d, 0xd7, 0x34, 0xf1, 0xd6, 0x7e, 0xf6, 0x1d, 0xae, 0x31, 0x2e, 0x8b, 0xa9, 0xc8, 0x5e, 0x7e, 0xf8, 0x30, 0x27}} return a, nil } diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 587cd57..7b1b153 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -1,6 +1,9 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // scripts/delegatee/check_delegatee_has_valid_updater_cap.cdc (610B) +// scripts/dependency-audit/get_boundaries.cdc (125B) +// scripts/dependency-audit/get_failure_probability.cdc (119B) +// scripts/dependency-audit/get_should_panic_on_unstaged.cdc (105B) // scripts/migration-contract-staging/get_all_staged_contract_code_for_address.cdc (516B) // scripts/migration-contract-staging/get_all_staged_contract_hosts.cdc (455B) // scripts/migration-contract-staging/get_all_staged_contracts.cdc (406B) @@ -133,6 +136,66 @@ func scriptsDelegateeCheck_delegatee_has_valid_updater_capCdc() (*asset, error) return a, nil } +var _scriptsDependencyAuditGet_boundariesCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x64\xca\xb1\x0a\x02\x31\x0c\x06\xe0\x3d\x4f\xf1\x73\x53\xbb\xf8\x00\x2e\xa2\xf8\x22\xa1\x8d\x12\xb8\xcb\x95\x34\x19\x44\x7c\x77\x47\xc1\xdb\x3f\xdd\xc6\xee\x81\xe5\x2e\x43\xac\x8b\xb5\xd7\x35\xbb\xc6\x42\xc4\xad\xc9\x9c\x85\xd7\xb5\xe2\x91\x86\x8d\xd5\x4a\x3d\xe3\x4f\x9e\x6e\x7b\x5a\x67\x57\x99\x17\xbc\x09\x00\x5c\x22\xdd\x0e\xf0\x29\xf1\xb3\xa5\xd2\x87\xbe\x01\x00\x00\xff\xff\x33\x55\xbc\x15\x7d\x00\x00\x00" + +func scriptsDependencyAuditGet_boundariesCdcBytes() ([]byte, error) { + return bindataRead( + _scriptsDependencyAuditGet_boundariesCdc, + "scripts/dependency-audit/get_boundaries.cdc", + ) +} + +func scriptsDependencyAuditGet_boundariesCdc() (*asset, error) { + bytes, err := scriptsDependencyAuditGet_boundariesCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "scripts/dependency-audit/get_boundaries.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x46, 0x93, 0x15, 0xc8, 0x41, 0xb2, 0x55, 0x76, 0xe2, 0x8b, 0xf0, 0x72, 0xb9, 0x31, 0x10, 0x3e, 0x56, 0x28, 0x60, 0x7b, 0x48, 0x5f, 0xeb, 0x1e, 0xa7, 0xb1, 0x8f, 0x6c, 0xbf, 0xb5, 0x1b, 0x87}} + return a, nil +} + +var _scriptsDependencyAuditGet_failure_probabilityCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x5c\xcb\x31\x0a\xc2\x50\x0c\x06\xe0\x3d\xa7\xf8\xe9\xd4\xb7\x38\x89\x83\x9b\x28\x9d\x5d\x3c\x40\xfa\x1a\x25\xf0\x9a\x96\x34\x01\x8b\x78\x77\x77\x0f\xf0\xe9\xbc\x2e\x1e\xe8\x6e\xb2\x8a\x4d\x62\x75\xbf\xe4\xa4\xd1\x11\x71\xad\xb2\x6d\x3d\xb7\x56\xf0\x4c\xc3\xcc\x6a\x7d\x39\xe3\x31\xe8\xfb\x74\xc4\x87\x00\xc0\x25\xd2\x0d\x7f\xfa\xf0\x92\xb8\xa6\xbb\x58\x0c\xac\x2d\x5d\xee\xbe\x8c\x3c\x6a\xd3\xd8\xfb\x42\x5f\xfa\x05\x00\x00\xff\xff\x59\x52\xf9\xce\x77\x00\x00\x00" + +func scriptsDependencyAuditGet_failure_probabilityCdcBytes() ([]byte, error) { + return bindataRead( + _scriptsDependencyAuditGet_failure_probabilityCdc, + "scripts/dependency-audit/get_failure_probability.cdc", + ) +} + +func scriptsDependencyAuditGet_failure_probabilityCdc() (*asset, error) { + bytes, err := scriptsDependencyAuditGet_failure_probabilityCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "scripts/dependency-audit/get_failure_probability.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x25, 0x2c, 0x52, 0x3d, 0x25, 0x8b, 0x9d, 0x24, 0xd8, 0xa5, 0xac, 0x78, 0xf1, 0xdb, 0xf, 0x59, 0xed, 0x43, 0x0, 0x76, 0x28, 0x53, 0x9d, 0x3d, 0xd4, 0xdf, 0x84, 0x10, 0x22, 0xec, 0x8c, 0x83}} + return a, nil +} + +var _scriptsDependencyAuditGet_should_panic_on_unstagedCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x5c\xcb\xb1\x0d\x02\x31\x0c\x05\xd0\xde\x53\x7c\x5d\x75\xd7\x30\x00\x1d\x88\x9e\x8a\x01\xac\xc4\x20\x4b\xc9\x4f\x94\x38\x05\x42\xec\x4e\xcf\x00\xcf\x6b\x6f\x23\xb0\xdd\xac\x1b\xb3\x31\xbd\x2f\x2b\x7b\x6c\x22\x9a\x92\xcd\xb9\x6b\x29\x07\x9e\x8b\xa8\xea\xdc\x8f\x33\xae\xad\x15\x53\xe2\x23\x00\x30\x2c\xd6\x20\xfe\xf8\xa9\x2b\x3d\xdd\xf9\xe0\x0c\x7d\x59\x96\xaf\xfc\x02\x00\x00\xff\xff\x0f\x10\x1a\x81\x69\x00\x00\x00" + +func scriptsDependencyAuditGet_should_panic_on_unstagedCdcBytes() ([]byte, error) { + return bindataRead( + _scriptsDependencyAuditGet_should_panic_on_unstagedCdc, + "scripts/dependency-audit/get_should_panic_on_unstaged.cdc", + ) +} + +func scriptsDependencyAuditGet_should_panic_on_unstagedCdc() (*asset, error) { + bytes, err := scriptsDependencyAuditGet_should_panic_on_unstagedCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "scripts/dependency-audit/get_should_panic_on_unstaged.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdf, 0x3b, 0xc1, 0xae, 0x90, 0xfb, 0xde, 0xf9, 0x34, 0x5b, 0x6c, 0xeb, 0x29, 0x39, 0xf3, 0x78, 0x9f, 0x33, 0x6e, 0xaa, 0xe8, 0xdc, 0xbe, 0xb8, 0xef, 0x75, 0xc2, 0x17, 0x60, 0xba, 0xcd, 0x64}} + return a, nil +} + var _scriptsMigrationContractStagingGet_all_staged_contract_code_for_addressCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x91\xcd\x6a\xeb\x30\x10\x85\xf7\x7a\x8a\x83\xef\xc6\x86\x5c\xe7\x66\xeb\x5d\xc8\xe2\xae\xba\x69\xe8\x03\xa8\xd6\x58\x19\x90\x47\x46\x9a\x84\x96\x90\x77\x2f\xf2\x4f\x0a\x85\xae\x0c\xe3\x99\xef\x3b\x1c\xf1\x38\xc5\xa4\xa8\x5e\xd8\x27\xab\x1c\xe5\x14\x45\x93\xed\xf5\xac\xd6\xb3\xf8\xca\x98\x3f\x2c\x4a\x65\xc4\x51\x50\x1b\x00\xb8\x51\xca\x1c\xa5\x43\x75\x68\x0f\xed\xbf\x6a\x37\x4f\x95\x35\x50\x87\xea\x3f\x29\x8e\x21\xa0\x20\xc8\x61\x23\xe2\x14\x1d\x61\x88\x09\x47\xe7\x12\xe5\xbc\x9e\x39\xca\x7d\xe2\x49\x17\xe0\x2b\xe9\x35\x49\x86\xc5\x68\xa7\x89\xc5\x23\x0e\xb0\x21\xa0\xdf\x30\x7d\xc1\xe4\x85\x5d\x68\x16\x9e\x6f\x24\xb0\x0b\x15\x2c\x8e\x3e\xc8\x21\x0a\xf4\x42\xdf\x77\x62\x47\x6a\x57\x67\xb0\xe2\xaf\xd6\x97\xb4\x24\x7f\xdf\xce\xd5\xce\x34\xc6\xec\xf7\x7b\x6c\xfe\xe5\x74\x0d\x5c\xfc\xab\x71\xc3\x65\x5c\x62\x56\x72\x78\xff\x9c\x77\x97\x0c\x4f\xd9\x1a\xa6\x2d\x4c\x63\xfb\x9e\x72\xae\x6d\x08\x0d\x86\xab\x60\xb4\x2c\xf5\xb6\xba\x96\xd1\x6d\xad\x34\x1d\xee\x67\x4d\x2c\xbe\xc3\xf2\x7d\xe0\x3e\x87\x4e\x73\x34\xfc\xf6\x54\xad\x27\x3d\x86\xb0\xb4\xbe\xfd\x2b\x9d\xd7\x43\x4c\x4f\xcb\x0f\x6d\x63\x1e\xe6\x2b\x00\x00\xff\xff\xa3\x37\xd2\x4e\x04\x02\x00\x00" func scriptsMigrationContractStagingGet_all_staged_contract_code_for_addressCdcBytes() ([]byte, error) { @@ -1085,6 +1148,9 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ "scripts/delegatee/check_delegatee_has_valid_updater_cap.cdc": scriptsDelegateeCheck_delegatee_has_valid_updater_capCdc, + "scripts/dependency-audit/get_boundaries.cdc": scriptsDependencyAuditGet_boundariesCdc, + "scripts/dependency-audit/get_failure_probability.cdc": scriptsDependencyAuditGet_failure_probabilityCdc, + "scripts/dependency-audit/get_should_panic_on_unstaged.cdc": scriptsDependencyAuditGet_should_panic_on_unstagedCdc, "scripts/migration-contract-staging/get_all_staged_contract_code_for_address.cdc": scriptsMigrationContractStagingGet_all_staged_contract_code_for_addressCdc, "scripts/migration-contract-staging/get_all_staged_contract_hosts.cdc": scriptsMigrationContractStagingGet_all_staged_contract_hostsCdc, "scripts/migration-contract-staging/get_all_staged_contracts.cdc": scriptsMigrationContractStagingGet_all_staged_contractsCdc, @@ -1178,6 +1244,11 @@ var _bintree = &bintree{nil, map[string]*bintree{ "delegatee": {nil, map[string]*bintree{ "check_delegatee_has_valid_updater_cap.cdc": {scriptsDelegateeCheck_delegatee_has_valid_updater_capCdc, map[string]*bintree{}}, }}, + "dependency-audit": {nil, map[string]*bintree{ + "get_boundaries.cdc": {scriptsDependencyAuditGet_boundariesCdc, map[string]*bintree{}}, + "get_failure_probability.cdc": {scriptsDependencyAuditGet_failure_probabilityCdc, map[string]*bintree{}}, + "get_should_panic_on_unstaged.cdc": {scriptsDependencyAuditGet_should_panic_on_unstagedCdc, map[string]*bintree{}}, + }}, "migration-contract-staging": {nil, map[string]*bintree{ "get_all_staged_contract_code_for_address.cdc": {scriptsMigrationContractStagingGet_all_staged_contract_code_for_addressCdc, map[string]*bintree{}}, "get_all_staged_contract_hosts.cdc": {scriptsMigrationContractStagingGet_all_staged_contract_hostsCdc, map[string]*bintree{}}, diff --git a/scripts/dependency-audit/get_boundaries.cdc b/scripts/dependency-audit/get_boundaries.cdc new file mode 100644 index 0000000..8740605 --- /dev/null +++ b/scripts/dependency-audit/get_boundaries.cdc @@ -0,0 +1,5 @@ +import "DependencyAudit" + +access(all) fun main(): DependencyAudit.Boundaries? { + return DependencyAudit.getBoundaries() +} diff --git a/scripts/dependency-audit/get_failure_probability.cdc b/scripts/dependency-audit/get_failure_probability.cdc new file mode 100644 index 0000000..06e7fc9 --- /dev/null +++ b/scripts/dependency-audit/get_failure_probability.cdc @@ -0,0 +1,5 @@ +import "DependencyAudit" + +access(all) fun main(): UFix64 { + return DependencyAudit.getCurrentFailureProbability() +} diff --git a/scripts/dependency-audit/get_should_panic_on_unstaged.cdc b/scripts/dependency-audit/get_should_panic_on_unstaged.cdc new file mode 100644 index 0000000..0fdbc46 --- /dev/null +++ b/scripts/dependency-audit/get_should_panic_on_unstaged.cdc @@ -0,0 +1,5 @@ +import "DependencyAudit" + +access(all) fun main(): Boolean { + return DependencyAudit.panicOnUnstaged +} diff --git a/tests/dependency_audit_tests.cdc b/tests/dependency_audit_tests.cdc index 638bc97..bf4134b 100644 --- a/tests/dependency_audit_tests.cdc +++ b/tests/dependency_audit_tests.cdc @@ -317,6 +317,15 @@ access(all) fun testBoundaries() { ) Test.expect(commitResult, Test.beSucceeded()) + let probability = (executeScript( + "../scripts/dependency-audit/get_failure_probability.cdc", + [] + ).returnValue as! UFix64?)! + + // depends on the block, so its better to check the range + Test.expect(probability, Test.beGreaterThan(0.5)) + Test.expect(probability, Test.beLessThan(0.7)) + var i = 0 var failCount = 0 while i < 10 { From 446aeb648c11687bf76c5d24d45445e11511e1f4 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:08:08 -0600 Subject: [PATCH 12/16] update StagingStatusUpdated.code event value to SHA3_256 hash --- contracts/MigrationContractStaging.cdc | 21 +++++++++- .../get_staged_contract_code_hash.cdc | 14 +++++++ tests/migration_contract_staging_tests.cdc | 42 ++++++++++++++++--- 3 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 scripts/migration-contract-staging/get_staged_contract_code_hash.cdc diff --git a/contracts/MigrationContractStaging.cdc b/contracts/MigrationContractStaging.cdc index 106ac3a..406c0be 100644 --- a/contracts/MigrationContractStaging.cdc +++ b/contracts/MigrationContractStaging.cdc @@ -156,6 +156,15 @@ access(all) contract MigrationContractStaging { return self.getStagedContractUpdate(address: address, name: name)?.code } + /// Returns the staged contract code hash for the given address and name or nil if it's not staged + /// + access(all) view fun getStagedContractCodeHash(address: Address, name: String): String? { + if let update = self.getStagedContractUpdate(address: address, name: name) { + return self.getCodeHash(update.code) + } + return nil + } + /// Returns the ContractUpdate struct for the given contract if it's been staged. /// access(all) view fun getStagedContractUpdate(address: Address, name: String): ContractUpdate? { @@ -207,6 +216,14 @@ access(all) contract MigrationContractStaging { ?? panic("Could not derive Capsule StoragePath for given address") } + /* --- Util --- */ + + /// Returns the hash of the given code, hashing with SHA3-256 + /// + access(all) fun getCodeHash(_ code: String): String { + return String.encodeHex(HashAlgorithm.SHA3_256.hash(code.utf8)) + } + /* ------------------------------------------------------------------------------------------------------------ */ /* ------------------------------------------------ Constructs ------------------------------------------------ */ /* ------------------------------------------------------------------------------------------------------------ */ @@ -352,7 +369,7 @@ access(all) contract MigrationContractStaging { emit StagingStatusUpdated( capsuleUUID: self.uuid, address: self.update.address, - code: code, + code: MigrationContractStaging.getCodeHash(code), contract: self.update.name, action: "replace" ) @@ -406,7 +423,7 @@ access(all) contract MigrationContractStaging { emit StagingStatusUpdated( capsuleUUID: capsule.uuid, address: host.address(), - code: code, + code: MigrationContractStaging.getCodeHash(code), contract: name, action: "stage" ) diff --git a/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc b/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc new file mode 100644 index 0000000..b414d44 --- /dev/null +++ b/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc @@ -0,0 +1,14 @@ +import "MigrationContractStaging" + +#interaction ( + version: "1.1.0", + title: "Get Staged Contract Code", + description: "Returns the Cadence code that has been staged for the given contract or nil if it is not yet staged.", + language: "en-US", +) + +/// Returns the code hash as it is staged or nil if it not currently staged. +/// +access(all) fun main(contractAddress: Address, contractName: String): String? { + return MigrationContractStaging.getStagedContractCodeHash(address: contractAddress, name: contractName) +} diff --git a/tests/migration_contract_staging_tests.cdc b/tests/migration_contract_staging_tests.cdc index 7ced197..5133a79 100644 --- a/tests/migration_contract_staging_tests.cdc +++ b/tests/migration_contract_staging_tests.cdc @@ -13,12 +13,16 @@ access(all) let bcAccount = Test.getAccount(0x0000000000000010) // Content of update contracts as hex strings access(all) let fooUpdateCode = "61636365737328616c6c2920636f6e747261637420466f6f207b0a2020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a202020202020202072657475726e2022626172220a202020207d0a7d0a" access(all) let fooUpdateCadence = String.fromUTF8(fooUpdateCode.decodeHex()) ?? panic("Problem decoding fooUpdateCode") +access(all) var fooUpdateHash = "" access(all) let aUpdateCode = "61636365737328616c6c2920636f6e747261637420696e746572666163652041207b0a202020200a2020202061636365737328616c6c29207265736f7572636520696e746572666163652049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e670a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e670a202020207d0a0a2020202061636365737328616c6c29207265736f757263652052203a2049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a20202020202020202020202072657475726e2022666f6f220a20202020202020207d0a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e67207b0a20202020202020202020202072657475726e2022626172220a20202020202020207d0a202020207d0a7d" access(all) let aUpdateCadence = String.fromUTF8(aUpdateCode.decodeHex()) ?? panic("Problem decoding aUpdateCode") +access(all) var aUpdateHash = "" access(all) let bUpdateCode = "696d706f727420412066726f6d203078303030303030303030303030303030390a0a61636365737328616c6c2920636f6e74726163742042203a2041207b0a202020200a2020202061636365737328616c6c29207265736f757263652052203a20412e49207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a20202020202020202020202072657475726e2022666f6f220a20202020202020207d0a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e67207b0a20202020202020202020202072657475726e2022626172220a20202020202020207d0a202020207d0a202020200a2020202061636365737328616c6c292066756e206372656174655228293a204052207b0a202020202020202072657475726e203c2d637265617465205228290a202020207d0a7d" access(all) let bUpdateCadence = String.fromUTF8(bUpdateCode.decodeHex()) ?? panic("Problem decoding bUpdateCode") +access(all) var bUpdateHash = "" access(all) let cUpdateCode = "696d706f727420412066726f6d203078303030303030303030303030303030390a696d706f727420422066726f6d203078303030303030303030303030303031300a0a61636365737328616c6c2920636f6e74726163742043207b0a0a2020202061636365737328616c6c29206c65742053746f72616765506174683a2053746f72616765506174680a2020202061636365737328616c6c29206c6574205075626c6963506174683a205075626c6963506174680a0a2020202061636365737328616c6c29207265736f7572636520696e74657266616365204f757465725075626c6963207b0a202020202020202061636365737328616c6c292066756e20676574466f6f46726f6d2869643a2055496e743634293a20537472696e670a202020202020202061636365737328616c6c292066756e2067657442617246726f6d2869643a2055496e743634293a20537472696e670a202020207d0a0a2020202061636365737328616c6c29207265736f75726365204f75746572203a204f757465725075626c6963207b0a202020202020202061636365737328616c6c29206c657420696e6e65723a20407b55496e7436343a20412e527d0a0a2020202020202020696e69742829207b0a20202020202020202020202073656c662e696e6e6572203c2d207b7d0a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e20676574466f6f46726f6d2869643a2055496e743634293a20537472696e67207b0a20202020202020202020202072657475726e2073656c662e626f72726f775265736f75726365286964293f2e666f6f2829203f3f2070616e696328224e6f207265736f7572636520666f756e64207769746820676976656e20494422290a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e2067657442617246726f6d2869643a2055496e743634293a20537472696e67207b0a20202020202020202020202072657475726e2073656c662e626f72726f775265736f75726365286964293f2e6261722829203f3f2070616e696328224e6f207265736f7572636520666f756e64207769746820676976656e20494422290a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e206164645265736f75726365285f20693a2040412e5229207b0a20202020202020202020202073656c662e696e6e65725b692e757569645d203c2d2120690a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e20626f72726f775265736f75726365285f2069643a2055496e743634293a20267b412e497d3f207b0a20202020202020202020202072657475726e202673656c662e696e6e65725b69645d20617320267b412e497d3f0a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e2072656d6f76655265736f75726365285f2069643a2055496e743634293a2040412e523f207b0a20202020202020202020202072657475726e203c2d2073656c662e696e6e65722e72656d6f7665286b65793a206964290a20202020202020207d0a0a202020202020202064657374726f792829207b0a20202020202020202020202064657374726f792073656c662e696e6e65720a20202020202020207d0a202020207d0a0a20202020696e69742829207b0a202020202020202073656c662e53746f7261676550617468203d202f73746f726167652f4f757465720a202020202020202073656c662e5075626c696350617468203d202f7075626c69632f4f757465725075626c69630a0a202020202020202073656c662e6163636f756e742e736176653c404f757465723e283c2d637265617465204f7574657228292c20746f3a2073656c662e53746f7261676550617468290a202020202020202073656c662e6163636f756e742e6c696e6b3c267b4f757465725075626c69637d3e2873656c662e5075626c6963506174682c207461726765743a2073656c662e53746f7261676550617468290a0a20202020202020206c6574206f75746572203d2073656c662e6163636f756e742e626f72726f773c264f757465723e2866726f6d3a2073656c662e53746f726167655061746829210a20202020202020206f757465722e6164645265736f75726365283c2d20422e637265617465522829290a202020207d0a7d" access(all) let cUpdateCadence = String.fromUTF8(cUpdateCode.decodeHex()) ?? panic("Problem decoding cUpdateCode") +access(all) var cUpdateHash = "" // Block height different to add to the staging cutoff access(all) let blockHeightDelta: UInt64 = 10 @@ -75,6 +79,8 @@ access(all) fun testStageContractSucceeds() { // Take snapshot as the following test case will stage this same transaction via Host Capability snapshotHeight = getCurrentBlockHeight() + fooUpdateHash = MigrationContractStaging.getCodeHash(fooUpdateCadence) + let txResult = executeTransaction( "../transactions/migration-contract-staging/stage_contract.cdc", ["Foo", fooUpdateCadence], @@ -92,7 +98,10 @@ access(all) fun testStageContractSucceeds() { let fooStagedContractCode = getStagedContractCode(contractAddress: fooAccount.address, contractName: "Foo") ?? panic("Problem retrieving result of getStagedContractCode()") + let fooStagedContractHash = getStagedContractCodeHash(contractAddress: fooAccount.address, contractName: "Foo") + ?? panic("Problem retrieving result of getStagedContractCodeHash()") Test.assertEqual(fooUpdateCadence, fooStagedContractCode) + Test.assertEqual(fooUpdateHash, fooStagedContractHash) let allStagedCodeForFooAccount = getAllStagedContractCodeForAddress(contractAddress: fooAccount.address) assertStagedContractCodeEqual({ "Foo": fooUpdateCadence}, allStagedCodeForFooAccount) @@ -102,7 +111,7 @@ access(all) fun testStageContractSucceeds() { let evt = events[0] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateCadence, evt.code) + Test.assertEqual(fooUpdateHash, evt.code) Test.assertEqual("Foo", evt.contract) Test.assertEqual("stage", evt.action) } @@ -153,13 +162,17 @@ access(all) fun testStageContractViaHostCapabilitySucceeds() { let evt = events[0] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateCadence, evt.code) + Test.assertEqual(fooUpdateHash, evt.code) Test.assertEqual("Foo", evt.contract) Test.assertEqual("stage", evt.action) } access(all) fun testStageMultipleContractsSucceeds() { + aUpdateHash = MigrationContractStaging.getCodeHash(aUpdateCadence) + bUpdateHash = MigrationContractStaging.getCodeHash(bUpdateCadence) + cUpdateHash = MigrationContractStaging.getCodeHash(cUpdateCadence) + // Demonstrating staging multiple contracts on the same host & out of dependency order let cStagingTxResult = executeTransaction( "../transactions/migration-contract-staging/stage_contract.cdc", @@ -188,17 +201,17 @@ access(all) fun testStageMultipleContractsSucceeds() { Test.assertEqual(4, events.length) let cEvt = events[1] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(bcAccount.address, cEvt.address) - Test.assertEqual(cUpdateCadence, cEvt.code) + Test.assertEqual(cUpdateHash, cEvt.code) Test.assertEqual("C", cEvt.contract) Test.assertEqual("stage", cEvt.action) let bEvt = events[2] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(bcAccount.address, bEvt.address) - Test.assertEqual(bUpdateCadence, bEvt.code) + Test.assertEqual(bUpdateHash, bEvt.code) Test.assertEqual("B", bEvt.contract) Test.assertEqual("stage", bEvt.action) let aEvt = events[3] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(aAccount.address, aEvt.address) - Test.assertEqual(aUpdateCadence, aEvt.code) + Test.assertEqual(aUpdateHash, aEvt.code) Test.assertEqual("A", aEvt.contract) Test.assertEqual("stage", aEvt.action) @@ -212,13 +225,22 @@ access(all) fun testStageMultipleContractsSucceeds() { let aStagedCode = getStagedContractCode(contractAddress: aAccount.address, contractName: "A") ?? panic("Problem retrieving result of getStagedContractCode()") + let aStagedHash = getStagedContractCodeHash(contractAddress: aAccount.address, contractName: "A") + ?? panic("Problem retrieving result of getStagedContractCodeHash()") let bStagedCode = getStagedContractCode(contractAddress: bcAccount.address, contractName: "B") ?? panic("Problem retrieving result of getStagedContractCode()") + let bStagedHash = getStagedContractCodeHash(contractAddress: bcAccount.address, contractName: "B") + ?? panic("Problem retrieving result of getStagedContractCodeHash()") let cStagedCode = getStagedContractCode(contractAddress: bcAccount.address, contractName: "C") ?? panic("Problem retrieving result of getStagedContractCode()") + let cStagedHash = getStagedContractCodeHash(contractAddress: bcAccount.address, contractName: "C") + ?? panic("Problem retrieving result of getStagedContractCodeHash()") Test.assertEqual(aUpdateCadence, aStagedCode) Test.assertEqual(bUpdateCadence, bStagedCode) Test.assertEqual(cUpdateCadence, cStagedCode) + Test.assertEqual(aUpdateHash, aStagedHash) + Test.assertEqual(bUpdateHash, bStagedHash) + Test.assertEqual(cUpdateHash, cStagedHash) let allStagedCodeForAAccount = getAllStagedContractCodeForAddress(contractAddress: aAccount.address) let allStagedCodeForBCAccount = getAllStagedContractCodeForAddress(contractAddress: bcAccount.address) @@ -238,7 +260,7 @@ access(all) fun testReplaceStagedCodeSucceeds() { Test.assertEqual(5, events.length) let evt = events[4] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateCadence, evt.code) + Test.assertEqual(fooUpdateHash, evt.code) Test.assertEqual("Foo", evt.contract) Test.assertEqual("replace", evt.action) } @@ -410,6 +432,14 @@ access(all) fun getStagedContractCode(contractAddress: Address, contractName: St return stagedContractCodeResult.returnValue as! String? } +access(all) fun getStagedContractCodeHash(contractAddress: Address, contractName: String): String? { + let stagedContractCodeResult = executeScript( + "../scripts/migration-contract-staging/get_staged_contract_code_hash.cdc", + [contractAddress, contractName] + ) + return stagedContractCodeResult.returnValue as! String? +} + access(all) fun getAllStagedContractCodeForAddress(contractAddress: Address): {String: String} { let allStagedContractCodeForAddressResult = executeScript( "../scripts/migration-contract-staging/get_all_staged_contract_code_for_address.cdc", From a7fb774e7f8d7bb9e8960bed1bd5013e43930fcb Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:18:33 -0600 Subject: [PATCH 13/16] update ci.yml to install latest Flow CLI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bba6481..9ad527e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Install Flow CLI - run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.13.1 + run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" - name: Flow CLI Version run: flow version - name: Update PATH From ac65502827ef821d2410b96b2de2b369885e1450 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:18:51 -0600 Subject: [PATCH 14/16] update go assets --- lib/go/contracts/internal/assets/assets.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 1bfa3e0..bf56379 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,7 +1,7 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // DependencyAudit.cdc (9.656kB) -// MigrationContractStaging.cdc (19.438kB) +// MigrationContractStaging.cdc (20.124kB) package assets @@ -90,7 +90,7 @@ func dependencyauditCdc() (*asset, error) { return a, nil } -var _migrationcontractstagingCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x3c\xcb\x72\x5b\xb9\xb1\x7b\x7f\x45\x8b\x0b\x9b\xbc\x45\x51\x93\xa9\x5b\x77\xa1\x32\xe3\x51\x64\xcf\x1d\x2f\xec\x71\x59\x72\xb2\x70\xb9\x26\xd0\x39\x4d\x12\xe5\x43\x80\x05\xe0\x88\xd6\x75\xbc\xcf\x77\xde\x2f\x49\xe1\xfd\x38\x07\x24\xad\x99\x1a\x56\x12\xdb\x24\x80\x7e\xa0\xbb\xd1\xcf\x5c\x5c\x5c\xc0\xed\x86\x4a\x68\x38\x53\x82\x34\x0a\xa8\x04\xca\x14\xb2\x16\x5b\x58\x71\x01\xbd\x44\xa0\x0c\xd4\x06\xe1\x9a\xb4\xc8\x1a\x84\xbf\x2c\x7e\x88\xeb\xb7\x74\x2d\x88\xa2\x9c\x01\x69\x04\x97\xd2\xac\xfc\xb9\xe3\x7b\x60\xa8\xf6\x5c\x7c\x5e\x3c\xb9\xb8\xb8\xd0\xff\x85\xd7\x0c\x76\x02\x77\xc4\xad\xd7\xa7\x2b\x0d\x7b\x4b\x3b\x94\x8a\x33\x9c\xc3\x03\xef\x45\x3c\x7b\x4f\xbb\x0e\xde\xbe\x7a\xf5\x12\x14\x87\x3b\x84\x7e\xd7\x12\x85\xed\x19\xfc\xaa\xd1\x78\xe0\xfd\xb3\xfb\xf0\xa5\xdf\xda\xa2\x3e\xd8\xc0\x4b\xf0\x35\x27\xc3\x9b\x0f\x37\xb7\x20\x15\x59\x63\x01\xc8\x6c\x33\x54\xa6\xac\x90\x1c\xd4\x86\x28\x43\x91\x85\x02\x0d\x61\x1a\x11\xfc\x82\x4d\xaf\x81\x12\x09\x04\x76\x44\x28\xe0\x2b\xbd\xce\xc0\x75\x84\x9f\xef\x69\x8b\x1a\x9c\xc2\xc8\xa5\xc8\x8d\x5b\x3e\x8a\x8a\x05\x74\x69\x96\xfc\x65\x01\x8d\x40\xbd\x9f\xc0\x2f\x5c\x2a\x78\x0a\x92\xdc\x1b\x4c\xb3\x4d\xe7\x1b\x2e\x15\x65\x6b\x20\x4d\xc3\x7b\xa6\xcc\xe6\x1f\x17\xd0\x90\xae\xb3\x40\xae\xdd\xca\xe9\x0c\x76\x44\x4a\xb3\x16\x04\xae\x50\x18\x0e\x29\x6e\xf8\xa3\x61\xcc\x0d\xb9\x01\x1d\x46\xb6\x38\x07\xc2\xda\x84\x0b\x6d\xe0\xac\xe6\x5b\x24\xc8\x30\xcf\x32\xa8\xe5\xcc\xa0\x49\x40\xc3\xea\x10\x94\x20\x4c\x92\x46\xb3\xe0\x0c\x7e\xe6\x02\xb6\x5c\xd8\xfd\x06\x16\x7e\x51\x73\x90\x88\xb0\x51\x6a\x27\x2f\x2f\x2e\xd6\x54\x6d\xfa\xbb\x45\xc3\xb7\x17\x9c\xad\x3a\xbe\xbf\x08\xc4\x5a\x24\xcc\x15\x3f\x21\x4d\x83\x52\x4e\x49\xd7\xcd\x22\xce\x6f\x3c\xb3\x3d\xd5\x37\x8a\xac\x35\xc9\x5f\x9f\x3c\x01\x00\xb8\xb8\x80\x77\x44\x6d\xf4\x06\xa9\x08\x53\xd2\x7d\x6b\xfe\x70\x27\x4a\xec\x56\x33\xe8\x50\x41\x8b\x1d\xdd\x52\x85\xe2\x12\x6e\x94\xa0\x6c\x3d\xbe\xac\x21\x3b\xd9\x77\xa8\x0f\x7e\x27\x70\x45\xbf\x8c\x2d\x37\x78\xea\xd5\x9a\xd3\x37\x8a\x0b\xb2\x36\x3b\xf4\xda\xf0\x8f\xd1\x0d\x57\xed\x96\xb2\x83\x3b\xf4\x15\xbc\x21\xbb\x44\x7e\x49\xdb\x0a\x94\x12\xa5\xbe\x5f\xc2\x80\x08\x41\x1e\xb4\xa0\x1a\x91\x68\xf3\x4b\x96\xe3\x64\xd9\xa5\x9e\x91\xf2\x12\xbe\x5e\xd9\x53\x2f\xe1\xa3\xa5\xef\xd3\xb7\x00\xfe\x76\x83\x70\xd7\xf1\xe6\x33\x6c\x90\xae\x37\x0a\x88\x82\xfd\x86\x36\x1b\x27\x38\x56\x3c\x18\xd7\xff\xe9\x38\x5b\xa3\xd0\xb2\x62\x41\x2c\xe0\xf5\x0a\x18\xed\xe6\xd9\xda\xf0\x33\x50\xd6\xe2\x8a\x32\xaa\xb0\x7b\x80\x9e\x29\xda\x05\xb0\x46\x60\x7b\xc5\x57\x2b\xb8\x27\x5d\x8f\xda\x86\x49\x54\x8b\x21\x45\xf7\x44\x98\xf3\x28\x5b\x5f\x9b\x0d\x97\xf0\xe1\x35\x53\xff\xf3\xdf\x2f\xc2\x61\xef\x51\xf6\x9d\x92\x4e\x9f\xa1\x23\x52\x01\x6e\xfb\xce\xc8\xfd\xd0\xea\xcd\xa1\xe1\xdb\x2d\x55\xfa\xd7\xbb\x07\xb3\x85\xe8\xab\x02\xb2\x52\x28\x80\xaf\x56\xcd\x86\x50\x36\xb2\x73\x70\xcd\x1a\x39\x0d\xee\x95\x83\x16\xc4\xd8\xa2\x74\x09\x95\x1f\x5e\x3c\x09\xc8\xbf\xba\x47\xa6\xd1\xb5\xf8\xec\x37\xa8\x35\xd0\x83\x7e\x26\x9d\x9d\x93\x8e\xa7\x73\x10\xb8\xeb\x48\x83\x2d\x68\x43\xcf\xec\xb7\xe1\xb0\x7f\x5a\x75\xfd\x27\xfc\xff\xbf\xff\x0d\x5f\x27\xe6\xd7\xc9\x1c\x26\x6e\x93\xfe\xab\xdb\x33\xf9\x06\x48\x9a\x0d\xb4\xc8\xb8\xb1\x43\x86\x0d\x66\x37\xdc\xa1\xf9\x82\x7c\x46\x06\xdc\xbe\x23\x85\xf8\x05\x80\x6f\x7f\xbd\x7d\x75\x09\x2f\x39\x4a\x60\x5c\xc1\xba\x27\x82\x30\x85\x18\xad\x70\x61\xb0\xa5\xbe\x6f\x1a\xcc\xd1\x80\xa3\x68\xd8\xe1\xb4\xff\x46\x11\xd5\xcb\x0f\xd6\x82\x4d\xcd\x5a\xfd\x71\x7a\xfb\xe1\xc3\xeb\x97\x5e\x18\xe6\xe1\x47\xe2\x65\xdd\x09\x7d\xfc\x45\x23\xe0\x35\x3c\xfd\xd6\xe2\x37\xfc\xc5\x72\x23\xb3\x09\xb3\x78\x6d\xe9\x85\x1d\x10\x36\x09\x1b\x6d\xfe\xef\x10\xb5\x40\x6d\x77\x1d\x2a\x7d\x8b\xfb\x0d\x0a\x84\x15\xa1\x5d\xa2\xa9\x40\x04\x1a\xc5\xf6\x72\x49\x45\x80\x17\x1f\xfb\x16\x99\xa2\x2b\x8a\x02\xce\xe1\x6a\x71\xf5\xf2\xe5\xfb\x57\x37\x37\x8b\xb7\x57\x6f\x5e\xb9\x53\xdd\x57\x9a\xd7\xfa\x02\xf4\x43\xe3\xb9\x02\x7b\xaa\x36\xbc\x57\xf0\xc3\x97\x0a\xe7\x2b\x02\x7b\xed\x35\x26\xde\x82\x64\x64\x27\x37\x5c\xdd\xd2\x2d\x4a\x45\xb6\xbb\x4b\xf8\xf0\x33\xfd\x92\xde\x45\xd0\xb3\x03\x6b\x0a\x1e\x44\x1b\x75\x88\xe1\x5e\x24\x83\x51\x88\x56\xc4\xbd\x77\x87\x05\xcb\x6e\xf2\x82\xc5\xbb\x36\x18\x95\x39\x30\xdc\x87\x7f\xcd\x9e\x38\x45\xfd\xaf\x91\x4f\x20\xe1\x5d\x7f\xd7\xd1\x06\xde\xa0\xda\xf0\xd6\x1a\x65\x18\xdb\x70\xe1\x0f\x83\xf3\xf3\x73\x8f\x8a\xdf\x66\xbe\x0b\x4b\xb4\x27\x01\xe7\x70\xed\x5d\x09\x7b\x89\xac\x75\xce\x84\x3a\xea\x4f\x68\x3b\x5e\x7b\x54\x17\xc5\x53\xe6\x41\x06\xd0\x16\xac\xf4\x2e\x8c\x44\x71\x6f\x8e\x96\x41\xfa\x9a\xd4\x1f\x4c\x94\xdc\x41\x5f\xc0\xfb\xd4\x51\x31\x3e\x9a\x40\xc9\x7b\xd1\x60\x94\x60\x23\x9f\x51\xc2\x49\xd7\x19\x28\x4e\x54\x25\xd7\x74\x6e\x7b\xa9\xcc\x93\x42\xee\xcd\x8b\x12\xe8\x93\x16\x7f\xb8\xc3\x95\x76\x4b\xac\xcd\xea\x25\xb6\x1a\xa0\xf5\xd2\x48\xe9\xa2\x2d\x32\x4a\x53\xe9\x58\xf5\xcc\xf9\x6d\x9a\xe2\xe9\xec\x12\x7e\x32\xa4\x7f\x0d\x97\x2c\x50\xf5\x82\xc1\xf3\x73\xef\xdf\xd9\x85\xe6\xf7\x6f\xf1\xd6\x7e\xd4\xb7\x36\xe6\xc3\x69\xcd\x8b\xfa\x18\xfd\x38\x7d\xa9\xd9\xab\x9e\x7f\x63\xac\xa6\x76\xf4\xf6\x54\x6e\x02\x69\x83\x1b\xd3\x37\x6b\xf9\x59\x6c\xf5\x37\xb4\xa6\xf7\xc8\x4a\x40\x6a\x60\x20\xcc\x93\x9e\x9d\x42\x25\x90\x4e\x20\x69\x1f\xfc\x13\x94\x3f\xe2\x1a\x88\x71\xfa\xef\x30\xbc\x4d\x8b\xe2\x7d\xd8\x92\xcf\xe6\x76\x9c\x97\xe0\xa9\x68\xed\x6e\x81\x12\x95\x7b\x17\xac\x58\x49\x63\xf7\x1d\xee\x44\x05\x64\x0e\xdf\x5f\xce\x71\x4d\xd5\x25\x3c\xb5\xfe\xb1\x26\x37\x18\xf8\xec\x21\x98\x25\x57\xbc\x13\x98\xfc\xcb\xd8\x38\xec\x56\x0b\x2a\x9d\xde\xbc\x43\x41\x79\x7b\xd5\x28\x7a\x8f\x5a\x44\x26\x5e\x85\x77\xe6\x07\xd8\x10\x09\x26\x0a\x9b\x84\x43\xbe\x85\xbf\x15\x0e\x27\x2c\xed\xe1\x2d\x0a\x7a\x8f\xd7\xf6\x87\x44\x27\xa7\x9e\xe6\xe0\xbb\x69\x82\x16\xee\x9a\xa6\xb3\x79\x60\xca\x5b\x43\x9b\xa6\x70\x16\x80\xd1\x95\x3d\xbd\x70\x05\x3f\xe6\x67\x7c\x82\xe5\x52\xfb\x6f\x05\xd1\x17\x17\xf0\x33\x15\x52\x81\xa2\x5b\x84\x3d\x3e\x13\xa8\xfd\x7c\x4d\x68\x13\x9e\xaa\x95\xe0\x5b\xab\xd7\x5e\x5f\xcf\x81\x32\x89\x42\x39\x87\xca\x7e\x39\x90\xee\x21\x7b\x0b\x1c\x17\xf6\x94\xe9\x67\x7c\x18\xd2\xfc\x51\x1f\xf1\x69\x56\xa2\x1b\xcc\x24\xc3\x3d\x38\x5e\x5a\x29\xd3\xa6\x21\xf3\x5f\xda\x1c\x83\xe4\x56\xb4\x6a\x1b\x84\xac\x7e\xbb\x63\x9c\x1c\x6d\x12\x31\xb2\xf1\x95\x15\x22\xfd\xbf\xb3\x21\x4d\xde\x0c\x6a\xab\x35\x7d\x7e\xee\x20\xcc\x41\xf1\xcb\x54\x08\xf2\x9d\xd6\xc2\x8c\x88\xce\xc5\x05\xfc\x03\x75\xdc\x2c\x31\xd1\xe1\xf4\x0e\xb2\x37\xde\x59\xc4\x73\x68\x36\xd8\x7c\xd6\xb2\x70\x58\xa1\x53\xa9\x31\xfc\x70\x2b\x5f\xb3\x16\xbf\x78\x39\x3d\x22\x49\x67\x8b\x95\x16\x19\xb3\x65\xca\x57\x4e\x1e\x87\x82\x75\x7b\x10\x13\x38\xf7\x26\x24\xd8\x96\xea\x6d\x2d\x73\x4e\xdf\x71\x21\xf8\xfe\xf9\x53\x77\x6d\x7f\x9d\x6a\xe6\x1c\x60\xb6\xfe\xbc\x78\x01\x3b\xc2\x68\x33\x9d\x5c\xf3\xbe\x6b\x8d\x07\x6b\xcf\x01\xfc\x42\xed\x73\xea\xa5\xc9\xf0\xda\xbf\x39\xda\x30\x15\x1e\xf1\x24\x3f\xde\xc1\x5d\x38\x72\xae\x79\x8b\xd3\x9a\xc4\x1c\xba\xf7\x44\x11\x9d\xbf\x53\x24\x3c\xce\xf5\xb5\x0f\xe3\x7f\xfb\xea\x22\x74\x54\x9a\x3c\x47\x14\x1a\x87\xb7\x26\x41\xdf\xe1\x93\x43\xba\x38\xbc\x65\xb2\xdb\x21\x6b\xa7\xb9\xb5\x19\x13\xf9\xc7\x69\x52\x45\x43\x92\xf7\xf5\x3d\x6e\xf9\xbd\x7b\xe9\xca\x98\xd8\x3e\x78\x56\x29\x22\xbf\x90\xdd\x53\xc1\xd9\x16\xd9\x91\xf7\xc3\x45\x46\xc7\x5f\x90\x3f\xed\xcd\xd8\xe5\x2e\x88\xfe\x9c\x25\xc7\x63\x3b\x25\xb5\xd7\x21\x32\x58\x03\xbd\x4e\x54\x4e\x2a\xea\xdd\x93\xea\x43\xe5\x4d\xc9\xb2\x38\xf7\xe8\x03\xe3\x56\x56\x5e\x96\xaa\xa4\x27\x8a\xad\xa3\x3a\xaf\xdc\xc2\x5c\xf6\x4d\x06\x23\x92\xec\xfe\x92\xd1\xfa\x64\x5c\xbf\xdf\x09\x7e\xd7\xe1\x16\x5a\x94\x4a\xf0\x87\xe8\x8c\x78\xfd\x4e\xd4\x57\x87\xe2\x47\x02\x50\x28\x83\xd0\xe4\x1f\xf3\x6c\xd5\x00\xd9\xfc\x0c\x23\xf9\x93\x49\xf9\xad\x8f\x48\x8d\x7e\xe4\xe7\xb9\x98\x34\x84\xf1\xe1\xd7\x5c\x53\x6c\x88\xe1\x02\x93\xff\x45\xa5\x50\x0c\x23\x8c\xf7\xe6\x3a\x64\x4c\x9a\x1c\x4f\x04\x85\xe4\xce\x41\x4d\x5a\xa3\xca\x02\x2d\x2d\xf8\x2e\xa2\x1a\x7a\xd4\x41\x8e\xc2\xf2\xa1\xce\x5b\x3c\xf7\x1b\x54\x1b\x14\x99\x76\x3b\x35\xd2\x26\xb1\x17\x02\x99\xea\x1e\x0c\x93\xee\xf1\x20\x86\x55\xfd\xfc\x1b\xe7\xdd\x29\x38\x7a\x01\xff\xd7\xbf\x34\xb5\xd7\x16\xf6\xdf\x34\xff\xa6\xb3\x85\xe3\xe0\xf3\xe5\xc8\xc6\xb3\x1a\x75\x4a\xe8\x00\x76\xf8\x58\x47\xba\x5c\xd6\xad\x4a\xd8\x3d\xc5\x7d\x42\x5d\x6a\x1e\xae\x72\x5d\x71\x76\xec\x28\xb9\x63\xaa\xfd\x62\xa1\xb1\x23\x94\x49\xfb\x0c\x68\x35\x5b\x91\x4e\xe2\xe3\x09\x73\xae\x3f\xb6\xc6\x5f\xd4\x6c\xa5\x2b\xa0\xea\x99\x4d\x2a\x7d\x07\xd9\x7f\xf7\x07\x9d\x46\x79\x4d\x1a\x9d\xfc\x46\xea\xad\x05\x38\x6c\x7a\x5e\x2c\x52\xf8\x86\x2d\xcc\x65\x3c\xc7\x98\xb2\xb1\xa9\x1e\x93\xb5\x0c\xf1\x62\x9b\x7a\x77\x59\xe4\xe6\xe3\xb3\xe3\x5c\x18\x20\xaf\x03\x04\x39\x5d\x71\x71\x55\xf0\x64\x16\x93\x2d\x27\xca\x40\x3c\xe4\x93\xa6\xef\xe3\xa7\x43\xe4\x95\xcf\x73\x5a\x81\x18\xa7\xce\x5e\x3f\xd9\x1e\x08\xd4\xeb\x64\x1a\x1f\xeb\xe8\xb5\xdb\xbf\xfc\xc1\x17\x1f\x1c\xd5\x0a\x27\xf2\xd3\x40\x2a\xd1\x37\xaa\x16\x9a\x7b\xd1\x37\x29\xc3\x93\x65\xff\x28\xe6\x35\x86\xe4\xeb\x53\xc6\xfc\xee\x88\x35\x30\xeb\x48\xa8\xfa\xfb\xdc\xfa\x51\x1f\x23\x38\xe0\xda\x38\xe7\x1c\x89\xa0\xbf\x01\x76\xb2\x74\xdf\xdc\x7e\xaf\xba\x10\xfc\x94\x91\xbb\x4d\x0b\x34\x23\x3a\x9c\x85\x65\x78\xa2\xee\x5e\x75\x5d\x7e\x91\xda\xff\x94\xfa\x69\xfa\x18\x54\xef\x24\x65\x5d\x7c\xc6\x07\x59\xc5\x1c\x5a\x6a\x5c\x09\x22\xaa\xd8\xd7\xf5\xf4\x91\x94\x18\x0d\x1d\xb7\x43\x5f\xad\x3c\x7a\xb9\xfc\x56\x8a\x61\x6a\xca\x6a\x21\x69\x62\x9c\x52\xe9\x2a\xf6\xd6\xfd\x52\xf8\xfa\xad\xe2\x9a\x7a\x48\xda\x5b\x1b\x60\xba\x4c\xf7\x69\x76\x99\xf8\x2b\xa9\x1f\x19\xc0\x67\x05\x48\x27\xf6\xce\x0b\x5d\x9e\x68\x7e\x22\x89\x99\x05\x2a\xce\xd6\x9f\x88\xf2\x47\x97\xfb\x34\xa9\x13\x58\xfa\x54\xe8\x20\xb8\x1e\x23\xde\x8b\x57\x38\xac\x2a\x4f\x63\x2f\x98\xa9\xb4\x6f\xc9\x6e\xa7\x1d\x35\x2d\x64\xce\xca\x17\xa5\xcd\x91\x9a\xe6\x77\x8b\x96\x51\x90\x91\x3a\xe7\x69\xaa\x52\xd7\x92\xc4\xbe\xe5\x09\x25\x9f\x17\x70\x35\xc7\x15\x17\xdb\xcb\xb0\xdf\xfc\xe9\x92\x05\x17\x36\x12\x2e\x4b\xcd\xbf\xb9\x2a\xcd\x6f\x6f\xaf\xde\xbc\xaa\xd3\x7a\xba\xb1\xbd\x1a\x37\xb6\xc9\xc3\x17\x29\xc9\x95\x2b\xa9\x28\x39\x39\x1c\x60\x9b\x09\x8a\xf6\xff\x1a\xa2\xa6\xee\x35\x70\xa5\xf6\xd9\xe8\x9a\x02\xcd\x85\xe2\x16\xa1\xe9\x6c\x7c\xfd\xf7\x9c\xf9\x36\x7b\x47\xdc\xf5\xa6\x3c\x8a\x84\x5d\x26\x44\xd6\x62\xc4\x98\x03\xb2\x4c\x0f\x57\x9c\x72\x4e\xeb\x77\x66\x0a\x27\x23\x71\xd7\x9f\xf6\xd1\xd1\xdc\x23\xc1\xea\x77\xdf\xfa\x21\xf2\xfb\xf7\x3e\x1e\xec\xef\xf9\x98\xd8\xd5\x01\x3e\xfc\x09\x37\x5c\xa9\x66\xda\xdf\x8f\x1c\x92\x05\xca\x3b\x81\x12\x99\xb2\xee\x9c\x88\xfd\x06\xe4\x60\xf1\xd7\x2a\x23\xa1\xcc\x17\xd8\xa5\x22\x42\xc1\xd3\xa4\x01\xc1\xa4\xf6\xb4\xdb\x4b\xd8\x83\xab\x85\x06\xb0\xb9\x61\x34\xa5\x99\xa4\xa4\xb5\x27\x21\x99\xe7\xba\x18\xec\xe9\xe1\x44\x6a\xc3\xa7\x8e\x4a\x65\x4b\x67\x45\xa9\x75\x0e\x54\xc9\xa2\xb9\xc1\x16\xe2\x4c\x9c\xdf\x70\x26\x69\x8b\x02\x5b\x90\xbd\xb1\x4d\xab\xbe\xab\x5a\x67\xe7\xd3\x56\x18\x9e\x58\x1c\xd3\x74\xe2\xcb\xc1\xb1\x4d\x20\xf6\xa4\xf9\xba\xb2\x21\xd0\x34\x21\x84\xbd\x65\x87\x8d\x5f\xea\xab\xca\xa7\x03\xf1\x57\xb8\x47\xd3\xd2\xe4\x6e\xa3\x0a\x28\xac\x18\x85\xf4\x3a\xd8\x96\xd0\x83\x12\x1f\x41\x03\xdc\x72\x3e\x2d\x71\xb5\xbd\xf0\x42\x11\x04\x28\xbf\x8a\x31\x3c\xea\xc5\xf2\xe8\xf1\x30\xaa\xa6\x25\x63\xe6\xf5\x9d\xa5\xf3\x30\x92\x73\x84\x90\x1e\xf6\x57\xf3\xdc\xbd\x13\x91\x2d\x93\x1b\xff\x9b\xaf\xd8\xba\x0e\xc4\x1d\x91\x6a\x52\x71\x34\x86\x07\x2f\xc3\x9d\x0e\x17\x45\xa5\x59\x8e\xe4\x5c\x94\xbf\xee\xe1\xc6\xb2\xcd\x62\x59\x72\xa3\xe2\xe9\x1f\x34\x2d\xb9\x8b\x56\xb7\x28\xe3\x66\x24\x16\xcc\xb5\xa2\x9a\x2f\x84\x40\xb9\xe3\xac\xb5\x75\xb6\xf6\x40\x0c\xec\x74\xad\x88\x2a\x73\x15\x73\x0f\x6e\x29\x8f\x79\xce\xbf\x14\xaf\x32\x58\xcc\x4e\xd4\xcf\x6d\x79\x5c\xf5\xa4\x34\xc8\xcc\xb5\x72\xa4\x25\xd1\x36\xa7\x26\xee\x68\xd9\x62\x95\x16\x6c\xab\x3a\xee\x6b\xd1\x44\xda\x64\x66\xda\x08\x32\x76\xa8\x5e\xe4\x32\xbb\x41\xab\x73\x2d\x3a\x1c\x3b\xd7\xeb\xc8\x41\xf0\x62\x1a\x9d\x14\x0c\x0d\x4b\x4c\xb0\xb0\xac\x94\x46\x0d\x41\xcb\x61\x1d\xcc\xfc\x98\xe0\x7f\xa2\x42\x7c\x7b\x92\x31\xcf\x27\xab\x64\x34\x90\xb6\xf9\x28\x08\x8b\xa9\x82\x49\xdf\x27\xa0\x88\x58\x47\x21\x59\xa4\x67\x8d\x33\xd9\x3b\xb1\xf6\x98\x91\xec\x2a\x44\xbf\x4d\x3b\xf5\x36\xe6\x9f\xa6\xac\x9b\x2d\x82\x25\x5d\xd8\x57\x30\x24\x1f\x03\xfb\x66\x35\x02\x6f\x50\x50\xd2\xd1\xff\x73\xe5\xa2\x32\xc9\x04\x94\xe9\x48\x44\xab\x93\x0b\x50\xbc\x27\x0f\x3f\x7c\x49\xfb\xaa\x4e\xa7\x34\xba\xb7\x5e\x2e\xc6\xa9\x4d\x49\x4c\x7c\x62\xef\xe1\x4e\x16\x93\x59\xe6\x11\x9f\x4a\xa6\x61\x4e\xa3\x2c\x65\xd4\x54\xfb\x0c\x12\x89\x8b\x9f\x92\x79\xac\x7d\xac\x23\xcd\x67\xe9\x7b\xc5\x4e\x62\x40\x04\x54\x65\x81\x79\xb8\x09\x93\x3f\x84\xda\xf2\x08\x23\x64\x47\x1b\x74\xc9\x9e\x1f\xe7\xd0\xef\x6e\xf9\x65\x75\x71\x87\x6c\x5d\xd6\x77\x35\x94\x9d\x89\x5d\x60\x09\x93\xab\xc9\x28\x6b\x0d\x16\x19\xd7\xc7\x2e\xcb\x1e\x73\xfa\x7d\x0c\xcb\x15\x69\xc1\xd6\x45\xfc\x3b\x22\x4d\xaf\xd2\xa0\x5f\x35\x71\x1e\xbd\xbb\xe0\xfc\x04\x27\xf9\xae\x8d\x61\x91\x1b\x67\xd3\x67\x63\xd2\xf0\xd0\x98\x40\x66\x8b\x84\xa5\x0e\xc7\x86\x48\xf6\x4c\x3f\xcc\xeb\x9e\xcd\x33\x73\xa9\xbf\xa6\xac\xe9\xfa\xd6\xba\x89\x16\x15\x83\x01\x17\xe9\x11\x89\x7b\x7a\x9a\x30\xa4\xf9\xf0\x51\xe5\x8f\xa3\x0c\xce\x72\x47\x1a\x9d\xfb\x50\x61\x8e\x51\xe2\x96\xb6\x1a\x77\x8d\xd6\x58\x6e\xe5\x40\x63\x2e\x2c\xeb\xcd\x71\x87\xb6\x0d\xfd\xa2\x54\xa1\x53\x8b\xfc\xfc\x10\xf8\xe8\xef\x0c\xce\xd3\x9f\xa7\x4f\xe1\xec\xd0\xee\xc2\x7b\x29\x4c\x62\xaa\x82\xb3\x03\x8e\x97\xc3\x3c\x96\x6e\x46\x45\xd9\xb4\x2f\x8c\x66\xb1\x5d\xe7\x97\xe9\x6a\x23\x5a\xd9\xf8\x3d\x6d\x7d\xae\xba\x22\x1f\x5e\x0b\x6c\x11\x2e\x6d\x8e\xf8\xed\xf8\x6b\xfa\x87\xbf\x86\x70\xaa\xaf\xa7\x3f\xbf\x04\xc7\xe9\x88\x97\x77\x83\xe2\x1e\x65\xa5\x59\x92\x98\x36\x47\x14\xcf\xe4\x20\x97\xea\x74\xf8\x66\x63\xd4\x37\x6d\x79\xf4\x6d\x27\x26\x4c\x34\x8c\x04\x49\x56\xb8\xee\x89\x68\xed\x40\x4b\x6c\x27\x5c\x0b\xa2\xfd\x4b\xb7\x4c\xf1\x64\x34\xc6\xc9\xb7\x09\x23\x87\x31\xa6\xc9\x55\xef\xa9\xdc\xd8\x06\xbd\x16\x3b\x5c\xdb\x62\x85\x6b\x3b\xe1\x40\x18\x37\x06\xcd\xb7\x60\x4e\x71\xb1\x5e\xc0\xb6\xef\x14\x95\x34\x76\x9e\x4a\x54\xfd\x0e\x90\x91\x3b\xdb\xcf\x09\x2d\xde\x63\xc7\x77\x18\xbb\x99\x43\x8b\x26\x67\xe6\x99\xba\xc3\x0d\xe9\x56\x33\x1d\x91\x82\xb4\x0c\x08\x53\x34\xef\xde\xbf\xfe\xfb\xd5\xed\x2b\xdb\x8a\xda\x90\x1d\xb9\xa3\x1d\x55\x0f\x86\x1b\xbb\xfe\xae\xa3\x72\xa3\xb7\xb9\x86\x17\x81\x0d\xd2\xfb\xa4\x11\xb6\xee\x46\x87\x86\xd4\xa2\xd3\xb3\xac\xde\x84\x75\x7c\xcf\xd2\x9b\x3b\xdd\x10\x86\xfe\x89\xe0\x4a\x1e\x70\x0b\x0c\x94\x17\xc1\x77\x8c\x09\x2a\x83\x26\x95\xd0\x33\xbd\xa4\x3d\x9b\xcc\x1e\x2b\xcb\x2e\xb3\x75\x62\xd0\xe2\xa8\x37\x5a\x6e\x12\xa0\x12\x76\xe8\xe3\x94\xec\x55\x93\x76\x7e\x68\xb4\xdc\xb5\x80\x5f\x59\x10\xa6\x41\x67\xae\xaf\x33\x04\xb0\xab\xd0\xf8\x34\xd7\x27\xba\x54\x9c\x6f\x34\xb5\xc2\x61\xcb\xc5\x06\xa5\x76\x38\x0a\x16\x5a\x91\xaf\xd8\x83\x4b\x8a\x0c\x9a\x72\xcd\xb4\x15\x0d\x39\x67\xd8\x92\x16\x81\xac\x09\x8d\xad\xcd\x52\x7b\x8a\xfe\xd0\xe4\xe1\x0c\x03\x76\x39\x66\xa1\x05\x16\xae\xa4\xe9\xdb\x95\x88\xf3\x6c\x25\x95\xb0\x45\x81\xdd\x43\x80\x1a\x86\xf7\xb2\x0c\xb3\x86\x32\x07\x32\x70\x1d\x64\x80\x15\x46\xda\xee\x1e\xca\x99\xb5\x74\xb2\xcf\xcd\xb6\x39\x37\x3e\x40\x4d\xa3\xaf\x30\xce\x77\x82\xb6\x78\x3a\xbe\x0e\xe2\xba\xac\x38\xea\x5a\x3f\xdb\x41\xcc\x68\x05\xc9\xd3\xe0\xa2\xb4\x45\xa9\x40\x71\x9c\xc9\x4d\xd7\x95\x01\x77\x1e\xaa\x8d\x2f\x1a\xe4\x36\x06\xcd\x5a\xfa\xe3\x0a\x22\x31\x4a\x99\xdc\xda\x48\x27\x60\xdc\xfa\xf9\x16\xb3\xe6\x68\x36\x23\x14\x75\xfa\x24\x37\x50\xf7\x13\xc7\x6a\xe5\xee\x08\x27\x64\xc6\x59\xe7\xab\xaa\x6a\x9d\x6e\x89\x46\xca\xa1\x25\xd3\x0e\x98\xa6\x63\xf4\x24\xce\xc2\x68\x31\x31\xf4\xc0\xdb\x14\xfa\xd8\x68\xe2\x23\xdd\x87\xa3\xce\x83\xbb\xe4\x72\x4f\xee\x20\x9d\xd8\xfa\x05\x65\xfb\x97\x85\xd0\xd3\x76\x3e\x58\x17\x72\x08\x29\x16\xa3\xcd\x60\x10\x1a\xc2\x8c\xe6\x8f\xfc\xe6\xdb\xc2\xd2\xa3\x86\x2d\x62\x90\xb6\x89\xf9\xc1\xaf\x6c\xc5\xa3\xdf\x0d\x33\xd1\x78\xd2\xab\x61\x56\x46\x9b\x61\xa6\x92\x77\x49\x2c\x33\x32\xbc\x73\xdc\xf2\xd8\x43\xbf\x96\xd1\xaf\xcb\xca\x9f\x34\xc5\x58\x8e\x30\x1e\xd5\x1c\x33\x58\x50\xb6\xb3\x11\xe5\xe0\xc4\x41\xa1\x93\x2c\x8d\x43\x2e\xb6\x8e\xd9\x2f\xce\xe0\xaf\xd5\x26\xb2\xcb\xd1\x08\x61\xf2\x8b\x3d\xc9\xe7\x5a\xf5\x71\x5c\xc0\xda\x3c\x8b\x66\x68\x82\xf9\xf6\xaa\x8c\x2f\x87\x4c\x57\x2a\xfc\x23\xf3\x51\xd5\x78\x29\xbb\x4a\x37\x3e\x65\xa1\xe5\xca\x75\xda\x01\xb0\x74\x9b\x6b\x56\xc6\x4e\xa2\x7d\x67\x21\xe6\xa4\x6b\xb6\xf9\xe5\x22\xd8\x92\xd5\x5c\x7a\x3d\x85\xfe\xa8\xd0\x72\x59\xab\x9d\x0c\x6d\x4f\xc4\xc8\xff\x6d\x68\x01\x06\xf9\xfe\x22\x78\x87\xcc\x0e\x84\xfb\x3f\x7d\xfc\xaf\x44\x26\x19\xf1\xab\x63\x35\x36\x10\xf8\x18\x6e\x9d\xc5\x62\xc0\xef\x25\xfd\xb8\x09\x8c\x36\xf0\x35\x53\x28\x18\xe9\x8e\x8f\xfa\xa5\xb6\x30\x4e\xd3\x79\xd7\x29\x58\xb4\xe2\x41\xfc\xc5\x4f\xf9\xe5\x2f\xf2\x02\xfe\xe1\xbc\x25\xe7\xeb\xba\x84\xac\xad\x53\xb7\xb0\x23\x6a\xe3\xfd\xdf\x41\x60\xf7\x4c\x96\x23\x73\xa3\x3e\x9e\xf5\xb7\xe2\x18\x5c\xde\xb4\x7f\x7c\x8c\xea\x12\x7e\x1a\x3a\x86\x59\x87\x4b\xad\xa7\xa5\xde\xb9\x3e\x3e\x64\x53\x8c\xec\xb8\x38\xd1\xe3\xeb\x1d\x41\xfb\xe7\x1f\xd2\xd5\x3d\xf2\xb2\xd7\x90\xcf\xcf\xaa\x3c\xe6\x27\xf5\x77\x8f\x76\x77\x43\x3e\x87\x98\x44\x71\x87\x27\x24\x2c\x33\x9e\xc9\xf1\x69\x16\x2d\x70\x22\xf1\x45\x4d\x07\xbe\x73\xda\x6d\x07\x7e\x1b\xdb\x5d\x44\x6c\xcf\x0d\x10\x5d\x0e\x71\xc5\x7b\xa6\xe3\x9e\x4e\x72\xb7\x4f\x8e\x0c\xa6\x64\xf3\x19\x69\x55\xce\x35\x0a\x1d\x91\xce\xc3\x23\x01\xb5\x26\xc7\x61\xf3\xf9\xc9\x83\x4e\xbe\xed\x79\x7c\xc2\xe9\x2c\x1c\x78\x64\xb3\xc5\x7b\x4a\xd4\x65\x0e\x76\x96\x3c\x4d\xee\xea\x0c\x77\x7c\x9e\xe0\x18\xbb\xec\x55\x98\x31\x12\xc6\x87\x2d\x58\x02\xb7\x69\x30\x9b\x36\x24\xc6\x00\xea\xc8\x2c\xc7\x99\x4b\xb0\x6b\xbf\xe5\x87\x31\xdf\xba\x6c\x3c\x74\xb4\x9a\x09\x3e\x5f\xc7\x29\xec\x2d\x14\x91\x85\x1b\xcc\xf0\x5a\x7c\x7c\xc6\x23\x11\xf8\x97\x76\xaf\xcc\xa2\xec\x60\x62\x0f\xd8\xca\x03\x36\xb2\xa6\x14\x31\x83\x65\xce\x34\x80\x13\xf5\xb0\x97\x61\xa2\xc4\x4a\xd7\x6e\x94\xe4\x1a\xc9\xdf\x29\xc3\x7f\x76\x83\xae\x9f\x92\xf4\xe9\x95\x8e\x93\xf6\xf9\x4f\xa7\xf7\xe7\x0e\x47\x7d\x52\x33\x9b\x2d\x75\x1c\xca\x0c\x5d\x21\x3c\xc9\x49\x75\x09\x2b\xda\xf0\x4d\xc2\x20\x45\x2b\x6f\x3a\x83\x25\x4c\x7e\x9b\xe4\x3f\x16\x03\xf3\xb0\xcc\xfa\xcc\x06\x1e\x48\xda\x78\x36\xa9\xf9\x37\xfa\xcc\x49\xa5\xef\x2d\xfb\xda\x73\x7a\x58\xf9\xca\x1d\xb8\xd9\xa1\x66\x36\xe3\x5a\x24\x48\x4f\x8a\xf1\xbd\xf2\xff\xac\x06\x96\xb1\x83\xb1\x46\x41\x12\x0e\x86\x1c\x7d\xd9\x39\xa8\xb9\x59\xdb\xef\x67\xaf\x32\x2a\xbe\xa7\x13\xf0\x64\xf6\x8c\x99\xa9\xbc\x71\x77\x6c\xc2\x27\x6b\x02\x0f\x55\x86\xba\x03\xaf\x97\xe7\xeb\xcb\x39\x60\xeb\xab\x18\xbe\x4d\xdd\xb0\xe3\x28\xf7\xbd\x8d\xfb\xf6\xe4\x3f\x01\x00\x00\xff\xff\xac\x90\x9d\x2a\xee\x4b\x00\x00" +var _migrationcontractstagingCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x3c\x5d\x73\x13\x3b\x96\xef\xf9\x15\x27\x7e\x00\x7b\xcb\x71\x18\x76\x67\x6a\x2b\x85\x87\x9b\x09\xdc\x85\x07\xb8\x14\x09\x33\x0f\x14\xc5\x28\xdd\xc7\x6e\x15\x6d\xc9\x25\xa9\x63\xb2\x0c\xef\xf3\x3b\xf7\x97\x6c\xe9\xb3\x25\x75\xcb\x36\xe1\xd6\x75\xed\x0e\x60\xeb\xe3\x7c\x7f\xe9\x9c\x7b\x7e\x7e\x0e\x37\x0d\x95\x50\x71\xa6\x04\xa9\x14\x50\x09\x94\x29\x64\x35\xd6\xb0\xe2\x02\x3a\x89\x40\x19\xa8\x06\xe1\x8a\xd4\xc8\x2a\x84\x3f\x2d\x9e\xf4\xeb\x37\x74\x2d\x88\xa2\x9c\x01\xa9\x04\x97\xd2\xac\xfc\xb5\xe5\x3b\x60\xa8\x76\x5c\x7c\x59\x9c\x9c\x9f\x9f\xeb\xff\x87\xd7\x0c\xb6\x02\xb7\xc4\xad\xd7\xa7\x2b\x7d\xf7\x86\xb6\x28\x15\x67\x38\x87\x7b\xde\x89\xfe\xec\x1d\x6d\x5b\x78\xfb\xf2\xe5\x0b\x50\x1c\x6e\x11\xba\x6d\x4d\x14\xd6\xa7\xf0\x9b\x06\xe3\x9e\x77\x8f\xef\xc2\x97\x7e\x6b\x8d\xfa\x60\x73\x5f\x04\xaf\x39\x19\xde\x7c\xb8\xbe\x01\xa9\xc8\x1a\xb3\x8b\xcc\x36\x83\x65\x4c\x0a\xc9\x41\x35\x44\x19\x8c\xec\x2d\x50\x11\xa6\x01\xc1\xaf\x58\x75\xfa\x52\x22\x81\xc0\x96\x08\x05\x7c\xa5\xd7\x99\x7b\x1d\xe2\x67\x3b\x5a\xa3\xbe\x4e\x61\x4f\xa5\x9e\x1a\x37\x7c\x14\x14\x7b\xd1\x85\x59\xf2\xa7\x05\x54\x02\xf5\x7e\x02\xaf\xb8\x54\xf0\x08\x24\xb9\x33\x90\x26\x9b\xce\x1a\x2e\x15\x65\x6b\x20\x55\xc5\x3b\xa6\xcc\xe6\xa7\x0b\xa8\x48\xdb\xda\x4b\xae\xdc\xca\xe9\x0c\xb6\x44\x4a\xb3\x16\x04\xae\x50\x18\x0a\x29\x6e\xe8\xa3\xef\x98\x1b\x74\x03\x38\x8c\x6c\x70\x0e\x84\xd5\x11\x15\xea\x40\x59\x4d\xb7\x1e\x21\x43\x3c\x4b\xa0\x9a\x33\x03\x26\x01\x7d\x57\x8b\xa0\x04\x61\x92\x54\x9a\x04\xa7\xf0\x2b\x17\xb0\xe1\xc2\xee\x37\x77\xe1\x57\x35\x07\x89\x08\x8d\x52\x5b\x79\x71\x7e\xbe\xa6\xaa\xe9\x6e\x17\x15\xdf\x9c\x73\xb6\x6a\xf9\xee\x3c\x20\x6b\x81\x30\x2c\x3e\x21\x55\x85\x52\x4e\x49\xdb\xce\x7a\x98\xdf\x78\x62\x7b\xac\xaf\x15\x59\x6b\x94\xbf\x9d\x9c\x00\x00\x9c\x9f\xc3\x3b\xa2\x1a\xbd\x41\x2a\xc2\x94\x74\xdf\x9a\x3f\xdc\x89\x12\xdb\xd5\x0c\x5a\x54\x50\x63\x4b\x37\x54\xa1\xb8\x80\x6b\x25\x28\x5b\x8f\x2f\xab\xc8\x56\x76\x2d\xea\x83\xdf\x09\x5c\xd1\xaf\x63\xcb\x0d\x9c\x7a\xb5\xa6\xf4\xb5\xe2\x82\xac\xcd\x0e\xbd\x36\xfc\x63\x74\xc3\x65\xbd\xa1\x6c\xef\x0e\xcd\x82\x37\x64\x1b\xc9\x2f\xa9\x6b\x81\x52\xa2\xd4\xfc\x25\x0c\x88\x10\xe4\x5e\x0b\xaa\x11\x89\x3a\x65\xb2\x1c\x47\xcb\x2e\xf5\x84\x94\x17\xf0\xed\xd2\x9e\x7a\x01\x1f\x2d\x7e\x9f\xbe\x87\xeb\x6f\x1a\x84\xdb\x96\x57\x5f\xa0\x41\xba\x6e\x14\x10\x05\xbb\x86\x56\x8d\x13\x1c\x2b\x1e\x8c\xeb\xff\x6b\x39\x5b\xa3\xd0\xb2\x62\xaf\x58\xc0\xeb\x15\x30\xda\xce\x93\xb5\xe1\x67\xa0\xac\xc6\x15\x65\x54\x61\x7b\x0f\x1d\x53\xb4\x0d\xd7\x1a\x81\xed\x14\x5f\xad\xe0\x8e\xb4\x1d\x6a\x1b\x26\x51\x2d\x86\x18\xdd\x11\x61\xce\xa3\x6c\x7d\x65\x36\x5c\xc0\x87\xd7\x4c\xfd\xe5\xbf\x9e\x87\xc3\xde\xa3\xec\x5a\x25\x9d\x3e\x43\x4b\xa4\x02\xdc\x74\xad\x91\xfb\xa1\xd5\x9b\x43\xc5\x37\x1b\xaa\xf4\xaf\xb7\xf7\x66\x0b\xd1\xac\x02\xb2\x52\x28\x80\xaf\x56\x55\x43\x28\x1b\xd9\x39\x60\xb3\x06\x4e\x5f\xf7\xd2\xdd\x16\xc4\xd8\x82\x74\x01\x85\x1f\x9e\x9f\x04\xe0\x5f\xde\x21\xd3\xe0\x5a\x78\x76\x0d\x6a\x0d\xf4\x57\x3f\x96\xce\xce\x49\x47\xd3\x39\x08\xdc\xb6\xa4\xc2\x1a\xb4\xa1\x67\xf6\xdb\x70\xd8\x3f\xad\xba\xfe\x13\xfe\xef\xdf\xff\x86\x6f\x13\xf3\xeb\x64\x0e\x13\xb7\x49\xff\xd5\xed\x99\x7c\x07\x24\x55\x03\x35\x32\x6e\xec\x90\x21\x83\xd9\x0d\xb7\x68\xbe\x20\x5f\x90\x01\xb7\x7e\x24\x13\xbf\x70\xe1\xdb\xdf\x6e\x5e\x5e\xc0\x0b\x8e\x12\x18\x57\xb0\xee\x88\x20\x4c\x21\xf6\x56\x38\x33\xd8\x52\xf3\x9b\x06\x73\x34\xa0\x28\x1a\x72\x38\xed\xbf\x56\x44\x75\xf2\x83\xb5\x60\x53\xb3\x56\x7f\x9c\xde\x7e\xf8\xf0\xfa\x85\x17\x86\x79\xf8\x91\x78\x59\x77\x42\xdf\xff\xa2\x01\xf0\x1a\x1e\x7f\x6b\xe1\x1b\xfe\x62\xa9\x91\xd8\x84\x59\xcf\xb6\x98\x61\x7b\x84\x4d\x42\xa3\xcd\xff\x2d\xa2\x16\xa8\xcd\xb6\x45\xa5\xb9\xb8\x6b\x50\x20\xac\x08\x6d\x23\x4d\x05\x22\xd0\x28\xb6\x97\x4b\x2a\xc2\x7d\xbd\xb3\xaf\x91\x29\xba\xa2\x28\xe0\x0c\x2e\x17\x97\x2f\x5e\xbc\x7f\x79\x7d\xbd\x78\x7b\xf9\xe6\xa5\x3b\xd5\x7d\xa5\x69\xad\x19\xa0\x1d\x8d\xa7\x0a\xec\xa8\x6a\x78\xa7\xe0\xc9\xd7\x02\xe5\x0b\x02\x7b\xe5\x35\xa6\xe7\x82\x64\x64\x2b\x1b\xae\x6e\xe8\x06\xa5\x22\x9b\xed\x05\x7c\xf8\x95\x7e\x8d\x79\x11\xf4\x6c\xcf\x9a\x8c\x06\xbd\x8d\xda\x47\x70\x2f\x92\xc1\x28\xf4\x56\xc4\xf9\xbb\xfd\x82\x65\x37\x79\xc1\xe2\x6d\x1d\x8c\xca\x1c\x18\xee\xc2\xbf\x66\x27\x4e\x51\xff\x63\xe4\x13\x50\x78\xd7\xdd\xb6\xb4\x82\x37\xa8\x1a\x5e\x5b\xa3\x0c\x63\x1b\xce\xfd\x61\x70\x76\x76\xe6\x41\xf1\xdb\xcc\x77\x61\x89\x8e\x24\xe0\x0c\xae\x7c\x28\x61\x99\xc8\x6a\x17\x4c\xa8\x83\xf1\x84\xb6\xe3\x25\xa7\xba\xc8\x5c\x99\xbf\x32\x5c\x6d\xaf\x95\x3e\x84\x91\x28\xee\xcc\xd1\x32\x48\x5f\x15\xc7\x83\x91\x92\xbb\xdb\x17\xf0\x3e\x0e\x54\x4c\x8c\x26\x50\xf2\x4e\x54\xd8\x4b\xb0\x91\xcf\x5e\xc2\x49\xdb\x9a\x5b\x9c\xa8\x4a\xae\xf1\xdc\x74\x52\x19\x97\x42\xee\x8c\x47\x09\xf8\x49\x0b\x3f\xdc\xe2\x4a\x87\x25\xd6\x66\x75\x12\x6b\x7d\xa1\x8d\xd2\x48\x1e\xa2\x2d\x12\x4c\x63\xe9\x58\x75\xcc\xc5\x6d\x1a\xe3\xe9\xec\x02\x7e\x31\xa8\x7f\x0b\x4c\x16\xa8\x3a\xc1\xe0\xd9\x99\x8f\xef\xec\x42\xf3\xfb\xf7\x9e\x6b\x4f\x35\xd7\xc6\x62\x38\xad\x79\xbd\x3e\xf6\x71\x9c\x66\x6a\xe2\xd5\xd3\x6f\x8c\xd5\xd4\x81\xde\x8e\xca\x26\xa0\x36\xe0\x98\xe6\xac\xa5\x67\xb6\xd5\x73\x68\x4d\xef\x90\xe5\x17\xa9\x81\x81\x30\x2e\x3d\x39\x85\x4a\x20\xad\x40\x52\xdf\x7b\x17\x94\x3a\x71\x7d\x89\x09\xfa\x6f\x31\xf8\xa6\x45\xe6\x1f\x36\xe4\x8b\xe1\x8e\x8b\x12\x3c\x16\xb5\xdd\x2d\x50\xa2\x72\x7e\xc1\x8a\x95\x34\x76\xdf\xc1\x4e\x54\x00\x66\x3f\xff\x52\x8a\x6b\xac\x2e\xe0\x91\x8d\x8f\x35\xba\xc1\xc0\x27\x8e\x60\x16\xb1\x78\x2b\x30\xfa\x97\xb1\x71\xd8\xae\x16\x54\x3a\xbd\x79\x87\x82\xf2\xfa\xb2\x52\xf4\x0e\xb5\x88\x4c\xbc\x0a\x6f\xcd\x0f\xd0\x10\x09\x26\x0b\x9b\x84\x43\xbe\x87\xbf\x65\x01\x27\x2c\xed\xe1\x35\x0a\x7a\x87\x57\xf6\x87\x48\x27\xa7\x1e\xe7\x10\xbb\x69\x84\x16\x8e\x4d\xd3\xd9\x3c\x10\xe5\xad\xc1\x4d\x63\x38\x0b\x97\xd1\x95\x3d\x3d\x0b\x05\x3f\xa6\x67\x7c\x82\xe5\x52\xc7\x6f\x19\xd2\xe7\xe7\xf0\x2b\x15\x52\x81\xa2\x1b\x84\x1d\x3e\x16\xa8\xe3\x7c\x8d\x68\x15\x5c\xd5\x4a\xf0\x8d\xd5\x6b\xaf\xaf\x67\x40\x99\x44\xa1\x5c\x40\x65\xbf\x1c\x48\xf7\x90\xbc\x19\x8c\x0b\x7b\xca\xf4\x0b\xde\x0f\x71\xfe\xa8\x8f\xf8\x34\xcb\xc1\x0d\x66\x92\xe1\x0e\x1c\x2d\xad\x94\x69\xd3\x90\xc4\x2f\x75\x0a\x41\xc4\x15\xad\xda\x06\x20\xab\xdf\xee\x18\x27\x47\x4d\x24\x46\x36\xbf\xb2\x42\xa4\xff\x77\x36\xc4\xc9\x9b\x41\x6d\xb5\xa6\xcf\xce\xdc\x0d\x73\x50\xfc\x22\x16\x82\x74\xa7\xb5\x30\x23\xa2\x73\x7e\x0e\xff\x40\x9d\x37\x4b\x8c\x74\x38\xe6\x41\xe2\xe3\x9d\x45\x3c\x83\xaa\xc1\xea\x8b\x96\x85\xfd\x0a\x1d\x4b\x8d\xa1\x87\x5b\xf9\x9a\xd5\xf8\xd5\xcb\xe9\x01\x49\x3a\x5d\xac\xb4\xc8\x98\x2d\x53\xbe\x72\xf2\x38\x14\xac\x9b\xbd\x90\xc0\x99\x37\x21\xc1\xb6\x14\xb9\xb5\x4c\x29\x7d\xcb\x85\xe0\xbb\x67\x8f\x1c\xdb\xfe\x3a\xd5\xc4\xd9\x43\x6c\xfd\x79\xfe\x1c\xb6\x84\xd1\x6a\x3a\xb9\xe2\x5d\x5b\x9b\x08\xd6\x9e\x03\xf8\x95\x5a\x77\xea\xa5\xc9\xd0\xda\xfb\x1c\x6d\x98\xb2\x88\x78\x92\x1e\xef\xee\x5d\x38\x74\xae\x78\x8d\xd3\x92\xc4\xec\xe3\x7b\xa4\x88\x2e\xde\xc9\x0a\x1e\x67\x9a\xed\xc3\xfc\xdf\x7a\x5d\x84\x96\x4a\x53\xe7\xe8\x85\xc6\xc1\xad\x51\xd0\x3c\x3c\xd9\xa7\x8b\x43\x2e\x93\xed\x16\x59\x3d\x4d\xad\xcd\x98\xc8\x3f\x4c\x93\x0a\x1a\x12\xf9\xd7\xf7\xb8\xe1\x77\xce\xd3\xe5\x39\xb1\x75\x78\x56\x29\x7a\x7a\x21\xbb\xa3\x82\xb3\x0d\xb2\x03\xfe\xc3\x65\x46\x87\x3d\xc8\x1f\xe6\x33\xb6\x69\x08\xa2\x3f\xa7\xd1\xf1\x58\x4f\x49\xc9\x3b\xf4\x04\xd6\x97\x5e\x45\x2a\x27\x15\xf5\xe1\x49\xd1\x51\x79\x53\xb2\xcc\xce\x3d\xe8\x60\xdc\xca\x82\x67\x29\x4a\x7a\xa4\xd8\x3a\xab\xf3\xca\x2d\x0c\xb3\xaf\x93\x3b\x7a\x94\xdd\x5f\x12\x5c\x4f\xc6\xf5\xfb\x9d\xe0\xb7\x2d\x6e\xa0\x46\xa9\x04\xbf\xef\x83\x11\xaf\xdf\x91\xfa\xea\x54\xfc\x40\x02\x0a\x79\x12\x1a\xfd\x63\x9e\xac\x1a\x00\x9b\x9e\x61\x24\x7f\x32\xc9\xbf\xf5\x19\xa9\xd1\x8f\xf4\x3c\x97\x93\x86\x34\x3e\xfc\x9a\x6a\x8a\x4d\x31\x5c\x62\xf2\x3f\xa8\x14\x8a\x61\x86\xf1\xde\xb0\x43\xf6\x45\x93\xc3\x85\xa0\x50\xdc\xd9\xab\x49\x6b\x54\x49\xa2\xa5\x05\xdf\x65\x54\xc3\x88\x3a\xc8\x51\x58\x3e\xd4\x79\x0b\xe7\xae\x41\xd5\xa0\x48\xb4\xdb\xa9\x91\x36\x89\x9d\x10\xc8\x54\x7b\x6f\x88\x74\x87\x7b\x21\x2c\xea\xe7\xdf\x38\x6f\x8f\x81\xd1\x0b\xf8\xbf\xfe\xa5\xb1\xbd\xb2\x77\xff\x4d\xd3\x6f\x3a\x5b\x38\x0a\x3e\x5b\x8e\x6c\x3c\x2d\x61\xa7\x84\x4e\x60\x87\xce\xba\xc7\xcb\x55\xdd\x8a\x88\xdd\x51\xdc\x45\xd8\xc5\xe6\xe1\x32\xd5\x15\x67\xc7\x0e\xa2\x3b\xa6\xda\xcf\x17\x1a\x3a\x42\x99\xb4\x6e\x40\xab\xd9\x8a\xb4\x12\x1f\x8e\x98\x0b\xfd\xb1\x36\xf1\xa2\x26\x2b\x5d\x01\x55\x8f\x6d\x51\xe9\x07\xd0\xfe\xbb\x3f\xe8\x38\xcc\x4b\xd2\xe8\xe4\xb7\xc7\xde\x5a\x80\xfd\xa6\xe7\xf9\x22\xbe\xdf\x90\x85\xb9\x8a\xe7\x18\x51\x1a\x5b\xea\x31\x55\xcb\x90\x2f\xd6\x71\x74\x97\x64\x6e\x3e\x3f\x3b\x4c\x85\x01\xf0\x3a\x41\x90\xd3\x15\x17\x97\x19\x4d\x66\x7d\xb1\xe5\x48\x19\xe8\x0f\xf9\xa4\xf1\xfb\xf8\x69\x1f\x7a\xb9\x7b\x8e\x5f\x20\xc6\xb1\xb3\xec\x27\x9b\x3d\x89\x7a\x19\x4d\x13\x63\x1d\x64\xbb\xfd\xcb\xef\xcc\xf8\x10\xa8\x1e\x49\x09\x43\x81\x86\xc8\xe6\x00\x19\x80\x8b\x82\x36\x3c\x90\x3e\xaf\x88\x6c\x1e\x42\x23\x97\x19\x38\x9f\xb9\xfc\x09\x62\x8d\x46\x04\xe1\xbc\x00\xa3\xab\xd7\xa4\xc1\xf2\xf7\x9c\x67\x07\xf4\x2b\x85\x0b\xa4\x12\x5d\xa5\x4a\x15\x11\x4f\x63\x53\xa9\x3d\xda\xe4\x1c\xa4\x41\x89\xc6\xe9\xfa\x98\xd6\x3f\x5d\x28\x08\x64\x3f\x50\x21\xf8\xb9\x6c\x6a\x9c\x91\x3e\xef\x31\xbc\x4c\x28\x12\xb1\x11\xb0\x95\x79\xd4\x9c\x71\xb4\x67\xf7\x08\x6f\xe3\x77\xb1\x11\xd3\x99\x64\xc3\x78\xa4\xc9\xbc\x6c\xdb\x94\x91\x3a\xec\x97\x3a\x22\xf8\x18\x2c\xde\x51\x36\x72\xf1\x05\xef\x65\x11\x72\xa8\xa9\x89\xe0\x88\x28\x42\x5f\x36\x8f\x0f\xc4\xc4\x18\xc6\x71\xf3\xff\xcd\xca\xa3\x97\xcb\xef\xb9\x18\xc6\x1e\xa4\x54\x09\x88\x7c\x42\x2c\x5d\xd9\xde\x72\x3a\x00\xdf\xbe\x17\x32\x02\x7f\x93\x0e\x92\x07\x90\x2e\xe3\x7d\x9a\x5c\xc6\x60\x46\xcf\x76\xe6\xe2\xd3\xec\xca\x87\x19\xb2\x1e\xc5\x7d\xb6\x4c\x7f\x7a\x90\x3f\x3a\x13\x66\x2a\x56\xb0\x84\xc8\xa2\x25\xbb\xc6\x90\xf7\xe2\x15\x0e\x2b\xca\xd3\x58\xe0\x60\x1a\x1c\x36\x64\xbb\xd5\xf1\xb1\x16\x32\xe7\x55\xb2\x17\xe5\x91\xa7\xe4\x1f\x16\x2d\xa3\x20\x23\xcf\xcb\xc7\xa9\x4a\x59\x4b\x22\xfb\x96\xd6\xf1\x7c\x39\xc6\x3d\xf5\xae\xb8\xd8\x5c\x84\xfd\xe6\x4f\x57\xa3\x39\xb7\x05\x88\xfc\x85\xff\xb3\x7b\x1c\xfb\xfc\xf6\xf2\xcd\xcb\x32\xae\xc7\x1b\xdb\xcb\x71\x63\x1b\xf9\xd2\x1e\x93\x54\xb9\xa2\x87\x3c\x27\x87\x03\x68\x13\x41\xd1\x61\x77\x45\xd4\xd4\x79\x03\xd7\xe1\x30\x1b\x5d\x93\x81\xb9\x50\xdc\x02\x34\x9d\x8d\xaf\xff\x91\x33\xdf\x26\x7e\xc4\xb1\x37\xa6\x51\x8f\xd8\x45\x84\x64\x29\x35\xef\x4b\x6f\x96\xe8\x81\xc5\x31\xe5\xb4\x7e\x27\xa6\x70\x32\x96\xee\x7e\x50\xb4\xdd\x9b\xe4\x9a\x90\xcb\x89\x8e\x77\xff\x35\xce\xcd\xf7\x5a\x59\xcc\x1b\xcd\xf5\xab\xcb\xff\x3c\x7b\xfa\xe7\xbf\x1c\xca\x70\x43\xac\xf2\x39\x7d\x50\xf0\x7f\x19\xea\x80\xfd\x7e\x81\x4c\xaf\x7f\x85\x5f\xa7\x7a\xfb\x65\xbb\xe6\x82\xaa\x66\xb3\xd0\x17\x7f\x7e\xfa\xe7\xbf\x2c\x34\x38\xa6\x5a\xb8\xe8\xd4\xea\xbf\x67\x23\xa8\xfe\x61\x1f\x4d\xca\x07\x5e\xab\x43\x1c\x1b\x72\xc9\x1f\xdf\xfb\xf0\x6b\x7f\xe6\x63\x04\xc7\x5d\xbc\xff\x13\x58\x5b\x78\x2f\xb7\xbf\x1f\x38\x24\x91\xd2\xad\x40\x89\x4c\x59\x41\x15\x7d\x47\x0b\xd9\xdb\x5e\x60\xed\x0e\xa1\xcc\xb7\x70\x48\x45\x84\x82\x47\x51\x8b\x8b\x29\x1e\xeb\x8c\x82\xb0\x7b\xf7\xda\x1e\xae\x4d\x7d\x80\x79\xfc\x8b\x1e\x4d\x77\x24\x94\x8b\x5d\x9f\x8c\x3d\x3d\x9c\x48\x6d\x4a\xd2\x52\xa9\xec\xe3\x6c\xf6\x98\x3f\x07\xaa\x64\xd6\x3e\x63\x9f\x7a\x4d\x25\xa9\xe2\x4c\xd2\x1a\x05\xd6\x20\x3b\xa3\x60\xab\xae\x2d\xaa\x9d\x0b\xdf\x0b\x04\x8f\xb4\xcd\xb4\x35\xf9\x86\x83\xbe\x11\xa5\xef\x7a\xf4\x9d\x0b\x06\x41\xd3\xe6\x12\xf6\xe6\x3d\x5c\x7e\xa9\xef\x5b\x38\xfe\x12\xcf\xc2\x1d\x9a\xa6\x39\xc7\x8d\xe2\x45\x61\xc5\xe8\x4d\xaf\x83\x19\x0d\x5d\x4e\xbd\xbf\x37\x97\x5b\xca\xc7\x8f\xa8\x75\x27\xbc\x50\x04\x01\x4a\x59\x31\x06\x47\xb9\x1d\xa3\x0f\xee\x18\x55\xd3\x9c\x30\xf3\xf2\xce\x3c\x4e\x1a\xa9\x6a\x43\x78\x80\xf0\xac\x79\xe6\x5c\x62\x4f\x96\xc9\xb5\xff\xcd\xf7\x04\xb8\x1e\xd7\x2d\x91\x6a\x52\x88\xa9\x86\x07\x2f\x03\x4f\x87\x8b\x7a\xa5\x59\x8e\x54\xf5\x94\x67\xf7\x70\x63\xde\xc8\xb3\xcc\xa9\x51\x48\x6a\xf6\x9a\x96\x34\x1a\x2d\x5b\x94\x71\x33\xd2\xb7\x64\x68\x45\x35\x5f\x08\x81\x72\xcb\x59\x6d\x5f\x72\xeb\x3d\x55\x16\xa7\x6b\x59\x02\x9d\xaa\x98\x8b\x2d\x72\x79\x4c\x5f\x95\x72\xf1\xca\xf3\xe2\xe4\xc4\xb7\xa6\xe4\x91\x1e\x57\x3c\x29\xce\xa7\x53\xad\x1c\x69\x7a\xb5\xed\xcf\x51\xe4\x9d\x37\xf1\xc5\x1e\xbc\xa8\xe3\xbe\xdb\x81\x48\x5b\x2e\x8f\x5b\x8d\xc6\x0e\xd5\x8b\xdc\xdb\x41\xd0\xea\x54\x8b\xf6\x97\x09\xca\x9d\x0a\x41\xf0\xfa\x87\x1a\x92\x11\x34\x2c\x31\x79\xd1\xb2\xf0\xf8\x6e\x10\x5a\x0e\x5f\x5a\xcd\x8f\x11\xfc\x47\x2a\xc4\xf7\x93\x84\x78\xbe\x1c\x2a\x7b\x03\x69\xdb\xdb\x82\xb0\x98\x77\x56\xe9\x3b\x51\x14\x11\xeb\x5e\x48\x16\xf1\x59\xe3\x44\xf6\xf1\xba\x3d\x66\xa4\x7e\x0f\x7d\xf4\xa5\xf3\x17\x5b\xde\x98\xc6\xa4\x9b\x2d\x82\x25\x5d\x58\x2f\x18\xca\xdb\x81\x7c\xb3\x12\x82\xd7\x28\x28\x69\xe9\xff\xba\x07\xc9\x41\xfd\x8e\x32\x9d\x74\x69\x75\x72\xb9\x98\x4f\x5a\xe0\xc9\xd7\xb8\x73\xef\x78\x4c\xfb\x48\x7e\x24\xce\x84\x2c\xdf\x22\x83\xf0\xdf\x07\xf3\x93\xc5\x64\x96\x04\xff\xc7\xa2\x69\x88\x53\x29\x8b\x19\x35\xef\xc9\x06\x88\x28\x9b\x89\xd1\x3c\xd4\xa0\xd8\x92\xea\x8b\xf4\xdd\x88\x47\x11\xa0\xbf\xa8\x48\x02\xe3\xb8\x09\x93\x4f\x42\xf7\xc2\x08\x21\x64\x4b\x2b\x74\x75\xad\xa7\x73\xe8\xb6\x37\xfc\xa2\xb8\xb8\x45\xb6\xce\x3b\x08\xf4\x2d\x5b\x93\xa6\xc1\x12\x26\x97\x93\x51\xd2\x1a\x28\x12\xaa\x8f\x31\xcb\x1e\x73\x3c\x3f\x86\x0f\x62\x71\x4b\x80\x2b\x6e\x6c\x89\x34\xdd\x70\x83\x8e\xe8\x28\x78\xf4\xe1\x82\x8b\x13\x9c\xe4\xbb\x46\x99\x45\x6a\x9c\x4d\x27\x97\x79\xe8\x81\xca\xe4\x6c\x1b\x24\x2c\x0e\x38\x1a\x22\xd9\x63\xed\x98\xd7\x1d\x9b\x27\xe6\x52\x7f\x4d\x59\xd5\x76\xb5\x0d\x13\x2d\x28\x06\x02\x2e\xe2\x23\xa2\xf0\xf4\x38\x61\x88\x5f\x5c\x46\x95\xbf\x1f\x96\x71\x96\xbb\xc7\xd1\x85\x0f\x05\xe2\x18\x25\xae\x69\xad\x61\xd7\x60\x8d\x95\x91\xf6\xb4\x7e\xc3\xb2\xdc\x7e\xb9\x6f\xdb\x30\x2e\x8a\x15\x3a\xb6\xc8\xcf\xf6\x5d\xdf\xc7\x3b\x83\xf3\xf4\xe7\xd1\x23\x38\xdd\xb7\x3b\x8b\x5e\x32\x93\x18\xab\xe0\x6c\x4f\xe0\xe5\x20\xef\x1f\x07\x47\x45\xd9\x34\xc8\x8c\x16\xec\x5d\x6f\xa1\xe9\x9b\x24\x5a\xd9\xf8\x1d\xad\x7d\x59\xbe\x20\x1f\x5e\x0b\x6c\x9a\x1e\xb7\xdf\x7c\x3e\xec\x4d\x7f\x77\x6f\x08\xc7\xc6\x7a\xfa\xf3\x2a\x04\x4e\x07\xa2\xbc\x6b\x14\x77\x28\x0b\xed\xb8\xc4\x34\xd2\xa2\x78\x2c\x07\x65\x63\xa7\xc3\xd7\x8d\x51\xdf\xb8\xa9\xd6\x37\x36\x99\x34\xd1\x10\x12\x24\x59\xe1\xba\x23\xa2\xb6\x23\x53\x7d\xc3\xea\x5a\x10\x1d\x5f\xba\x65\x8a\x47\xc3\x57\x4e\xbe\x4d\x1a\x39\xcc\x31\x4d\x59\x7e\x47\x65\x63\x5b\x40\x6b\x6c\x71\x6d\xdf\x65\x5c\x63\x13\x07\xc2\xb8\x31\x68\xbe\xc9\x77\x8a\x8b\xf5\x02\x36\x5d\xab\xa8\xa4\x7d\x6f\xb3\x44\xd5\x6d\x01\x19\xb9\xb5\x1d\xc3\x50\xe3\x1d\xb6\x7c\x8b\x7d\xbf\x7c\x68\x02\xe6\xcc\xb8\xa9\x5b\x6c\x48\xbb\x9a\xe9\x8c\x14\xa4\x25\x40\x98\xd3\x7a\xf7\xfe\xf5\xdf\x2f\x6f\x5e\xda\x66\xe7\x8a\x6c\xc9\x2d\x6d\xa9\xba\x37\xd4\xd8\x76\xb7\x2d\x95\x8d\xde\xe6\x5a\xaa\x04\x56\x48\xef\xa2\x56\xeb\x72\x18\x1d\x5a\x9e\xb3\x5e\xe2\xbc\x2e\x15\xd6\xf1\x1d\x8b\x39\x77\xbc\x21\x0c\x1d\x3a\x21\x94\xdc\x13\x16\x98\x5b\x9e\x87\xd8\xb1\xaf\xc5\x19\x30\xa9\x84\x8e\xe9\x25\xf5\xe9\x24\x7f\x7b\x3b\x5a\x96\x5d\x11\xef\xc8\xa4\xc5\x61\x6f\xb4\xdc\xd4\x7a\x25\x6c\xd1\xe7\x29\x89\x57\x93\x76\x42\x6d\xf4\x65\x6f\x01\xbf\xb1\x20\x4c\x83\xde\x6f\xff\xa4\x12\xae\x5d\x85\xd6\xba\xb9\x3e\xd1\x55\x1d\x7d\x2b\xb3\x15\x0e\xdb\x90\x60\x40\xaa\x87\xc3\x86\xa1\xd9\xfd\x92\xdd\xbb\xa2\xc8\xa0\xed\xdb\xcc\xf3\xd1\x50\x5e\x87\x0d\xa9\x11\xc8\x9a\xd0\xbe\x79\x5e\xea\x48\xd1\x1f\x1a\x39\xce\x30\xc2\x99\x42\x16\x9a\xac\xe1\x52\x9a\xce\x70\x89\x38\x4f\x56\x52\x09\x1b\x14\xd8\xde\x87\x5b\xc3\x78\x68\x52\x4c\xb7\xc5\x4f\x32\x08\x1d\x64\xb8\x2b\x0c\x4d\xde\xde\xe7\x53\x91\xf1\xec\xa8\x9b\x9e\x74\x61\x7c\xb8\x35\xce\xbe\xc2\xc0\xe8\x11\xda\xe2\xf1\xf8\x36\xc8\xeb\x92\x17\x65\xd7\x5c\x5c\x0f\x72\x46\x2b\x48\x1e\x07\x97\xa5\x2d\x72\x05\xea\x07\xe6\xdc\xfc\x66\x9e\x70\xa7\xa9\xda\xf8\xa2\x41\x6d\x63\xd0\x0e\xa8\x3f\xee\xed\xa7\xcf\x52\x26\x37\x36\xd3\x09\x10\xd7\x7e\x82\xca\xac\x39\x58\xcd\x08\xef\x57\x5d\x54\x1b\x28\xc7\x89\x63\x3d\x08\xee\x08\x27\x64\x26\x58\xe7\xab\xa2\x6a\x1d\x6f\x89\x46\x5e\x7e\x73\xa2\xed\x31\x4d\x87\xf0\x89\x82\x85\xd1\x77\xd3\x30\x65\x61\xcb\xfb\x63\xc3\xaf\x0f\x0c\x1f\x0e\x06\x0f\x8e\xc9\xf9\x9e\x34\x40\x3a\xb2\xb9\x10\xf2\x06\x43\x7b\x43\x47\xeb\xf9\x60\x5d\xa8\x21\xc4\x50\x8c\xb6\x1b\x42\x68\x39\x2c\x86\xa6\xf1\xbb\x86\xed\xc8\x1d\x39\xc1\xb7\x27\xc6\x17\x0e\x5b\x15\x21\x6e\x57\xf4\x03\x88\xc9\x8a\x07\x7b\x17\x33\x59\x7b\x94\x6f\x31\x2b\x7b\xcb\x62\xa6\xe3\xb7\x51\xc6\x33\x32\x44\x76\xd8\x3e\xd9\x43\xbf\xe5\x39\xb2\xab\xdd\x1f\x35\x4d\x9b\x8f\xd2\x1e\xd4\x2f\x33\xe0\x92\xb7\x55\x12\xe5\xee\xe9\x07\xd6\x8e\xb2\x47\x0e\xb8\xbe\x85\xd1\x7e\x71\x0a\x7f\x2d\x36\x33\x5e\x8c\xe6\x11\x93\x57\xf6\x24\x5f\x91\xd5\xc7\x71\x01\x6b\xe3\x3c\xcd\xf0\x0e\xf3\x6d\x7e\x09\x5d\xf6\x19\xb8\x58\x45\x46\xe6\xf4\x8a\xa2\x9b\xb0\xd2\x8d\xf1\xd9\xdb\x52\x15\x3c\xee\x00\x58\xba\xcd\x25\x5b\x64\x27\x22\x7f\xf0\xb9\xe6\x28\x36\xdb\x2a\x74\x96\x92\xc9\x62\xc5\xbd\x5c\x68\x7f\x50\x02\xba\x2c\xbd\xb0\x0c\x2d\x54\x0f\x91\xff\xdb\xd0\x02\x0c\x5e\x05\xb2\x14\x1f\x12\x3b\x10\xf8\x7f\xfc\x18\x6a\x0e\x4c\x34\x6a\x5a\x86\x6a\x6c\x30\xf5\x21\xd4\x3a\xed\x9f\x0c\x7e\x16\xf5\xc3\x26\xb0\xb7\x81\xaf\x99\x42\xc1\x48\x7b\x78\xe4\x34\xb6\x85\xfd\x54\xa7\x0f\xb0\x82\x45\xcb\xdc\xe6\x2b\x3f\x6d\x9a\xfa\xed\x05\xfc\xc3\xc5\x54\x2e\x22\x76\x65\x5b\xfb\x70\x5f\xc3\x96\xa8\xc6\x47\xc9\x83\xf4\xef\xb1\xcc\x47\x37\x47\x23\x41\x1b\x95\xf5\xe3\x98\xe9\xf0\xc8\xe1\x71\xbe\x0b\xf8\x65\x18\x3e\x26\x2d\x3f\xa5\x26\x9f\xf2\x04\xc5\xf8\xb0\x57\x36\x3a\xe6\xb2\x49\x0f\xaf\x0f\x17\xed\x9f\xbf\xcb\x74\xc1\x88\xff\x2f\x01\x9f\x9e\xf5\x53\x2e\xff\xa8\x69\x84\xd1\x59\x04\x48\xa7\x66\xa3\x8c\x70\xff\x3c\x8f\x25\xd9\x63\x39\x3e\x7b\xa5\xc5\x52\x44\x71\xad\x99\x17\x71\x09\x80\x9d\x17\xa9\xfb\x2e\xa1\xa8\x7d\x36\xdc\xe8\xea\x91\x2b\xde\x31\x9d\x43\xb5\x92\xbb\x7d\x72\x64\x8c\x2a\x99\x26\x8a\x5f\xf8\x5c\x7f\xd5\x01\x19\xde\x3f\xc0\x52\xea\x0d\x1d\x8e\x4a\x1c\x3d\x96\xe7\x9b\xf4\xc7\xe7\xf1\x4e\xc3\x81\x07\x36\x5b\xb8\xa7\x44\x5d\xa4\xd7\xce\x22\x07\xe6\x58\x67\xa8\xe3\x6b\x0e\x87\xc8\x65\x59\x61\x86\x9e\x18\x1f\x76\xae\x09\xdc\xc4\x89\x71\xdc\xc7\xd9\x27\x63\x07\x26\x8f\x4e\x5d\xb1\x5e\x47\x37\x4f\xc6\xe2\xf4\xbc\x5f\xd3\xe1\x6a\xe6\x4d\xfd\x9b\x50\x66\x95\x21\xcb\x52\xdc\x18\x91\xd7\xf5\xc3\x13\x49\x91\xc0\xbf\xb0\x7b\x65\x92\xb1\x07\x43\xbc\xc7\xa2\xee\xb1\xa4\x25\xa5\xe8\xab\x61\xe6\x4c\x73\x71\xa4\x1e\x96\x19\x26\xe3\x2c\x34\x3b\xf7\x92\x5c\x42\xf9\x07\x65\xf8\x8f\xee\x6b\xf6\x33\xbd\xbe\x54\xd3\x72\x52\x3f\xfb\xe5\xf8\xb6\xe6\xe1\x60\x5a\x6c\x8c\x93\xa5\x8e\x42\x89\xa1\xcb\x84\x27\x3a\xa9\x2c\x61\x59\x53\xbb\x29\x3e\xc4\x60\xa5\xbd\x7a\xb0\x84\xc9\xe7\x49\xfa\x63\xf6\x9f\x77\x80\x65\xd2\x9e\x37\x88\x53\xe2\x7e\xbd\x49\xc9\x4d\xe8\x33\x27\x85\x76\xc1\xe4\x6b\x4f\xe9\xe1\x2b\x5a\x1a\xe6\xcd\xf6\xf5\x00\x9a\x00\x24\x02\x7a\x92\x0d\x9b\xe6\xff\x69\x25\x58\xf6\x8d\x9f\x25\x0c\xa2\xa4\x31\xd4\xfb\xf3\x86\x4b\x4d\xcd\xd2\x7e\x3f\x29\x98\x60\xf1\x23\x0d\x94\x47\x93\x67\xcc\x4c\xa5\xfd\xce\x63\xf3\x68\x49\xef\x7c\x78\xb1\x28\x87\xf9\x7a\x79\xba\x3e\x9f\x5a\xb7\x11\x8d\xa1\xdb\xd4\x8d\xe6\x8e\x52\xdf\xdb\xb8\xef\x27\xff\x1f\x00\x00\xff\xff\x7e\x7b\xca\xae\x9c\x4e\x00\x00" func migrationcontractstagingCdcBytes() ([]byte, error) { return bindataRead( @@ -106,7 +106,7 @@ func migrationcontractstagingCdc() (*asset, error) { } info := bindataFileInfo{name: "MigrationContractStaging.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbe, 0x3d, 0x21, 0xe2, 0xe6, 0x5c, 0xb4, 0x95, 0x6a, 0x0, 0x52, 0x8a, 0x14, 0xb2, 0xa5, 0x69, 0xc3, 0x58, 0x5b, 0x9c, 0x64, 0xbb, 0xb8, 0x27, 0xbf, 0xca, 0x48, 0xe6, 0x22, 0x97, 0x9a, 0xba}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x89, 0x89, 0x80, 0x64, 0x35, 0x70, 0x59, 0xaa, 0x88, 0xf0, 0x19, 0xe4, 0x6c, 0x39, 0xf, 0x45, 0xa5, 0x6b, 0xd7, 0xc9, 0x6c, 0x7f, 0xe2, 0x3, 0xf3, 0x88, 0x47, 0x99, 0xdf, 0x29, 0xb0, 0x87}} return a, nil } From 525c207363c8d701cd1ed0176c82c11e44206876 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:50:40 -0600 Subject: [PATCH 15/16] update StagedContractUpdated.code to .codeHash: [UInt8] --- contracts/MigrationContractStaging.cdc | 14 +++++----- lib/go/contracts/internal/assets/assets.go | 6 ++--- .../get_staged_contract_code_hash.cdc | 2 +- tests/migration_contract_staging_tests.cdc | 27 ++++++++++--------- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/contracts/MigrationContractStaging.cdc b/contracts/MigrationContractStaging.cdc index 406c0be..8cf7821 100644 --- a/contracts/MigrationContractStaging.cdc +++ b/contracts/MigrationContractStaging.cdc @@ -32,7 +32,7 @@ access(all) contract MigrationContractStaging { access(all) event StagingStatusUpdated( capsuleUUID: UInt64, address: Address, - code: String, + codeHash: [UInt8], contract: String, action: String ) @@ -112,7 +112,7 @@ access(all) contract MigrationContractStaging { emit StagingStatusUpdated( capsuleUUID: capsuleUUID, address: address, - code: "", + codeHash: [], contract: name, action: "unstage" ) @@ -158,7 +158,7 @@ access(all) contract MigrationContractStaging { /// Returns the staged contract code hash for the given address and name or nil if it's not staged /// - access(all) view fun getStagedContractCodeHash(address: Address, name: String): String? { + access(all) view fun getStagedContractCodeHash(address: Address, name: String): [UInt8]? { if let update = self.getStagedContractUpdate(address: address, name: name) { return self.getCodeHash(update.code) } @@ -220,8 +220,8 @@ access(all) contract MigrationContractStaging { /// Returns the hash of the given code, hashing with SHA3-256 /// - access(all) fun getCodeHash(_ code: String): String { - return String.encodeHex(HashAlgorithm.SHA3_256.hash(code.utf8)) + access(all) fun getCodeHash(_ code: String): [UInt8] { + return HashAlgorithm.SHA3_256.hash(code.utf8) } /* ------------------------------------------------------------------------------------------------------------ */ @@ -369,7 +369,7 @@ access(all) contract MigrationContractStaging { emit StagingStatusUpdated( capsuleUUID: self.uuid, address: self.update.address, - code: MigrationContractStaging.getCodeHash(code), + codeHash: MigrationContractStaging.getCodeHash(code), contract: self.update.name, action: "replace" ) @@ -423,7 +423,7 @@ access(all) contract MigrationContractStaging { emit StagingStatusUpdated( capsuleUUID: capsule.uuid, address: host.address(), - code: MigrationContractStaging.getCodeHash(code), + codeHash: MigrationContractStaging.getCodeHash(code), contract: name, action: "stage" ) diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 8f85bf8..58ba855 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -1,7 +1,7 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // DependencyAudit.cdc (10.527kB) -// MigrationContractStaging.cdc (20.124kB) +// MigrationContractStaging.cdc (20.125kB) package assets @@ -90,7 +90,7 @@ func dependencyauditCdc() (*asset, error) { return a, nil } -var _migrationcontractstagingCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x3c\x5d\x73\x13\x3b\x96\xef\xf9\x15\x27\x7e\x00\x7b\xcb\x71\x18\x76\x67\x6a\x2b\x85\x87\x9b\x09\xdc\x85\x07\xb8\x14\x09\x33\x0f\x14\xc5\x28\xdd\xc7\x6e\x15\x6d\xc9\x25\xa9\x63\xb2\x0c\xef\xf3\x3b\xf7\x97\x6c\xe9\xb3\x25\x75\xcb\x36\xe1\xd6\x75\xed\x0e\x60\xeb\xe3\x7c\x7f\xe9\x9c\x7b\x7e\x7e\x0e\x37\x0d\x95\x50\x71\xa6\x04\xa9\x14\x50\x09\x94\x29\x64\x35\xd6\xb0\xe2\x02\x3a\x89\x40\x19\xa8\x06\xe1\x8a\xd4\xc8\x2a\x84\x3f\x2d\x9e\xf4\xeb\x37\x74\x2d\x88\xa2\x9c\x01\xa9\x04\x97\xd2\xac\xfc\xb5\xe5\x3b\x60\xa8\x76\x5c\x7c\x59\x9c\x9c\x9f\x9f\xeb\xff\x87\xd7\x0c\xb6\x02\xb7\xc4\xad\xd7\xa7\x2b\x7d\xf7\x86\xb6\x28\x15\x67\x38\x87\x7b\xde\x89\xfe\xec\x1d\x6d\x5b\x78\xfb\xf2\xe5\x0b\x50\x1c\x6e\x11\xba\x6d\x4d\x14\xd6\xa7\xf0\x9b\x06\xe3\x9e\x77\x8f\xef\xc2\x97\x7e\x6b\x8d\xfa\x60\x73\x5f\x04\xaf\x39\x19\xde\x7c\xb8\xbe\x01\xa9\xc8\x1a\xb3\x8b\xcc\x36\x83\x65\x4c\x0a\xc9\x41\x35\x44\x19\x8c\xec\x2d\x50\x11\xa6\x01\xc1\xaf\x58\x75\xfa\x52\x22\x81\xc0\x96\x08\x05\x7c\xa5\xd7\x99\x7b\x1d\xe2\x67\x3b\x5a\xa3\xbe\x4e\x61\x4f\xa5\x9e\x1a\x37\x7c\x14\x14\x7b\xd1\x85\x59\xf2\xa7\x05\x54\x02\xf5\x7e\x02\xaf\xb8\x54\xf0\x08\x24\xb9\x33\x90\x26\x9b\xce\x1a\x2e\x15\x65\x6b\x20\x55\xc5\x3b\xa6\xcc\xe6\xa7\x0b\xa8\x48\xdb\xda\x4b\xae\xdc\xca\xe9\x0c\xb6\x44\x4a\xb3\x16\x04\xae\x50\x18\x0a\x29\x6e\xe8\xa3\xef\x98\x1b\x74\x03\x38\x8c\x6c\x70\x0e\x84\xd5\x11\x15\xea\x40\x59\x4d\xb7\x1e\x21\x43\x3c\x4b\xa0\x9a\x33\x03\x26\x01\x7d\x57\x8b\xa0\x04\x61\x92\x54\x9a\x04\xa7\xf0\x2b\x17\xb0\xe1\xc2\xee\x37\x77\xe1\x57\x35\x07\x89\x08\x8d\x52\x5b\x79\x71\x7e\xbe\xa6\xaa\xe9\x6e\x17\x15\xdf\x9c\x73\xb6\x6a\xf9\xee\x3c\x20\x6b\x81\x30\x2c\x3e\x21\x55\x85\x52\x4e\x49\xdb\xce\x7a\x98\xdf\x78\x62\x7b\xac\xaf\x15\x59\x6b\x94\xbf\x9d\x9c\x00\x00\x9c\x9f\xc3\x3b\xa2\x1a\xbd\x41\x2a\xc2\x94\x74\xdf\x9a\x3f\xdc\x89\x12\xdb\xd5\x0c\x5a\x54\x50\x63\x4b\x37\x54\xa1\xb8\x80\x6b\x25\x28\x5b\x8f\x2f\xab\xc8\x56\x76\x2d\xea\x83\xdf\x09\x5c\xd1\xaf\x63\xcb\x0d\x9c\x7a\xb5\xa6\xf4\xb5\xe2\x82\xac\xcd\x0e\xbd\x36\xfc\x63\x74\xc3\x65\xbd\xa1\x6c\xef\x0e\xcd\x82\x37\x64\x1b\xc9\x2f\xa9\x6b\x81\x52\xa2\xd4\xfc\x25\x0c\x88\x10\xe4\x5e\x0b\xaa\x11\x89\x3a\x65\xb2\x1c\x47\xcb\x2e\xf5\x84\x94\x17\xf0\xed\xd2\x9e\x7a\x01\x1f\x2d\x7e\x9f\xbe\x87\xeb\x6f\x1a\x84\xdb\x96\x57\x5f\xa0\x41\xba\x6e\x14\x10\x05\xbb\x86\x56\x8d\x13\x1c\x2b\x1e\x8c\xeb\xff\x6b\x39\x5b\xa3\xd0\xb2\x62\xaf\x58\xc0\xeb\x15\x30\xda\xce\x93\xb5\xe1\x67\xa0\xac\xc6\x15\x65\x54\x61\x7b\x0f\x1d\x53\xb4\x0d\xd7\x1a\x81\xed\x14\x5f\xad\xe0\x8e\xb4\x1d\x6a\x1b\x26\x51\x2d\x86\x18\xdd\x11\x61\xce\xa3\x6c\x7d\x65\x36\x5c\xc0\x87\xd7\x4c\xfd\xe5\xbf\x9e\x87\xc3\xde\xa3\xec\x5a\x25\x9d\x3e\x43\x4b\xa4\x02\xdc\x74\xad\x91\xfb\xa1\xd5\x9b\x43\xc5\x37\x1b\xaa\xf4\xaf\xb7\xf7\x66\x0b\xd1\xac\x02\xb2\x52\x28\x80\xaf\x56\x55\x43\x28\x1b\xd9\x39\x60\xb3\x06\x4e\x5f\xf7\xd2\xdd\x16\xc4\xd8\x82\x74\x01\x85\x1f\x9e\x9f\x04\xe0\x5f\xde\x21\xd3\xe0\x5a\x78\x76\x0d\x6a\x0d\xf4\x57\x3f\x96\xce\xce\x49\x47\xd3\x39\x08\xdc\xb6\xa4\xc2\x1a\xb4\xa1\x67\xf6\xdb\x70\xd8\x3f\xad\xba\xfe\x13\xfe\xef\xdf\xff\x86\x6f\x13\xf3\xeb\x64\x0e\x13\xb7\x49\xff\xd5\xed\x99\x7c\x07\x24\x55\x03\x35\x32\x6e\xec\x90\x21\x83\xd9\x0d\xb7\x68\xbe\x20\x5f\x90\x01\xb7\x7e\x24\x13\xbf\x70\xe1\xdb\xdf\x6e\x5e\x5e\xc0\x0b\x8e\x12\x18\x57\xb0\xee\x88\x20\x4c\x21\xf6\x56\x38\x33\xd8\x52\xf3\x9b\x06\x73\x34\xa0\x28\x1a\x72\x38\xed\xbf\x56\x44\x75\xf2\x83\xb5\x60\x53\xb3\x56\x7f\x9c\xde\x7e\xf8\xf0\xfa\x85\x17\x86\x79\xf8\x91\x78\x59\x77\x42\xdf\xff\xa2\x01\xf0\x1a\x1e\x7f\x6b\xe1\x1b\xfe\x62\xa9\x91\xd8\x84\x59\xcf\xb6\x98\x61\x7b\x84\x4d\x42\xa3\xcd\xff\x2d\xa2\x16\xa8\xcd\xb6\x45\xa5\xb9\xb8\x6b\x50\x20\xac\x08\x6d\x23\x4d\x05\x22\xd0\x28\xb6\x97\x4b\x2a\xc2\x7d\xbd\xb3\xaf\x91\x29\xba\xa2\x28\xe0\x0c\x2e\x17\x97\x2f\x5e\xbc\x7f\x79\x7d\xbd\x78\x7b\xf9\xe6\xa5\x3b\xd5\x7d\xa5\x69\xad\x19\xa0\x1d\x8d\xa7\x0a\xec\xa8\x6a\x78\xa7\xe0\xc9\xd7\x02\xe5\x0b\x02\x7b\xe5\x35\xa6\xe7\x82\x64\x64\x2b\x1b\xae\x6e\xe8\x06\xa5\x22\x9b\xed\x05\x7c\xf8\x95\x7e\x8d\x79\x11\xf4\x6c\xcf\x9a\x8c\x06\xbd\x8d\xda\x47\x70\x2f\x92\xc1\x28\xf4\x56\xc4\xf9\xbb\xfd\x82\x65\x37\x79\xc1\xe2\x6d\x1d\x8c\xca\x1c\x18\xee\xc2\xbf\x66\x27\x4e\x51\xff\x63\xe4\x13\x50\x78\xd7\xdd\xb6\xb4\x82\x37\xa8\x1a\x5e\x5b\xa3\x0c\x63\x1b\xce\xfd\x61\x70\x76\x76\xe6\x41\xf1\xdb\xcc\x77\x61\x89\x8e\x24\xe0\x0c\xae\x7c\x28\x61\x99\xc8\x6a\x17\x4c\xa8\x83\xf1\x84\xb6\xe3\x25\xa7\xba\xc8\x5c\x99\xbf\x32\x5c\x6d\xaf\x95\x3e\x84\x91\x28\xee\xcc\xd1\x32\x48\x5f\x15\xc7\x83\x91\x92\xbb\xdb\x17\xf0\x3e\x0e\x54\x4c\x8c\x26\x50\xf2\x4e\x54\xd8\x4b\xb0\x91\xcf\x5e\xc2\x49\xdb\x9a\x5b\x9c\xa8\x4a\xae\xf1\xdc\x74\x52\x19\x97\x42\xee\x8c\x47\x09\xf8\x49\x0b\x3f\xdc\xe2\x4a\x87\x25\xd6\x66\x75\x12\x6b\x7d\xa1\x8d\xd2\x48\x1e\xa2\x2d\x12\x4c\x63\xe9\x58\x75\xcc\xc5\x6d\x1a\xe3\xe9\xec\x02\x7e\x31\xa8\x7f\x0b\x4c\x16\xa8\x3a\xc1\xe0\xd9\x99\x8f\xef\xec\x42\xf3\xfb\xf7\x9e\x6b\x4f\x35\xd7\xc6\x62\x38\xad\x79\xbd\x3e\xf6\x71\x9c\x66\x6a\xe2\xd5\xd3\x6f\x8c\xd5\xd4\x81\xde\x8e\xca\x26\xa0\x36\xe0\x98\xe6\xac\xa5\x67\xb6\xd5\x73\x68\x4d\xef\x90\xe5\x17\xa9\x81\x81\x30\x2e\x3d\x39\x85\x4a\x20\xad\x40\x52\xdf\x7b\x17\x94\x3a\x71\x7d\x89\x09\xfa\x6f\x31\xf8\xa6\x45\xe6\x1f\x36\xe4\x8b\xe1\x8e\x8b\x12\x3c\x16\xb5\xdd\x2d\x50\xa2\x72\x7e\xc1\x8a\x95\x34\x76\xdf\xc1\x4e\x54\x00\x66\x3f\xff\x52\x8a\x6b\xac\x2e\xe0\x91\x8d\x8f\x35\xba\xc1\xc0\x27\x8e\x60\x16\xb1\x78\x2b\x30\xfa\x97\xb1\x71\xd8\xae\x16\x54\x3a\xbd\x79\x87\x82\xf2\xfa\xb2\x52\xf4\x0e\xb5\x88\x4c\xbc\x0a\x6f\xcd\x0f\xd0\x10\x09\x26\x0b\x9b\x84\x43\xbe\x87\xbf\x65\x01\x27\x2c\xed\xe1\x35\x0a\x7a\x87\x57\xf6\x87\x48\x27\xa7\x1e\xe7\x10\xbb\x69\x84\x16\x8e\x4d\xd3\xd9\x3c\x10\xe5\xad\xc1\x4d\x63\x38\x0b\x97\xd1\x95\x3d\x3d\x0b\x05\x3f\xa6\x67\x7c\x82\xe5\x52\xc7\x6f\x19\xd2\xe7\xe7\xf0\x2b\x15\x52\x81\xa2\x1b\x84\x1d\x3e\x16\xa8\xe3\x7c\x8d\x68\x15\x5c\xd5\x4a\xf0\x8d\xd5\x6b\xaf\xaf\x67\x40\x99\x44\xa1\x5c\x40\x65\xbf\x1c\x48\xf7\x90\xbc\x19\x8c\x0b\x7b\xca\xf4\x0b\xde\x0f\x71\xfe\xa8\x8f\xf8\x34\xcb\xc1\x0d\x66\x92\xe1\x0e\x1c\x2d\xad\x94\x69\xd3\x90\xc4\x2f\x75\x0a\x41\xc4\x15\xad\xda\x06\x20\xab\xdf\xee\x18\x27\x47\x4d\x24\x46\x36\xbf\xb2\x42\xa4\xff\x77\x36\xc4\xc9\x9b\x41\x6d\xb5\xa6\xcf\xce\xdc\x0d\x73\x50\xfc\x22\x16\x82\x74\xa7\xb5\x30\x23\xa2\x73\x7e\x0e\xff\x40\x9d\x37\x4b\x8c\x74\x38\xe6\x41\xe2\xe3\x9d\x45\x3c\x83\xaa\xc1\xea\x8b\x96\x85\xfd\x0a\x1d\x4b\x8d\xa1\x87\x5b\xf9\x9a\xd5\xf8\xd5\xcb\xe9\x01\x49\x3a\x5d\xac\xb4\xc8\x98\x2d\x53\xbe\x72\xf2\x38\x14\xac\x9b\xbd\x90\xc0\x99\x37\x21\xc1\xb6\x14\xb9\xb5\x4c\x29\x7d\xcb\x85\xe0\xbb\x67\x8f\x1c\xdb\xfe\x3a\xd5\xc4\xd9\x43\x6c\xfd\x79\xfe\x1c\xb6\x84\xd1\x6a\x3a\xb9\xe2\x5d\x5b\x9b\x08\xd6\x9e\x03\xf8\x95\x5a\x77\xea\xa5\xc9\xd0\xda\xfb\x1c\x6d\x98\xb2\x88\x78\x92\x1e\xef\xee\x5d\x38\x74\xae\x78\x8d\xd3\x92\xc4\xec\xe3\x7b\xa4\x88\x2e\xde\xc9\x0a\x1e\x67\x9a\xed\xc3\xfc\xdf\x7a\x5d\x84\x96\x4a\x53\xe7\xe8\x85\xc6\xc1\xad\x51\xd0\x3c\x3c\xd9\xa7\x8b\x43\x2e\x93\xed\x16\x59\x3d\x4d\xad\xcd\x98\xc8\x3f\x4c\x93\x0a\x1a\x12\xf9\xd7\xf7\xb8\xe1\x77\xce\xd3\xe5\x39\xb1\x75\x78\x56\x29\x7a\x7a\x21\xbb\xa3\x82\xb3\x0d\xb2\x03\xfe\xc3\x65\x46\x87\x3d\xc8\x1f\xe6\x33\xb6\x69\x08\xa2\x3f\xa7\xd1\xf1\x58\x4f\x49\xc9\x3b\xf4\x04\xd6\x97\x5e\x45\x2a\x27\x15\xf5\xe1\x49\xd1\x51\x79\x53\xb2\xcc\xce\x3d\xe8\x60\xdc\xca\x82\x67\x29\x4a\x7a\xa4\xd8\x3a\xab\xf3\xca\x2d\x0c\xb3\xaf\x93\x3b\x7a\x94\xdd\x5f\x12\x5c\x4f\xc6\xf5\xfb\x9d\xe0\xb7\x2d\x6e\xa0\x46\xa9\x04\xbf\xef\x83\x11\xaf\xdf\x91\xfa\xea\x54\xfc\x40\x02\x0a\x79\x12\x1a\xfd\x63\x9e\xac\x1a\x00\x9b\x9e\x61\x24\x7f\x32\xc9\xbf\xf5\x19\xa9\xd1\x8f\xf4\x3c\x97\x93\x86\x34\x3e\xfc\x9a\x6a\x8a\x4d\x31\x5c\x62\xf2\x3f\xa8\x14\x8a\x61\x86\xf1\xde\xb0\x43\xf6\x45\x93\xc3\x85\xa0\x50\xdc\xd9\xab\x49\x6b\x54\x49\xa2\xa5\x05\xdf\x65\x54\xc3\x88\x3a\xc8\x51\x58\x3e\xd4\x79\x0b\xe7\xae\x41\xd5\xa0\x48\xb4\xdb\xa9\x91\x36\x89\x9d\x10\xc8\x54\x7b\x6f\x88\x74\x87\x7b\x21\x2c\xea\xe7\xdf\x38\x6f\x8f\x81\xd1\x0b\xf8\xbf\xfe\xa5\xb1\xbd\xb2\x77\xff\x4d\xd3\x6f\x3a\x5b\x38\x0a\x3e\x5b\x8e\x6c\x3c\x2d\x61\xa7\x84\x4e\x60\x87\xce\xba\xc7\xcb\x55\xdd\x8a\x88\xdd\x51\xdc\x45\xd8\xc5\xe6\xe1\x32\xd5\x15\x67\xc7\x0e\xa2\x3b\xa6\xda\xcf\x17\x1a\x3a\x42\x99\xb4\x6e\x40\xab\xd9\x8a\xb4\x12\x1f\x8e\x98\x0b\xfd\xb1\x36\xf1\xa2\x26\x2b\x5d\x01\x55\x8f\x6d\x51\xe9\x07\xd0\xfe\xbb\x3f\xe8\x38\xcc\x4b\xd2\xe8\xe4\xb7\xc7\xde\x5a\x80\xfd\xa6\xe7\xf9\x22\xbe\xdf\x90\x85\xb9\x8a\xe7\x18\x51\x1a\x5b\xea\x31\x55\xcb\x90\x2f\xd6\x71\x74\x97\x64\x6e\x3e\x3f\x3b\x4c\x85\x01\xf0\x3a\x41\x90\xd3\x15\x17\x97\x19\x4d\x66\x7d\xb1\xe5\x48\x19\xe8\x0f\xf9\xa4\xf1\xfb\xf8\x69\x1f\x7a\xb9\x7b\x8e\x5f\x20\xc6\xb1\xb3\xec\x27\x9b\x3d\x89\x7a\x19\x4d\x13\x63\x1d\x64\xbb\xfd\xcb\xef\xcc\xf8\x10\xa8\x1e\x49\x09\x43\x81\x86\xc8\xe6\x00\x19\x80\x8b\x82\x36\x3c\x90\x3e\xaf\x88\x6c\x1e\x42\x23\x97\x19\x38\x9f\xb9\xfc\x09\x62\x8d\x46\x04\xe1\xbc\x00\xa3\xab\xd7\xa4\xc1\xf2\xf7\x9c\x67\x07\xf4\x2b\x85\x0b\xa4\x12\x5d\xa5\x4a\x15\x11\x4f\x63\x53\xa9\x3d\xda\xe4\x1c\xa4\x41\x89\xc6\xe9\xfa\x98\xd6\x3f\x5d\x28\x08\x64\x3f\x50\x21\xf8\xb9\x6c\x6a\x9c\x91\x3e\xef\x31\xbc\x4c\x28\x12\xb1\x11\xb0\x95\x79\xd4\x9c\x71\xb4\x67\xf7\x08\x6f\xe3\x77\xb1\x11\xd3\x99\x64\xc3\x78\xa4\xc9\xbc\x6c\xdb\x94\x91\x3a\xec\x97\x3a\x22\xf8\x18\x2c\xde\x51\x36\x72\xf1\x05\xef\x65\x11\x72\xa8\xa9\x89\xe0\x88\x28\x42\x5f\x36\x8f\x0f\xc4\xc4\x18\xc6\x71\xf3\xff\xcd\xca\xa3\x97\xcb\xef\xb9\x18\xc6\x1e\xa4\x54\x09\x88\x7c\x42\x2c\x5d\xd9\xde\x72\x3a\x00\xdf\xbe\x17\x32\x02\x7f\x93\x0e\x92\x07\x90\x2e\xe3\x7d\x9a\x5c\xc6\x60\x46\xcf\x76\xe6\xe2\xd3\xec\xca\x87\x19\xb2\x1e\xc5\x7d\xb6\x4c\x7f\x7a\x90\x3f\x3a\x13\x66\x2a\x56\xb0\x84\xc8\xa2\x25\xbb\xc6\x90\xf7\xe2\x15\x0e\x2b\xca\xd3\x58\xe0\x60\x1a\x1c\x36\x64\xbb\xd5\xf1\xb1\x16\x32\xe7\x55\xb2\x17\xe5\x91\xa7\xe4\x1f\x16\x2d\xa3\x20\x23\xcf\xcb\xc7\xa9\x4a\x59\x4b\x22\xfb\x96\xd6\xf1\x7c\x39\xc6\x3d\xf5\xae\xb8\xd8\x5c\x84\xfd\xe6\x4f\x57\xa3\x39\xb7\x05\x88\xfc\x85\xff\xb3\x7b\x1c\xfb\xfc\xf6\xf2\xcd\xcb\x32\xae\xc7\x1b\xdb\xcb\x71\x63\x1b\xf9\xd2\x1e\x93\x54\xb9\xa2\x87\x3c\x27\x87\x03\x68\x13\x41\xd1\x61\x77\x45\xd4\xd4\x79\x03\xd7\xe1\x30\x1b\x5d\x93\x81\xb9\x50\xdc\x02\x34\x9d\x8d\xaf\xff\x91\x33\xdf\x26\x7e\xc4\xb1\x37\xa6\x51\x8f\xd8\x45\x84\x64\x29\x35\xef\x4b\x6f\x96\xe8\x81\xc5\x31\xe5\xb4\x7e\x27\xa6\x70\x32\x96\xee\x7e\x50\xb4\xdd\x9b\xe4\x9a\x90\xcb\x89\x8e\x77\xff\x35\xce\xcd\xf7\x5a\x59\xcc\x1b\xcd\xf5\xab\xcb\xff\x3c\x7b\xfa\xe7\xbf\x1c\xca\x70\x43\xac\xf2\x39\x7d\x50\xf0\x7f\x19\xea\x80\xfd\x7e\x81\x4c\xaf\x7f\x85\x5f\xa7\x7a\xfb\x65\xbb\xe6\x82\xaa\x66\xb3\xd0\x17\x7f\x7e\xfa\xe7\xbf\x2c\x34\x38\xa6\x5a\xb8\xe8\xd4\xea\xbf\x67\x23\xa8\xfe\x61\x1f\x4d\xca\x07\x5e\xab\x43\x1c\x1b\x72\xc9\x1f\xdf\xfb\xf0\x6b\x7f\xe6\x63\x04\xc7\x5d\xbc\xff\x13\x58\x5b\x78\x2f\xb7\xbf\x1f\x38\x24\x91\xd2\xad\x40\x89\x4c\x59\x41\x15\x7d\x47\x0b\xd9\xdb\x5e\x60\xed\x0e\xa1\xcc\xb7\x70\x48\x45\x84\x82\x47\x51\x8b\x8b\x29\x1e\xeb\x8c\x82\xb0\x7b\xf7\xda\x1e\xae\x4d\x7d\x80\x79\xfc\x8b\x1e\x4d\x77\x24\x94\x8b\x5d\x9f\x8c\x3d\x3d\x9c\x48\x6d\x4a\xd2\x52\xa9\xec\xe3\x6c\xf6\x98\x3f\x07\xaa\x64\xd6\x3e\x63\x9f\x7a\x4d\x25\xa9\xe2\x4c\xd2\x1a\x05\xd6\x20\x3b\xa3\x60\xab\xae\x2d\xaa\x9d\x0b\xdf\x0b\x04\x8f\xb4\xcd\xb4\x35\xf9\x86\x83\xbe\x11\xa5\xef\x7a\xf4\x9d\x0b\x06\x41\xd3\xe6\x12\xf6\xe6\x3d\x5c\x7e\xa9\xef\x5b\x38\xfe\x12\xcf\xc2\x1d\x9a\xa6\x39\xc7\x8d\xe2\x45\x61\xc5\xe8\x4d\xaf\x83\x19\x0d\x5d\x4e\xbd\xbf\x37\x97\x5b\xca\xc7\x8f\xa8\x75\x27\xbc\x50\x04\x01\x4a\x59\x31\x06\x47\xb9\x1d\xa3\x0f\xee\x18\x55\xd3\x9c\x30\xf3\xf2\xce\x3c\x4e\x1a\xa9\x6a\x43\x78\x80\xf0\xac\x79\xe6\x5c\x62\x4f\x96\xc9\xb5\xff\xcd\xf7\x04\xb8\x1e\xd7\x2d\x91\x6a\x52\x88\xa9\x86\x07\x2f\x03\x4f\x87\x8b\x7a\xa5\x59\x8e\x54\xf5\x94\x67\xf7\x70\x63\xde\xc8\xb3\xcc\xa9\x51\x48\x6a\xf6\x9a\x96\x34\x1a\x2d\x5b\x94\x71\x33\xd2\xb7\x64\x68\x45\x35\x5f\x08\x81\x72\xcb\x59\x6d\x5f\x72\xeb\x3d\x55\x16\xa7\x6b\x59\x02\x9d\xaa\x98\x8b\x2d\x72\x79\x4c\x5f\x95\x72\xf1\xca\xf3\xe2\xe4\xc4\xb7\xa6\xe4\x91\x1e\x57\x3c\x29\xce\xa7\x53\xad\x1c\x69\x7a\xb5\xed\xcf\x51\xe4\x9d\x37\xf1\xc5\x1e\xbc\xa8\xe3\xbe\xdb\x81\x48\x5b\x2e\x8f\x5b\x8d\xc6\x0e\xd5\x8b\xdc\xdb\x41\xd0\xea\x54\x8b\xf6\x97\x09\xca\x9d\x0a\x41\xf0\xfa\x87\x1a\x92\x11\x34\x2c\x31\x79\xd1\xb2\xf0\xf8\x6e\x10\x5a\x0e\x5f\x5a\xcd\x8f\x11\xfc\x47\x2a\xc4\xf7\x93\x84\x78\xbe\x1c\x2a\x7b\x03\x69\xdb\xdb\x82\xb0\x98\x77\x56\xe9\x3b\x51\x14\x11\xeb\x5e\x48\x16\xf1\x59\xe3\x44\xf6\xf1\xba\x3d\x66\xa4\x7e\x0f\x7d\xf4\xa5\xf3\x17\x5b\xde\x98\xc6\xa4\x9b\x2d\x82\x25\x5d\x58\x2f\x18\xca\xdb\x81\x7c\xb3\x12\x82\xd7\x28\x28\x69\xe9\xff\xba\x07\xc9\x41\xfd\x8e\x32\x9d\x74\x69\x75\x72\xb9\x98\x4f\x5a\xe0\xc9\xd7\xb8\x73\xef\x78\x4c\xfb\x48\x7e\x24\xce\x84\x2c\xdf\x22\x83\xf0\xdf\x07\xf3\x93\xc5\x64\x96\x04\xff\xc7\xa2\x69\x88\x53\x29\x8b\x19\x35\xef\xc9\x06\x88\x28\x9b\x89\xd1\x3c\xd4\xa0\xd8\x92\xea\x8b\xf4\xdd\x88\x47\x11\xa0\xbf\xa8\x48\x02\xe3\xb8\x09\x93\x4f\x42\xf7\xc2\x08\x21\x64\x4b\x2b\x74\x75\xad\xa7\x73\xe8\xb6\x37\xfc\xa2\xb8\xb8\x45\xb6\xce\x3b\x08\xf4\x2d\x5b\x93\xa6\xc1\x12\x26\x97\x93\x51\xd2\x1a\x28\x12\xaa\x8f\x31\xcb\x1e\x73\x3c\x3f\x86\x0f\x62\x71\x4b\x80\x2b\x6e\x6c\x89\x34\xdd\x70\x83\x8e\xe8\x28\x78\xf4\xe1\x82\x8b\x13\x9c\xe4\xbb\x46\x99\x45\x6a\x9c\x4d\x27\x97\x79\xe8\x81\xca\xe4\x6c\x1b\x24\x2c\x0e\x38\x1a\x22\xd9\x63\xed\x98\xd7\x1d\x9b\x27\xe6\x52\x7f\x4d\x59\xd5\x76\xb5\x0d\x13\x2d\x28\x06\x02\x2e\xe2\x23\xa2\xf0\xf4\x38\x61\x88\x5f\x5c\x46\x95\xbf\x1f\x96\x71\x96\xbb\xc7\xd1\x85\x0f\x05\xe2\x18\x25\xae\x69\xad\x61\xd7\x60\x8d\x95\x91\xf6\xb4\x7e\xc3\xb2\xdc\x7e\xb9\x6f\xdb\x30\x2e\x8a\x15\x3a\xb6\xc8\xcf\xf6\x5d\xdf\xc7\x3b\x83\xf3\xf4\xe7\xd1\x23\x38\xdd\xb7\x3b\x8b\x5e\x32\x93\x18\xab\xe0\x6c\x4f\xe0\xe5\x20\xef\x1f\x07\x47\x45\xd9\x34\xc8\x8c\x16\xec\x5d\x6f\xa1\xe9\x9b\x24\x5a\xd9\xf8\x1d\xad\x7d\x59\xbe\x20\x1f\x5e\x0b\x6c\x9a\x1e\xb7\xdf\x7c\x3e\xec\x4d\x7f\x77\x6f\x08\xc7\xc6\x7a\xfa\xf3\x2a\x04\x4e\x07\xa2\xbc\x6b\x14\x77\x28\x0b\xed\xb8\xc4\x34\xd2\xa2\x78\x2c\x07\x65\x63\xa7\xc3\xd7\x8d\x51\xdf\xb8\xa9\xd6\x37\x36\x99\x34\xd1\x10\x12\x24\x59\xe1\xba\x23\xa2\xb6\x23\x53\x7d\xc3\xea\x5a\x10\x1d\x5f\xba\x65\x8a\x47\xc3\x57\x4e\xbe\x4d\x1a\x39\xcc\x31\x4d\x59\x7e\x47\x65\x63\x5b\x40\x6b\x6c\x71\x6d\xdf\x65\x5c\x63\x13\x07\xc2\xb8\x31\x68\xbe\xc9\x77\x8a\x8b\xf5\x02\x36\x5d\xab\xa8\xa4\x7d\x6f\xb3\x44\xd5\x6d\x01\x19\xb9\xb5\x1d\xc3\x50\xe3\x1d\xb6\x7c\x8b\x7d\xbf\x7c\x68\x02\xe6\xcc\xb8\xa9\x5b\x6c\x48\xbb\x9a\xe9\x8c\x14\xa4\x25\x40\x98\xd3\x7a\xf7\xfe\xf5\xdf\x2f\x6f\x5e\xda\x66\xe7\x8a\x6c\xc9\x2d\x6d\xa9\xba\x37\xd4\xd8\x76\xb7\x2d\x95\x8d\xde\xe6\x5a\xaa\x04\x56\x48\xef\xa2\x56\xeb\x72\x18\x1d\x5a\x9e\xb3\x5e\xe2\xbc\x2e\x15\xd6\xf1\x1d\x8b\x39\x77\xbc\x21\x0c\x1d\x3a\x21\x94\xdc\x13\x16\x98\x5b\x9e\x87\xd8\xb1\xaf\xc5\x19\x30\xa9\x84\x8e\xe9\x25\xf5\xe9\x24\x7f\x7b\x3b\x5a\x96\x5d\x11\xef\xc8\xa4\xc5\x61\x6f\xb4\xdc\xd4\x7a\x25\x6c\xd1\xe7\x29\x89\x57\x93\x76\x42\x6d\xf4\x65\x6f\x01\xbf\xb1\x20\x4c\x83\xde\x6f\xff\xa4\x12\xae\x5d\x85\xd6\xba\xb9\x3e\xd1\x55\x1d\x7d\x2b\xb3\x15\x0e\xdb\x90\x60\x40\xaa\x87\xc3\x86\xa1\xd9\xfd\x92\xdd\xbb\xa2\xc8\xa0\xed\xdb\xcc\xf3\xd1\x50\x5e\x87\x0d\xa9\x11\xc8\x9a\xd0\xbe\x79\x5e\xea\x48\xd1\x1f\x1a\x39\xce\x30\xc2\x99\x42\x16\x9a\xac\xe1\x52\x9a\xce\x70\x89\x38\x4f\x56\x52\x09\x1b\x14\xd8\xde\x87\x5b\xc3\x78\x68\x52\x4c\xb7\xc5\x4f\x32\x08\x1d\x64\xb8\x2b\x0c\x4d\xde\xde\xe7\x53\x91\xf1\xec\xa8\x9b\x9e\x74\x61\x7c\xb8\x35\xce\xbe\xc2\xc0\xe8\x11\xda\xe2\xf1\xf8\x36\xc8\xeb\x92\x17\x65\xd7\x5c\x5c\x0f\x72\x46\x2b\x48\x1e\x07\x97\xa5\x2d\x72\x05\xea\x07\xe6\xdc\xfc\x66\x9e\x70\xa7\xa9\xda\xf8\xa2\x41\x6d\x63\xd0\x0e\xa8\x3f\xee\xed\xa7\xcf\x52\x26\x37\x36\xd3\x09\x10\xd7\x7e\x82\xca\xac\x39\x58\xcd\x08\xef\x57\x5d\x54\x1b\x28\xc7\x89\x63\x3d\x08\xee\x08\x27\x64\x26\x58\xe7\xab\xa2\x6a\x1d\x6f\x89\x46\x5e\x7e\x73\xa2\xed\x31\x4d\x87\xf0\x89\x82\x85\xd1\x77\xd3\x30\x65\x61\xcb\xfb\x63\xc3\xaf\x0f\x0c\x1f\x0e\x06\x0f\x8e\xc9\xf9\x9e\x34\x40\x3a\xb2\xb9\x10\xf2\x06\x43\x7b\x43\x47\xeb\xf9\x60\x5d\xa8\x21\xc4\x50\x8c\xb6\x1b\x42\x68\x39\x2c\x86\xa6\xf1\xbb\x86\xed\xc8\x1d\x39\xc1\xb7\x27\xc6\x17\x0e\x5b\x15\x21\x6e\x57\xf4\x03\x88\xc9\x8a\x07\x7b\x17\x33\x59\x7b\x94\x6f\x31\x2b\x7b\xcb\x62\xa6\xe3\xb7\x51\xc6\x33\x32\x44\x76\xd8\x3e\xd9\x43\xbf\xe5\x39\xb2\xab\xdd\x1f\x35\x4d\x9b\x8f\xd2\x1e\xd4\x2f\x33\xe0\x92\xb7\x55\x12\xe5\xee\xe9\x07\xd6\x8e\xb2\x47\x0e\xb8\xbe\x85\xd1\x7e\x71\x0a\x7f\x2d\x36\x33\x5e\x8c\xe6\x11\x93\x57\xf6\x24\x5f\x91\xd5\xc7\x71\x01\x6b\xe3\x3c\xcd\xf0\x0e\xf3\x6d\x7e\x09\x5d\xf6\x19\xb8\x58\x45\x46\xe6\xf4\x8a\xa2\x9b\xb0\xd2\x8d\xf1\xd9\xdb\x52\x15\x3c\xee\x00\x58\xba\xcd\x25\x5b\x64\x27\x22\x7f\xf0\xb9\xe6\x28\x36\xdb\x2a\x74\x96\x92\xc9\x62\xc5\xbd\x5c\x68\x7f\x50\x02\xba\x2c\xbd\xb0\x0c\x2d\x54\x0f\x91\xff\xdb\xd0\x02\x0c\x5e\x05\xb2\x14\x1f\x12\x3b\x10\xf8\x7f\xfc\x18\x6a\x0e\x4c\x34\x6a\x5a\x86\x6a\x6c\x30\xf5\x21\xd4\x3a\xed\x9f\x0c\x7e\x16\xf5\xc3\x26\xb0\xb7\x81\xaf\x99\x42\xc1\x48\x7b\x78\xe4\x34\xb6\x85\xfd\x54\xa7\x0f\xb0\x82\x45\xcb\xdc\xe6\x2b\x3f\x6d\x9a\xfa\xed\x05\xfc\xc3\xc5\x54\x2e\x22\x76\x65\x5b\xfb\x70\x5f\xc3\x96\xa8\xc6\x47\xc9\x83\xf4\xef\xb1\xcc\x47\x37\x47\x23\x41\x1b\x95\xf5\xe3\x98\xe9\xf0\xc8\xe1\x71\xbe\x0b\xf8\x65\x18\x3e\x26\x2d\x3f\xa5\x26\x9f\xf2\x04\xc5\xf8\xb0\x57\x36\x3a\xe6\xb2\x49\x0f\xaf\x0f\x17\xed\x9f\xbf\xcb\x74\xc1\x88\xff\x2f\x01\x9f\x9e\xf5\x53\x2e\xff\xa8\x69\x84\xd1\x59\x04\x48\xa7\x66\xa3\x8c\x70\xff\x3c\x8f\x25\xd9\x63\x39\x3e\x7b\xa5\xc5\x52\x44\x71\xad\x99\x17\x71\x09\x80\x9d\x17\xa9\xfb\x2e\xa1\xa8\x7d\x36\xdc\xe8\xea\x91\x2b\xde\x31\x9d\x43\xb5\x92\xbb\x7d\x72\x64\x8c\x2a\x99\x26\x8a\x5f\xf8\x5c\x7f\xd5\x01\x19\xde\x3f\xc0\x52\xea\x0d\x1d\x8e\x4a\x1c\x3d\x96\xe7\x9b\xf4\xc7\xe7\xf1\x4e\xc3\x81\x07\x36\x5b\xb8\xa7\x44\x5d\xa4\xd7\xce\x22\x07\xe6\x58\x67\xa8\xe3\x6b\x0e\x87\xc8\x65\x59\x61\x86\x9e\x18\x1f\x76\xae\x09\xdc\xc4\x89\x71\xdc\xc7\xd9\x27\x63\x07\x26\x8f\x4e\x5d\xb1\x5e\x47\x37\x4f\xc6\xe2\xf4\xbc\x5f\xd3\xe1\x6a\xe6\x4d\xfd\x9b\x50\x66\x95\x21\xcb\x52\xdc\x18\x91\xd7\xf5\xc3\x13\x49\x91\xc0\xbf\xb0\x7b\x65\x92\xb1\x07\x43\xbc\xc7\xa2\xee\xb1\xa4\x25\xa5\xe8\xab\x61\xe6\x4c\x73\x71\xa4\x1e\x96\x19\x26\xe3\x2c\x34\x3b\xf7\x92\x5c\x42\xf9\x07\x65\xf8\x8f\xee\x6b\xf6\x33\xbd\xbe\x54\xd3\x72\x52\x3f\xfb\xe5\xf8\xb6\xe6\xe1\x60\x5a\x6c\x8c\x93\xa5\x8e\x42\x89\xa1\xcb\x84\x27\x3a\xa9\x2c\x61\x59\x53\xbb\x29\x3e\xc4\x60\xa5\xbd\x7a\xb0\x84\xc9\xe7\x49\xfa\x63\xf6\x9f\x77\x80\x65\xd2\x9e\x37\x88\x53\xe2\x7e\xbd\x49\xc9\x4d\xe8\x33\x27\x85\x76\xc1\xe4\x6b\x4f\xe9\xe1\x2b\x5a\x1a\xe6\xcd\xf6\xf5\x00\x9a\x00\x24\x02\x7a\x92\x0d\x9b\xe6\xff\x69\x25\x58\xf6\x8d\x9f\x25\x0c\xa2\xa4\x31\xd4\xfb\xf3\x86\x4b\x4d\xcd\xd2\x7e\x3f\x29\x98\x60\xf1\x23\x0d\x94\x47\x93\x67\xcc\x4c\xa5\xfd\xce\x63\xf3\x68\x49\xef\x7c\x78\xb1\x28\x87\xf9\x7a\x79\xba\x3e\x9f\x5a\xb7\x11\x8d\xa1\xdb\xd4\x8d\xe6\x8e\x52\xdf\xdb\xb8\xef\x27\xff\x1f\x00\x00\xff\xff\x7e\x7b\xca\xae\x9c\x4e\x00\x00" +var _migrationcontractstagingCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x3c\x5d\x93\x13\x39\x92\xef\xfd\x2b\xb2\xfd\x00\xf6\x85\xdb\x3d\xcb\xdd\x4e\x6c\x38\xf0\x32\xbd\x0d\x73\xf0\x00\x43\xd0\xcd\xee\x03\x41\xb0\xea\xaa\xb4\x4b\x41\x59\x72\x48\x2a\x9b\x3e\x96\xf7\xfd\x9d\xf7\x4b\x36\xf4\x59\x92\xea\xc3\xa6\x99\x18\xc7\xdd\x02\xb6\xa4\xfc\x4e\x65\xa6\x32\xe7\xf2\xf2\x12\x6e\x2b\x2a\xa1\xe0\x4c\x09\x52\x28\xa0\x12\x28\x53\xc8\x4a\x2c\x61\xcd\x05\x34\x12\x81\x32\x50\x15\xc2\x35\x29\x91\x15\x08\x7f\x5a\xfc\xd4\xae\xdf\xd2\x8d\x20\x8a\x72\x06\xa4\x10\x5c\x4a\xb3\xf2\xd7\x9a\x1f\x80\xa1\x3a\x70\xf1\x79\x71\x76\x79\x79\xa9\xff\x1f\x5e\x31\xd8\x09\xdc\x11\xb7\x5e\x9f\xae\x34\xec\x2d\xad\x51\x2a\xce\x70\x0e\xf7\xbc\x11\xed\xd9\x07\x5a\xd7\xf0\xe6\xc5\x8b\xe7\xa0\x38\xdc\x21\x34\xbb\x92\x28\x2c\xcf\xe1\x37\x8d\xc6\x3d\x6f\x1e\xef\xc3\x97\x7e\x6b\x89\xfa\x60\x03\x2f\xc2\xd7\x9c\x0c\xaf\xdf\xdf\xdc\x82\x54\x64\x83\x19\x20\xb3\xcd\x50\x19\xb3\x42\x72\x50\x15\x51\x86\x22\x0b\x05\x0a\xc2\x34\x22\xf8\x05\x8b\x46\x03\x25\x12\x08\xec\x88\x50\xc0\xd7\x7a\x9d\x81\xeb\x08\xbf\x38\xd0\x12\x35\x38\x85\x2d\x97\x5a\x6e\xdc\xf2\x5e\x54\x2c\xa0\xa5\x59\xf2\xa7\x05\x14\x02\xf5\x7e\x02\x2f\xb9\x54\xf0\x08\x24\xd9\x1b\x4c\x93\x4d\x17\x15\x97\x8a\xb2\x0d\x90\xa2\xe0\x0d\x53\x66\xf3\x93\x05\x14\xa4\xae\x2d\x90\x6b\xb7\x72\x3a\x83\x1d\x91\xd2\xac\x05\x81\x6b\x14\x86\x43\x8a\x1b\xfe\x68\x18\x73\x43\x6e\x40\x87\x91\x2d\xce\x81\xb0\x32\xe2\x42\x19\x38\xab\xf9\xd6\x12\x64\x98\x67\x19\x54\x72\x66\xd0\x24\xa0\x61\xd5\x08\x4a\x10\x26\x49\xa1\x59\x70\x0e\xbf\x72\x01\x5b\x2e\xec\x7e\x03\x0b\xbf\xa8\x39\x48\x44\xa8\x94\xda\xc9\xe5\xe5\xe5\x86\xaa\xaa\xb9\x5b\x14\x7c\x7b\xc9\xd9\xba\xe6\x87\xcb\x40\xac\x45\xc2\x88\xf8\x8c\x14\x05\x4a\x39\x25\x75\x3d\x6b\x71\x7e\xed\x99\xed\xa9\xbe\x51\x64\xa3\x49\xfe\x7a\x76\x06\x00\x70\x79\x09\x6f\x89\xaa\xf4\x06\xa9\x08\x53\xd2\x7d\x6b\xfe\x70\x27\x4a\xac\xd7\x33\xa8\x51\x41\x89\x35\xdd\x52\x85\x62\x09\x37\x4a\x50\xb6\xe9\x5f\x56\x90\x9d\x6c\x6a\xd4\x07\xbf\x15\xb8\xa6\x5f\xfa\x96\x1b\x3c\xf5\x6a\xcd\xe9\x1b\xc5\x05\xd9\x98\x1d\x7a\x6d\xf8\x47\xef\x86\xab\x72\x4b\xd9\xe8\x0e\x2d\x82\xd7\x64\x17\xe9\x2f\x29\x4b\x81\x52\xa2\xd4\xf2\x25\x0c\x88\x10\xe4\x5e\x2b\xaa\x51\x89\x32\x15\xb2\xec\x27\xcb\x2e\xf5\x8c\x94\x4b\xf8\x7a\x65\x4f\x5d\xc2\x07\x4b\xdf\xc7\x6f\x01\xfc\x6d\x85\x70\x57\xf3\xe2\x33\x54\x48\x37\x95\x02\xa2\xe0\x50\xd1\xa2\x72\x8a\x63\xd5\x83\x71\xfd\x7f\x35\x67\x1b\x14\x5a\x57\x2c\x88\x05\xbc\x5a\x03\xa3\xf5\x3c\x59\x1b\x7e\x06\xca\x4a\x5c\x53\x46\x15\xd6\xf7\xd0\x30\x45\xeb\x00\xd6\x28\x6c\xa3\xf8\x7a\x0d\x7b\x52\x37\xa8\x7d\x98\x44\xb5\xe8\x52\xb4\x27\xc2\x9c\x47\xd9\xe6\xda\x6c\x58\xc2\xfb\x57\x4c\xfd\xfc\x3f\xcf\xc2\x61\xef\x50\x36\xb5\x92\xce\x9e\xa1\x26\x52\x01\x6e\x9b\xda\xe8\x7d\xd7\xeb\xcd\xa1\xe0\xdb\x2d\x55\xfa\xd7\xbb\x7b\xb3\x85\x68\x51\x01\x59\x2b\x14\xc0\xd7\xeb\xa2\x22\x94\xf5\xec\xec\x88\x59\x23\xa7\xc1\xbd\x70\xd0\x82\x1a\x5b\x94\x96\x30\xf0\xc3\xb3\xb3\x80\xfc\x8b\x3d\x32\x8d\xae\xc5\xe7\x50\xa1\xb6\x40\x0f\xfa\xb1\x74\x7e\x4e\x3a\x9e\xce\x41\xe0\xae\x26\x05\x96\xa0\x1d\x3d\xb3\xdf\x86\xc3\xfe\x69\xcd\xf5\x9f\xf0\xff\xff\xfe\x37\x7c\x9d\x98\x5f\x27\x73\x98\xb8\x4d\xfa\xaf\x6e\xcf\xe4\x1b\x20\x29\x2a\x28\x91\x71\xe3\x87\x0c\x1b\xcc\x6e\xb8\x43\xf3\x05\xf9\x8c\x0c\xb8\xbd\x47\x32\xf5\x0b\x00\xdf\xfc\x76\xfb\x62\x09\xcf\x39\x4a\x60\x5c\xc1\xa6\x21\x82\x30\x85\xd8\x7a\xe1\xcc\x61\x4b\x2d\x6f\x1a\xdc\x51\x87\xa3\x68\xd8\xe1\xac\xff\x46\x11\xd5\xc8\xf7\xd6\x83\x4d\xcd\x5a\xfd\x71\x76\xfb\xfe\xfd\xab\xe7\x5e\x19\xe6\xe1\x47\xe2\x75\xdd\x29\x7d\xfb\x8b\x46\xe0\x25\x91\xd5\x12\x3e\xe8\x4d\x7f\xf9\x18\xff\x64\x91\xf4\x0e\x20\x3a\xce\xb0\x24\x71\x0c\xb3\x56\x76\xb1\xd4\x46\x34\x4e\x42\xa5\xef\x80\x3b\x44\xad\x55\xdb\x5d\x8d\x4a\x8b\xf2\x50\xa1\x40\x58\x13\x5a\x47\xe6\x0a\x44\xa0\xb1\x6e\xaf\x9c\x54\x04\x78\xed\x8d\x5f\x22\x53\x74\x4d\x51\xc0\x05\x5c\x2d\xae\x9e\x3f\x7f\xf7\xe2\xe6\x66\xf1\xe6\xea\xf5\x0b\x77\xaa\xfb\x4a\x33\x5c\x4b\x41\xdf\x36\x9e\x35\x70\xa0\xaa\xe2\x8d\x82\x9f\xbe\x0c\xb0\x7f\x40\x6b\xaf\xbd\xd9\xb4\xa2\x90\x8c\xec\x64\xc5\xd5\x2d\xdd\xa2\x54\x64\xbb\x5b\xc2\xfb\x5f\xe9\x97\x58\x20\xc1\xd8\x46\xd6\x64\x3c\x68\x1d\xd5\x18\xc3\xbd\x5e\x06\xcf\xd0\xba\x12\x77\xe9\x8d\x6b\x97\xdd\xe4\xb5\x8b\xd7\x65\xf0\x2c\x73\x60\x78\x08\xff\x9a\x9d\x39\x6b\xfd\xaf\x9e\x4f\x20\xe1\x6d\x73\x57\xd3\x02\x5e\xa3\xaa\x78\x69\x3d\x33\xf4\x6d\xb8\xf4\x87\xc1\xc5\xc5\x85\x47\xc5\x6f\x33\xdf\x85\x25\x3a\x9c\x80\x0b\xb8\xf6\xf1\x84\x15\x22\x2b\x5d\x44\xa1\x8e\x06\x15\xda\x99\x0f\xdd\xac\x8b\xec\x3e\xf3\x20\x03\x68\x0b\x56\xfa\x38\x46\xa2\xd8\x9b\xa3\x65\xd0\xbe\x22\x0e\x0a\x23\x4b\x77\xd0\x17\xf0\x2e\x8e\x56\x4c\xa0\x26\x50\xf2\x46\x14\xd8\x6a\xb0\xd1\xcf\x56\xc3\x49\x5d\x1b\x28\x4e\x55\x25\xd7\x74\x6e\x1b\xa9\xcc\xbd\x42\xf6\xe6\x5a\x09\xf4\x49\x8b\x3f\xdc\xe1\x5a\xc7\x26\xd6\x71\x35\x12\x4b\x0d\xd0\x86\x6a\x24\x8f\xd3\x16\x09\xa5\xb1\x76\xac\x1b\xe6\x82\x37\x4d\xf1\x74\xb6\x84\x5f\x0c\xe9\x5f\x83\x90\x05\xaa\x46\x30\x78\x7a\xe1\x83\x3c\xbb\xd0\xfc\xfe\xad\x95\xda\x13\x2d\xb5\xbe\x40\x4e\x5b\x5e\x6b\x8f\x6d\x30\xa7\x85\x9a\x5c\xed\xe9\x37\xc6\x75\xea\x68\xef\x40\x65\x15\x48\xeb\x48\x4c\x4b\xd6\xf2\x33\xdb\xea\x25\xb4\xa1\x7b\x64\x39\x20\xd5\x71\x10\xe6\x5e\x4f\x4e\xa1\x12\x48\x2d\x90\x94\xf7\xfe\x1e\x4a\x6f\x72\x0d\xc4\x44\xfe\x77\x18\x2e\xa8\x45\x76\x49\x6c\xc9\x67\x23\x1d\x17\x2a\x78\x2a\x4a\xbb\x5b\xa0\x44\xe5\x2e\x07\xab\x56\xd2\x38\x7f\x87\x3b\x51\x01\x99\x71\xf9\xa5\x1c\xd7\x54\x2d\xe1\x91\x0d\x92\x35\xb9\xc1\xc1\x1b\xa8\xfe\x5f\xb3\x48\xc4\x3b\x81\xd1\xbf\x8c\x8f\xc3\x7a\xbd\xa0\xd2\xd9\xcd\x5b\x14\x94\x97\x57\x85\xa2\x7b\xd4\x2a\x32\xf1\x26\xbc\x33\x3f\x40\x45\x24\x98\x54\x6c\x12\x0e\xf9\x16\xfe\x96\x45\x9d\xb0\xb2\x87\x97\x28\xe8\x1e\xaf\xed\x0f\x91\x4d\x4e\x3d\xcd\x21\x80\xd3\x04\x2d\x9c\x98\xa6\xb3\x79\x60\xca\x1b\x43\x9b\xa6\x70\x16\x80\xd1\xb5\x3d\x3d\x8b\x07\x3f\xa4\x67\x7c\x84\xd5\x4a\x07\x71\x19\xd1\x97\x97\xf0\x2b\x15\x52\x81\xa2\x5b\x84\x03\x3e\x16\xa8\x83\x7d\x4d\x68\x11\xae\xaa\xb5\xe0\x5b\x6b\xd7\xde\x5e\x2f\x80\x32\x89\x42\xb9\xa8\xca\x7e\xd9\xd1\xee\x2e\x7b\x33\x1c\x17\xf6\x94\xe9\x67\xbc\xef\xd2\xfc\x41\x1f\xf1\x71\x96\xa3\x1b\xdc\x24\xc3\x03\x38\x5e\x5a\x2d\xd3\xae\x21\x09\x62\xca\x14\x83\x48\x2a\xda\xb4\x0d\x42\xd6\xbe\xdd\x31\x4e\x8f\xaa\x48\x8d\x6c\x92\x65\x95\x48\xff\xef\xac\x4b\x93\x77\x83\xda\x6b\x4d\x9f\x5e\x38\x08\x73\x50\x7c\x19\x2b\x41\xba\xd3\x7a\x98\x1e\xd5\xb9\xbc\x84\x7f\xa0\x4e\x9e\x25\x46\x36\x1c\xcb\x20\xb9\xe3\x9d\x47\xbc\x80\xa2\xc2\xe2\xb3\xd6\x85\x71\x83\x8e\xb5\xc6\xf0\xc3\xad\x7c\xc5\x4a\xfc\xe2\xf5\xf4\x88\x26\x9d\x2f\xd6\x5a\x65\xcc\x96\x29\x5f\x3b\x7d\xec\x2a\xd6\xed\x28\x26\x70\xe1\x5d\x48\xf0\x2d\x83\xd2\x5a\xa5\x9c\xbe\xe3\x42\xf0\xc3\xd3\x47\x4e\x6c\x7f\x9d\x6a\xe6\x8c\x30\x5b\x7f\x9e\x3d\x83\x1d\x61\xb4\x98\x4e\xae\x79\x53\x97\x26\x8c\xb5\xe7\x00\x7e\xa1\xf6\x3a\xf5\xda\x64\x78\xed\xef\x1c\xed\x98\xb2\xb0\x78\x92\x1e\xef\xe0\x2e\x1c\x39\xd7\xbc\xc4\xe9\x90\xc6\x8c\xc9\x3d\x32\x44\x17\xef\x64\x55\x8f\x0b\x2d\xf6\x6e\x11\xc0\xde\xba\x08\x35\x95\xa6\xd8\xd1\x2a\x8d\xc3\x5b\x93\xa0\x65\x78\x36\x66\x8b\x5d\x29\x93\xdd\x0e\x59\x39\x4d\xbd\x4d\x9f\xca\x3f\xcc\x92\x06\x2c\x24\xba\x5f\xdf\xe1\x96\xef\xdd\x4d\x97\x27\xc6\xf6\xc2\xb3\x46\xd1\xf2\x0b\xd9\x9e\x0a\xce\xb6\xc8\x8e\xdc\x1f\x2e\x3d\x3a\x7e\x83\xfc\x61\x77\xc6\x2e\x0d\x41\xf4\xe7\x3c\x3a\x1e\xcb\x29\x19\xba\x1d\x5a\x06\x6b\xa0\xd7\x91\xc9\x49\x45\x7d\x78\x32\x78\x51\x79\x57\xb2\xca\xce\x3d\x7a\xc1\xb8\x95\x03\x37\xcb\xa0\xa6\x47\x86\xad\x53\x3b\x6f\xdc\xc2\x08\xfb\x26\x81\xd1\x92\xec\xfe\x92\xd0\x7a\xd6\x6f\xdf\x6f\x05\xbf\xab\x71\x0b\x25\x4a\x25\xf8\x7d\x1b\x8c\x78\xfb\x8e\xcc\x57\xe7\xe3\x47\xb2\x50\xc8\x33\xd1\xe8\x1f\xf3\x64\x55\x07\xd9\xf4\x8c\x36\x2d\xfd\x98\xff\xe2\xb3\x52\x63\x23\xe9\x99\x2e\x2f\x0d\xf9\x7c\xf8\x35\xb5\x16\x9b\x66\xb8\xe4\xe4\x7f\x51\x29\x14\xdd\x2c\xe3\x9d\x11\x89\x6c\xab\x27\xc7\x2b\x42\xa1\xca\x33\x6a\x4d\x1b\x54\x49\xb2\xa5\x95\xdf\x65\x55\xdd\xa8\x3a\xe8\x52\x58\xde\xb5\x7b\x8b\xe7\xa1\x42\x55\xa1\x48\x2c\xdc\x99\x92\x76\x8b\x8d\x10\xc8\x54\x7d\x6f\x98\xb4\xc7\x51\x0c\x07\x6d\xf4\x6f\x9c\xd7\xa7\xe0\xe8\x95\xfc\x5f\xff\xd2\xd4\x5e\x5b\xd8\x7f\xd3\xfc\x9b\xce\x16\x8e\x83\x4f\x57\x3d\x1b\xcf\x87\xa8\x53\x42\x27\xb1\xdd\x0b\xbb\xa5\xcb\x95\xdf\x06\x09\xdb\x53\x3c\x44\xd4\xc5\x2e\xe2\x2a\xb5\x17\xe7\xcb\x8e\x92\xdb\x67\xde\xcf\x16\x1a\x3b\x42\x99\xb4\x57\x81\x36\xb5\x35\xa9\x25\x3e\x9c\x30\x17\xfe\x63\x69\x62\x46\xcd\x56\xba\x06\xaa\x1e\xdb\xea\xd2\x77\x90\xfd\x77\x7f\xd0\x69\x94\x0f\x69\xa3\xd3\xdf\x96\x7a\xeb\x05\xc6\xdd\xcf\xb3\x45\x0c\xdf\xb0\x85\xb9\xd2\x67\x1f\x53\x2a\x5b\xee\x31\xe5\xcb\x90\x33\x96\x71\x84\x97\x64\x6f\x3e\x47\x3b\xce\x85\x0e\xf2\x3a\x49\x90\xd3\x35\x17\x57\x19\x4f\x66\x6d\xc1\xe5\x44\x1d\x68\x0f\xf9\xa8\xe9\xfb\xf0\x71\x8c\xbc\xfc\x8a\x8e\x9f\x22\xfa\xa9\xb3\xe2\x27\xdb\x91\x64\x7d\x98\x4c\x13\x67\x1d\x15\xbb\xfd\xcb\xef\x2c\xf8\x10\xac\x9e\xc8\x09\xc3\x81\x8a\xc8\xea\x08\x1b\x80\x8b\x01\x6b\x78\x20\x7f\xf4\x85\x73\x9c\x47\xae\x4e\x1a\x33\xc9\xa5\x07\xee\xe2\x5c\xfd\x00\xb7\x7a\xc3\x82\x70\x5e\x40\xd2\x15\x6d\xd2\x88\xf9\x5b\x2e\xb4\x23\x06\x96\xe2\x05\x52\x89\xa6\x50\x43\x65\x11\xcf\x64\x53\xae\x3d\xd9\xe7\x1c\xe5\xc1\x10\x93\xd3\xf5\x31\xaf\x7f\xb8\x5a\x10\xd8\x7e\xa4\x4c\xf0\x63\x29\x55\xbf\x20\x7d\xf2\x63\x64\x99\x70\x24\x12\x23\x60\x2d\xf3\xd0\x39\x93\x68\x2b\xee\x1e\xd9\xc6\x2f\x64\x3d\xbe\x33\x49\x89\xf1\x44\x9f\x79\x55\xd7\xa9\x20\x75\xec\x2f\x75\x48\xf0\x21\xb8\xbc\x93\x9c\xe4\xe2\x33\xde\xcb\x41\xcc\xa1\xa4\x26\x84\x23\x62\x10\xfb\x61\xff\xf8\x40\x4a\x8c\x67\xec\xf7\xff\x5f\xad\x3e\x7a\xbd\xfc\x96\xab\x61\x7c\x85\x0c\x95\x03\xa2\x4b\x21\xd6\xae\x6c\xef\x70\x4e\x00\x5f\xbf\x0d\xa4\x05\x1e\x92\xce\x11\x3b\x98\xae\xe2\x7d\x9a\x5d\xc6\x63\x46\x0f\x78\x06\xf0\x79\x06\xf2\x61\x8e\xac\x25\x71\xcc\x97\xe9\x4f\x8b\xf2\x07\xe7\xc2\x4c\xd9\x0a\x56\x10\x79\xb4\x64\x57\x1f\xf1\x5e\xbd\xc2\x61\x83\xfa\xd4\x17\x39\x98\x56\x87\x2d\xd9\xed\x74\x80\xac\x95\xcc\x5d\x2b\xd9\xdb\x72\xcf\xa3\xf2\x77\xab\x96\x31\x90\x9e\x87\xe6\xd3\x4c\x65\xd8\x4a\x22\xff\x96\x16\xf3\x7c\x4d\xc6\x3d\xfa\xae\xb9\xd8\x2e\xc3\x7e\xf3\xa7\x2b\xd4\x5c\xda\x2a\x44\xfe\xd6\xff\xc9\xbd\x90\x7d\x7a\x73\xf5\xfa\xc5\x30\xad\xa7\x3b\xdb\xab\x7e\x67\x1b\x05\x1c\x2d\x25\xa9\x71\x45\xaf\x79\x4e\x0f\x3b\xd8\x26\x8a\xa2\xe3\xee\x82\xa8\xa9\xbb\x0d\x5c\xaf\xc3\xac\x77\x4d\x86\xe6\x42\x71\x8b\xd0\x74\xd6\xbf\xfe\x7b\xce\x7c\x93\xdc\x23\x4e\xbc\x31\x8f\x5a\xc2\x96\x11\x91\x43\xf9\x79\x5b\x7f\xb3\x4c\x0f\x22\x8e\x39\xa7\xed\x3b\x71\x85\x93\xbe\x7c\xf7\xbd\xa2\xf5\x68\x96\x6b\x62\x2e\xa7\x3a\xfe\xfa\x2f\x71\x6e\xbe\xd7\xc6\x62\x1e\x6a\x6e\x5e\x5e\xfd\xf7\xc5\x93\x3f\xff\x7c\x2c\xc5\x0d\xb1\xca\xa7\xf4\x55\x21\x04\x50\x5d\x23\xd0\xcb\xaf\xea\x0d\x17\x54\x55\xdb\x85\x06\xf4\xe9\xc9\x9f\x7f\x5e\x68\xf0\xa6\x44\xb8\x68\xd4\xfa\x2f\x3d\x94\xfd\x61\x1f\xcd\xb9\x07\x82\xd5\x11\x8d\x8d\xb0\xe4\xf7\xef\x7d\x38\xd8\x1f\xf9\x18\x3d\x71\x80\xc7\x3f\x41\x90\x03\x6f\xe4\xf6\xf7\x23\x87\x24\x4a\xb9\x13\x28\x91\x29\xab\x97\xa2\x6d\x65\x21\xa3\x2d\x05\xd6\xcd\x10\xca\x7c\xef\x86\x54\x44\x28\x78\x14\xf5\xb6\x98\x82\xb1\xce\x20\x08\xbb\x77\x2f\xec\x01\x6c\xea\xf2\xcd\x83\x5f\xf4\x50\x7a\x20\xa1\x44\xec\x1a\x64\xec\xe9\xe1\x44\x6a\x53\x90\x9a\x4a\x65\x1f\x64\xb3\x07\xfc\x39\x50\x25\xb3\xbe\x19\xfb\xbc\x6b\x2a\x47\x05\x67\x92\x96\x28\xb0\x04\xd9\x18\x7b\x5a\x37\xf5\xa0\x95\xb9\x68\x7d\x80\xe1\x91\x6d\x99\x7e\x26\xdf\x64\xd0\x76\xa0\xb4\xed\x8e\xbe\x5b\xc1\x10\x68\xfa\x5b\xc2\xde\xbc\x79\xcb\x2f\xf5\xbd\x0a\xa7\x03\xf1\x22\x3c\xa0\xe9\x96\x73\xd2\x18\x04\x14\x56\xf4\x42\x7a\x15\xbc\x66\x68\x6f\x6a\xaf\x77\x03\xdc\x72\x3e\x7e\x38\x2d\x1b\xe1\x95\x22\x28\x50\x2a\x8a\x3e\x3c\x86\x5b\x30\xda\x58\x8e\x51\x35\xcd\x19\x33\x1f\xde\x99\x87\x45\x3d\x95\x6c\x08\x8f\x0e\x5e\x34\x4f\xdd\x0d\xd8\xb2\x65\x72\xe3\x7f\xf3\x7d\x00\xae\xb9\x75\x47\xa4\x9a\x0c\x84\x50\xdd\x83\x57\x41\xa6\xdd\x45\xad\xd1\xac\x7a\xaa\x78\xca\x8b\xbb\xbb\x31\x6f\xde\x59\xe5\xdc\x18\xc8\x61\x46\x5d\x4b\x1a\x7c\x0e\x7b\x94\x7e\x37\xd2\xb6\x61\x68\x43\x35\x5f\x08\x81\x72\xc7\x59\x69\x5f\x6f\xcb\x91\xaa\x8a\xb3\xb5\x2c\x5f\x4e\x4d\xcc\x85\x12\xb9\x3e\xa6\x2f\x49\xb9\x7a\xe5\x69\x70\x72\xe2\x1b\x53\xe2\x48\x8f\x1b\x3c\x29\x4e\x9f\x53\xab\xec\xe9\x76\xb5\x7d\xcf\x51\xa0\x9d\x77\xef\xc5\x17\xf6\xa0\x8d\xfb\x0e\x07\x22\x6d\x79\x3c\x6e\x2f\xea\x3b\x54\x2f\x72\xef\x05\xc1\xaa\x53\x2b\x1a\xaf\x0a\x0c\x77\x27\x04\xc5\x6b\x1f\x67\x48\xc6\xd0\xb0\xc4\xa4\x41\xab\x81\x07\x77\x43\xd0\xaa\xfb\xba\x6a\x7e\x8c\xf0\x3f\xd1\x20\xbe\x9d\x25\xcc\xf3\xe5\x4f\xd9\x3a\x48\xdb\xd2\x16\x94\xc5\xbc\xad\x4a\xdf\x7d\xa2\x88\xd8\xb4\x4a\xb2\x88\xcf\xea\x67\xb2\x0f\xcf\xed\x31\x3d\xf5\x7a\x68\x63\x2d\x9d\xae\xd8\x6a\xc6\x34\x66\xdd\x6c\x11\x3c\xe9\xc2\xde\x82\xa1\x9c\x1d\xd8\x37\x1b\x22\xf0\x06\x05\x25\x35\xfd\x3f\xf7\x08\xd9\xa9\xd7\x51\xa6\x73\x2c\x6d\x4e\x2e\xf5\xf2\x39\x0a\xfc\xf4\x25\xee\xd6\x3b\x9d\xd2\x36\x70\xf7\x7a\x31\x52\x40\x23\x9d\x68\xdf\xc7\xee\x93\xc5\x64\x96\xc4\xfa\xa7\x92\x69\x98\x53\x28\x4b\x19\x35\x6f\xc8\x06\x89\x28\x79\x89\xc9\x3c\xd6\x94\x58\x93\xe2\xb3\xf4\x1d\x88\x27\x31\xa0\x05\x34\xc8\x02\x73\x71\x13\x26\x7f\x0a\x1d\x0b\x3d\x8c\x90\x35\x2d\xd0\x95\xb1\x9e\xcc\xa1\xd9\xdd\xf2\xe5\xe0\xe2\x1a\xd9\x26\xef\x1a\xd0\x50\x76\x26\x2b\x83\x15\x4c\xae\x26\xbd\xac\x35\x58\x24\x5c\xef\x13\x96\x3d\xe6\x74\x79\x74\x1f\xc0\xe2\x36\x00\x57\xcb\xd8\x11\x69\x3a\xe0\x3a\xad\xd0\x51\xf0\xe8\xc3\x05\x17\x27\x38\xcd\x77\xcd\x31\x8b\xd4\x39\x9b\xee\x2d\xf3\xb0\x03\x85\x49\xd1\xb6\x48\x58\x1c\x70\x54\x44\xb2\xc7\xfa\x62\xde\x34\x6c\x9e\xb8\x4b\xfd\x35\x65\x45\xdd\x94\x36\x4c\xb4\xa8\x18\x0c\xb8\x88\x8f\x88\xc2\xd3\xd3\x94\x21\x7e\x61\xe9\x35\xfe\x76\x4a\xc6\x79\xee\x96\x46\x17\x3e\x0c\x30\xc7\x18\x71\x49\x4b\x8d\xbb\x46\xab\xaf\x6a\x34\xd2\xf3\x0d\xab\xe1\x96\xcb\xb1\x6d\xdd\xb8\x28\x36\xe8\xd8\x23\x3f\x1d\x03\xdf\xc6\x3b\x9d\xf3\xf4\xe7\xd1\x23\x38\x1f\xdb\x9d\x45\x2f\x99\x4b\x8c\x4d\x70\x36\x12\x78\x39\xcc\xdb\xc7\xc0\x5e\x55\x36\x4d\x31\xbd\xf5\x79\xd7\x4f\x68\x7a\x25\x89\x36\x36\xbe\xa7\xa5\xaf\xc2\x0f\xe8\x87\xb7\x02\x9b\x95\xc7\x2d\x37\x9f\x8e\xdf\xa6\xbf\xfb\x6d\x08\xa7\xc6\x7a\xfa\xf3\x32\x04\x4e\x47\xa2\xbc\x1b\x14\x7b\x94\x03\x2d\xb8\xc4\x34\xcf\xa2\x78\x2c\x3b\x55\x62\x67\xc3\x37\x95\x31\xdf\xb8\x91\xd6\x37\x33\x99\x34\xd1\x30\x12\x24\x59\xe3\xa6\x21\xa2\xb4\xb3\x52\x6d\x93\xea\x46\x10\x1d\x5f\xba\x65\x8a\x47\x53\x57\x4e\xbf\x4d\x1a\xd9\xcd\x31\x4d\x15\xfe\x40\x65\x65\xdb\x3e\x4b\xac\x71\x63\x9f\x61\x5c\x33\x13\x07\xc2\xb8\x71\x68\xbe\xb1\x77\x8a\x8b\xcd\x02\xb6\x4d\xad\xa8\xa4\x6d\x3f\xb3\x44\xd5\xec\x00\x19\xb9\xb3\x5d\xc2\x50\xe2\x1e\x6b\xbe\xc3\xb6\x47\x3e\x34\xfe\x72\x66\xae\xa9\x3b\xac\x48\xbd\x9e\xe9\x8c\x14\xa4\x65\x40\x18\xd0\x7a\xfb\xee\xd5\xdf\xaf\x6e\x5f\xd8\x06\xe7\x82\xec\xc8\x1d\xad\xa9\xba\x37\xdc\xd8\x35\x77\x35\x95\x95\xde\xe6\xda\xa8\x04\x16\x48\xf7\x51\x7b\xf5\x70\x18\x1d\xda\x9c\xb3\xfe\xe1\xbc\x0c\x15\xd6\xf1\x03\x8b\x25\x77\xba\x23\x0c\x5d\x39\x21\x94\x1c\x09\x0b\x0c\x94\x67\x21\x76\x6c\x4b\x6f\x06\x4d\x2a\xa1\x61\x7a\x49\x79\x3e\xc9\x9f\xda\x4e\xd6\x65\x57\xb3\x3b\x31\x69\x71\xd4\x1b\x2b\x37\xa5\x5d\x09\x3b\xf4\x79\x4a\x72\xab\x49\x3b\x9a\xd6\xfb\x90\xb7\x80\xdf\x58\x50\xa6\x4e\xbf\xb7\x7f\x41\x09\x60\xd7\xa1\x9d\x6e\xae\x4f\x74\x45\x46\xdf\xbe\x6c\x95\xc3\x36\x20\x18\x94\xca\xee\x94\x61\x68\x70\xbf\x62\xf7\xae\x28\xd2\x69\xf5\x36\x83\x7c\x34\x54\xd3\x61\x4b\x4a\x04\xb2\x21\xb4\x6d\x98\x97\x3a\x52\xf4\x87\x46\x17\x67\x98\xdd\x4c\x31\x0b\x8d\xd5\x70\x25\x4d\x37\xb8\x44\x9c\x27\x2b\xa9\x84\x2d\x0a\xac\xef\x03\xd4\x30\x17\x9a\xd4\xce\x6d\xad\x93\x74\x42\x07\x19\x60\x85\x69\xc9\xbb\xfb\x7c\x1c\x32\x1e\x1a\x75\x63\x93\x2e\x8c\x0f\x50\xe3\xec\x2b\x4c\x8a\x9e\x60\x2d\x9e\x8e\xaf\x9d\xbc\x2e\x79\x40\x76\x0d\xc5\x65\x27\x67\xb4\x8a\xe4\x69\x70\x59\xda\x22\x37\xa0\x76\x52\xce\x0d\x6e\xe6\x09\x77\x9a\xaa\xf5\x2f\xea\xd4\x36\x3a\x2d\x80\xfa\xe3\x9e\x7a\xda\x2c\x65\x72\x6b\x33\x9d\x80\x71\xe9\x47\xa7\xcc\x9a\xa3\xd5\x8c\xf0\x5c\xd5\x44\xb5\x81\xe1\x38\xb1\xaf\xe7\xc0\x1d\xe1\x94\xcc\x04\xeb\x7c\x3d\x68\x5a\xa7\x7b\xa2\x9e\x87\xde\x9c\x69\x23\xae\xe9\x18\x3d\x51\xb0\xd0\xfb\x4c\x1a\x26\x2b\x6c\x35\xbf\x6f\xea\xf5\x81\xe1\xc3\xd1\xe0\xc1\x09\x39\xdf\x93\x06\x48\x27\x36\x14\x42\xde\x54\x68\x21\x34\xb4\x9c\x77\xd6\x85\x1a\x42\x8c\x45\x6f\x8b\x21\x24\x6d\x86\x83\xe1\x69\xfc\x94\x61\x3b\x71\x7b\x4e\xf1\x2d\x89\x31\xd0\x6e\x7b\x22\xc4\x2d\x8a\x7e\xfa\x30\x59\xf1\xe0\x1b\xc6\x8c\xd5\x9e\x74\xbf\x98\x95\xad\x77\x31\xa3\xf1\xbb\x28\xeb\xe9\x19\x1e\x3b\xee\xa3\xec\xa1\x5f\xf3\x3c\xd9\xd5\xef\x4f\x1a\xa5\xcd\xe7\x68\x8f\xda\x98\x19\x6c\xc9\x5b\x29\x89\x72\x70\xda\x41\xb5\x93\x7c\x92\x43\xae\x6d\x5b\xb4\x5f\x9c\xc3\x5f\x07\x1b\x18\x97\xbd\xb9\xc4\xe4\xa5\x3d\xc9\x57\x65\xf5\x71\x5c\xc0\xc6\x5c\xa0\x66\x68\x87\xf9\xd6\xbe\x84\x2f\x63\x4e\x2e\x36\x93\x9e\xf9\xbc\x41\xd5\x4d\x44\xe9\xc6\xf7\x2c\xb4\xd4\x0c\x4f\x3b\x00\x56\x6e\xf3\x90\x3f\xb2\x93\x90\xdf\xf9\x64\x73\x92\x98\x6d\x25\x3a\x4b\xcb\xe4\x60\xd5\x7d\xb8\xd8\xfe\xa0\x24\x74\x35\xf4\xca\xd2\xf5\x52\x2d\x46\xfe\x6f\x5d\x0f\xd0\x79\x19\xc8\xd2\x7c\x48\xfc\x40\x90\xff\xe9\xe3\xa7\x39\x32\xd1\x88\xe9\x30\x56\x7d\x03\xa9\x0f\xe1\xd6\x79\xfb\x6c\xf0\xa3\xa4\x1f\x77\x81\xad\x0f\x7c\xc5\x14\x0a\x46\xea\xe3\xa3\xa6\xb1\x2f\x6c\xa7\x39\x7d\x90\x15\x3c\x5a\x76\x75\xbe\xf4\x53\xa6\xe9\xdd\xbd\x80\x7f\xb8\xb8\xca\x45\xc5\xae\x74\x6b\xdf\xea\x4b\xd8\x11\x55\xf9\x48\xb9\x93\x02\x3e\x96\xf9\xc8\x66\x6f\x34\x68\x23\xb3\x76\x0c\x33\x1d\x1a\x39\x3e\xc6\xb7\x84\x5f\xba\x21\x64\xd2\xe5\x33\xd4\xd7\x33\x3c\x39\xd1\x3f\xe4\x95\x8d\x8c\xb9\x8c\xd2\xe3\xeb\x43\x46\xfb\xe7\xef\x32\x55\xd0\x13\x03\x0c\x21\x9f\x9e\xf5\xc3\xd7\xfe\x49\x53\x08\xbd\x33\x08\x90\x4e\xcc\x46\x99\xe1\xf8\x2c\x8f\x65\xdb\x63\xd9\x3f\x77\xa5\x55\x53\x44\xf1\xad\x99\x15\x71\x89\x80\x9d\x15\x29\xdb\xe6\xa0\xa8\x6d\x36\x40\x74\x75\xc9\x35\x6f\x98\xce\xa5\x6a\xc9\xdd\x3e\xd9\x33\x42\x95\x4c\x12\xc5\x2f\x7d\xae\xad\xea\x88\x1e\x8f\x0f\xaf\x0c\xb5\x84\x76\x47\x24\x4e\x1e\xc9\xf3\xcd\xf9\xfd\xb3\x78\xe7\xe1\xc0\x23\x9b\x2d\xde\x53\xa2\x96\x29\xd8\x59\x74\x89\x39\xd1\x19\xee\xf8\xda\xc3\x31\x76\x59\x51\x98\x81\x27\xc6\xbb\x0d\x6b\x02\xb7\x71\x82\x1c\xb7\x6f\xb6\x49\xd9\x91\xa9\xa3\x73\x57\xb4\xd7\x11\xce\x4f\x7d\xf1\x7a\xde\xa6\xe9\x68\x35\xb3\xa6\xfe\x6d\x28\xf3\xcc\x90\x65\x2b\x6e\x84\xc8\xdb\xfb\xf1\x69\xa4\x48\xe1\x9f\xdb\xbd\x32\xc9\xdc\x83\x33\x1e\xf1\xaa\x23\xde\x74\xc8\x28\xda\xaa\x98\x39\xd3\x00\x8e\xcc\xc3\x0a\xc3\x64\x9e\x03\x3d\xce\xad\x26\x0f\x91\xfc\x9d\x3a\xfc\x47\xb7\x33\xfb\x79\x5e\x5f\xb2\xa9\x39\x29\x9f\xfe\x72\x7a\x37\x73\x77\x28\x2d\x76\xc8\xc9\x52\xc7\xa1\xc4\xd1\x65\xca\x13\x9d\x34\xac\x61\x59\x2f\xbb\x29\x42\xc4\x68\xa5\x2d\x7a\xb0\x82\xc9\xa7\x49\xfa\x63\xf6\x9f\x76\x80\x55\xd2\x95\xd7\x89\x55\xe2\x36\xbd\xc9\xd0\x35\xa1\xcf\x9c\x0c\x74\x09\x26\x5f\x7b\x4e\x77\x5f\xd3\xd2\x50\x6f\x36\xd6\xfa\x67\x82\x90\x08\xe9\x49\x36\x68\x9a\xff\xb7\x95\x60\xd5\xf6\x7b\x0e\x51\x10\x25\x8e\xa1\xee\x9f\xf7\x59\x6a\x6e\x0e\xed\xf7\x53\x82\x09\x15\xdf\xd3\x37\x79\x32\x7b\xfa\xdc\x54\xda\xe6\xdc\x37\x87\x96\xb4\xcc\x87\x97\x8b\xe1\x50\x5f\x2f\x4f\xd7\xe7\x13\xeb\x36\xaa\x31\x7c\x9b\xba\xb1\xdc\x5e\xee\x7b\x1f\xf7\xed\xec\x3f\x01\x00\x00\xff\xff\xc3\x68\xf1\xbf\x9d\x4e\x00\x00" func migrationcontractstagingCdcBytes() ([]byte, error) { return bindataRead( @@ -106,7 +106,7 @@ func migrationcontractstagingCdc() (*asset, error) { } info := bindataFileInfo{name: "MigrationContractStaging.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x89, 0x89, 0x80, 0x64, 0x35, 0x70, 0x59, 0xaa, 0x88, 0xf0, 0x19, 0xe4, 0x6c, 0x39, 0xf, 0x45, 0xa5, 0x6b, 0xd7, 0xc9, 0x6c, 0x7f, 0xe2, 0x3, 0xf3, 0x88, 0x47, 0x99, 0xdf, 0x29, 0xb0, 0x87}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x44, 0xee, 0x89, 0x4, 0x9d, 0x7b, 0xb3, 0xac, 0xa4, 0xce, 0x3e, 0x59, 0x7f, 0x66, 0x6f, 0x4, 0x88, 0xaf, 0x14, 0xb8, 0x19, 0x1f, 0x8d, 0x1b, 0x79, 0x57, 0x46, 0xad, 0xf2, 0x18, 0xc8, 0x46}} return a, nil } diff --git a/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc b/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc index b414d44..481b8b6 100644 --- a/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc +++ b/scripts/migration-contract-staging/get_staged_contract_code_hash.cdc @@ -9,6 +9,6 @@ import "MigrationContractStaging" /// Returns the code hash as it is staged or nil if it not currently staged. /// -access(all) fun main(contractAddress: Address, contractName: String): String? { +access(all) fun main(contractAddress: Address, contractName: String): [UInt8]? { return MigrationContractStaging.getStagedContractCodeHash(address: contractAddress, name: contractName) } diff --git a/tests/migration_contract_staging_tests.cdc b/tests/migration_contract_staging_tests.cdc index 5133a79..0234978 100644 --- a/tests/migration_contract_staging_tests.cdc +++ b/tests/migration_contract_staging_tests.cdc @@ -13,16 +13,16 @@ access(all) let bcAccount = Test.getAccount(0x0000000000000010) // Content of update contracts as hex strings access(all) let fooUpdateCode = "61636365737328616c6c2920636f6e747261637420466f6f207b0a2020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a202020202020202072657475726e2022626172220a202020207d0a7d0a" access(all) let fooUpdateCadence = String.fromUTF8(fooUpdateCode.decodeHex()) ?? panic("Problem decoding fooUpdateCode") -access(all) var fooUpdateHash = "" +access(all) var fooUpdateHash:[UInt8] = [] access(all) let aUpdateCode = "61636365737328616c6c2920636f6e747261637420696e746572666163652041207b0a202020200a2020202061636365737328616c6c29207265736f7572636520696e746572666163652049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e670a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e670a202020207d0a0a2020202061636365737328616c6c29207265736f757263652052203a2049207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a20202020202020202020202072657475726e2022666f6f220a20202020202020207d0a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e67207b0a20202020202020202020202072657475726e2022626172220a20202020202020207d0a202020207d0a7d" access(all) let aUpdateCadence = String.fromUTF8(aUpdateCode.decodeHex()) ?? panic("Problem decoding aUpdateCode") -access(all) var aUpdateHash = "" +access(all) var aUpdateHash:[UInt8] = [] access(all) let bUpdateCode = "696d706f727420412066726f6d203078303030303030303030303030303030390a0a61636365737328616c6c2920636f6e74726163742042203a2041207b0a202020200a2020202061636365737328616c6c29207265736f757263652052203a20412e49207b0a202020202020202061636365737328616c6c292066756e20666f6f28293a20537472696e67207b0a20202020202020202020202072657475726e2022666f6f220a20202020202020207d0a202020202020202061636365737328616c6c292066756e2062617228293a20537472696e67207b0a20202020202020202020202072657475726e2022626172220a20202020202020207d0a202020207d0a202020200a2020202061636365737328616c6c292066756e206372656174655228293a204052207b0a202020202020202072657475726e203c2d637265617465205228290a202020207d0a7d" access(all) let bUpdateCadence = String.fromUTF8(bUpdateCode.decodeHex()) ?? panic("Problem decoding bUpdateCode") -access(all) var bUpdateHash = "" +access(all) var bUpdateHash:[UInt8] = [] access(all) let cUpdateCode = "696d706f727420412066726f6d203078303030303030303030303030303030390a696d706f727420422066726f6d203078303030303030303030303030303031300a0a61636365737328616c6c2920636f6e74726163742043207b0a0a2020202061636365737328616c6c29206c65742053746f72616765506174683a2053746f72616765506174680a2020202061636365737328616c6c29206c6574205075626c6963506174683a205075626c6963506174680a0a2020202061636365737328616c6c29207265736f7572636520696e74657266616365204f757465725075626c6963207b0a202020202020202061636365737328616c6c292066756e20676574466f6f46726f6d2869643a2055496e743634293a20537472696e670a202020202020202061636365737328616c6c292066756e2067657442617246726f6d2869643a2055496e743634293a20537472696e670a202020207d0a0a2020202061636365737328616c6c29207265736f75726365204f75746572203a204f757465725075626c6963207b0a202020202020202061636365737328616c6c29206c657420696e6e65723a20407b55496e7436343a20412e527d0a0a2020202020202020696e69742829207b0a20202020202020202020202073656c662e696e6e6572203c2d207b7d0a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e20676574466f6f46726f6d2869643a2055496e743634293a20537472696e67207b0a20202020202020202020202072657475726e2073656c662e626f72726f775265736f75726365286964293f2e666f6f2829203f3f2070616e696328224e6f207265736f7572636520666f756e64207769746820676976656e20494422290a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e2067657442617246726f6d2869643a2055496e743634293a20537472696e67207b0a20202020202020202020202072657475726e2073656c662e626f72726f775265736f75726365286964293f2e6261722829203f3f2070616e696328224e6f207265736f7572636520666f756e64207769746820676976656e20494422290a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e206164645265736f75726365285f20693a2040412e5229207b0a20202020202020202020202073656c662e696e6e65725b692e757569645d203c2d2120690a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e20626f72726f775265736f75726365285f2069643a2055496e743634293a20267b412e497d3f207b0a20202020202020202020202072657475726e202673656c662e696e6e65725b69645d20617320267b412e497d3f0a20202020202020207d0a0a202020202020202061636365737328616c6c292066756e2072656d6f76655265736f75726365285f2069643a2055496e743634293a2040412e523f207b0a20202020202020202020202072657475726e203c2d2073656c662e696e6e65722e72656d6f7665286b65793a206964290a20202020202020207d0a0a202020202020202064657374726f792829207b0a20202020202020202020202064657374726f792073656c662e696e6e65720a20202020202020207d0a202020207d0a0a20202020696e69742829207b0a202020202020202073656c662e53746f7261676550617468203d202f73746f726167652f4f757465720a202020202020202073656c662e5075626c696350617468203d202f7075626c69632f4f757465725075626c69630a0a202020202020202073656c662e6163636f756e742e736176653c404f757465723e283c2d637265617465204f7574657228292c20746f3a2073656c662e53746f7261676550617468290a202020202020202073656c662e6163636f756e742e6c696e6b3c267b4f757465725075626c69637d3e2873656c662e5075626c6963506174682c207461726765743a2073656c662e53746f7261676550617468290a0a20202020202020206c6574206f75746572203d2073656c662e6163636f756e742e626f72726f773c264f757465723e2866726f6d3a2073656c662e53746f726167655061746829210a20202020202020206f757465722e6164645265736f75726365283c2d20422e637265617465522829290a202020207d0a7d" access(all) let cUpdateCadence = String.fromUTF8(cUpdateCode.decodeHex()) ?? panic("Problem decoding cUpdateCode") -access(all) var cUpdateHash = "" +access(all) var cUpdateHash:[UInt8] = [] // Block height different to add to the staging cutoff access(all) let blockHeightDelta: UInt64 = 10 @@ -111,7 +111,7 @@ access(all) fun testStageContractSucceeds() { let evt = events[0] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateHash, evt.code) + Test.assertEqual(fooUpdateHash, evt.codeHash) Test.assertEqual("Foo", evt.contract) Test.assertEqual("stage", evt.action) } @@ -162,7 +162,7 @@ access(all) fun testStageContractViaHostCapabilitySucceeds() { let evt = events[0] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateHash, evt.code) + Test.assertEqual(fooUpdateHash, evt.codeHash) Test.assertEqual("Foo", evt.contract) Test.assertEqual("stage", evt.action) @@ -201,17 +201,17 @@ access(all) fun testStageMultipleContractsSucceeds() { Test.assertEqual(4, events.length) let cEvt = events[1] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(bcAccount.address, cEvt.address) - Test.assertEqual(cUpdateHash, cEvt.code) + Test.assertEqual(cUpdateHash, cEvt.codeHash) Test.assertEqual("C", cEvt.contract) Test.assertEqual("stage", cEvt.action) let bEvt = events[2] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(bcAccount.address, bEvt.address) - Test.assertEqual(bUpdateHash, bEvt.code) + Test.assertEqual(bUpdateHash, bEvt.codeHash) Test.assertEqual("B", bEvt.contract) Test.assertEqual("stage", bEvt.action) let aEvt = events[3] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(aAccount.address, aEvt.address) - Test.assertEqual(aUpdateHash, aEvt.code) + Test.assertEqual(aUpdateHash, aEvt.codeHash) Test.assertEqual("A", aEvt.contract) Test.assertEqual("stage", aEvt.action) @@ -260,7 +260,7 @@ access(all) fun testReplaceStagedCodeSucceeds() { Test.assertEqual(5, events.length) let evt = events[4] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual(fooUpdateHash, evt.code) + Test.assertEqual(fooUpdateHash, evt.codeHash) Test.assertEqual("Foo", evt.contract) Test.assertEqual("replace", evt.action) } @@ -291,7 +291,7 @@ access(all) fun testUnstageContractSucceeds() { Test.assertEqual(6, events.length) let evt = events[5] as! MigrationContractStaging.StagingStatusUpdated Test.assertEqual(fooAccount.address, evt.address) - Test.assertEqual("", evt.code) + Test.assertEqual([] as [UInt8], evt.codeHash) Test.assertEqual("Foo", evt.contract) Test.assertEqual("unstage", evt.action) @@ -432,12 +432,13 @@ access(all) fun getStagedContractCode(contractAddress: Address, contractName: St return stagedContractCodeResult.returnValue as! String? } -access(all) fun getStagedContractCodeHash(contractAddress: Address, contractName: String): String? { +access(all) fun getStagedContractCodeHash(contractAddress: Address, contractName: String): [UInt8]? { let stagedContractCodeResult = executeScript( "../scripts/migration-contract-staging/get_staged_contract_code_hash.cdc", [contractAddress, contractName] ) - return stagedContractCodeResult.returnValue as! String? + Test.assert(stagedContractCodeResult.error == nil, message: "Problem retrieving result of getStagedContractCodeHash()") + return stagedContractCodeResult.returnValue as! [UInt8]? } access(all) fun getAllStagedContractCodeForAddress(contractAddress: Address): {String: String} { From f165996749e7db377a908c8c02e028e1c7211d6e Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:58:59 -0600 Subject: [PATCH 16/16] update go assets --- lib/go/templates/internal/assets/assets.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 6f6590d..2006681 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -8,7 +8,7 @@ // scripts/migration-contract-staging/get_all_staged_contract_hosts.cdc (455B) // scripts/migration-contract-staging/get_all_staged_contracts.cdc (406B) // scripts/migration-contract-staging/get_staged_contract_code.cdc (520B) -// scripts/migration-contract-staging/get_staged_contract_code_hash.cdc (529B) +// scripts/migration-contract-staging/get_staged_contract_code_hash.cdc (530B) // scripts/migration-contract-staging/get_staged_contract_names_for_address.cdc (469B) // scripts/migration-contract-staging/get_staged_contract_update.cdc (686B) // scripts/migration-contract-staging/get_staging_cutoff.cdc (422B) @@ -277,7 +277,7 @@ func scriptsMigrationContractStagingGet_staged_contract_codeCdc() (*asset, error return a, nil } -var _scriptsMigrationContractStagingGet_staged_contract_code_hashCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x91\xc1\x6a\xeb\x40\x0c\x45\xf7\xf3\x15\x17\xbf\x8d\x0d\x7e\x4e\xb3\xf5\xa6\x94\x2c\xda\x4d\xbb\x68\xe8\x07\xa8\x63\x65\x2c\x70\x34\x61\x46\x0e\x84\xd2\x7f\x2f\x76\xec\x92\x16\xba\x13\xb2\x74\xcf\xb1\x46\x8e\xa7\x98\x0c\xc5\xb3\x84\x44\x26\x51\x77\x51\x2d\x91\xb7\xbd\x51\x10\x0d\x85\x73\xff\x44\x8d\xa7\x96\x44\x45\xe9\x00\xe0\xcc\x29\x4b\xd4\x16\xc5\xb6\xd9\x36\x77\x45\x3d\x77\x4d\x6c\xe0\x16\xc5\x23\x1b\xa6\x75\xee\xb0\xa6\x61\x17\x3b\x5e\xc6\x3a\xce\x3e\xc9\xc9\xae\x01\xaf\x6c\x63\xd2\x0c\xeb\x19\x3b\xea\x58\x3d\xc3\xc7\x8e\x61\x3d\x19\x7a\xca\x78\x67\x56\xe4\x6b\xde\x21\xa6\x79\x32\xc8\x99\x15\x7e\x4d\x8f\x09\x2a\x03\xe4\x00\x31\x48\x86\x46\xc3\x85\x6d\xd9\x6a\x16\xf0\x40\x1a\x46\x0a\x93\x22\xeb\xff\xb7\x7d\x51\xbb\xca\xb9\xcd\x66\x83\x5b\x89\x19\xde\x53\xee\x41\x79\x89\x5b\xe0\x3f\x28\x13\xc2\x8f\x29\xb1\xda\x70\x59\x41\x53\x98\x23\xef\x39\xe7\x92\x86\xa1\xc2\x61\x54\x1c\x49\xb4\x5c\x55\x1f\xba\x2e\x71\xce\x2d\x96\xa2\xfe\xfe\x89\x17\x3a\x72\x8b\xbd\x25\xd1\x50\xad\xc5\x3d\x3e\x66\xf5\x34\x0b\xe2\xaf\x57\x6a\x02\xdb\xf5\xe2\xeb\x87\xe9\xde\x4f\x94\xfb\x92\x56\xe0\x2f\x83\x1a\x3a\x03\x6f\xf1\x95\xfb\x74\x5f\x01\x00\x00\xff\xff\x97\x7d\x92\x5b\x11\x02\x00\x00" +var _scriptsMigrationContractStagingGet_staged_contract_code_hashCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x91\xb1\x8a\xdb\x40\x10\x86\xfb\x7d\x8a\x1f\xa5\x91\x40\x91\xe3\x2e\xa8\x09\xc1\x45\x92\x22\x29\x62\x5c\x1d\x57\xcc\xad\xc6\xab\x01\x79\xd6\xec\x8e\x0c\xe6\xb8\x77\x3f\x24\x4b\x87\xef\xe0\xba\x65\x76\xe6\xff\xbe\x9d\x95\xd3\x39\x26\x43\xf1\x57\x42\x22\x93\xa8\xbb\xa8\x96\xc8\xdb\xde\x28\x88\x86\xc2\xb9\x2f\xa2\xc6\x53\x49\xa2\xa2\x74\x00\x70\xe1\x94\x25\x6a\x8b\x62\xdb\x6c\x9b\x6f\x45\x3d\x57\x4d\x6c\xe0\x16\xc5\x2f\x36\x4c\xe3\xdc\x61\x4d\xc3\x2e\x76\xbc\xb4\x75\x9c\x7d\x92\xb3\xdd\x02\xfe\xb3\x8d\x49\x33\xac\x67\xec\xa8\x63\xf5\x0c\x1f\x3b\x86\xf5\x64\xe8\x29\xe3\x89\x59\x91\x6f\x79\xc7\x98\xe6\xce\x20\x17\x56\xf8\x35\x3d\x26\xa8\x0c\x90\x23\xc4\x20\x19\x1a\x0d\x57\xb6\x65\xaa\x59\xc0\x03\x69\x18\x29\x4c\x8a\xac\x5f\x0f\xfb\xa2\x76\x95\x73\x9b\xcd\x06\xf7\x12\x33\xbc\xa7\xdc\x83\xf2\x12\xb7\xc0\xdf\x51\x26\x84\x1f\x53\x62\xb5\xe1\xba\x82\xa6\x30\x47\xde\x73\xce\x25\x0d\x43\x85\xe3\xa8\x38\x91\x68\xb9\xaa\xfe\xec\xba\xc4\x39\xb7\x58\x0e\xf5\xdb\x23\xfe\xd1\x89\x5b\xec\x2d\x89\x86\xaa\xc5\xc3\xe1\x8f\xda\xf7\xc7\x1f\x78\x9e\xdd\xd3\x6c\x88\xcf\xbe\xa9\x09\x6c\xb7\x95\xaf\x17\xd3\xc2\x7f\x53\xee\x4b\x5a\x89\x1f\x14\x6a\xe8\x4c\xbc\xe7\x57\xee\xc5\xbd\x06\x00\x00\xff\xff\x7d\xa7\xf9\x92\x12\x02\x00\x00" func scriptsMigrationContractStagingGet_staged_contract_code_hashCdcBytes() ([]byte, error) { return bindataRead( @@ -293,7 +293,7 @@ func scriptsMigrationContractStagingGet_staged_contract_code_hashCdc() (*asset, } info := bindataFileInfo{name: "scripts/migration-contract-staging/get_staged_contract_code_hash.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x71, 0x59, 0x24, 0xaa, 0xbe, 0x6b, 0x47, 0x13, 0xd8, 0x86, 0xf7, 0x2e, 0x65, 0x27, 0x4d, 0xdb, 0xa2, 0xcc, 0x5d, 0x59, 0xff, 0xcd, 0xbe, 0xa6, 0x12, 0x62, 0xe1, 0x57, 0x9b, 0xe5, 0x8e, 0x26}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1e, 0x42, 0xfb, 0xb3, 0x68, 0xa6, 0xb3, 0x5e, 0xef, 0x5f, 0xf8, 0x60, 0x95, 0x4c, 0x53, 0xf8, 0x10, 0x3a, 0xd2, 0x47, 0xb4, 0x75, 0xca, 0x55, 0x77, 0x10, 0x9d, 0x83, 0xe, 0xc1, 0x7e, 0x90}} return a, nil }