-
Notifications
You must be signed in to change notification settings - Fork 1
/
HelloWorld.json
126 lines (126 loc) · 12.2 KB
/
HelloWorld.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"address": "0x0Ba095a975f1544061E1c9fc9a15D0aADa6D533C",
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "helloWorld",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "newText",
"type": "string"
}
],
"name": "setText",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"transactionHash": "0xe34c62491fa8738202f38abda2274eea24c2a4875bed67d240be8a8a27d192de",
"receipt": {
"to": null,
"from": "0xb66c6D8d96fAa683A4eb2Cb4b854f7bB2295e01E",
"contractAddress": "0x0Ba095a975f1544061E1c9fc9a15D0aADa6D533C",
"transactionIndex": 36,
"gasUsed": "430268",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x84ecdb8f44e496ce7ba0e6cc12b03d427476643381c8271a1d70834a8c0c46e5",
"transactionHash": "0xe34c62491fa8738202f38abda2274eea24c2a4875bed67d240be8a8a27d192de",
"logs": [],
"blockNumber": 3980734,
"cumulativeGasUsed": "11124252",
"status": 1,
"byzantium": true
},
"args": [],
"numDeployments": 1,
"solcInputHash": "0780b75cd4074e088c1bd4713282fb06",
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"helloWorld\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newText\",\"type\":\"string\"}],\"name\":\"setText\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/HelloWorld.sol\":\"HelloWorld\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":99999},\"remappings\":[]},\"sources\":{\"contracts/HelloWorld.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract HelloWorld {\\n string private text;\\n address public owner;\\n\\n constructor() {\\n text = \\\"Hello World\\\";\\n owner = msg.sender;\\n }\\n\\n function helloWorld() public view returns (string memory) {\\n return text;\\n }\\n\\n function setText(string calldata newText) public onlyOwner {\\n text = newText;\\n }\\n\\n function transferOwnership(address newOwner) public onlyOwner {\\n owner = newOwner;\\n }\\n\\n modifier onlyOwner()\\n {\\n require (msg.sender == owner, \\\"Caller is not the owner\\\");\\n _;\\n }\\n}\",\"keccak256\":\"0x8c281b135fe3db644fd9559bc7a6498f5a54fd9ea8a1d7acd4eaccff6f6d1df4\",\"license\":\"GPL-3.0\"}},\"version\":1}",
"bytecode": "0x608060405234801561000f575f80fd5b5060408051808201909152600b81526a12195b1b1bc815dbdc9b1960aa1b60208201525f9061003e90826100f0565b50600180546001600160a01b031916331790556101ab565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061007e57607f821691505b60208210810361009c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156100eb575f81815260208120601f850160051c810160208610156100c85750805b601f850160051c820191505b818110156100e7578281556001016100d4565b5050505b505050565b81516001600160401b0381111561010957610109610056565b61011d81610117845461006a565b846100a2565b602080601f831160018114610150575f84156101395750858301515b5f19600386901b1c1916600185901b1785556100e7565b5f85815260208120601f198616915b8281101561017e5788860151825594840194600190910190840161015f565b508582101561019b57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6105eb806101b85f395ff3fe608060405234801561000f575f80fd5b506004361061004a575f3560e01c80635d3a1f9d1461004e5780638da5cb5b14610063578063c605f76c146100ad578063f2fde38b146100c2575b5f80fd5b61006161005c3660046102c3565b6100d5565b005b6001546100839073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100b561016c565b6040516100a4919061032f565b6100616100d0366004610398565b6101fb565b60015473ffffffffffffffffffffffffffffffffffffffff16331461015b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064015b60405180910390fd5b5f61016782848361049d565b505050565b60605f805461017a906103ff565b80601f01602080910402602001604051908101604052809291908181526020018280546101a6906103ff565b80156101f15780601f106101c8576101008083540402835291602001916101f1565b820191905f5260205f20905b8154815290600101906020018083116101d457829003601f168201915b5050505050905090565b60015473ffffffffffffffffffffffffffffffffffffffff16331461027c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610152565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f80602083850312156102d4575f80fd5b823567ffffffffffffffff808211156102eb575f80fd5b818501915085601f8301126102fe575f80fd5b81358181111561030c575f80fd5b86602082850101111561031d575f80fd5b60209290920196919550909350505050565b5f6020808352835180828501525f5b8181101561035a5785810183015185820160400152820161033e565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b5f602082840312156103a8575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146103cb575f80fd5b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b600181811c9082168061041357607f821691505b60208210810361044a577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b601f821115610167575f81815260208120601f850160051c810160208610156104765750805b601f850160051c820191505b8181101561049557828155600101610482565b505050505050565b67ffffffffffffffff8311156104b5576104b56103d2565b6104c9836104c383546103ff565b83610450565b5f601f841160018114610519575f85156104e35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556105ae565b5f838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156105675786850135825560209485019460019092019101610547565b50868210156105a2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26469706673582212204bf20dad91b017ddc38cada4c616c1162a4d12a64d5a64b77639ff00328c093264736f6c63430008150033",
"deployedBytecode": "0x608060405234801561000f575f80fd5b506004361061004a575f3560e01c80635d3a1f9d1461004e5780638da5cb5b14610063578063c605f76c146100ad578063f2fde38b146100c2575b5f80fd5b61006161005c3660046102c3565b6100d5565b005b6001546100839073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100b561016c565b6040516100a4919061032f565b6100616100d0366004610398565b6101fb565b60015473ffffffffffffffffffffffffffffffffffffffff16331461015b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064015b60405180910390fd5b5f61016782848361049d565b505050565b60605f805461017a906103ff565b80601f01602080910402602001604051908101604052809291908181526020018280546101a6906103ff565b80156101f15780601f106101c8576101008083540402835291602001916101f1565b820191905f5260205f20905b8154815290600101906020018083116101d457829003601f168201915b5050505050905090565b60015473ffffffffffffffffffffffffffffffffffffffff16331461027c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610152565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f80602083850312156102d4575f80fd5b823567ffffffffffffffff808211156102eb575f80fd5b818501915085601f8301126102fe575f80fd5b81358181111561030c575f80fd5b86602082850101111561031d575f80fd5b60209290920196919550909350505050565b5f6020808352835180828501525f5b8181101561035a5785810183015185820160400152820161033e565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b5f602082840312156103a8575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146103cb575f80fd5b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b600181811c9082168061041357607f821691505b60208210810361044a577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b601f821115610167575f81815260208120601f850160051c810160208610156104765750805b601f850160051c820191505b8181101561049557828155600101610482565b505050505050565b67ffffffffffffffff8311156104b5576104b56103d2565b6104c9836104c383546103ff565b83610450565b5f601f841160018114610519575f85156104e35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556105ae565b5f838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156105675786850135825560209485019460019092019101610547565b50868210156105a2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26469706673582212204bf20dad91b017ddc38cada4c616c1162a4d12a64d5a64b77639ff00328c093264736f6c63430008150033",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 3121,
"contract": "contracts/HelloWorld.sol:HelloWorld",
"label": "text",
"offset": 0,
"slot": "0",
"type": "t_string_storage"
},
{
"astId": 3123,
"contract": "contracts/HelloWorld.sol:HelloWorld",
"label": "owner",
"offset": 0,
"slot": "1",
"type": "t_address"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_string_storage": {
"encoding": "bytes",
"label": "string",
"numberOfBytes": "32"
}
}
}
}