UNPKG

5.25 kBJSONView Raw
1{
2 "_format": "hh-sol-artifact-1",
3 "contractName": "CredenzaUpsell",
4 "sourceName": "contracts/credenza-extensions/CredenzaUpsell.sol",
5 "abi": [
6 {
7 "inputs": [
8 {
9 "internalType": "uint256",
10 "name": "tokenId",
11 "type": "uint256"
12 },
13 {
14 "internalType": "uint256",
15 "name": "upsellID",
16 "type": "uint256"
17 }
18 ],
19 "name": "checkUpsell",
20 "outputs": [
21 {
22 "internalType": "bool",
23 "name": "",
24 "type": "bool"
25 }
26 ],
27 "stateMutability": "view",
28 "type": "function"
29 },
30 {
31 "inputs": [
32 {
33 "internalType": "uint256",
34 "name": "tokenId",
35 "type": "uint256"
36 },
37 {
38 "internalType": "uint256",
39 "name": "upsellID",
40 "type": "uint256"
41 }
42 ],
43 "name": "forfeitUpsell",
44 "outputs": [],
45 "stateMutability": "nonpayable",
46 "type": "function"
47 },
48 {
49 "inputs": [],
50 "name": "getOwner",
51 "outputs": [
52 {
53 "internalType": "address",
54 "name": "",
55 "type": "address"
56 }
57 ],
58 "stateMutability": "view",
59 "type": "function"
60 },
61 {
62 "inputs": [],
63 "name": "owner",
64 "outputs": [
65 {
66 "internalType": "address",
67 "name": "",
68 "type": "address"
69 }
70 ],
71 "stateMutability": "view",
72 "type": "function"
73 },
74 {
75 "inputs": [
76 {
77 "internalType": "uint256",
78 "name": "tokenId",
79 "type": "uint256"
80 },
81 {
82 "internalType": "uint256",
83 "name": "upsellID",
84 "type": "uint256"
85 }
86 ],
87 "name": "purchaseUpsell",
88 "outputs": [],
89 "stateMutability": "nonpayable",
90 "type": "function"
91 },
92 {
93 "inputs": [
94 {
95 "internalType": "address",
96 "name": "newOwner",
97 "type": "address"
98 }
99 ],
100 "name": "setOwner",
101 "outputs": [],
102 "stateMutability": "nonpayable",
103 "type": "function"
104 }
105 ],
106 "bytecode": "0x608060405234801561001057600080fd5b506102d6806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806313af4035146100675780636df04a331461007c578063893d20e81461008f5780638da5cb5b146100b9578063d2d73963146100cc578063f905434f1461010a575b600080fd5b61007a61007536600461020f565b61011d565b005b61007a61008a36600461023d565b610172565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b60005461009c906001600160a01b031681565b6100fa6100da36600461023d565b600091825260016020908152604080842092845291905290205460ff1690565b60405190151581526020016100b0565b61007a61011836600461023d565b6101c2565b6000546001600160a01b031633146101505760405162461bcd60e51b81526004016101479061025e565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461019c5760405162461bcd60e51b81526004016101479061025e565b60009182526001602081815260408085209385529290529120805460ff19169091179055565b6000546001600160a01b031633146101ec5760405162461bcd60e51b81526004016101479061025e565b60009182526001602090815260408084209284529190529020805460ff19169055565b600060208284031215610220578081fd5b81356001600160a01b0381168114610236578182fd5b9392505050565b6000806040838503121561024f578081fd5b50508035926020909101359150565b60208082526022908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f604082015261371760f11b60608201526080019056fea264697066735822122033ab9bb2cec06db13d9c6bd56d58c3aab73b687252ec5080d5293a9d20470be864736f6c63430008040033",
107 "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c806313af4035146100675780636df04a331461007c578063893d20e81461008f5780638da5cb5b146100b9578063d2d73963146100cc578063f905434f1461010a575b600080fd5b61007a61007536600461020f565b61011d565b005b61007a61008a36600461023d565b610172565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b60005461009c906001600160a01b031681565b6100fa6100da36600461023d565b600091825260016020908152604080842092845291905290205460ff1690565b60405190151581526020016100b0565b61007a61011836600461023d565b6101c2565b6000546001600160a01b031633146101505760405162461bcd60e51b81526004016101479061025e565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461019c5760405162461bcd60e51b81526004016101479061025e565b60009182526001602081815260408085209385529290529120805460ff19169091179055565b6000546001600160a01b031633146101ec5760405162461bcd60e51b81526004016101479061025e565b60009182526001602090815260408084209284529190529020805460ff19169055565b600060208284031215610220578081fd5b81356001600160a01b0381168114610236578182fd5b9392505050565b6000806040838503121561024f578081fd5b50508035926020909101359150565b60208082526022908201527f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f604082015261371760f11b60608201526080019056fea264697066735822122033ab9bb2cec06db13d9c6bd56d58c3aab73b687252ec5080d5293a9d20470be864736f6c63430008040033",
108 "linkReferences": {},
109 "deployedLinkReferences": {}
110}