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!") + } +}