-
Notifications
You must be signed in to change notification settings - Fork 0
/
Upload.json
99 lines (99 loc) · 20.3 KB
/
Upload.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
{
"_format": "hh-sol-artifact-1",
"contractName": "Upload",
"sourceName": "contracts/Upload.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "string",
"name": "url",
"type": "string"
}
],
"name": "add",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "allow",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "disallow",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "display",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "shareAccess",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "bool",
"name": "access",
"type": "bool"
}
],
"internalType": "struct Upload.Access[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50611242806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806336d6da551461005c578063a9ed9cb814610078578063bc8bef8114610094578063eb39113f146100b2578063ff9913e8146100e2575b600080fd5b61007660048036038101906100719190610d5e565b6100fe565b005b610092600480360381019061008d9190610dba565b61017a565b005b61009c61039d565b6040516100a99190610eef565b60405180910390f35b6100cc60048036038101906100c79190610dba565b6104a6565b6040516100d9919061105b565b60405180910390f35b6100fc60048036038101906100f79190610dba565b6106bc565b005b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190610175929190610b03565b505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015610399578173ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106102c4576102c361107d565b5b9060005260206000200160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610386576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106103615761036061107d565b5b9060005260206000200160000160146101000a81548160ff0219169083151502179055505b8080610391906110e5565b915050610212565b5050565b6060600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561049d578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581525050815260200190600101906103fe565b50505050905090565b60603373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105685750600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6105a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059e9061118b565b60405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156106b1578382906000526020600020018054610624906111da565b80601f0160208091040260200160405190810160405280929190818152602001828054610650906111da565b801561069d5780601f106106725761010080835404028352916020019161069d565b820191906000526020600020905b81548152906001019060200180831161068057829003601f168201915b505050505081526020019060010190610605565b505050509050919050565b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561096f5760005b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015610969578173ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106108945761089361107d565b5b9060005260206000200160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610956576001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106109315761093061107d565b5b9060005260206000200160000160146101000a81548160ff0219169083151502179055505b8080610961906110e5565b9150506107e2565b50610b00565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600115158152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555050506001600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b828054610b0f906111da565b90600052602060002090601f016020900481019282610b315760008555610b78565b82601f10610b4a57805160ff1916838001178555610b78565b82800160010185558215610b78579182015b82811115610b77578251825591602001919060010190610b5c565b5b509050610b859190610b89565b5090565b5b80821115610ba2576000816000905550600101610b8a565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610be582610bba565b9050919050565b610bf581610bda565b8114610c0057600080fd5b50565b600081359050610c1281610bec565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610c6b82610c22565b810181811067ffffffffffffffff82111715610c8a57610c89610c33565b5b80604052505050565b6000610c9d610ba6565b9050610ca98282610c62565b919050565b600067ffffffffffffffff821115610cc957610cc8610c33565b5b610cd282610c22565b9050602081019050919050565b82818337600083830152505050565b6000610d01610cfc84610cae565b610c93565b905082815260208101848484011115610d1d57610d1c610c1d565b5b610d28848285610cdf565b509392505050565b600082601f830112610d4557610d44610c18565b5b8135610d55848260208601610cee565b91505092915050565b60008060408385031215610d7557610d74610bb0565b5b6000610d8385828601610c03565b925050602083013567ffffffffffffffff811115610da457610da3610bb5565b5b610db085828601610d30565b9150509250929050565b600060208284031215610dd057610dcf610bb0565b5b6000610dde84828501610c03565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610e1c81610bda565b82525050565b60008115159050919050565b610e3781610e22565b82525050565b604082016000820151610e536000850182610e13565b506020820151610e666020850182610e2e565b50505050565b6000610e788383610e3d565b60408301905092915050565b6000602082019050919050565b6000610e9c82610de7565b610ea68185610df2565b9350610eb183610e03565b8060005b83811015610ee2578151610ec98882610e6c565b9750610ed483610e84565b925050600181019050610eb5565b5085935050505092915050565b60006020820190508181036000830152610f098184610e91565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610f77578082015181840152602081019050610f5c565b83811115610f86576000848401525b50505050565b6000610f9782610f3d565b610fa18185610f48565b9350610fb1818560208601610f59565b610fba81610c22565b840191505092915050565b6000610fd18383610f8c565b905092915050565b6000602082019050919050565b6000610ff182610f11565b610ffb8185610f1c565b93508360208202850161100d85610f2d565b8060005b85811015611049578484038952815161102a8582610fc5565b945061103583610fd9565b925060208a01995050600181019050611011565b50829750879550505050505092915050565b600060208201905081810360008301526110758184610fe6565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b60006110f0826110db565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611123576111226110ac565b5b600182019050919050565b600082825260208201905092915050565b7f596f7520646f6e27742068617665206163636573730000000000000000000000600082015250565b600061117560158361112e565b91506111808261113f565b602082019050919050565b600060208201905081810360008301526111a481611168565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806111f257607f821691505b60208210811415611206576112056111ab565b5b5091905056fea26469706673582212202db275b8cac90c0b21181c54c6ab9b08b400d149db31a78454b461c77c14a8e664736f6c63430008090033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806336d6da551461005c578063a9ed9cb814610078578063bc8bef8114610094578063eb39113f146100b2578063ff9913e8146100e2575b600080fd5b61007660048036038101906100719190610d5e565b6100fe565b005b610092600480360381019061008d9190610dba565b61017a565b005b61009c61039d565b6040516100a99190610eef565b60405180910390f35b6100cc60048036038101906100c79190610dba565b6104a6565b6040516100d9919061105b565b60405180910390f35b6100fc60048036038101906100f79190610dba565b6106bc565b005b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190610175929190610b03565b505050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015610399578173ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106102c4576102c361107d565b5b9060005260206000200160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610386576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106103615761036061107d565b5b9060005260206000200160000160146101000a81548160ff0219169083151502179055505b8080610391906110e5565b915050610212565b5050565b6060600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561049d578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581525050815260200190600101906103fe565b50505050905090565b60603373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105685750600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6105a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059e9061118b565b60405180910390fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156106b1578382906000526020600020018054610624906111da565b80601f0160208091040260200160405190810160405280929190818152602001828054610650906111da565b801561069d5780601f106106725761010080835404028352916020019161069d565b820191906000526020600020905b81548152906001019060200180831161068057829003601f168201915b505050505081526020019060010190610605565b505050509050919050565b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561096f5760005b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015610969578173ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106108945761089361107d565b5b9060005260206000200160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610956576001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106109315761093061107d565b5b9060005260206000200160000160146101000a81548160ff0219169083151502179055505b8080610961906110e5565b9150506107e2565b50610b00565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001600115158152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555050506001600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b828054610b0f906111da565b90600052602060002090601f016020900481019282610b315760008555610b78565b82601f10610b4a57805160ff1916838001178555610b78565b82800160010185558215610b78579182015b82811115610b77578251825591602001919060010190610b5c565b5b509050610b859190610b89565b5090565b5b80821115610ba2576000816000905550600101610b8a565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610be582610bba565b9050919050565b610bf581610bda565b8114610c0057600080fd5b50565b600081359050610c1281610bec565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610c6b82610c22565b810181811067ffffffffffffffff82111715610c8a57610c89610c33565b5b80604052505050565b6000610c9d610ba6565b9050610ca98282610c62565b919050565b600067ffffffffffffffff821115610cc957610cc8610c33565b5b610cd282610c22565b9050602081019050919050565b82818337600083830152505050565b6000610d01610cfc84610cae565b610c93565b905082815260208101848484011115610d1d57610d1c610c1d565b5b610d28848285610cdf565b509392505050565b600082601f830112610d4557610d44610c18565b5b8135610d55848260208601610cee565b91505092915050565b60008060408385031215610d7557610d74610bb0565b5b6000610d8385828601610c03565b925050602083013567ffffffffffffffff811115610da457610da3610bb5565b5b610db085828601610d30565b9150509250929050565b600060208284031215610dd057610dcf610bb0565b5b6000610dde84828501610c03565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610e1c81610bda565b82525050565b60008115159050919050565b610e3781610e22565b82525050565b604082016000820151610e536000850182610e13565b506020820151610e666020850182610e2e565b50505050565b6000610e788383610e3d565b60408301905092915050565b6000602082019050919050565b6000610e9c82610de7565b610ea68185610df2565b9350610eb183610e03565b8060005b83811015610ee2578151610ec98882610e6c565b9750610ed483610e84565b925050600181019050610eb5565b5085935050505092915050565b60006020820190508181036000830152610f098184610e91565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610f77578082015181840152602081019050610f5c565b83811115610f86576000848401525b50505050565b6000610f9782610f3d565b610fa18185610f48565b9350610fb1818560208601610f59565b610fba81610c22565b840191505092915050565b6000610fd18383610f8c565b905092915050565b6000602082019050919050565b6000610ff182610f11565b610ffb8185610f1c565b93508360208202850161100d85610f2d565b8060005b85811015611049578484038952815161102a8582610fc5565b945061103583610fd9565b925060208a01995050600181019050611011565b50829750879550505050505092915050565b600060208201905081810360008301526110758184610fe6565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b60006110f0826110db565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611123576111226110ac565b5b600182019050919050565b600082825260208201905092915050565b7f596f7520646f6e27742068617665206163636573730000000000000000000000600082015250565b600061117560158361112e565b91506111808261113f565b602082019050919050565b600060208201905081810360008301526111a481611168565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806111f257607f821691505b60208210811415611206576112056111ab565b5b5091905056fea26469706673582212202db275b8cac90c0b21181c54c6ab9b08b400d149db31a78454b461c77c14a8e664736f6c63430008090033",
"linkReferences": {},
"deployedLinkReferences": {}
}