DeploySEALED
$▓●█^╲▒@○□╱◇╱◆◇▫$$╲?▓█$▒□@█@╳○%▒▫◇◇◆■^◆&╳╲~▓○▪&&▒▪?○@&█~?╲!▫^*╳╳
Transaction ID
Execution Fee
0.00000324 FLOWTransaction Summary
DeployContract deployment
Contract deployment
Script Arguments
0nameString
AFLUpgradeAdmin
1codeString
import AFLUpgradeExchange from 0x8f9231920da9af6d
pub contract AFLUpgradeAdmin {
pub resource UpgradeAdmin {
pub fun addUpgradePath(oldTemplateId: UInt64, newTemplateId: UInt64, requirements: [AFLUpgradeExchange.Requirement]) {
AFLUpgradeExchange.addUpgradePath(oldTemplateId: oldTemplateId, newTemplateId: newTemplateId, requirements: requirements)
}
pub fun updateUpgradePath(oldTemplateId: UInt64, newTemplateId: UInt64, requirements: [AFLUpgradeExchange.Requirement]) {
AFLUpgradeExchange.updateUpgradePath(oldTemplateId: oldTemplateId, newTemplateId: newTemplateId, requirements: requirements)
}
pub fun removeUpgradePath(oldTemplateId: UInt64) {
AFLUpgradeExchange.removeUpgradePath(oldTemplateId: oldTemplateId)
}
pub fun createUpgradeAdmin(): @UpgradeAdmin {
return <- create UpgradeAdmin()
}
}
init() {
AFLUpgradeAdmin.account.save(<- create UpgradeAdmin(), to: /storage/AFLUpgradeAdmin)
}
}
Cadence Script
1transaction(name: String, code: String ) {
2 prepare(signer: AuthAccount) {
3 signer.contracts.add(name: name, code: code.utf8 )
4 }
5 }