@coinbase/agentkit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +305 -0
- package/dist/action-providers/actionDecorator.d.ts +69 -0
- package/dist/action-providers/actionDecorator.js +96 -0
- package/dist/action-providers/actionProvider.d.ts +48 -0
- package/dist/action-providers/actionProvider.js +62 -0
- package/dist/action-providers/basename/basenameActionProvider.d.ts +30 -0
- package/dist/action-providers/basename/basenameActionProvider.js +109 -0
- package/dist/action-providers/basename/basenameActionProvider.test.d.ts +1 -0
- package/dist/action-providers/basename/basenameActionProvider.test.js +146 -0
- package/dist/action-providers/basename/constants.d.ts +52 -0
- package/dist/action-providers/basename/constants.js +81 -0
- package/dist/action-providers/basename/index.d.ts +2 -0
- package/dist/action-providers/basename/index.js +18 -0
- package/dist/action-providers/basename/schemas.d.ts +14 -0
- package/dist/action-providers/basename/schemas.js +14 -0
- package/dist/action-providers/cdp/cdpApiActionProvider.d.ts +41 -0
- package/dist/action-providers/cdp/cdpApiActionProvider.js +111 -0
- package/dist/action-providers/cdp/cdpApiActionProvider.test.d.ts +1 -0
- package/dist/action-providers/cdp/cdpApiActionProvider.test.js +134 -0
- package/dist/action-providers/cdp/cdpWalletActionProvider.d.ts +58 -0
- package/dist/action-providers/cdp/cdpWalletActionProvider.js +218 -0
- package/dist/action-providers/cdp/cdpWalletActionProvider.test.d.ts +1 -0
- package/dist/action-providers/cdp/cdpWalletActionProvider.test.js +259 -0
- package/dist/action-providers/cdp/constants.d.ts +31 -0
- package/dist/action-providers/cdp/constants.js +34 -0
- package/dist/action-providers/cdp/index.d.ts +3 -0
- package/dist/action-providers/cdp/index.js +19 -0
- package/dist/action-providers/cdp/schemas.d.ts +91 -0
- package/dist/action-providers/cdp/schemas.js +77 -0
- package/dist/action-providers/customActionProvider.d.ts +30 -0
- package/dist/action-providers/customActionProvider.js +66 -0
- package/dist/action-providers/erc20/constants.d.ts +135 -0
- package/dist/action-providers/erc20/constants.js +191 -0
- package/dist/action-providers/erc20/erc20ActionProvider.d.ts +38 -0
- package/dist/action-providers/erc20/erc20ActionProvider.js +118 -0
- package/dist/action-providers/erc20/erc20ActionProvider.test.d.ts +1 -0
- package/dist/action-providers/erc20/erc20ActionProvider.test.js +117 -0
- package/dist/action-providers/erc20/index.d.ts +1 -0
- package/dist/action-providers/erc20/index.js +17 -0
- package/dist/action-providers/erc20/schemas.d.ts +27 -0
- package/dist/action-providers/erc20/schemas.js +26 -0
- package/dist/action-providers/erc721/constants.d.ts +236 -0
- package/dist/action-providers/erc721/constants.js +301 -0
- package/dist/action-providers/erc721/erc721ActionProvider.d.ts +46 -0
- package/dist/action-providers/erc721/erc721ActionProvider.js +164 -0
- package/dist/action-providers/erc721/erc721ActionProvider.test.d.ts +1 -0
- package/dist/action-providers/erc721/erc721ActionProvider.test.js +137 -0
- package/dist/action-providers/erc721/index.d.ts +1 -0
- package/dist/action-providers/erc721/index.js +17 -0
- package/dist/action-providers/erc721/schemas.d.ts +46 -0
- package/dist/action-providers/erc721/schemas.js +44 -0
- package/dist/action-providers/farcaster/farcasterActionProvider.d.ts +57 -0
- package/dist/action-providers/farcaster/farcasterActionProvider.js +142 -0
- package/dist/action-providers/farcaster/farcasterActionProvider.test.d.ts +1 -0
- package/dist/action-providers/farcaster/farcasterActionProvider.test.js +143 -0
- package/dist/action-providers/farcaster/index.d.ts +2 -0
- package/dist/action-providers/farcaster/index.js +18 -0
- package/dist/action-providers/farcaster/schemas.d.ts +15 -0
- package/dist/action-providers/farcaster/schemas.js +20 -0
- package/dist/action-providers/index.d.ts +13 -0
- package/dist/action-providers/index.js +29 -0
- package/dist/action-providers/morpho/constants.d.ts +16 -0
- package/dist/action-providers/morpho/constants.js +27 -0
- package/dist/action-providers/morpho/index.d.ts +2 -0
- package/dist/action-providers/morpho/index.js +18 -0
- package/dist/action-providers/morpho/morphoActionProvider.d.ts +39 -0
- package/dist/action-providers/morpho/morphoActionProvider.js +147 -0
- package/dist/action-providers/morpho/morphoActionProvider.test.d.ts +1 -0
- package/dist/action-providers/morpho/morphoActionProvider.test.js +126 -0
- package/dist/action-providers/morpho/schemas.d.ts +36 -0
- package/dist/action-providers/morpho/schemas.js +47 -0
- package/dist/action-providers/pyth/index.d.ts +2 -0
- package/dist/action-providers/pyth/index.js +18 -0
- package/dist/action-providers/pyth/pythActionProvider.d.ts +33 -0
- package/dist/action-providers/pyth/pythActionProvider.js +121 -0
- package/dist/action-providers/pyth/schemas.d.ts +21 -0
- package/dist/action-providers/pyth/schemas.js +20 -0
- package/dist/action-providers/twitter/index.d.ts +2 -0
- package/dist/action-providers/twitter/index.js +18 -0
- package/dist/action-providers/twitter/schemas.d.ts +38 -0
- package/dist/action-providers/twitter/schemas.js +44 -0
- package/dist/action-providers/twitter/twitterActionProvider.d.ts +82 -0
- package/dist/action-providers/twitter/twitterActionProvider.js +204 -0
- package/dist/action-providers/twitter/twitterActionProvider.test.d.ts +1 -0
- package/dist/action-providers/twitter/twitterActionProvider.test.js +185 -0
- package/dist/action-providers/wallet/index.d.ts +1 -0
- package/dist/action-providers/wallet/index.js +17 -0
- package/dist/action-providers/wallet/schemas.d.ts +19 -0
- package/dist/action-providers/wallet/schemas.js +19 -0
- package/dist/action-providers/wallet/walletActionProvider.d.ts +44 -0
- package/dist/action-providers/wallet/walletActionProvider.js +127 -0
- package/dist/action-providers/wallet/walletActionProvider.test.d.ts +1 -0
- package/dist/action-providers/wallet/walletActionProvider.test.js +116 -0
- package/dist/action-providers/weth/constants.d.ts +19 -0
- package/dist/action-providers/weth/constants.js +29 -0
- package/dist/action-providers/weth/index.d.ts +1 -0
- package/dist/action-providers/weth/index.js +17 -0
- package/dist/action-providers/weth/schemas.d.ts +8 -0
- package/dist/action-providers/weth/schemas.js +10 -0
- package/dist/action-providers/weth/wethActionProvider.d.ts +30 -0
- package/dist/action-providers/weth/wethActionProvider.js +89 -0
- package/dist/action-providers/weth/wethActionProvider.test.d.ts +1 -0
- package/dist/action-providers/weth/wethActionProvider.test.js +92 -0
- package/dist/action-providers/wow/constants.d.ts +15 -0
- package/dist/action-providers/wow/constants.js +844 -0
- package/dist/action-providers/wow/index.d.ts +2 -0
- package/dist/action-providers/wow/index.js +18 -0
- package/dist/action-providers/wow/schemas.d.ts +43 -0
- package/dist/action-providers/wow/schemas.js +47 -0
- package/dist/action-providers/wow/uniswap/constants.d.ts +3 -0
- package/dist/action-providers/wow/uniswap/constants.js +100 -0
- package/dist/action-providers/wow/uniswap/utils.d.ts +82 -0
- package/dist/action-providers/wow/uniswap/utils.js +226 -0
- package/dist/action-providers/wow/utils.d.ts +27 -0
- package/dist/action-providers/wow/utils.js +63 -0
- package/dist/action-providers/wow/wowActionProvider.d.ts +46 -0
- package/dist/action-providers/wow/wowActionProvider.js +223 -0
- package/dist/action-providers/wow/wowActionProvider.test.d.ts +1 -0
- package/dist/action-providers/wow/wowActionProvider.test.js +287 -0
- package/dist/agentkit.d.ts +45 -0
- package/dist/agentkit.js +60 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.js +17 -0
- package/dist/analytics/sendAnalyticsEvent.d.ts +31 -0
- package/dist/analytics/sendAnalyticsEvent.js +51 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +22 -0
- package/dist/network/index.d.ts +1 -0
- package/dist/network/index.js +17 -0
- package/dist/network/network.d.ts +13 -0
- package/dist/network/network.js +41 -0
- package/dist/network/types.d.ts +17 -0
- package/dist/network/types.js +2 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.js +43 -0
- package/dist/utils.test.d.ts +1 -0
- package/dist/utils.test.js +50 -0
- package/dist/wallet-providers/cdpWalletProvider.d.ts +218 -0
- package/dist/wallet-providers/cdpWalletProvider.js +362 -0
- package/dist/wallet-providers/evmWalletProvider.d.ts +51 -0
- package/dist/wallet-providers/evmWalletProvider.js +14 -0
- package/dist/wallet-providers/index.d.ts +4 -0
- package/dist/wallet-providers/index.js +20 -0
- package/dist/wallet-providers/viemWalletProvider.d.ts +89 -0
- package/dist/wallet-providers/viemWalletProvider.js +187 -0
- package/dist/wallet-providers/walletProvider.d.ts +48 -0
- package/dist/wallet-providers/walletProvider.js +41 -0
- package/package.json +65 -0
|
@@ -0,0 +1,844 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GENERIC_TOKEN_METADATA_URI = exports.ADDRESSES = exports.WOW_FACTORY_CONTRACT_ADDRESSES = exports.WOW_ABI = exports.WOW_FACTORY_ABI = exports.SUPPORTED_NETWORKS = void 0;
|
|
4
|
+
exports.getFactoryAddress = getFactoryAddress;
|
|
5
|
+
exports.SUPPORTED_NETWORKS = ["base-mainnet"];
|
|
6
|
+
exports.WOW_FACTORY_ABI = [
|
|
7
|
+
{
|
|
8
|
+
type: "constructor",
|
|
9
|
+
inputs: [
|
|
10
|
+
{ name: "_tokenImplementation", type: "address", internalType: "address" },
|
|
11
|
+
{ name: "_bondingCurve", type: "address", internalType: "address" },
|
|
12
|
+
],
|
|
13
|
+
stateMutability: "nonpayable",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: "function",
|
|
17
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
18
|
+
inputs: [],
|
|
19
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "bondingCurve",
|
|
25
|
+
inputs: [],
|
|
26
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "function",
|
|
31
|
+
name: "deploy",
|
|
32
|
+
inputs: [
|
|
33
|
+
{ name: "_tokenCreator", type: "address", internalType: "address" },
|
|
34
|
+
{ name: "_platformReferrer", type: "address", internalType: "address" },
|
|
35
|
+
{ name: "_tokenURI", type: "string", internalType: "string" },
|
|
36
|
+
{ name: "_name", type: "string", internalType: "string" },
|
|
37
|
+
{ name: "_symbol", type: "string", internalType: "string" },
|
|
38
|
+
],
|
|
39
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
40
|
+
stateMutability: "payable",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "function",
|
|
44
|
+
name: "implementation",
|
|
45
|
+
inputs: [],
|
|
46
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
47
|
+
stateMutability: "view",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "function",
|
|
51
|
+
name: "initialize",
|
|
52
|
+
inputs: [{ name: "_owner", type: "address", internalType: "address" }],
|
|
53
|
+
outputs: [],
|
|
54
|
+
stateMutability: "nonpayable",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "function",
|
|
58
|
+
name: "owner",
|
|
59
|
+
inputs: [],
|
|
60
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
61
|
+
stateMutability: "view",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "function",
|
|
65
|
+
name: "proxiableUUID",
|
|
66
|
+
inputs: [],
|
|
67
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "renounceOwnership",
|
|
73
|
+
inputs: [],
|
|
74
|
+
outputs: [],
|
|
75
|
+
stateMutability: "nonpayable",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "tokenImplementation",
|
|
80
|
+
inputs: [],
|
|
81
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
82
|
+
stateMutability: "view",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "function",
|
|
86
|
+
name: "transferOwnership",
|
|
87
|
+
inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
|
|
88
|
+
outputs: [],
|
|
89
|
+
stateMutability: "nonpayable",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: "function",
|
|
93
|
+
name: "upgradeToAndCall",
|
|
94
|
+
inputs: [
|
|
95
|
+
{ name: "newImplementation", type: "address", internalType: "address" },
|
|
96
|
+
{ name: "data", type: "bytes", internalType: "bytes" },
|
|
97
|
+
],
|
|
98
|
+
outputs: [],
|
|
99
|
+
stateMutability: "payable",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: "event",
|
|
103
|
+
name: "Initialized",
|
|
104
|
+
inputs: [{ name: "version", type: "uint64", indexed: false, internalType: "uint64" }],
|
|
105
|
+
anonymous: false,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: "event",
|
|
109
|
+
name: "OwnershipTransferred",
|
|
110
|
+
inputs: [
|
|
111
|
+
{ name: "previousOwner", type: "address", indexed: true, internalType: "address" },
|
|
112
|
+
{ name: "newOwner", type: "address", indexed: true, internalType: "address" },
|
|
113
|
+
],
|
|
114
|
+
anonymous: false,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: "event",
|
|
118
|
+
name: "Upgraded",
|
|
119
|
+
inputs: [{ name: "implementation", type: "address", indexed: true, internalType: "address" }],
|
|
120
|
+
anonymous: false,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: "error",
|
|
124
|
+
name: "AddressEmptyCode",
|
|
125
|
+
inputs: [{ name: "target", type: "address", internalType: "address" }],
|
|
126
|
+
},
|
|
127
|
+
{ type: "error", name: "ERC1167FailedCreateClone", inputs: [] },
|
|
128
|
+
{
|
|
129
|
+
type: "error",
|
|
130
|
+
name: "ERC1967InvalidImplementation",
|
|
131
|
+
inputs: [{ name: "implementation", type: "address", internalType: "address" }],
|
|
132
|
+
},
|
|
133
|
+
{ type: "error", name: "ERC1967NonPayable", inputs: [] },
|
|
134
|
+
{ type: "error", name: "FailedInnerCall", inputs: [] },
|
|
135
|
+
{ type: "error", name: "InvalidInitialization", inputs: [] },
|
|
136
|
+
{ type: "error", name: "NotInitializing", inputs: [] },
|
|
137
|
+
{
|
|
138
|
+
type: "error",
|
|
139
|
+
name: "OwnableInvalidOwner",
|
|
140
|
+
inputs: [{ name: "owner", type: "address", internalType: "address" }],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "error",
|
|
144
|
+
name: "OwnableUnauthorizedAccount",
|
|
145
|
+
inputs: [{ name: "account", type: "address", internalType: "address" }],
|
|
146
|
+
},
|
|
147
|
+
{ type: "error", name: "ReentrancyGuardReentrantCall", inputs: [] },
|
|
148
|
+
{ type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] },
|
|
149
|
+
{
|
|
150
|
+
type: "error",
|
|
151
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
152
|
+
inputs: [{ name: "slot", type: "bytes32", internalType: "bytes32" }],
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
exports.WOW_ABI = [
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{ internalType: "address", name: "_protocolFeeRecipient", type: "address" },
|
|
159
|
+
{ internalType: "address", name: "_protocolRewards", type: "address" },
|
|
160
|
+
{ internalType: "address", name: "_weth", type: "address" },
|
|
161
|
+
{ internalType: "address", name: "_nonfungiblePositionManager", type: "address" },
|
|
162
|
+
{ internalType: "address", name: "_swapRouter", type: "address" },
|
|
163
|
+
],
|
|
164
|
+
stateMutability: "nonpayable",
|
|
165
|
+
type: "constructor",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [{ internalType: "address", name: "target", type: "address" }],
|
|
169
|
+
name: "AddressEmptyCode",
|
|
170
|
+
type: "error",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
174
|
+
name: "AddressInsufficientBalance",
|
|
175
|
+
type: "error",
|
|
176
|
+
},
|
|
177
|
+
{ inputs: [], name: "AddressZero", type: "error" },
|
|
178
|
+
{
|
|
179
|
+
inputs: [
|
|
180
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
181
|
+
{ internalType: "uint256", name: "allowance", type: "uint256" },
|
|
182
|
+
{ internalType: "uint256", name: "needed", type: "uint256" },
|
|
183
|
+
],
|
|
184
|
+
name: "ERC20InsufficientAllowance",
|
|
185
|
+
type: "error",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [
|
|
189
|
+
{ internalType: "address", name: "sender", type: "address" },
|
|
190
|
+
{ internalType: "uint256", name: "balance", type: "uint256" },
|
|
191
|
+
{ internalType: "uint256", name: "needed", type: "uint256" },
|
|
192
|
+
],
|
|
193
|
+
name: "ERC20InsufficientBalance",
|
|
194
|
+
type: "error",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
inputs: [{ internalType: "address", name: "approver", type: "address" }],
|
|
198
|
+
name: "ERC20InvalidApprover",
|
|
199
|
+
type: "error",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [{ internalType: "address", name: "receiver", type: "address" }],
|
|
203
|
+
name: "ERC20InvalidReceiver",
|
|
204
|
+
type: "error",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [{ internalType: "address", name: "sender", type: "address" }],
|
|
208
|
+
name: "ERC20InvalidSender",
|
|
209
|
+
type: "error",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [{ internalType: "address", name: "spender", type: "address" }],
|
|
213
|
+
name: "ERC20InvalidSpender",
|
|
214
|
+
type: "error",
|
|
215
|
+
},
|
|
216
|
+
{ inputs: [], name: "EthAmountTooSmall", type: "error" },
|
|
217
|
+
{ inputs: [], name: "EthTransferFailed", type: "error" },
|
|
218
|
+
{ inputs: [], name: "FailedInnerCall", type: "error" },
|
|
219
|
+
{ inputs: [], name: "InitialOrderSizeTooLarge", type: "error" },
|
|
220
|
+
{ inputs: [], name: "InsufficientFunds", type: "error" },
|
|
221
|
+
{ inputs: [], name: "InsufficientLiquidity", type: "error" },
|
|
222
|
+
{ inputs: [], name: "InvalidInitialization", type: "error" },
|
|
223
|
+
{ inputs: [], name: "InvalidMarketType", type: "error" },
|
|
224
|
+
{ inputs: [], name: "MarketAlreadyGraduated", type: "error" },
|
|
225
|
+
{ inputs: [], name: "MarketNotGraduated", type: "error" },
|
|
226
|
+
{ inputs: [], name: "NotInitializing", type: "error" },
|
|
227
|
+
{ inputs: [], name: "OnlyPool", type: "error" },
|
|
228
|
+
{ inputs: [], name: "OnlyWeth", type: "error" },
|
|
229
|
+
{ inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
|
|
230
|
+
{
|
|
231
|
+
inputs: [{ internalType: "address", name: "token", type: "address" }],
|
|
232
|
+
name: "SafeERC20FailedOperation",
|
|
233
|
+
type: "error",
|
|
234
|
+
},
|
|
235
|
+
{ inputs: [], name: "SlippageBoundsExceeded", type: "error" },
|
|
236
|
+
{
|
|
237
|
+
anonymous: false,
|
|
238
|
+
inputs: [
|
|
239
|
+
{ indexed: true, internalType: "address", name: "owner", type: "address" },
|
|
240
|
+
{ indexed: true, internalType: "address", name: "spender", type: "address" },
|
|
241
|
+
{ indexed: false, internalType: "uint256", name: "value", type: "uint256" },
|
|
242
|
+
],
|
|
243
|
+
name: "Approval",
|
|
244
|
+
type: "event",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
anonymous: false,
|
|
248
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
249
|
+
name: "Initialized",
|
|
250
|
+
type: "event",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
anonymous: false,
|
|
254
|
+
inputs: [
|
|
255
|
+
{ indexed: true, internalType: "address", name: "from", type: "address" },
|
|
256
|
+
{ indexed: true, internalType: "address", name: "to", type: "address" },
|
|
257
|
+
{ indexed: false, internalType: "uint256", name: "value", type: "uint256" },
|
|
258
|
+
],
|
|
259
|
+
name: "Transfer",
|
|
260
|
+
type: "event",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
anonymous: false,
|
|
264
|
+
inputs: [
|
|
265
|
+
{ indexed: true, internalType: "address", name: "tokenAddress", type: "address" },
|
|
266
|
+
{ indexed: true, internalType: "address", name: "poolAddress", type: "address" },
|
|
267
|
+
{
|
|
268
|
+
indexed: false,
|
|
269
|
+
internalType: "uint256",
|
|
270
|
+
name: "totalEthLiquidity",
|
|
271
|
+
type: "uint256",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
indexed: false,
|
|
275
|
+
internalType: "uint256",
|
|
276
|
+
name: "totalTokenLiquidity",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
indexed: false,
|
|
281
|
+
internalType: "uint256",
|
|
282
|
+
name: "lpPositionId",
|
|
283
|
+
type: "uint256",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
indexed: false,
|
|
287
|
+
internalType: "enum IWow.MarketType",
|
|
288
|
+
name: "marketType",
|
|
289
|
+
type: "uint8",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
name: "WowMarketGraduated",
|
|
293
|
+
type: "event",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
anonymous: false,
|
|
297
|
+
inputs: [
|
|
298
|
+
{ indexed: true, internalType: "address", name: "buyer", type: "address" },
|
|
299
|
+
{ indexed: true, internalType: "address", name: "recipient", type: "address" },
|
|
300
|
+
{
|
|
301
|
+
indexed: true,
|
|
302
|
+
internalType: "address",
|
|
303
|
+
name: "orderReferrer",
|
|
304
|
+
type: "address",
|
|
305
|
+
},
|
|
306
|
+
{ indexed: false, internalType: "uint256", name: "totalEth", type: "uint256" },
|
|
307
|
+
{ indexed: false, internalType: "uint256", name: "ethFee", type: "uint256" },
|
|
308
|
+
{ indexed: false, internalType: "uint256", name: "ethSold", type: "uint256" },
|
|
309
|
+
{
|
|
310
|
+
indexed: false,
|
|
311
|
+
internalType: "uint256",
|
|
312
|
+
name: "tokensBought",
|
|
313
|
+
type: "uint256",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
indexed: false,
|
|
317
|
+
internalType: "uint256",
|
|
318
|
+
name: "buyerTokenBalance",
|
|
319
|
+
type: "uint256",
|
|
320
|
+
},
|
|
321
|
+
{ indexed: false, internalType: "string", name: "comment", type: "string" },
|
|
322
|
+
{
|
|
323
|
+
indexed: false,
|
|
324
|
+
internalType: "enum IWow.MarketType",
|
|
325
|
+
name: "marketType",
|
|
326
|
+
type: "uint8",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
name: "WowTokenBuy",
|
|
330
|
+
type: "event",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
anonymous: false,
|
|
334
|
+
inputs: [
|
|
335
|
+
{
|
|
336
|
+
indexed: true,
|
|
337
|
+
internalType: "address",
|
|
338
|
+
name: "factoryAddress",
|
|
339
|
+
type: "address",
|
|
340
|
+
},
|
|
341
|
+
{ indexed: true, internalType: "address", name: "tokenCreator", type: "address" },
|
|
342
|
+
{
|
|
343
|
+
indexed: false,
|
|
344
|
+
internalType: "address",
|
|
345
|
+
name: "platformReferrer",
|
|
346
|
+
type: "address",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
indexed: false,
|
|
350
|
+
internalType: "address",
|
|
351
|
+
name: "protocolFeeRecipient",
|
|
352
|
+
type: "address",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
indexed: false,
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "bondingCurve",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
360
|
+
{ indexed: false, internalType: "string", name: "tokenURI", type: "string" },
|
|
361
|
+
{ indexed: false, internalType: "string", name: "name", type: "string" },
|
|
362
|
+
{ indexed: false, internalType: "string", name: "symbol", type: "string" },
|
|
363
|
+
{
|
|
364
|
+
indexed: false,
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "tokenAddress",
|
|
367
|
+
type: "address",
|
|
368
|
+
},
|
|
369
|
+
{ indexed: false, internalType: "address", name: "poolAddress", type: "address" },
|
|
370
|
+
],
|
|
371
|
+
name: "WowTokenCreated",
|
|
372
|
+
type: "event",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
anonymous: false,
|
|
376
|
+
inputs: [
|
|
377
|
+
{ indexed: true, internalType: "address", name: "tokenCreator", type: "address" },
|
|
378
|
+
{
|
|
379
|
+
indexed: true,
|
|
380
|
+
internalType: "address",
|
|
381
|
+
name: "platformReferrer",
|
|
382
|
+
type: "address",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
indexed: true,
|
|
386
|
+
internalType: "address",
|
|
387
|
+
name: "orderReferrer",
|
|
388
|
+
type: "address",
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
indexed: false,
|
|
392
|
+
internalType: "address",
|
|
393
|
+
name: "protocolFeeRecipient",
|
|
394
|
+
type: "address",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
indexed: false,
|
|
398
|
+
internalType: "uint256",
|
|
399
|
+
name: "tokenCreatorFee",
|
|
400
|
+
type: "uint256",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
indexed: false,
|
|
404
|
+
internalType: "uint256",
|
|
405
|
+
name: "platformReferrerFee",
|
|
406
|
+
type: "uint256",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
indexed: false,
|
|
410
|
+
internalType: "uint256",
|
|
411
|
+
name: "orderReferrerFee",
|
|
412
|
+
type: "uint256",
|
|
413
|
+
},
|
|
414
|
+
{ indexed: false, internalType: "uint256", name: "protocolFee", type: "uint256" },
|
|
415
|
+
],
|
|
416
|
+
name: "WowTokenFees",
|
|
417
|
+
type: "event",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
anonymous: false,
|
|
421
|
+
inputs: [
|
|
422
|
+
{ indexed: true, internalType: "address", name: "seller", type: "address" },
|
|
423
|
+
{ indexed: true, internalType: "address", name: "recipient", type: "address" },
|
|
424
|
+
{
|
|
425
|
+
indexed: true,
|
|
426
|
+
internalType: "address",
|
|
427
|
+
name: "orderReferrer",
|
|
428
|
+
type: "address",
|
|
429
|
+
},
|
|
430
|
+
{ indexed: false, internalType: "uint256", name: "totalEth", type: "uint256" },
|
|
431
|
+
{ indexed: false, internalType: "uint256", name: "ethFee", type: "uint256" },
|
|
432
|
+
{ indexed: false, internalType: "uint256", name: "ethBought", type: "uint256" },
|
|
433
|
+
{ indexed: false, internalType: "uint256", name: "tokensSold", type: "uint256" },
|
|
434
|
+
{
|
|
435
|
+
indexed: false,
|
|
436
|
+
internalType: "uint256",
|
|
437
|
+
name: "sellerTokenBalance",
|
|
438
|
+
type: "uint256",
|
|
439
|
+
},
|
|
440
|
+
{ indexed: false, internalType: "string", name: "comment", type: "string" },
|
|
441
|
+
{
|
|
442
|
+
indexed: false,
|
|
443
|
+
internalType: "enum IWow.MarketType",
|
|
444
|
+
name: "marketType",
|
|
445
|
+
type: "uint8",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
name: "WowTokenSell",
|
|
449
|
+
type: "event",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
anonymous: false,
|
|
453
|
+
inputs: [
|
|
454
|
+
{ indexed: true, internalType: "address", name: "from", type: "address" },
|
|
455
|
+
{ indexed: true, internalType: "address", name: "to", type: "address" },
|
|
456
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
457
|
+
{
|
|
458
|
+
indexed: false,
|
|
459
|
+
internalType: "uint256",
|
|
460
|
+
name: "fromTokenBalance",
|
|
461
|
+
type: "uint256",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
indexed: false,
|
|
465
|
+
internalType: "uint256",
|
|
466
|
+
name: "toTokenBalance",
|
|
467
|
+
type: "uint256",
|
|
468
|
+
},
|
|
469
|
+
{ indexed: false, internalType: "uint256", name: "totalSupply", type: "uint256" },
|
|
470
|
+
],
|
|
471
|
+
name: "WowTokenTransfer",
|
|
472
|
+
type: "event",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
inputs: [],
|
|
476
|
+
name: "MAX_TOTAL_SUPPLY",
|
|
477
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
478
|
+
stateMutability: "view",
|
|
479
|
+
type: "function",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
inputs: [],
|
|
483
|
+
name: "MIN_ORDER_SIZE",
|
|
484
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
485
|
+
stateMutability: "view",
|
|
486
|
+
type: "function",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
inputs: [],
|
|
490
|
+
name: "ORDER_REFERRER_FEE_BPS",
|
|
491
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
492
|
+
stateMutability: "view",
|
|
493
|
+
type: "function",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
inputs: [],
|
|
497
|
+
name: "PLATFORM_REFERRER_FEE_BPS",
|
|
498
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
499
|
+
stateMutability: "view",
|
|
500
|
+
type: "function",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
inputs: [],
|
|
504
|
+
name: "PROTOCOL_FEE_BPS",
|
|
505
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
506
|
+
stateMutability: "view",
|
|
507
|
+
type: "function",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
inputs: [],
|
|
511
|
+
name: "TOKEN_CREATOR_FEE_BPS",
|
|
512
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
513
|
+
stateMutability: "view",
|
|
514
|
+
type: "function",
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
inputs: [],
|
|
518
|
+
name: "TOTAL_FEE_BPS",
|
|
519
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
520
|
+
stateMutability: "view",
|
|
521
|
+
type: "function",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
inputs: [],
|
|
525
|
+
name: "WETH",
|
|
526
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
527
|
+
stateMutability: "view",
|
|
528
|
+
type: "function",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
inputs: [
|
|
532
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
533
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
534
|
+
],
|
|
535
|
+
name: "allowance",
|
|
536
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
537
|
+
stateMutability: "view",
|
|
538
|
+
type: "function",
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
inputs: [
|
|
542
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
543
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
544
|
+
],
|
|
545
|
+
name: "approve",
|
|
546
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
547
|
+
stateMutability: "nonpayable",
|
|
548
|
+
type: "function",
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
552
|
+
name: "balanceOf",
|
|
553
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
554
|
+
stateMutability: "view",
|
|
555
|
+
type: "function",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
inputs: [],
|
|
559
|
+
name: "bondingCurve",
|
|
560
|
+
outputs: [{ internalType: "contract BondingCurve", name: "", type: "address" }],
|
|
561
|
+
stateMutability: "view",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
inputs: [{ internalType: "uint256", name: "tokensToBurn", type: "uint256" }],
|
|
566
|
+
name: "burn",
|
|
567
|
+
outputs: [],
|
|
568
|
+
stateMutability: "nonpayable",
|
|
569
|
+
type: "function",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
inputs: [
|
|
573
|
+
{ internalType: "address", name: "recipient", type: "address" },
|
|
574
|
+
{ internalType: "address", name: "refundRecipient", type: "address" },
|
|
575
|
+
{ internalType: "address", name: "orderReferrer", type: "address" },
|
|
576
|
+
{ internalType: "string", name: "comment", type: "string" },
|
|
577
|
+
{ internalType: "enum IWow.MarketType", name: "expectedMarketType", type: "uint8" },
|
|
578
|
+
{ internalType: "uint256", name: "minOrderSize", type: "uint256" },
|
|
579
|
+
{ internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" },
|
|
580
|
+
],
|
|
581
|
+
name: "buy",
|
|
582
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
583
|
+
stateMutability: "payable",
|
|
584
|
+
type: "function",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
inputs: [],
|
|
588
|
+
name: "currentExchangeRate",
|
|
589
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
590
|
+
stateMutability: "view",
|
|
591
|
+
type: "function",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
inputs: [],
|
|
595
|
+
name: "decimals",
|
|
596
|
+
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
|
|
597
|
+
stateMutability: "view",
|
|
598
|
+
type: "function",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
inputs: [{ internalType: "uint256", name: "ethOrderSize", type: "uint256" }],
|
|
602
|
+
name: "getEthBuyQuote",
|
|
603
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
604
|
+
stateMutability: "view",
|
|
605
|
+
type: "function",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
inputs: [{ internalType: "uint256", name: "ethOrderSize", type: "uint256" }],
|
|
609
|
+
name: "getEthSellQuote",
|
|
610
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
611
|
+
stateMutability: "view",
|
|
612
|
+
type: "function",
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
inputs: [{ internalType: "uint256", name: "tokenOrderSize", type: "uint256" }],
|
|
616
|
+
name: "getTokenBuyQuote",
|
|
617
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
618
|
+
stateMutability: "view",
|
|
619
|
+
type: "function",
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
inputs: [{ internalType: "uint256", name: "tokenOrderSize", type: "uint256" }],
|
|
623
|
+
name: "getTokenSellQuote",
|
|
624
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
625
|
+
stateMutability: "view",
|
|
626
|
+
type: "function",
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
inputs: [
|
|
630
|
+
{ internalType: "address", name: "_tokenCreator", type: "address" },
|
|
631
|
+
{ internalType: "address", name: "_platformReferrer", type: "address" },
|
|
632
|
+
{ internalType: "address", name: "_bondingCurve", type: "address" },
|
|
633
|
+
{ internalType: "string", name: "_tokenURI", type: "string" },
|
|
634
|
+
{ internalType: "string", name: "_name", type: "string" },
|
|
635
|
+
{ internalType: "string", name: "_symbol", type: "string" },
|
|
636
|
+
],
|
|
637
|
+
name: "initialize",
|
|
638
|
+
outputs: [],
|
|
639
|
+
stateMutability: "payable",
|
|
640
|
+
type: "function",
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
inputs: [],
|
|
644
|
+
name: "marketType",
|
|
645
|
+
outputs: [{ internalType: "enum IWow.MarketType", name: "", type: "uint8" }],
|
|
646
|
+
stateMutability: "view",
|
|
647
|
+
type: "function",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
inputs: [],
|
|
651
|
+
name: "name",
|
|
652
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
653
|
+
stateMutability: "view",
|
|
654
|
+
type: "function",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
inputs: [],
|
|
658
|
+
name: "nonfungiblePositionManager",
|
|
659
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
660
|
+
stateMutability: "view",
|
|
661
|
+
type: "function",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
inputs: [
|
|
665
|
+
{ internalType: "address", name: "", type: "address" },
|
|
666
|
+
{ internalType: "address", name: "", type: "address" },
|
|
667
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
668
|
+
{ internalType: "bytes", name: "", type: "bytes" },
|
|
669
|
+
],
|
|
670
|
+
name: "onERC721Received",
|
|
671
|
+
outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
|
|
672
|
+
stateMutability: "view",
|
|
673
|
+
type: "function",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
inputs: [],
|
|
677
|
+
name: "platformReferrer",
|
|
678
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
679
|
+
stateMutability: "view",
|
|
680
|
+
type: "function",
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
inputs: [],
|
|
684
|
+
name: "poolAddress",
|
|
685
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
686
|
+
stateMutability: "view",
|
|
687
|
+
type: "function",
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
inputs: [],
|
|
691
|
+
name: "protocolFeeRecipient",
|
|
692
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
693
|
+
stateMutability: "view",
|
|
694
|
+
type: "function",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
inputs: [],
|
|
698
|
+
name: "protocolRewards",
|
|
699
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
700
|
+
stateMutability: "view",
|
|
701
|
+
type: "function",
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
inputs: [
|
|
705
|
+
{ internalType: "uint256", name: "tokensToSell", type: "uint256" },
|
|
706
|
+
{ internalType: "address", name: "recipient", type: "address" },
|
|
707
|
+
{ internalType: "address", name: "orderReferrer", type: "address" },
|
|
708
|
+
{ internalType: "string", name: "comment", type: "string" },
|
|
709
|
+
{ internalType: "enum IWow.MarketType", name: "expectedMarketType", type: "uint8" },
|
|
710
|
+
{ internalType: "uint256", name: "minPayoutSize", type: "uint256" },
|
|
711
|
+
{ internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" },
|
|
712
|
+
],
|
|
713
|
+
name: "sell",
|
|
714
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
715
|
+
stateMutability: "nonpayable",
|
|
716
|
+
type: "function",
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
inputs: [],
|
|
720
|
+
name: "state",
|
|
721
|
+
outputs: [
|
|
722
|
+
{
|
|
723
|
+
components: [
|
|
724
|
+
{ internalType: "enum IWow.MarketType", name: "marketType", type: "uint8" },
|
|
725
|
+
{ internalType: "address", name: "marketAddress", type: "address" },
|
|
726
|
+
],
|
|
727
|
+
internalType: "struct IWow.MarketState",
|
|
728
|
+
name: "",
|
|
729
|
+
type: "tuple",
|
|
730
|
+
},
|
|
731
|
+
],
|
|
732
|
+
stateMutability: "view",
|
|
733
|
+
type: "function",
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
inputs: [],
|
|
737
|
+
name: "swapRouter",
|
|
738
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
739
|
+
stateMutability: "view",
|
|
740
|
+
type: "function",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
inputs: [],
|
|
744
|
+
name: "symbol",
|
|
745
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
746
|
+
stateMutability: "view",
|
|
747
|
+
type: "function",
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
inputs: [],
|
|
751
|
+
name: "tokenCreator",
|
|
752
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
753
|
+
stateMutability: "view",
|
|
754
|
+
type: "function",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
inputs: [],
|
|
758
|
+
name: "tokenURI",
|
|
759
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
760
|
+
stateMutability: "view",
|
|
761
|
+
type: "function",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
inputs: [],
|
|
765
|
+
name: "totalSupply",
|
|
766
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
767
|
+
stateMutability: "view",
|
|
768
|
+
type: "function",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
inputs: [
|
|
772
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
773
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
774
|
+
],
|
|
775
|
+
name: "transfer",
|
|
776
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
777
|
+
stateMutability: "nonpayable",
|
|
778
|
+
type: "function",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
inputs: [
|
|
782
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
783
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
784
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
785
|
+
],
|
|
786
|
+
name: "transferFrom",
|
|
787
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
788
|
+
stateMutability: "nonpayable",
|
|
789
|
+
type: "function",
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
inputs: [
|
|
793
|
+
{ internalType: "int256", name: "amount0Delta", type: "int256" },
|
|
794
|
+
{ internalType: "int256", name: "amount1Delta", type: "int256" },
|
|
795
|
+
{ internalType: "bytes", name: "", type: "bytes" },
|
|
796
|
+
],
|
|
797
|
+
name: "uniswapV3SwapCallback",
|
|
798
|
+
outputs: [],
|
|
799
|
+
stateMutability: "nonpayable",
|
|
800
|
+
type: "function",
|
|
801
|
+
},
|
|
802
|
+
{ stateMutability: "payable", type: "receive" },
|
|
803
|
+
];
|
|
804
|
+
exports.WOW_FACTORY_CONTRACT_ADDRESSES = {
|
|
805
|
+
"base-sepolia": "0x04870e22fa217Cb16aa00501D7D5253B8838C1eA",
|
|
806
|
+
"base-mainnet": "0x997020E5F59cCB79C74D527Be492Cc610CB9fA2B",
|
|
807
|
+
};
|
|
808
|
+
exports.ADDRESSES = {
|
|
809
|
+
"base-sepolia": {
|
|
810
|
+
WowFactory: "0xB09c0b1b18369Ef62e896D5a49Af8d65EFa0A404",
|
|
811
|
+
WowFactoryImpl: "0xB522291f22FE7FA45D56797F7A685D5c637Edc32",
|
|
812
|
+
Wow: "0x15ba66e376856F3F6FE53dE9eeAb10dEF10E8C92",
|
|
813
|
+
BondingCurve: "0xCE00c75B9807A2aA87B2297cA7Dc1C0190137D6F",
|
|
814
|
+
NonfungiblePositionManager: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
815
|
+
SwapRouter02: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
816
|
+
WETH: "0x4200000000000000000000000000000000000006",
|
|
817
|
+
UniswapQuoter: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
818
|
+
},
|
|
819
|
+
"base-mainnet": {
|
|
820
|
+
WowFactory: "0xA06262157905913f855573f53AD48DE2D4ba1F4A",
|
|
821
|
+
WowFactoryImpl: "0xe4c17055048aEe01D0d122804816fEe5E6ac4A67",
|
|
822
|
+
Wow: "0x293997C6a1f2A1cA3aB971f548c4D95585E46282",
|
|
823
|
+
BondingCurve: "0x264ece5D58A576cc775B719bf182F2946076bE78",
|
|
824
|
+
NonfungiblePositionManager: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
825
|
+
SwapRouter02: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
826
|
+
WETH: "0x4200000000000000000000000000000000000006",
|
|
827
|
+
UniswapQuoter: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
exports.GENERIC_TOKEN_METADATA_URI = "ipfs://QmY1GqprFYvojCcUEKgqHeDj9uhZD9jmYGrQTfA9vAE78J";
|
|
831
|
+
/**
|
|
832
|
+
* Gets the Zora Wow ERC20 Factory contract address for the specified network.
|
|
833
|
+
*
|
|
834
|
+
* @param network - The network ID to get the contract address for
|
|
835
|
+
* @returns The contract address for the specified network
|
|
836
|
+
* @throws Error if the specified network is not supported
|
|
837
|
+
*/
|
|
838
|
+
function getFactoryAddress(network) {
|
|
839
|
+
const normalizedNetwork = network.toLowerCase();
|
|
840
|
+
if (!(normalizedNetwork in exports.WOW_FACTORY_CONTRACT_ADDRESSES)) {
|
|
841
|
+
throw new Error(`Invalid network: ${network}. Valid networks are: ${Object.keys(exports.WOW_FACTORY_CONTRACT_ADDRESSES).join(", ")}`);
|
|
842
|
+
}
|
|
843
|
+
return exports.WOW_FACTORY_CONTRACT_ADDRESSES[normalizedNetwork];
|
|
844
|
+
}
|