@sudobility/auctions_contracts 0.1.11 → 0.1.13

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.
Files changed (66) hide show
  1. package/README.md +86 -0
  2. package/dist/react-native/evm/evm-auction-client.d.ts +475 -0
  3. package/dist/react-native/evm/evm-auction-client.d.ts.map +1 -0
  4. package/dist/react-native/evm/evm-auction-client.js +606 -0
  5. package/dist/react-native/evm/evm-auction-client.js.map +1 -0
  6. package/dist/react-native/evm/index.d.ts +2 -0
  7. package/dist/react-native/evm/index.d.ts.map +1 -0
  8. package/dist/react-native/evm/index.js +2 -0
  9. package/dist/react-native/evm/index.js.map +1 -0
  10. package/dist/react-native/solana/index.d.ts +3 -0
  11. package/dist/react-native/solana/index.d.ts.map +1 -0
  12. package/dist/react-native/solana/index.js +3 -0
  13. package/dist/react-native/solana/index.js.map +1 -0
  14. package/dist/react-native/solana/solana-auction-client.d.ts +118 -0
  15. package/dist/react-native/solana/solana-auction-client.d.ts.map +1 -0
  16. package/dist/react-native/solana/solana-auction-client.js +604 -0
  17. package/dist/react-native/solana/solana-auction-client.js.map +1 -0
  18. package/dist/react-native/solana/types.d.ts +19 -0
  19. package/dist/react-native/solana/types.d.ts.map +1 -0
  20. package/dist/react-native/solana/types.js +7 -0
  21. package/dist/react-native/solana/types.js.map +1 -0
  22. package/dist/react-native/types/common.d.ts +181 -0
  23. package/dist/react-native/types/common.d.ts.map +1 -0
  24. package/dist/react-native/types/common.js +222 -0
  25. package/dist/react-native/types/common.js.map +1 -0
  26. package/dist/react-native/unified/index.d.ts +3 -0
  27. package/dist/react-native/unified/index.d.ts.map +1 -0
  28. package/dist/react-native/unified/index.js +3 -0
  29. package/dist/react-native/unified/index.js.map +1 -0
  30. package/dist/react-native/unified/onchain-auction-client.d.ts +90 -0
  31. package/dist/react-native/unified/onchain-auction-client.d.ts.map +1 -0
  32. package/dist/react-native/unified/onchain-auction-client.js +205 -0
  33. package/dist/react-native/unified/onchain-auction-client.js.map +1 -0
  34. package/dist/unified/evm/evm-auction-client.d.ts +475 -0
  35. package/dist/unified/evm/evm-auction-client.d.ts.map +1 -0
  36. package/dist/unified/evm/evm-auction-client.js +606 -0
  37. package/dist/unified/evm/evm-auction-client.js.map +1 -0
  38. package/dist/unified/evm/index.d.ts +2 -0
  39. package/dist/unified/evm/index.d.ts.map +1 -0
  40. package/dist/unified/evm/index.js +2 -0
  41. package/dist/unified/evm/index.js.map +1 -0
  42. package/dist/unified/solana/index.d.ts +3 -0
  43. package/dist/unified/solana/index.d.ts.map +1 -0
  44. package/dist/unified/solana/index.js +3 -0
  45. package/dist/unified/solana/index.js.map +1 -0
  46. package/dist/unified/solana/solana-auction-client.d.ts +118 -0
  47. package/dist/unified/solana/solana-auction-client.d.ts.map +1 -0
  48. package/dist/unified/solana/solana-auction-client.js +604 -0
  49. package/dist/unified/solana/solana-auction-client.js.map +1 -0
  50. package/dist/unified/solana/types.d.ts +19 -0
  51. package/dist/unified/solana/types.d.ts.map +1 -0
  52. package/dist/unified/solana/types.js +7 -0
  53. package/dist/unified/solana/types.js.map +1 -0
  54. package/dist/unified/types/common.d.ts +181 -0
  55. package/dist/unified/types/common.d.ts.map +1 -0
  56. package/dist/unified/types/common.js +222 -0
  57. package/dist/unified/types/common.js.map +1 -0
  58. package/dist/unified/unified/index.d.ts +3 -0
  59. package/dist/unified/unified/index.d.ts.map +1 -0
  60. package/dist/unified/unified/index.js +3 -0
  61. package/dist/unified/unified/index.js.map +1 -0
  62. package/dist/unified/unified/onchain-auction-client.d.ts +90 -0
  63. package/dist/unified/unified/onchain-auction-client.d.ts.map +1 -0
  64. package/dist/unified/unified/onchain-auction-client.js +205 -0
  65. package/dist/unified/unified/onchain-auction-client.js.map +1 -0
  66. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # @sudobility/auctions_contracts
