feat: Blueprint contracts support (#10058)
* Update smart-contract to have 'is_blueprint' flag * Store into the database 'is_blueprint' value retrieved from verification or lookup results * Make use of TestHelper module for smart_contract_controller_test * Make use of TestHelper module for verification_controller_test. Fix invalid 'is_blueprint' value in fixture * Fix spelling. Simplify Vyper.publish method * Add 'Averify' into spelling check * Add PR url to the comment with rationale behind url-encoding ':' symbolmf-only-health-webapp
parent
64b55faea3
commit
fcc5ff2c89
@ -0,0 +1,21 @@ |
||||
{ |
||||
"message": "OK", |
||||
"status": "SUCCESS", |
||||
"source": { |
||||
"fileName": "Test.vy", |
||||
"contractName": "Test", |
||||
"compilerVersion": "v0.3.10+commit.91361694", |
||||
"compilerSettings": "{\"outputSelection\":{\"*\":[\"abi\",\"evm.bytecode\",\"evm.deployedBytecode\",\"evm.methodIdentifiers\"]}}", |
||||
"sourceType": "VYPER", |
||||
"sourceFiles": { |
||||
"Test.vy": "initialized: public(bool)\nvalue: public(uint256)\n\n@external\ndef __init__(_value: uint256):\n self.value = _value\n self.initialized = False" |
||||
}, |
||||
"abi": "[{\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"initialized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"value\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", |
||||
"constructorArguments": null, |
||||
"matchType": "PARTIAL", |
||||
"compilationArtifacts": "{\"abi\":[{\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"initialized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"value\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"sources\":{\"Test.vy\":{\"id\":0}}}", |
||||
"creationInputArtifacts": "{}", |
||||
"deployedBytecodeArtifacts": "{\"sourceMap\":\"-1:-1:0:-;;;;;;;;;;;;;;;;:::-;:::-;;;;;:::-;;;:::-;;;;;;20:4;;-1:-1;:::-;:::-;;;;;:::-;;;:::-;;;;;;40:7;;-1:-1::-;;;;:::-;;;\"}", |
||||
"isBlueprint": true |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
defmodule Explorer.Repo.Migrations.SmartContractsAddIsBlueprintFlag do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
alter table(:smart_contracts) do |
||||
add(:is_blueprint, :boolean, null: true) |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue