UNPKG

4.03 kBJSONView Raw
1{
2 "_format": "hh-sol-artifact-1",
3 "contractName": "MembershipContract",
4 "sourceName": "contracts/membership/MembershipContract.sol",
5 "abi": [
6 {
7 "inputs": [
8 {
9 "internalType": "address",
10 "name": "customerAddress",
11 "type": "address"
12 }
13 ],
14 "name": "addMembership",
15 "outputs": [],
16 "stateMutability": "nonpayable",
17 "type": "function"
18 },
19 {
20 "inputs": [
21 {
22 "internalType": "address",
23 "name": "publisherAddress",
24 "type": "address"
25 },
26 {
27 "internalType": "address",
28 "name": "customerAddress",
29 "type": "address"
30 }
31 ],
32 "name": "confirmMembership",
33 "outputs": [
34 {
35 "internalType": "bool",
36 "name": "",
37 "type": "bool"
38 }
39 ],
40 "stateMutability": "view",
41 "type": "function"
42 },
43 {
44 "inputs": [],
45 "name": "getVersion",
46 "outputs": [
47 {
48 "internalType": "string",
49 "name": "",
50 "type": "string"
51 }
52 ],
53 "stateMutability": "pure",
54 "type": "function"
55 },
56 {
57 "inputs": [
58 {
59 "internalType": "address",
60 "name": "customerAddress",
61 "type": "address"
62 }
63 ],
64 "name": "removeMembership",
65 "outputs": [],
66 "stateMutability": "nonpayable",
67 "type": "function"
68 }
69 ],
70 "bytecode": "0x608060405234801561001057600080fd5b50610254806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d8e6e2c14610051578063b3d6818114610099578063c5db808b146100d5578063ea9d669b14610112575b600080fd5b604080518082018252601a81527f4d656d62657273686970436f6e7472616374207620302e302e310000000000006020820152905161009091906101cb565b60405180910390f35b6100d36100a7366004610178565b336000908152602081815260408083206001600160a01b0394909416835292905220805460ff19169055565b005b6100d36100e3366004610178565b336000908152602081815260408083206001600160a01b0394909416835292905220805460ff19166001179055565b61014c610120366004610199565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205460ff1690565b6040519015158152602001610090565b80356001600160a01b038116811461017357600080fd5b919050565b600060208284031215610189578081fd5b6101928261015c565b9392505050565b600080604083850312156101ab578081fd5b6101b48361015c565b91506101c26020840161015c565b90509250929050565b6000602080835283518082850152825b818110156101f7578581018301518582016040015282016101db565b818111156102085783604083870101525b50601f01601f191692909201604001939250505056fea26469706673582212207ec897da10c87a80f71d77845ee8b23acc4467619a6903a51fb26c2ed8ccf0f564736f6c63430008040033",
71 "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d8e6e2c14610051578063b3d6818114610099578063c5db808b146100d5578063ea9d669b14610112575b600080fd5b604080518082018252601a81527f4d656d62657273686970436f6e7472616374207620302e302e310000000000006020820152905161009091906101cb565b60405180910390f35b6100d36100a7366004610178565b336000908152602081815260408083206001600160a01b0394909416835292905220805460ff19169055565b005b6100d36100e3366004610178565b336000908152602081815260408083206001600160a01b0394909416835292905220805460ff19166001179055565b61014c610120366004610199565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205460ff1690565b6040519015158152602001610090565b80356001600160a01b038116811461017357600080fd5b919050565b600060208284031215610189578081fd5b6101928261015c565b9392505050565b600080604083850312156101ab578081fd5b6101b48361015c565b91506101c26020840161015c565b90509250929050565b6000602080835283518082850152825b818110156101f7578581018301518582016040015282016101db565b818111156102085783604083870101525b50601f01601f191692909201604001939250505056fea26469706673582212207ec897da10c87a80f71d77845ee8b23acc4467619a6903a51fb26c2ed8ccf0f564736f6c63430008040033",
72 "linkReferences": {},
73 "deployedLinkReferences": {}
74}