2
+
3
+ Multi-chain auction system supporting Solana (Rust/Anchor) and EVM (Solidity/Hardhat). Implements Traditional, Dutch, and Penny auction types.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun install
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ The package provides a TypeScript SDK with four export points:
14
+
15
+ ```typescript
16
+ import { OnchainAuctionClient } from '@sudobility/auctions_contracts'; // Unified client
17
+ import { EvmAuctionClient } from '@sudobility/auctions_contracts/evm'; // EVM-specific (viem)
18
+ import { SolanaAuctionClient } from '@sudobility/auctions_contracts/solana'; // Solana-specific (web3.js)
19
+ import { ... } from '@sudobility/auctions_contracts/react-native'; // React Native entry
20
+ ```
21
+
22
+ ### Auction Types
23
+
24
+ - **Traditional**: English-style ascending bids with reserve price and minimum increment
25
+ - **Dutch**: Descending price from start to minimum; first buyer wins immediately
26
+ - **Penny**: Fixed bid increment (pay-to-bid); each bid resets a 5-minute timer
27
+
28
+ ### Supported Networks
29
+
30
+ - **EVM**: Ethereum, Sepolia, Polygon, Optimism, Base, Arbitrum
31
+ - **Solana**: Localnet, Devnet, Mainnet-beta
32
+
33
+ ## Development
34
+
35
+ ```bash
36
+ bun run build # Build everything (EVM + Solana + Unified + React Native)
37
+ bun run build:ci # Build unified + react-native only (no EVM/Solana compile)
38
+ bun run compile:evm # Compile Solidity contracts only
39
+ bun run test # Run EVM tests (Hardhat + viem)
40
+ bun run test:solana # Run Solana tests (cargo test)
41
+ bun run test:ci # Build unified then run unified tests directly
42
+ bun run lint # ESLint check
43
+ bun run lint:fix # ESLint with auto-fix
44
+ bun run typecheck # TypeScript compilation check
45
+ bun run format # Prettier formatting
46
+ bun run clean # Hardhat clean
47
+ ```
48
+
49
+ ### Deployment
50
+
51
+ ```bash
52
+ bun run deploy:evm:local # Deploy to Hardhat localhost
53
+ bun run deploy:evm:sepolia # Deploy to Sepolia
54
+ bun run deploy:solana:devnet # Deploy to Solana devnet
55
+ ```
56
+
57
+ ## Architecture
58
+
59
+ ### EVM (Solidity 0.8.24)
60
+
61
+ - UUPS Upgradeable Proxy pattern
62
+ - Storage gap (`__gap`) for future slot reservation
63
+ - CEI pattern, SafeERC20, reentrancy guards
64
+
65
+ ### Solana (Rust/Anchor 0.28.0)
66
+
67
+ - PDA-based accounting with deterministic address derivation
68
+ - Borsh serialization, saturating arithmetic
69
+
70
+ ### Unified Client
71
+
72
+ The `OnchainAuctionClient` uses dynamic `import()` to lazy-load platform-specific clients (EVM or Solana) on first use, keeping bundle size minimal.
73
+
74
+ ## Key Constants
75
+
76
+ | Constant | Value |
77
+ |----------|-------|
78
+ | Fee Rate | 0.5% (50 basis points) |
79
+ | Max Fee Rate | 10% (1000 basis points) |
80
+ | Acceptance Period | 24 hours |
81
+ | Penny Timer | 5 minutes |
82
+ | Max Items Per Auction | 255 |
83
+
84
+ ## License
85
+
86
+ BUSL-1.1
@@ -0,0 +1,475 @@
1
+ /**
2
+ * EVM Auction Client
3
+ * Stateless client for interacting with the AuctionRegistry contract on EVM chains
4
+ */
5
+ import { type PublicClient, type WalletClient, type Hash, type Chain } from 'viem';
6
+ import { type AuctionItem, type AuctionCore, type TraditionalParams, type DutchParams, type PennyParams, type CreateTraditionalAuctionParams, type CreateDutchAuctionParams, type CreatePennyAuctionParams, type TransactionResult, type ChainInfo } from '../types/common.js';
7
+ export declare const AUCTION_REGISTRY_ABI: readonly [{
8
+ readonly name: "getAuction";
9
+ readonly type: "function";
10
+ readonly stateMutability: "view";
11
+ readonly inputs: readonly [{
12
+ readonly name: "auctionId";
13
+ readonly type: "uint256";
14
+ }];
15
+ readonly outputs: readonly [{
16
+ readonly name: "core";
17
+ readonly type: "tuple";
18
+ readonly components: readonly [{
19
+ readonly name: "dealer";
20
+ readonly type: "address";
21
+ }, {
22
+ readonly name: "auctionType";
23
+ readonly type: "uint8";
24
+ }, {
25
+ readonly name: "status";
26
+ readonly type: "uint8";
27
+ }, {
28
+ readonly name: "paymentToken";
29
+ readonly type: "address";
30
+ }, {
31
+ readonly name: "deadline";
32
+ readonly type: "uint96";
33
+ }, {
34
+ readonly name: "highBidder";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly name: "currentBid";
38
+ readonly type: "uint128";
39
+ }, {
40
+ readonly name: "createdAt";
41
+ readonly type: "uint64";
42
+ }];
43
+ }, {
44
+ readonly name: "items";
45
+ readonly type: "tuple[]";
46
+ readonly components: readonly [{
47
+ readonly name: "tokenAddress";
48
+ readonly type: "address";
49
+ }, {
50
+ readonly name: "itemType";
51
+ readonly type: "uint8";
52
+ }, {
53
+ readonly name: "tokenId";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly name: "amount";
57
+ readonly type: "uint256";
58
+ }];
59
+ }];
60
+ }, {
61
+ readonly name: "getTraditionalParams";
62
+ readonly type: "function";
63
+ readonly stateMutability: "view";
64
+ readonly inputs: readonly [{
65
+ readonly name: "auctionId";
66
+ readonly type: "uint256";
67
+ }];
68
+ readonly outputs: readonly [{
69
+ readonly name: "params";
70
+ readonly type: "tuple";
71
+ readonly components: readonly [{
72
+ readonly name: "startAmount";
73
+ readonly type: "uint128";
74
+ }, {
75
+ readonly name: "increment";
76
+ readonly type: "uint128";
77
+ }, {
78
+ readonly name: "reservePrice";
79
+ readonly type: "uint128";
80
+ }, {
81
+ readonly name: "acceptanceDeadline";
82
+ readonly type: "uint96";
83
+ }, {
84
+ readonly name: "reserveMet";
85
+ readonly type: "bool";
86
+ }];
87
+ }];
88
+ }, {
89
+ readonly name: "getDutchParams";
90
+ readonly type: "function";
91
+ readonly stateMutability: "view";
92
+ readonly inputs: readonly [{
93
+ readonly name: "auctionId";
94
+ readonly type: "uint256";
95
+ }];
96
+ readonly outputs: readonly [{
97
+ readonly name: "params";
98
+ readonly type: "tuple";
99
+ readonly components: readonly [{
100
+ readonly name: "startPrice";
101
+ readonly type: "uint128";
102
+ }, {
103
+ readonly name: "decreaseAmount";
104
+ readonly type: "uint128";
105
+ }, {
106
+ readonly name: "decreaseInterval";
107
+ readonly type: "uint64";
108
+ }, {
109
+ readonly name: "minimumPrice";
110
+ readonly type: "uint128";
111
+ }, {
112
+ readonly name: "startTime";
113
+ readonly type: "uint64";
114
+ }];
115
+ }];
116
+ }, {
117
+ readonly name: "getPennyParams";
118
+ readonly type: "function";
119
+ readonly stateMutability: "view";
120
+ readonly inputs: readonly [{
121
+ readonly name: "auctionId";
122
+ readonly type: "uint256";
123
+ }];
124
+ readonly outputs: readonly [{
125
+ readonly name: "params";
126
+ readonly type: "tuple";
127
+ readonly components: readonly [{
128
+ readonly name: "incrementAmount";
129
+ readonly type: "uint128";
130
+ }, {
131
+ readonly name: "totalPaid";
132
+ readonly type: "uint128";
133
+ }, {
134
+ readonly name: "lastBidTime";
135
+ readonly type: "uint64";
136
+ }, {
137
+ readonly name: "timerDuration";
138
+ readonly type: "uint64";
139
+ }];
140
+ }];
141
+ }, {
142
+ readonly name: "getDutchCurrentPrice";
143
+ readonly type: "function";
144
+ readonly stateMutability: "view";
145
+ readonly inputs: readonly [{
146
+ readonly name: "auctionId";
147
+ readonly type: "uint256";
148
+ }];
149
+ readonly outputs: readonly [{
150
+ readonly name: "currentPrice";
151
+ readonly type: "uint128";
152
+ }];
153
+ }, {
154
+ readonly name: "getPennyDeadline";
155
+ readonly type: "function";
156
+ readonly stateMutability: "view";
157
+ readonly inputs: readonly [{
158
+ readonly name: "auctionId";
159
+ readonly type: "uint256";
160
+ }];
161
+ readonly outputs: readonly [{
162
+ readonly name: "effectiveDeadline";
163
+ readonly type: "uint256";
164
+ }];
165
+ }, {
166
+ readonly name: "nextAuctionId";
167
+ readonly type: "function";
168
+ readonly stateMutability: "view";
169
+ readonly inputs: readonly [];
170
+ readonly outputs: readonly [{
171
+ readonly name: "";
172
+ readonly type: "uint256";
173
+ }];
174
+ }, {
175
+ readonly name: "paused";
176
+ readonly type: "function";
177
+ readonly stateMutability: "view";
178
+ readonly inputs: readonly [];
179
+ readonly outputs: readonly [{
180
+ readonly name: "";
181
+ readonly type: "bool";
182
+ }];
183
+ }, {
184
+ readonly name: "feeRate";
185
+ readonly type: "function";
186
+ readonly stateMutability: "view";
187
+ readonly inputs: readonly [];
188
+ readonly outputs: readonly [{
189
+ readonly name: "";
190
+ readonly type: "uint16";
191
+ }];
192
+ }, {
193
+ readonly name: "accumulatedFees";
194
+ readonly type: "function";
195
+ readonly stateMutability: "view";
196
+ readonly inputs: readonly [{
197
+ readonly name: "token";
198
+ readonly type: "address";
199
+ }];
200
+ readonly outputs: readonly [{
201
+ readonly name: "";
202
+ readonly type: "uint256";
203
+ }];
204
+ }, {
205
+ readonly name: "createTraditionalAuction";
206
+ readonly type: "function";
207
+ readonly stateMutability: "nonpayable";
208
+ readonly inputs: readonly [{
209
+ readonly name: "items";
210
+ readonly type: "tuple[]";
211
+ readonly components: readonly [{
212
+ readonly name: "tokenAddress";
213
+ readonly type: "address";
214
+ }, {
215
+ readonly name: "itemType";
216
+ readonly type: "uint8";
217
+ }, {
218
+ readonly name: "tokenId";
219
+ readonly type: "uint256";
220
+ }, {
221
+ readonly name: "amount";
222
+ readonly type: "uint256";
223
+ }];
224
+ }, {
225
+ readonly name: "paymentToken";
226
+ readonly type: "address";
227
+ }, {
228
+ readonly name: "startAmount";
229
+ readonly type: "uint128";
230
+ }, {
231
+ readonly name: "increment";
232
+ readonly type: "uint128";
233
+ }, {
234
+ readonly name: "reservePrice";
235
+ readonly type: "uint128";
236
+ }, {
237
+ readonly name: "deadline";
238
+ readonly type: "uint96";
239
+ }];
240
+ readonly outputs: readonly [{
241
+ readonly name: "auctionId";
242
+ readonly type: "uint256";
243
+ }];
244
+ }, {
245
+ readonly name: "createDutchAuction";
246
+ readonly type: "function";
247
+ readonly stateMutability: "nonpayable";
248
+ readonly inputs: readonly [{
249
+ readonly name: "items";
250
+ readonly type: "tuple[]";
251
+ readonly components: readonly [{
252
+ readonly name: "tokenAddress";
253
+ readonly type: "address";
254
+ }, {
255
+ readonly name: "itemType";
256
+ readonly type: "uint8";
257
+ }, {
258
+ readonly name: "tokenId";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly name: "amount";
262
+ readonly type: "uint256";
263
+ }];
264
+ }, {
265
+ readonly name: "paymentToken";
266
+ readonly type: "address";
267
+ }, {
268
+ readonly name: "startPrice";
269
+ readonly type: "uint128";
270
+ }, {
271
+ readonly name: "decreaseAmount";
272
+ readonly type: "uint128";
273
+ }, {
274
+ readonly name: "decreaseInterval";
275
+ readonly type: "uint64";
276
+ }, {
277
+ readonly name: "minimumPrice";
278
+ readonly type: "uint128";
279
+ }, {
280
+ readonly name: "deadline";
281
+ readonly type: "uint96";
282
+ }];
283
+ readonly outputs: readonly [{
284
+ readonly name: "auctionId";
285
+ readonly type: "uint256";
286
+ }];
287
+ }, {
288
+ readonly name: "createPennyAuction";
289
+ readonly type: "function";
290
+ readonly stateMutability: "nonpayable";
291
+ readonly inputs: readonly [{
292
+ readonly name: "items";
293
+ readonly type: "tuple[]";
294
+ readonly components: readonly [{
295
+ readonly name: "tokenAddress";
296
+ readonly type: "address";
297
+ }, {
298
+ readonly name: "itemType";
299
+ readonly type: "uint8";
300
+ }, {
301
+ readonly name: "tokenId";
302
+ readonly type: "uint256";
303
+ }, {
304
+ readonly name: "amount";
305
+ readonly type: "uint256";
306
+ }];
307
+ }, {
308
+ readonly name: "paymentToken";
309
+ readonly type: "address";
310
+ }, {
311
+ readonly name: "incrementAmount";
312
+ readonly type: "uint128";
313
+ }];
314
+ readonly outputs: readonly [{
315
+ readonly name: "auctionId";
316
+ readonly type: "uint256";
317
+ }];
318
+ }, {
319
+ readonly name: "bidTraditional";
320
+ readonly type: "function";
321
+ readonly stateMutability: "nonpayable";
322
+ readonly inputs: readonly [{
323
+ readonly name: "auctionId";
324
+ readonly type: "uint256";
325
+ }, {
326
+ readonly name: "amount";
327
+ readonly type: "uint128";
328
+ }];
329
+ readonly outputs: readonly [];
330
+ }, {
331
+ readonly name: "buyDutch";
332
+ readonly type: "function";
333
+ readonly stateMutability: "nonpayable";
334
+ readonly inputs: readonly [{
335
+ readonly name: "auctionId";
336
+ readonly type: "uint256";
337
+ }];
338
+ readonly outputs: readonly [];
339
+ }, {
340
+ readonly name: "bidPenny";
341
+ readonly type: "function";
342
+ readonly stateMutability: "nonpayable";
343
+ readonly inputs: readonly [{
344
+ readonly name: "auctionId";
345
+ readonly type: "uint256";
346
+ }];
347
+ readonly outputs: readonly [];
348
+ }, {
349
+ readonly name: "finalizeAuction";
350
+ readonly type: "function";
351
+ readonly stateMutability: "nonpayable";
352
+ readonly inputs: readonly [{
353
+ readonly name: "auctionId";
354
+ readonly type: "uint256";
355
+ }];
356
+ readonly outputs: readonly [];
357
+ }, {
358
+ readonly name: "dealerAcceptBid";
359
+ readonly type: "function";
360
+ readonly stateMutability: "nonpayable";
361
+ readonly inputs: readonly [{
362
+ readonly name: "auctionId";
363
+ readonly type: "uint256";
364
+ }];
365
+ readonly outputs: readonly [];
366
+ }];
367
+ export declare const ERC20_ABI: readonly [{
368
+ readonly name: "approve";
369
+ readonly type: "function";
370
+ readonly stateMutability: "nonpayable";
371
+ readonly inputs: readonly [{
372
+ readonly name: "spender";
373
+ readonly type: "address";
374
+ }, {
375
+ readonly name: "amount";
376
+ readonly type: "uint256";
377
+ }];
378
+ readonly outputs: readonly [{
379
+ readonly name: "";
380
+ readonly type: "bool";
381
+ }];
382
+ }, {
383
+ readonly name: "allowance";
384
+ readonly type: "function";
385
+ readonly stateMutability: "view";
386
+ readonly inputs: readonly [{
387
+ readonly name: "owner";
388
+ readonly type: "address";
389
+ }, {
390
+ readonly name: "spender";
391
+ readonly type: "address";
392
+ }];
393
+ readonly outputs: readonly [{
394
+ readonly name: "";
395
+ readonly type: "uint256";
396
+ }];
397
+ }];
398
+ export interface EVMWallet {
399
+ walletClient: WalletClient;
400
+ publicClient: PublicClient;
401
+ chain?: Chain;
402
+ }
403
+ /**
404
+ * Stateless EVM Auction Client
405
+ */
406
+ export declare class EVMAuctionClient {
407
+ /**
408
+ * Get auction details
409
+ */
410
+ getAuction(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<{
411
+ core: AuctionCore;
412
+ items: AuctionItem[];
413
+ }>;
414
+ /**
415
+ * Get Traditional auction parameters
416
+ */
417
+ getTraditionalParams(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<TraditionalParams>;
418
+ /**
419
+ * Get Dutch auction parameters
420
+ */
421
+ getDutchParams(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<DutchParams>;
422
+ /**
423
+ * Get current Dutch auction price
424
+ */
425
+ getDutchCurrentPrice(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<bigint>;
426
+ /**
427
+ * Get Penny auction parameters
428
+ */
429
+ getPennyParams(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<PennyParams>;
430
+ /**
431
+ * Get effective deadline for Penny auction
432
+ */
433
+ getPennyDeadline(publicClient: PublicClient, chainInfo: ChainInfo, auctionId: bigint): Promise<bigint>;
434
+ /**
435
+ * Create a Traditional auction
436
+ */
437
+ createTraditionalAuction(wallet: EVMWallet, chainInfo: ChainInfo, params: CreateTraditionalAuctionParams): Promise<TransactionResult>;
438
+ /**
439
+ * Create a Dutch auction
440
+ */
441
+ createDutchAuction(wallet: EVMWallet, chainInfo: ChainInfo, params: CreateDutchAuctionParams): Promise<TransactionResult>;
442
+ /**
443
+ * Create a Penny auction
444
+ */
445
+ createPennyAuction(wallet: EVMWallet, chainInfo: ChainInfo, params: CreatePennyAuctionParams): Promise<TransactionResult>;
446
+ /**
447
+ * Place a bid on a Traditional auction
448
+ */
449
+ bidTraditional(wallet: EVMWallet, chainInfo: ChainInfo, auctionId: bigint, amount: bigint): Promise<TransactionResult>;
450
+ /**
451
+ * Buy at current price in a Dutch auction
452
+ */
453
+ buyDutch(wallet: EVMWallet, chainInfo: ChainInfo, auctionId: bigint): Promise<TransactionResult>;
454
+ /**
455
+ * Place a bid on a Penny auction
456
+ */
457
+ bidPenny(wallet: EVMWallet, chainInfo: ChainInfo, auctionId: bigint): Promise<TransactionResult>;
458
+ /**
459
+ * Finalize an auction
460
+ */
461
+ finalizeAuction(wallet: EVMWallet, chainInfo: ChainInfo, auctionId: bigint): Promise<TransactionResult>;
462
+ /**
463
+ * Dealer accepts bid below reserve
464
+ */
465
+ dealerAcceptBid(wallet: EVMWallet, chainInfo: ChainInfo, auctionId: bigint): Promise<TransactionResult>;
466
+ /**
467
+ * Approve ERC-20 token spending
468
+ */
469
+ approveToken(wallet: EVMWallet, tokenAddress: string, spenderAddress: string, amount: bigint): Promise<Hash>;
470
+ /**
471
+ * Check ERC-20 token allowance
472
+ */
473
+ checkAllowance(publicClient: PublicClient, tokenAddress: string, ownerAddress: string, spenderAddress: string): Promise<bigint>;
474
+ }
475
+ //# sourceMappingURL=evm-auction-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-auction-client.d.ts","sourceRoot":"","sources":["../../../src/evm/evm-auction-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EAEjB,KAAK,IAAI,EACT,KAAK,KAAK,EAEX,MAAM,MAAM,CAAC;AAEd,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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