UNPKG

10.1 kBJSONView Raw
1{
2 "_format": "hh-sol-artifact-1",
3 "contractName": "ClubContract",
4 "sourceName": "contracts/club-contracts/ClubContract.sol",
5 "abi": [
6 {
7 "inputs": [],
8 "stateMutability": "nonpayable",
9 "type": "constructor"
10 },
11 {
12 "inputs": [
13 {
14 "internalType": "uint256",
15 "name": "clubId",
16 "type": "uint256"
17 },
18 {
19 "internalType": "address",
20 "name": "recipient",
21 "type": "address"
22 }
23 ],
24 "name": "addToClub",
25 "outputs": [],
26 "stateMutability": "nonpayable",
27 "type": "function"
28 },
29 {
30 "inputs": [
31 {
32 "internalType": "uint256",
33 "name": "clubId",
34 "type": "uint256"
35 },
36 {
37 "internalType": "address",
38 "name": "customerAddress",
39 "type": "address"
40 }
41 ],
42 "name": "confirmMembership",
43 "outputs": [
44 {
45 "internalType": "bool",
46 "name": "",
47 "type": "bool"
48 }
49 ],
50 "stateMutability": "view",
51 "type": "function"
52 },
53 {
54 "inputs": [],
55 "name": "getOwner",
56 "outputs": [
57 {
58 "internalType": "address",
59 "name": "",
60 "type": "address"
61 }
62 ],
63 "stateMutability": "view",
64 "type": "function"
65 },
66 {
67 "inputs": [
68 {
69 "internalType": "address",
70 "name": "customerAddress",
71 "type": "address"
72 }
73 ],
74 "name": "getUserClubs",
75 "outputs": [
76 {
77 "internalType": "uint256[]",
78 "name": "",
79 "type": "uint256[]"
80 }
81 ],
82 "stateMutability": "view",
83 "type": "function"
84 },
85 {
86 "inputs": [],
87 "name": "getVersion",
88 "outputs": [
89 {
90 "internalType": "string",
91 "name": "",
92 "type": "string"
93 }
94 ],
95 "stateMutability": "pure",
96 "type": "function"
97 },
98 {
99 "inputs": [],
100 "name": "owner",
101 "outputs": [
102 {
103 "internalType": "address",
104 "name": "",
105 "type": "address"
106 }
107 ],
108 "stateMutability": "view",
109 "type": "function"
110 },
111 {
112 "inputs": [
113 {
114 "internalType": "uint256",
115 "name": "clubId",
116 "type": "uint256"
117 },
118 {
119 "internalType": "address",
120 "name": "recipient",
121 "type": "address"
122 }
123 ],
124 "name": "removeFromClub",
125 "outputs": [],
126 "stateMutability": "nonpayable",
127 "type": "function"
128 },
129 {
130 "inputs": [
131 {
132 "internalType": "address",
133 "name": "newOwner",
134 "type": "address"
135 }
136 ],
137 "name": "setOwner",
138 "outputs": [],
139 "stateMutability": "nonpayable",
140 "type": "function"
141 }
142 ],
143 "bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556106c6806100326000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063546213a21161005b578063546213a214610114578063893d20e81461015d5780638da5cb5b14610182578063ec80ef7a1461019557600080fd5b80630d8e6e2c1461008d57806313af4035146100cc5780631b4f9e8c146100e15780632dea8234146100f4575b600080fd5b6040805180820182526014815273436c7562436f6e7472616374207620302e302e3160601b602082015290516100c391906105b3565b60405180910390f35b6100df6100da366004610523565b6101a8565b005b6100df6100ef366004610544565b6101fd565b610107610102366004610523565b61042c565b6040516100c3919061056f565b61014d610122366004610544565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60405190151581526020016100c3565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c3565b60005461016a906001600160a01b031681565b6100df6101a3366004610544565b610498565b6000546001600160a01b031633146101db5760405162461bcd60e51b81526004016101d290610606565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102275760405162461bcd60e51b81526004016101d290610606565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1661028d5760405162461bcd60e51b81526020600482015260116024820152702727aa2fa0afa1a62aa12fa6a2a6a122a960791b60448201526064016101d2565b60008281526001602090815260408083206001600160a01b03851684529091528120805460ff191690555b6001600160a01b038216600090815260026020526040902054811015610427576001600160a01b038216600090815260026020526040902080548491908390811061031357634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415610415576001600160a01b0382166000908152600260205260409020805461034a90600190610648565b8154811061036857634e487b7160e01b600052603260045260246000fd5b906000526020600020015460026000846001600160a01b03166001600160a01b0316815260200190815260200160002082815481106103b757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b03841681526002909152604090208054806103fa57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055505050565b8061041f8161065f565b9150506102b8565b505050565b6001600160a01b03811660009081526002602090815260409182902080548351818402810184019094528084526060939283018282801561048c57602002820191906000526020600020905b815481526020019060010190808311610478575b50505050509050919050565b6000546001600160a01b031633146104c25760405162461bcd60e51b81526004016101d290610606565b60008281526001602081815260408084206001600160a01b039095168452938152838320805460ff191683179055600281529282208054918201815582529190200155565b80356001600160a01b038116811461051e57600080fd5b919050565b600060208284031215610534578081fd5b61053d82610507565b9392505050565b60008060408385031215610556578081fd5b8235915061056660208401610507565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156105a75783518352928401929184019160010161058b565b50909695505050505050565b6000602080835283518082850152825b818110156105df578581018301518582016040015282016105c3565b818111156105f05783604083870101525b50601f01601f1916929092016040019392505050565b60208082526022908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f604082015261371760f11b606082015260800190565b60008282101561065a5761065a61067a565b500390565b60006000198214156106735761067361067a565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220caef63b2294b4d37ec4e434249c65ab78e45c17566d222c05c2cc465bdc1d85264736f6c63430008040033",
144 "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063546213a21161005b578063546213a214610114578063893d20e81461015d5780638da5cb5b14610182578063ec80ef7a1461019557600080fd5b80630d8e6e2c1461008d57806313af4035146100cc5780631b4f9e8c146100e15780632dea8234146100f4575b600080fd5b6040805180820182526014815273436c7562436f6e7472616374207620302e302e3160601b602082015290516100c391906105b3565b60405180910390f35b6100df6100da366004610523565b6101a8565b005b6100df6100ef366004610544565b6101fd565b610107610102366004610523565b61042c565b6040516100c3919061056f565b61014d610122366004610544565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60405190151581526020016100c3565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c3565b60005461016a906001600160a01b031681565b6100df6101a3366004610544565b610498565b6000546001600160a01b031633146101db5760405162461bcd60e51b81526004016101d290610606565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102275760405162461bcd60e51b81526004016101d290610606565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1661028d5760405162461bcd60e51b81526020600482015260116024820152702727aa2fa0afa1a62aa12fa6a2a6a122a960791b60448201526064016101d2565b60008281526001602090815260408083206001600160a01b03851684529091528120805460ff191690555b6001600160a01b038216600090815260026020526040902054811015610427576001600160a01b038216600090815260026020526040902080548491908390811061031357634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415610415576001600160a01b0382166000908152600260205260409020805461034a90600190610648565b8154811061036857634e487b7160e01b600052603260045260246000fd5b906000526020600020015460026000846001600160a01b03166001600160a01b0316815260200190815260200160002082815481106103b757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b03841681526002909152604090208054806103fa57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055505050565b8061041f8161065f565b9150506102b8565b505050565b6001600160a01b03811660009081526002602090815260409182902080548351818402810184019094528084526060939283018282801561048c57602002820191906000526020600020905b815481526020019060010190808311610478575b50505050509050919050565b6000546001600160a01b031633146104c25760405162461bcd60e51b81526004016101d290610606565b60008281526001602081815260408084206001600160a01b039095168452938152838320805460ff191683179055600281529282208054918201815582529190200155565b80356001600160a01b038116811461051e57600080fd5b919050565b600060208284031215610534578081fd5b61053d82610507565b9392505050565b60008060408385031215610556578081fd5b8235915061056660208401610507565b90509250929050565b6020808252825182820181905260009190848201906040850190845b818110156105a75783518352928401929184019160010161058b565b50909695505050505050565b6000602080835283518082850152825b818110156105df578581018301518582016040015282016105c3565b818111156105f05783604083870101525b50601f01601f1916929092016040019392505050565b60208082526022908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f604082015261371760f11b606082015260800190565b60008282101561065a5761065a61067a565b500390565b60006000198214156106735761067361067a565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220caef63b2294b4d37ec4e434249c65ab78e45c17566d222c05c2cc465bdc1d85264736f6c63430008040033",
145 "linkReferences": {},
146 "deployedLinkReferences": {}
147}