@super-protocol/sdk-js 3.10.1 → 3.11.1
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/dist/cjs/contracts/abi.d.ts +666 -1
- package/dist/cjs/contracts/abi.js +865 -6
- package/dist/cjs/errors/utils.d.ts +1 -0
- package/dist/cjs/errors/utils.js +7 -2
- package/dist/cjs/models/Offer.d.ts +3 -1
- package/dist/cjs/models/Offer.js +54 -47
- package/dist/cjs/models/Order.d.ts +3 -1
- package/dist/cjs/models/Order.js +44 -5
- package/dist/cjs/models/TeeOffer.d.ts +3 -5
- package/dist/cjs/models/TeeOffer.js +44 -20
- package/dist/cjs/staticModels/Offers.d.ts +4 -0
- package/dist/cjs/staticModels/Offers.js +8 -1
- package/dist/cjs/types/HardwareInfo.d.ts +5 -1
- package/dist/cjs/types/Offer.d.ts +9 -1
- package/dist/cjs/types/OfferVersion.d.ts +10 -0
- package/dist/cjs/types/Order.d.ts +20 -1
- package/dist/cjs/types/Order.js +10 -2
- package/dist/cjs/types/TeeOfferInfo.d.ts +29 -2
- package/dist/cjs/utils/helper.d.ts +16 -1
- package/dist/cjs/utils/helper.js +69 -2
- package/dist/mjs/contracts/abi.d.ts +666 -1
- package/dist/mjs/contracts/abi.js +865 -6
- package/dist/mjs/errors/utils.d.ts +1 -0
- package/dist/mjs/errors/utils.js +5 -1
- package/dist/mjs/models/Offer.d.ts +3 -1
- package/dist/mjs/models/Offer.js +57 -50
- package/dist/mjs/models/Order.d.ts +3 -1
- package/dist/mjs/models/Order.js +45 -6
- package/dist/mjs/models/TeeOffer.d.ts +3 -5
- package/dist/mjs/models/TeeOffer.js +45 -21
- package/dist/mjs/staticModels/Offers.d.ts +4 -0
- package/dist/mjs/staticModels/Offers.js +8 -1
- package/dist/mjs/types/HardwareInfo.d.ts +5 -1
- package/dist/mjs/types/Offer.d.ts +9 -1
- package/dist/mjs/types/OfferVersion.d.ts +10 -0
- package/dist/mjs/types/Order.d.ts +20 -1
- package/dist/mjs/types/Order.js +10 -2
- package/dist/mjs/types/TeeOfferInfo.d.ts +29 -2
- package/dist/mjs/utils/helper.d.ts +16 -1
- package/dist/mjs/utils/helper.js +62 -1
- package/package.json +1 -1
|
@@ -2367,6 +2367,405 @@ export declare const abi: readonly [{
|
|
|
2367
2367
|
}];
|
|
2368
2368
|
readonly stateMutability: "view";
|
|
2369
2369
|
readonly type: "function";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly inputs: readonly [{
|
|
2372
|
+
readonly internalType: "uint256";
|
|
2373
|
+
readonly name: "offerId";
|
|
2374
|
+
readonly type: "uint256";
|
|
2375
|
+
}];
|
|
2376
|
+
readonly name: "getOfferAggregatedInfo";
|
|
2377
|
+
readonly outputs: readonly [{
|
|
2378
|
+
readonly components: readonly [{
|
|
2379
|
+
readonly internalType: "address";
|
|
2380
|
+
readonly name: "providerAuth";
|
|
2381
|
+
readonly type: "address";
|
|
2382
|
+
}, {
|
|
2383
|
+
readonly internalType: "bool";
|
|
2384
|
+
readonly name: "enabled";
|
|
2385
|
+
readonly type: "bool";
|
|
2386
|
+
}, {
|
|
2387
|
+
readonly internalType: "enum OfferType";
|
|
2388
|
+
readonly name: "offerType";
|
|
2389
|
+
readonly type: "uint8";
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly internalType: "enum OfferGroup";
|
|
2392
|
+
readonly name: "offerGroup";
|
|
2393
|
+
readonly type: "uint8";
|
|
2394
|
+
}, {
|
|
2395
|
+
readonly components: readonly [{
|
|
2396
|
+
readonly internalType: "uint64";
|
|
2397
|
+
readonly name: "createdDate";
|
|
2398
|
+
readonly type: "uint64";
|
|
2399
|
+
}, {
|
|
2400
|
+
readonly internalType: "address";
|
|
2401
|
+
readonly name: "createdBy";
|
|
2402
|
+
readonly type: "address";
|
|
2403
|
+
}, {
|
|
2404
|
+
readonly internalType: "uint64";
|
|
2405
|
+
readonly name: "modifiedDate";
|
|
2406
|
+
readonly type: "uint64";
|
|
2407
|
+
}, {
|
|
2408
|
+
readonly internalType: "address";
|
|
2409
|
+
readonly name: "modifiedBy";
|
|
2410
|
+
readonly type: "address";
|
|
2411
|
+
}];
|
|
2412
|
+
readonly internalType: "struct Origins";
|
|
2413
|
+
readonly name: "origins";
|
|
2414
|
+
readonly type: "tuple";
|
|
2415
|
+
}, {
|
|
2416
|
+
readonly components: readonly [{
|
|
2417
|
+
readonly internalType: "uint64";
|
|
2418
|
+
readonly name: "version";
|
|
2419
|
+
readonly type: "uint64";
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly components: readonly [{
|
|
2422
|
+
readonly internalType: "string";
|
|
2423
|
+
readonly name: "hash";
|
|
2424
|
+
readonly type: "string";
|
|
2425
|
+
}, {
|
|
2426
|
+
readonly internalType: "string";
|
|
2427
|
+
readonly name: "signatureKeyHash";
|
|
2428
|
+
readonly type: "string";
|
|
2429
|
+
}, {
|
|
2430
|
+
readonly internalType: "string";
|
|
2431
|
+
readonly name: "metadata";
|
|
2432
|
+
readonly type: "string";
|
|
2433
|
+
}];
|
|
2434
|
+
readonly internalType: "struct OfferVersionInfo";
|
|
2435
|
+
readonly name: "info";
|
|
2436
|
+
readonly type: "tuple";
|
|
2437
|
+
}, {
|
|
2438
|
+
readonly internalType: "enum OfferVersionStatus";
|
|
2439
|
+
readonly name: "status";
|
|
2440
|
+
readonly type: "uint8";
|
|
2441
|
+
}];
|
|
2442
|
+
readonly internalType: "struct OfferVersion[]";
|
|
2443
|
+
readonly name: "versions";
|
|
2444
|
+
readonly type: "tuple[]";
|
|
2445
|
+
}, {
|
|
2446
|
+
readonly components: readonly [{
|
|
2447
|
+
readonly internalType: "string";
|
|
2448
|
+
readonly name: "name";
|
|
2449
|
+
readonly type: "string";
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly internalType: "string";
|
|
2452
|
+
readonly name: "description";
|
|
2453
|
+
readonly type: "string";
|
|
2454
|
+
}, {
|
|
2455
|
+
readonly internalType: "string";
|
|
2456
|
+
readonly name: "input";
|
|
2457
|
+
readonly type: "string";
|
|
2458
|
+
}, {
|
|
2459
|
+
readonly internalType: "string";
|
|
2460
|
+
readonly name: "output";
|
|
2461
|
+
readonly type: "string";
|
|
2462
|
+
}, {
|
|
2463
|
+
readonly internalType: "string";
|
|
2464
|
+
readonly name: "allowedArgs";
|
|
2465
|
+
readonly type: "string";
|
|
2466
|
+
}, {
|
|
2467
|
+
readonly internalType: "address[]";
|
|
2468
|
+
readonly name: "allowedAccounts";
|
|
2469
|
+
readonly type: "address[]";
|
|
2470
|
+
}, {
|
|
2471
|
+
readonly internalType: "string";
|
|
2472
|
+
readonly name: "argsPublicKey";
|
|
2473
|
+
readonly type: "string";
|
|
2474
|
+
}, {
|
|
2475
|
+
readonly internalType: "string";
|
|
2476
|
+
readonly name: "resultResource";
|
|
2477
|
+
readonly type: "string";
|
|
2478
|
+
}, {
|
|
2479
|
+
readonly internalType: "string";
|
|
2480
|
+
readonly name: "hash_DEPRECATED";
|
|
2481
|
+
readonly type: "string";
|
|
2482
|
+
}, {
|
|
2483
|
+
readonly internalType: "string";
|
|
2484
|
+
readonly name: "metadata_DEPRECATED";
|
|
2485
|
+
readonly type: "string";
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly internalType: "string";
|
|
2488
|
+
readonly name: "signatureKeyHash_DEPRECATED";
|
|
2489
|
+
readonly type: "string";
|
|
2490
|
+
}, {
|
|
2491
|
+
readonly internalType: "string";
|
|
2492
|
+
readonly name: "hardwareContext_DEPRECATED";
|
|
2493
|
+
readonly type: "string";
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
2496
|
+
readonly name: "subtype";
|
|
2497
|
+
readonly type: "uint8";
|
|
2498
|
+
}, {
|
|
2499
|
+
readonly internalType: "bool";
|
|
2500
|
+
readonly name: "cancelable";
|
|
2501
|
+
readonly type: "bool";
|
|
2502
|
+
}];
|
|
2503
|
+
readonly internalType: "struct ValueOfferInfo";
|
|
2504
|
+
readonly name: "valueOfferInfo";
|
|
2505
|
+
readonly type: "tuple";
|
|
2506
|
+
}, {
|
|
2507
|
+
readonly components: readonly [{
|
|
2508
|
+
readonly components: readonly [{
|
|
2509
|
+
readonly internalType: "uint256";
|
|
2510
|
+
readonly name: "id";
|
|
2511
|
+
readonly type: "uint256";
|
|
2512
|
+
}, {
|
|
2513
|
+
readonly internalType: "uint64";
|
|
2514
|
+
readonly name: "version";
|
|
2515
|
+
readonly type: "uint64";
|
|
2516
|
+
}];
|
|
2517
|
+
readonly internalType: "struct OfferWithVersion[]";
|
|
2518
|
+
readonly name: "offers";
|
|
2519
|
+
readonly type: "tuple[]";
|
|
2520
|
+
}, {
|
|
2521
|
+
readonly internalType: "enum OfferType[]";
|
|
2522
|
+
readonly name: "types";
|
|
2523
|
+
readonly type: "uint8[]";
|
|
2524
|
+
}];
|
|
2525
|
+
readonly internalType: "struct ValueOfferRestrictionsSpecification";
|
|
2526
|
+
readonly name: "valueOfferRestrictions";
|
|
2527
|
+
readonly type: "tuple";
|
|
2528
|
+
}, {
|
|
2529
|
+
readonly components: readonly [{
|
|
2530
|
+
readonly internalType: "uint256";
|
|
2531
|
+
readonly name: "id";
|
|
2532
|
+
readonly type: "uint256";
|
|
2533
|
+
}, {
|
|
2534
|
+
readonly components: readonly [{
|
|
2535
|
+
readonly internalType: "uint64";
|
|
2536
|
+
readonly name: "cpuCores";
|
|
2537
|
+
readonly type: "uint64";
|
|
2538
|
+
}, {
|
|
2539
|
+
readonly internalType: "uint64";
|
|
2540
|
+
readonly name: "ram";
|
|
2541
|
+
readonly type: "uint64";
|
|
2542
|
+
}, {
|
|
2543
|
+
readonly internalType: "uint64";
|
|
2544
|
+
readonly name: "diskUsage";
|
|
2545
|
+
readonly type: "uint64";
|
|
2546
|
+
}, {
|
|
2547
|
+
readonly internalType: "uint64";
|
|
2548
|
+
readonly name: "gpuCores";
|
|
2549
|
+
readonly type: "uint64";
|
|
2550
|
+
}, {
|
|
2551
|
+
readonly internalType: "uint64";
|
|
2552
|
+
readonly name: "vram";
|
|
2553
|
+
readonly type: "uint64";
|
|
2554
|
+
}];
|
|
2555
|
+
readonly internalType: "struct SlotInfo";
|
|
2556
|
+
readonly name: "info";
|
|
2557
|
+
readonly type: "tuple";
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly components: readonly [{
|
|
2560
|
+
readonly internalType: "string";
|
|
2561
|
+
readonly name: "data";
|
|
2562
|
+
readonly type: "string";
|
|
2563
|
+
}];
|
|
2564
|
+
readonly internalType: "struct OptionInfo";
|
|
2565
|
+
readonly name: "option";
|
|
2566
|
+
readonly type: "tuple";
|
|
2567
|
+
}, {
|
|
2568
|
+
readonly components: readonly [{
|
|
2569
|
+
readonly internalType: "uint256";
|
|
2570
|
+
readonly name: "price";
|
|
2571
|
+
readonly type: "uint256";
|
|
2572
|
+
}, {
|
|
2573
|
+
readonly internalType: "enum PriceType";
|
|
2574
|
+
readonly name: "priceType";
|
|
2575
|
+
readonly type: "uint8";
|
|
2576
|
+
}, {
|
|
2577
|
+
readonly internalType: "uint64";
|
|
2578
|
+
readonly name: "minTimeMinutes";
|
|
2579
|
+
readonly type: "uint64";
|
|
2580
|
+
}, {
|
|
2581
|
+
readonly internalType: "uint64";
|
|
2582
|
+
readonly name: "maxTimeMinutes";
|
|
2583
|
+
readonly type: "uint64";
|
|
2584
|
+
}];
|
|
2585
|
+
readonly internalType: "struct SlotUsage";
|
|
2586
|
+
readonly name: "usage";
|
|
2587
|
+
readonly type: "tuple";
|
|
2588
|
+
}, {
|
|
2589
|
+
readonly internalType: "string";
|
|
2590
|
+
readonly name: "metadata";
|
|
2591
|
+
readonly type: "string";
|
|
2592
|
+
}];
|
|
2593
|
+
readonly internalType: "struct ValueOfferSlot[]";
|
|
2594
|
+
readonly name: "valueOfferSlots";
|
|
2595
|
+
readonly type: "tuple[]";
|
|
2596
|
+
}, {
|
|
2597
|
+
readonly internalType: "uint256";
|
|
2598
|
+
readonly name: "teeActualTcbId";
|
|
2599
|
+
readonly type: "uint256";
|
|
2600
|
+
}, {
|
|
2601
|
+
readonly components: readonly [{
|
|
2602
|
+
readonly internalType: "string";
|
|
2603
|
+
readonly name: "name";
|
|
2604
|
+
readonly type: "string";
|
|
2605
|
+
}, {
|
|
2606
|
+
readonly internalType: "string";
|
|
2607
|
+
readonly name: "description";
|
|
2608
|
+
readonly type: "string";
|
|
2609
|
+
}, {
|
|
2610
|
+
readonly internalType: "string";
|
|
2611
|
+
readonly name: "teeType";
|
|
2612
|
+
readonly type: "string";
|
|
2613
|
+
}, {
|
|
2614
|
+
readonly internalType: "string";
|
|
2615
|
+
readonly name: "properties";
|
|
2616
|
+
readonly type: "string";
|
|
2617
|
+
}, {
|
|
2618
|
+
readonly internalType: "string";
|
|
2619
|
+
readonly name: "argsPublicKey";
|
|
2620
|
+
readonly type: "string";
|
|
2621
|
+
}, {
|
|
2622
|
+
readonly internalType: "enum TeeOfferSubtype";
|
|
2623
|
+
readonly name: "subtype";
|
|
2624
|
+
readonly type: "uint8";
|
|
2625
|
+
}];
|
|
2626
|
+
readonly internalType: "struct TeeOfferInfo";
|
|
2627
|
+
readonly name: "teeOfferInfo";
|
|
2628
|
+
readonly type: "tuple";
|
|
2629
|
+
}, {
|
|
2630
|
+
readonly components: readonly [{
|
|
2631
|
+
readonly components: readonly [{
|
|
2632
|
+
readonly internalType: "uint64";
|
|
2633
|
+
readonly name: "cpuCores";
|
|
2634
|
+
readonly type: "uint64";
|
|
2635
|
+
}, {
|
|
2636
|
+
readonly internalType: "uint64";
|
|
2637
|
+
readonly name: "ram";
|
|
2638
|
+
readonly type: "uint64";
|
|
2639
|
+
}, {
|
|
2640
|
+
readonly internalType: "uint64";
|
|
2641
|
+
readonly name: "diskUsage";
|
|
2642
|
+
readonly type: "uint64";
|
|
2643
|
+
}, {
|
|
2644
|
+
readonly internalType: "uint64";
|
|
2645
|
+
readonly name: "gpuCores";
|
|
2646
|
+
readonly type: "uint64";
|
|
2647
|
+
}, {
|
|
2648
|
+
readonly internalType: "uint64";
|
|
2649
|
+
readonly name: "vram";
|
|
2650
|
+
readonly type: "uint64";
|
|
2651
|
+
}];
|
|
2652
|
+
readonly internalType: "struct SlotInfo";
|
|
2653
|
+
readonly name: "slotInfo";
|
|
2654
|
+
readonly type: "tuple";
|
|
2655
|
+
}, {
|
|
2656
|
+
readonly components: readonly [{
|
|
2657
|
+
readonly internalType: "string";
|
|
2658
|
+
readonly name: "data";
|
|
2659
|
+
readonly type: "string";
|
|
2660
|
+
}];
|
|
2661
|
+
readonly internalType: "struct OptionInfo";
|
|
2662
|
+
readonly name: "optionInfo";
|
|
2663
|
+
readonly type: "tuple";
|
|
2664
|
+
}];
|
|
2665
|
+
readonly internalType: "struct TeeOfferHardwareInfo";
|
|
2666
|
+
readonly name: "teeOfferHardwareInfo";
|
|
2667
|
+
readonly type: "tuple";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly components: readonly [{
|
|
2670
|
+
readonly internalType: "uint256";
|
|
2671
|
+
readonly name: "id";
|
|
2672
|
+
readonly type: "uint256";
|
|
2673
|
+
}, {
|
|
2674
|
+
readonly components: readonly [{
|
|
2675
|
+
readonly internalType: "uint64";
|
|
2676
|
+
readonly name: "cpuCores";
|
|
2677
|
+
readonly type: "uint64";
|
|
2678
|
+
}, {
|
|
2679
|
+
readonly internalType: "uint64";
|
|
2680
|
+
readonly name: "ram";
|
|
2681
|
+
readonly type: "uint64";
|
|
2682
|
+
}, {
|
|
2683
|
+
readonly internalType: "uint64";
|
|
2684
|
+
readonly name: "diskUsage";
|
|
2685
|
+
readonly type: "uint64";
|
|
2686
|
+
}, {
|
|
2687
|
+
readonly internalType: "uint64";
|
|
2688
|
+
readonly name: "gpuCores";
|
|
2689
|
+
readonly type: "uint64";
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly internalType: "uint64";
|
|
2692
|
+
readonly name: "vram";
|
|
2693
|
+
readonly type: "uint64";
|
|
2694
|
+
}];
|
|
2695
|
+
readonly internalType: "struct SlotInfo";
|
|
2696
|
+
readonly name: "info";
|
|
2697
|
+
readonly type: "tuple";
|
|
2698
|
+
}, {
|
|
2699
|
+
readonly components: readonly [{
|
|
2700
|
+
readonly internalType: "uint256";
|
|
2701
|
+
readonly name: "price";
|
|
2702
|
+
readonly type: "uint256";
|
|
2703
|
+
}, {
|
|
2704
|
+
readonly internalType: "enum PriceType";
|
|
2705
|
+
readonly name: "priceType";
|
|
2706
|
+
readonly type: "uint8";
|
|
2707
|
+
}, {
|
|
2708
|
+
readonly internalType: "uint64";
|
|
2709
|
+
readonly name: "minTimeMinutes";
|
|
2710
|
+
readonly type: "uint64";
|
|
2711
|
+
}, {
|
|
2712
|
+
readonly internalType: "uint64";
|
|
2713
|
+
readonly name: "maxTimeMinutes";
|
|
2714
|
+
readonly type: "uint64";
|
|
2715
|
+
}];
|
|
2716
|
+
readonly internalType: "struct SlotUsage";
|
|
2717
|
+
readonly name: "usage";
|
|
2718
|
+
readonly type: "tuple";
|
|
2719
|
+
}];
|
|
2720
|
+
readonly internalType: "struct TeeOfferSlot[]";
|
|
2721
|
+
readonly name: "teeOfferSlots";
|
|
2722
|
+
readonly type: "tuple[]";
|
|
2723
|
+
}, {
|
|
2724
|
+
readonly components: readonly [{
|
|
2725
|
+
readonly internalType: "uint256";
|
|
2726
|
+
readonly name: "id";
|
|
2727
|
+
readonly type: "uint256";
|
|
2728
|
+
}, {
|
|
2729
|
+
readonly components: readonly [{
|
|
2730
|
+
readonly internalType: "string";
|
|
2731
|
+
readonly name: "data";
|
|
2732
|
+
readonly type: "string";
|
|
2733
|
+
}];
|
|
2734
|
+
readonly internalType: "struct OptionInfo";
|
|
2735
|
+
readonly name: "info";
|
|
2736
|
+
readonly type: "tuple";
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly components: readonly [{
|
|
2739
|
+
readonly internalType: "uint256";
|
|
2740
|
+
readonly name: "price";
|
|
2741
|
+
readonly type: "uint256";
|
|
2742
|
+
}, {
|
|
2743
|
+
readonly internalType: "enum PriceType";
|
|
2744
|
+
readonly name: "priceType";
|
|
2745
|
+
readonly type: "uint8";
|
|
2746
|
+
}, {
|
|
2747
|
+
readonly internalType: "uint64";
|
|
2748
|
+
readonly name: "minTimeMinutes";
|
|
2749
|
+
readonly type: "uint64";
|
|
2750
|
+
}, {
|
|
2751
|
+
readonly internalType: "uint64";
|
|
2752
|
+
readonly name: "maxTimeMinutes";
|
|
2753
|
+
readonly type: "uint64";
|
|
2754
|
+
}];
|
|
2755
|
+
readonly internalType: "struct SlotUsage";
|
|
2756
|
+
readonly name: "usage";
|
|
2757
|
+
readonly type: "tuple";
|
|
2758
|
+
}];
|
|
2759
|
+
readonly internalType: "struct TeeOfferOption[]";
|
|
2760
|
+
readonly name: "teeOfferOptions";
|
|
2761
|
+
readonly type: "tuple[]";
|
|
2762
|
+
}];
|
|
2763
|
+
readonly internalType: "struct OfferAggregatedInfo";
|
|
2764
|
+
readonly name: "ret";
|
|
2765
|
+
readonly type: "tuple";
|
|
2766
|
+
}];
|
|
2767
|
+
readonly stateMutability: "view";
|
|
2768
|
+
readonly type: "function";
|
|
2370
2769
|
}, {
|
|
2371
2770
|
readonly inputs: readonly [{
|
|
2372
2771
|
readonly internalType: "uint256";
|
|
@@ -3606,7 +4005,11 @@ export declare const abi: readonly [{
|
|
|
3606
4005
|
readonly type: "tuple";
|
|
3607
4006
|
}];
|
|
3608
4007
|
readonly name: "createSubOrderByApp";
|
|
3609
|
-
readonly outputs: readonly [
|
|
4008
|
+
readonly outputs: readonly [{
|
|
4009
|
+
readonly internalType: "uint256";
|
|
4010
|
+
readonly name: "subOrderId";
|
|
4011
|
+
readonly type: "uint256";
|
|
4012
|
+
}];
|
|
3610
4013
|
readonly stateMutability: "nonpayable";
|
|
3611
4014
|
readonly type: "function";
|
|
3612
4015
|
}, {
|
|
@@ -3726,6 +4129,10 @@ export declare const abi: readonly [{
|
|
|
3726
4129
|
readonly internalType: "struct RefillArgs[]";
|
|
3727
4130
|
readonly name: "args";
|
|
3728
4131
|
readonly type: "tuple[]";
|
|
4132
|
+
}, {
|
|
4133
|
+
readonly internalType: "bool";
|
|
4134
|
+
readonly name: "transfer";
|
|
4135
|
+
readonly type: "bool";
|
|
3729
4136
|
}];
|
|
3730
4137
|
readonly name: "batchRefillOrderByApp";
|
|
3731
4138
|
readonly outputs: readonly [];
|
|
@@ -4557,6 +4964,254 @@ export declare const abi: readonly [{
|
|
|
4557
4964
|
}];
|
|
4558
4965
|
readonly stateMutability: "view";
|
|
4559
4966
|
readonly type: "function";
|
|
4967
|
+
}, {
|
|
4968
|
+
readonly inputs: readonly [{
|
|
4969
|
+
readonly internalType: "uint256";
|
|
4970
|
+
readonly name: "orderId";
|
|
4971
|
+
readonly type: "uint256";
|
|
4972
|
+
}];
|
|
4973
|
+
readonly name: "getOrderAggregatedInfo";
|
|
4974
|
+
readonly outputs: readonly [{
|
|
4975
|
+
readonly components: readonly [{
|
|
4976
|
+
readonly internalType: "uint256";
|
|
4977
|
+
readonly name: "parentOrderId";
|
|
4978
|
+
readonly type: "uint256";
|
|
4979
|
+
}, {
|
|
4980
|
+
readonly internalType: "bool";
|
|
4981
|
+
readonly name: "awaitingPayment";
|
|
4982
|
+
readonly type: "bool";
|
|
4983
|
+
}, {
|
|
4984
|
+
readonly internalType: "uint256";
|
|
4985
|
+
readonly name: "currentCost";
|
|
4986
|
+
readonly type: "uint256";
|
|
4987
|
+
}, {
|
|
4988
|
+
readonly internalType: "uint256";
|
|
4989
|
+
readonly name: "orderOutputReserve";
|
|
4990
|
+
readonly type: "uint256";
|
|
4991
|
+
}, {
|
|
4992
|
+
readonly internalType: "uint256";
|
|
4993
|
+
readonly name: "totalDepositSpent";
|
|
4994
|
+
readonly type: "uint256";
|
|
4995
|
+
}, {
|
|
4996
|
+
readonly internalType: "uint256";
|
|
4997
|
+
readonly name: "totalDepositUnspent";
|
|
4998
|
+
readonly type: "uint256";
|
|
4999
|
+
}, {
|
|
5000
|
+
readonly internalType: "uint256";
|
|
5001
|
+
readonly name: "totalOrderDeposit";
|
|
5002
|
+
readonly type: "uint256";
|
|
5003
|
+
}, {
|
|
5004
|
+
readonly internalType: "address";
|
|
5005
|
+
readonly name: "consumer";
|
|
5006
|
+
readonly type: "address";
|
|
5007
|
+
}, {
|
|
5008
|
+
readonly internalType: "uint256";
|
|
5009
|
+
readonly name: "deposit";
|
|
5010
|
+
readonly type: "uint256";
|
|
5011
|
+
}, {
|
|
5012
|
+
readonly components: readonly [{
|
|
5013
|
+
readonly internalType: "uint256";
|
|
5014
|
+
readonly name: "offerId";
|
|
5015
|
+
readonly type: "uint256";
|
|
5016
|
+
}, {
|
|
5017
|
+
readonly internalType: "string";
|
|
5018
|
+
readonly name: "resultInfo";
|
|
5019
|
+
readonly type: "string";
|
|
5020
|
+
}, {
|
|
5021
|
+
readonly internalType: "bytes32";
|
|
5022
|
+
readonly name: "externalId";
|
|
5023
|
+
readonly type: "bytes32";
|
|
5024
|
+
}, {
|
|
5025
|
+
readonly internalType: "uint256";
|
|
5026
|
+
readonly name: "expectedPrice";
|
|
5027
|
+
readonly type: "uint256";
|
|
5028
|
+
}, {
|
|
5029
|
+
readonly internalType: "uint256";
|
|
5030
|
+
readonly name: "maxPriceSlippage";
|
|
5031
|
+
readonly type: "uint256";
|
|
5032
|
+
}, {
|
|
5033
|
+
readonly internalType: "address";
|
|
5034
|
+
readonly name: "tokenAddress";
|
|
5035
|
+
readonly type: "address";
|
|
5036
|
+
}, {
|
|
5037
|
+
readonly internalType: "uint64";
|
|
5038
|
+
readonly name: "offerVersion";
|
|
5039
|
+
readonly type: "uint64";
|
|
5040
|
+
}, {
|
|
5041
|
+
readonly internalType: "enum OrderStatus";
|
|
5042
|
+
readonly name: "status";
|
|
5043
|
+
readonly type: "uint8";
|
|
5044
|
+
}];
|
|
5045
|
+
readonly internalType: "struct OrderInfo";
|
|
5046
|
+
readonly name: "info";
|
|
5047
|
+
readonly type: "tuple";
|
|
5048
|
+
}, {
|
|
5049
|
+
readonly components: readonly [{
|
|
5050
|
+
readonly internalType: "uint256[]";
|
|
5051
|
+
readonly name: "inputOffersIds";
|
|
5052
|
+
readonly type: "uint256[]";
|
|
5053
|
+
}, {
|
|
5054
|
+
readonly internalType: "uint256";
|
|
5055
|
+
readonly name: "outputOfferId";
|
|
5056
|
+
readonly type: "uint256";
|
|
5057
|
+
}, {
|
|
5058
|
+
readonly internalType: "uint64[]";
|
|
5059
|
+
readonly name: "inputOffersVersions";
|
|
5060
|
+
readonly type: "uint64[]";
|
|
5061
|
+
}, {
|
|
5062
|
+
readonly internalType: "uint64";
|
|
5063
|
+
readonly name: "outputOfferVersion";
|
|
5064
|
+
readonly type: "uint64";
|
|
5065
|
+
}];
|
|
5066
|
+
readonly internalType: "struct OrderArgs";
|
|
5067
|
+
readonly name: "args";
|
|
5068
|
+
readonly type: "tuple";
|
|
5069
|
+
}, {
|
|
5070
|
+
readonly components: readonly [{
|
|
5071
|
+
readonly internalType: "string";
|
|
5072
|
+
readonly name: "encryptedResult";
|
|
5073
|
+
readonly type: "string";
|
|
5074
|
+
}, {
|
|
5075
|
+
readonly internalType: "uint256";
|
|
5076
|
+
readonly name: "orderPrice";
|
|
5077
|
+
readonly type: "uint256";
|
|
5078
|
+
}];
|
|
5079
|
+
readonly internalType: "struct OrderResult";
|
|
5080
|
+
readonly name: "result";
|
|
5081
|
+
readonly type: "tuple";
|
|
5082
|
+
}, {
|
|
5083
|
+
readonly components: readonly [{
|
|
5084
|
+
readonly internalType: "uint64";
|
|
5085
|
+
readonly name: "cpuCores";
|
|
5086
|
+
readonly type: "uint64";
|
|
5087
|
+
}, {
|
|
5088
|
+
readonly internalType: "uint64";
|
|
5089
|
+
readonly name: "ram";
|
|
5090
|
+
readonly type: "uint64";
|
|
5091
|
+
}, {
|
|
5092
|
+
readonly internalType: "uint64";
|
|
5093
|
+
readonly name: "diskUsage";
|
|
5094
|
+
readonly type: "uint64";
|
|
5095
|
+
}, {
|
|
5096
|
+
readonly internalType: "uint64";
|
|
5097
|
+
readonly name: "gpuCores";
|
|
5098
|
+
readonly type: "uint64";
|
|
5099
|
+
}, {
|
|
5100
|
+
readonly internalType: "uint64";
|
|
5101
|
+
readonly name: "vram";
|
|
5102
|
+
readonly type: "uint64";
|
|
5103
|
+
}];
|
|
5104
|
+
readonly internalType: "struct SlotInfo";
|
|
5105
|
+
readonly name: "selectedSlotInfo";
|
|
5106
|
+
readonly type: "tuple";
|
|
5107
|
+
}, {
|
|
5108
|
+
readonly components: readonly [{
|
|
5109
|
+
readonly internalType: "uint256";
|
|
5110
|
+
readonly name: "price";
|
|
5111
|
+
readonly type: "uint256";
|
|
5112
|
+
}, {
|
|
5113
|
+
readonly internalType: "enum PriceType";
|
|
5114
|
+
readonly name: "priceType";
|
|
5115
|
+
readonly type: "uint8";
|
|
5116
|
+
}, {
|
|
5117
|
+
readonly internalType: "uint64";
|
|
5118
|
+
readonly name: "minTimeMinutes";
|
|
5119
|
+
readonly type: "uint64";
|
|
5120
|
+
}, {
|
|
5121
|
+
readonly internalType: "uint64";
|
|
5122
|
+
readonly name: "maxTimeMinutes";
|
|
5123
|
+
readonly type: "uint64";
|
|
5124
|
+
}];
|
|
5125
|
+
readonly internalType: "struct SlotUsage";
|
|
5126
|
+
readonly name: "selectedSlotUsage";
|
|
5127
|
+
readonly type: "tuple";
|
|
5128
|
+
}, {
|
|
5129
|
+
readonly components: readonly [{
|
|
5130
|
+
readonly internalType: "uint32";
|
|
5131
|
+
readonly name: "slotCount";
|
|
5132
|
+
readonly type: "uint32";
|
|
5133
|
+
}, {
|
|
5134
|
+
readonly components: readonly [{
|
|
5135
|
+
readonly internalType: "string";
|
|
5136
|
+
readonly name: "data";
|
|
5137
|
+
readonly type: "string";
|
|
5138
|
+
}];
|
|
5139
|
+
readonly internalType: "struct OptionInfo[]";
|
|
5140
|
+
readonly name: "optionInfo";
|
|
5141
|
+
readonly type: "tuple[]";
|
|
5142
|
+
}, {
|
|
5143
|
+
readonly components: readonly [{
|
|
5144
|
+
readonly internalType: "uint256";
|
|
5145
|
+
readonly name: "price";
|
|
5146
|
+
readonly type: "uint256";
|
|
5147
|
+
}, {
|
|
5148
|
+
readonly internalType: "enum PriceType";
|
|
5149
|
+
readonly name: "priceType";
|
|
5150
|
+
readonly type: "uint8";
|
|
5151
|
+
}, {
|
|
5152
|
+
readonly internalType: "uint64";
|
|
5153
|
+
readonly name: "minTimeMinutes";
|
|
5154
|
+
readonly type: "uint64";
|
|
5155
|
+
}, {
|
|
5156
|
+
readonly internalType: "uint64";
|
|
5157
|
+
readonly name: "maxTimeMinutes";
|
|
5158
|
+
readonly type: "uint64";
|
|
5159
|
+
}];
|
|
5160
|
+
readonly internalType: "struct SlotUsage[]";
|
|
5161
|
+
readonly name: "optionUsage";
|
|
5162
|
+
readonly type: "tuple[]";
|
|
5163
|
+
}, {
|
|
5164
|
+
readonly internalType: "uint256[]";
|
|
5165
|
+
readonly name: "optionIds";
|
|
5166
|
+
readonly type: "uint256[]";
|
|
5167
|
+
}, {
|
|
5168
|
+
readonly internalType: "uint32[]";
|
|
5169
|
+
readonly name: "optionsCount";
|
|
5170
|
+
readonly type: "uint32[]";
|
|
5171
|
+
}, {
|
|
5172
|
+
readonly internalType: "uint256";
|
|
5173
|
+
readonly name: "slotId";
|
|
5174
|
+
readonly type: "uint256";
|
|
5175
|
+
}];
|
|
5176
|
+
readonly internalType: "struct OrderUsage";
|
|
5177
|
+
readonly name: "selectedUsage";
|
|
5178
|
+
readonly type: "tuple";
|
|
5179
|
+
}, {
|
|
5180
|
+
readonly components: readonly [{
|
|
5181
|
+
readonly internalType: "uint64";
|
|
5182
|
+
readonly name: "createdDate";
|
|
5183
|
+
readonly type: "uint64";
|
|
5184
|
+
}, {
|
|
5185
|
+
readonly internalType: "address";
|
|
5186
|
+
readonly name: "createdBy";
|
|
5187
|
+
readonly type: "address";
|
|
5188
|
+
}, {
|
|
5189
|
+
readonly internalType: "uint64";
|
|
5190
|
+
readonly name: "modifiedDate";
|
|
5191
|
+
readonly type: "uint64";
|
|
5192
|
+
}, {
|
|
5193
|
+
readonly internalType: "address";
|
|
5194
|
+
readonly name: "modifiedBy";
|
|
5195
|
+
readonly type: "address";
|
|
5196
|
+
}];
|
|
5197
|
+
readonly internalType: "struct Origins";
|
|
5198
|
+
readonly name: "origins";
|
|
5199
|
+
readonly type: "tuple";
|
|
5200
|
+
}, {
|
|
5201
|
+
readonly internalType: "uint256";
|
|
5202
|
+
readonly name: "startDate";
|
|
5203
|
+
readonly type: "uint256";
|
|
5204
|
+
}, {
|
|
5205
|
+
readonly internalType: "uint256[]";
|
|
5206
|
+
readonly name: "subOrdersIds";
|
|
5207
|
+
readonly type: "uint256[]";
|
|
5208
|
+
}];
|
|
5209
|
+
readonly internalType: "struct OrderAggregatedInfo";
|
|
5210
|
+
readonly name: "ret";
|
|
5211
|
+
readonly type: "tuple";
|
|
5212
|
+
}];
|
|
5213
|
+
readonly stateMutability: "view";
|
|
5214
|
+
readonly type: "function";
|
|
4560
5215
|
}, {
|
|
4561
5216
|
readonly inputs: readonly [{
|
|
4562
5217
|
readonly internalType: "uint256";
|
|
@@ -11052,5 +11707,15 @@ export declare const abi: readonly [{
|
|
|
11052
11707
|
readonly outputs: readonly [];
|
|
11053
11708
|
readonly stateMutability: "nonpayable";
|
|
11054
11709
|
readonly type: "function";
|
|
11710
|
+
}, {
|
|
11711
|
+
readonly inputs: readonly [{
|
|
11712
|
+
readonly internalType: "address";
|
|
11713
|
+
readonly name: "";
|
|
11714
|
+
readonly type: "address";
|
|
11715
|
+
}];
|
|
11716
|
+
readonly name: "addWhitelistAddress";
|
|
11717
|
+
readonly outputs: readonly [];
|
|
11718
|
+
readonly stateMutability: "nonpayable";
|
|
11719
|
+
readonly type: "function";
|
|
11055
11720
|
}];
|
|
11056
11721
|
export default abi;
|