@cfxdevkit/protocol 1.0.8 → 1.0.10
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/index.cjs +460 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1327 -1
- package/dist/index.d.ts +1327 -1
- package/dist/index.js +444 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2408,4 +2408,1330 @@ declare const automationManagerBytecode: "0x608034620001255762002420601f38829003
|
|
|
2408
2408
|
declare const swappiPriceAdapterBytecode: "0x60803461014957601f61086b38819003918201601f19168301916001600160401b0383118484101761014e5780849260609460405283398101031261014957604061004982610164565b9161005660208201610164565b6001600160a01b03929091839161006d9101610164565b1692831561013057826000549160018060a01b03199580878516176000558260405194167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3670de0b6b3a7640000600355169081151580610125575b156100f55750836001541617600155169060025416176002556040516106f290816101798239f35b62461bcd60e51b815260206004820152600b60248201526a5a65726f4164647265737360a81b6044820152606490fd5b5083831615156100cd565b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101495756fe60806040818152600436101561001457600080fd5b600091823560e01c9081630d40886d146103a3575080634e15d2831461030b5780635bb478081461029c578063715018a6146102425780638da5cb5b1461021b578063ac41865a146101da578063c0d7865514610168578063c45a015514610140578063f2fde38b146100bb5763f887ea401461009057600080fd5b346100b757816003193601126100b75760015490516001600160a01b039091168152602090f35b5080fd5b50346100b75760203660031901126100b7576100d56103bf565b6100dd610690565b6001600160a01b03908116918215610129575082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b815260048101849052602490fd5b50346100b757816003193601126100b75760025490516001600160a01b039091168152602090f35b82346101d75760203660031901126101d7576101826103bf565b61018a610690565b6001600160a01b031661019e8115156103da565b600180546001600160a01b031916821790557f7aed1d3e8155a07ccf395e44ea3109a0e2d6c9b29bbbe9f142d9790596f4dc808280a280f35b80fd5b50346100b757806003193601126100b7576101f36103bf565b602435926001600160a01b03841684036101d7575060209261021491610472565b9051908152f35b50346100b757816003193601126100b757905490516001600160a01b039091168152602090f35b82346101d757806003193601126101d75761025b610690565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b82346101d75760203660031901126101d7576102b66103bf565b6102be610690565b6001600160a01b03166102d28115156103da565b600280546001600160a01b031916821790557f24cd1310c8883cbeaf5b805ab13586ce018b79c022827158ff3e8df14d3449368280a280f35b50346100b75760203660031901126100b75760043590610329610690565b811561036057816020917f1c9c437472a65d9d30272a49ca8c4f80f30703f7691e605dd789f56645b2ddb99360035551908152a180f35b5162461bcd60e51b815260206004820152601760248201527f51756f7465416d6f756e74206d757374206265203e20300000000000000000006044820152606490fd5b8390346100b757816003193601126100b7576020906003548152f35b600435906001600160a01b03821682036103d557565b600080fd5b156103e157565b60405162461bcd60e51b815260206004820152600b60248201526a5a65726f4164647265737360a81b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff82111761043657604052565b634e487b7160e01b600052604160045260246000fd5b80516001101561045c5760400190565b634e487b7160e01b600052603260045260246000fd5b60018060a01b038060025416908060409381855193849263e6a4390560e01b84521696876004840152169384602483015281604460209586935afa9081156106855790829160009161064a575b5016156106405783519467ffffffffffffffff93606087018581118882101761043657865260028752838701918636843787511561045c57829792526105048261044c565b5260019582600154169260035497875198899463d06ca61f60e01b865260448601916004870152896024870152518091526064850193926000905b888383106106265750505050505091818060009403915afa938493600095610581575b50505050156000146105745750600090565b61057d9061044c565b5190565b90919293943d8082853e6105958185610414565b83019284818503126100b75780519086821161062257019083601f830112156101d757815195861161060e578560051b9251956105d486850188610414565b865284808701938301019384116101d757508301905b8282106105ff57505050509038808080610562565b815181529083019083016105ea565b634e487b7160e01b81526041600452602490fd5b8280fd5b8551821687528c975095860195909401939083019061053f565b5050505050600090565b9091508381813d831161067e575b6106628183610414565b810103126100b757519082821682036101d757508190386104bf565b503d610658565b85513d6000823e3d90fd5b6000546001600160a01b031633036106a457565b60405163118cdaa760e01b8152336004820152602490fdfea2646970667358221220c10b223e834089e9444951c7ad37f3dafbfee5eca308265a397febeda5206ecc64736f6c63430008180033";
|
|
2409
2409
|
declare const permitHandlerBytecode: "0x6080806040523461001b5760016000556106de90816100218239f35b600080fdfe6040608081526004908136101561001557600080fd5b6000803560e01c80635854e9bf146102e05763686f13fa1461003657600080fd5b346102dd576101203660031901126102dd576100506104f1565b9061005961050c565b93610062610522565b60843590606435610071610538565b610104359167ffffffffffffffff978884116102d957366023850112156102d95783870135928984116102d55736602485870101116102d5576100b2610685565b6001600160a01b039682881691821580156102cb575b6102bb57888e169333850361029c5750823b15610298579b818b829f819e9f61014a8e9f9d9e928a938e938851978896879663d505accf60e01b885260e4359560c4359589019360ff929897969360c0969260e087019a60018060a01b0380921688521660208701526040860152606085015216608083015260a08201520152565b038183885af1908161026f575b50916024979593918a9b8b989694610234575b509250505082915051948593018337810182815203925af13d1561022b573d938411610218578451936101a7601f8201601f1916602001866105f1565b84523d83602086013e5b156101d557509160016101d1935551918291602083526020830190610548565b0390f35b606490602085519162461bcd60e51b8352820152601d60248201527f4175746f6d6174696f6e4d616e616765722063616c6c206661696c65640000006044820152fd5b634e487b7160e01b835260418252602483fd5b606093506101b1565b7ff1888f4efa1fe5ad83325dd9d700a5cfee681bc32eb7ab040e1727368faf96ba92825196875260208701528a1694a4388080808e8161016a565b61028391939597999b9496989a92506105c7565b61029857918c8b989694929997959338610157565b8a80fd5b8d516308f14ec160e11b81529081906102b790828e01610588565b0390fd5b8c5163d92e233d60e01b81528a90fd5b50888816156100c8565b8880fd5b8780fd5b80fd5b509190346104ed576101003660031901126104ed576102fd6104f1565b9261030661050c565b9361030f610522565b906064359160843590610320610538565b91610329610685565b6001600160a01b03848116999093908a1580156104e3575b6104d357848116953387036104b8575086156104a8578a3b156102d957885163d505accf60e01b81526001600160a01b039182168b82019081529185166020830152604082018890526060820184905260ff92909216608082015260c43560a082015260e43560c08201528790829081900360e00181838e5af19081610495575b5061045b5750505050508060033d1161044b575b506308c379a014610413575b6084928151926308f14ec160e11b8452830152602482015260076044820152663ab735b737bbb760c91b6064820152fd5b61041b610613565b8061042657506103e2565b816102b792519485946308f14ec160e11b865285015260248401526044830190610548565b90508281803e5160e01c386103d6565b88927ff1888f4efa1fe5ad83325dd9d700a5cfee681bc32eb7ab040e1727368faf96ba928892835197885260208801521694a46001815580f35b6104a1909791976105c7565b95386103c2565b8851631f2a200560e01b81528a90fd5b89516308f14ec160e11b81529081906102b790828e01610588565b885163d92e233d60e01b81528a90fd5b5084841615610341565b8280fd5b600435906001600160a01b038216820361050757565b600080fd5b602435906001600160a01b038216820361050757565b604435906001600160a01b038216820361050757565b60a4359060ff8216820361050757565b919082519283825260005b848110610574575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610553565b6001600160a01b0390911681526040602082018190526014908201527337bbb732b91036bab9ba1031329031b0b63632b960611b606082015260800190565b67ffffffffffffffff81116105db57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176105db57604052565b600060443d1061067157604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176106745781840194855193841161067c573d850101602084870101116106745750610671929101602001906105f1565b90565b949350505050565b50949350505050565b600260005414610696576002600055565b604051633ee5aeb560e01b8152600490fdfea264697066735822122048df7123008527f31c193ab0b904724dd3c10843f6afd019948c9ebbc518411964736f6c63430008180033";
|
|
2410
2410
|
|
|
2411
|
-
|
|
2411
|
+
/**
|
|
2412
|
+
* @cfxdevkit/protocol — Conflux network precompile ABIs and addresses.
|
|
2413
|
+
*
|
|
2414
|
+
* All Conflux internal contracts ("precompiles") share the address prefix
|
|
2415
|
+
* 0x0888000000000000000000000000000000000000–07.
|
|
2416
|
+
*
|
|
2417
|
+
* Core Space contracts are accessible via `cive` client.
|
|
2418
|
+
* eSpace contracts (CrossSpaceCall, ConfluxContext) are accessible via `viem`.
|
|
2419
|
+
*/
|
|
2420
|
+
/**
|
|
2421
|
+
* Canonical hex addresses for Conflux internal contracts.
|
|
2422
|
+
* Valid on both mainnet (chainId 1029/1030) and testnet (1/71).
|
|
2423
|
+
*/
|
|
2424
|
+
declare const CONFLUX_PRECOMPILE_ADDRESSES: {
|
|
2425
|
+
/** Core Space: set/revoke/query admin for a contract */
|
|
2426
|
+
readonly AdminControl: "0x0888000000000000000000000000000000000000";
|
|
2427
|
+
/** Core Space: gas/storage sponsorship management */
|
|
2428
|
+
readonly SponsorWhitelist: "0x0888000000000000000000000000000000000001";
|
|
2429
|
+
/** Core Space: PoS staking deposit, withdraw, vote lock */
|
|
2430
|
+
readonly Staking: "0x0888000000000000000000000000000000000002";
|
|
2431
|
+
/** Core Space: PoS validator registration and reward tracking */
|
|
2432
|
+
readonly PoSRegister: "0x0888000000000000000000000000000000000005";
|
|
2433
|
+
/** eSpace & Core Space: synchronous Core↔eSpace message passing */
|
|
2434
|
+
readonly CrossSpaceCall: "0x0888000000000000000000000000000000000006";
|
|
2435
|
+
/** Core Space: on-chain governance parameter control */
|
|
2436
|
+
readonly ParamsControl: "0x0888000000000000000000000000000000000007";
|
|
2437
|
+
};
|
|
2438
|
+
/**
|
|
2439
|
+
* AdminControl — Core Space internal contract.
|
|
2440
|
+
* Allows an admin to manage the admin relationship of a contract or destroy it.
|
|
2441
|
+
*
|
|
2442
|
+
* Address: 0x0888000000000000000000000000000000000000
|
|
2443
|
+
* Access: Core Space only (use `cive` client).
|
|
2444
|
+
*/
|
|
2445
|
+
declare const adminControlAbi: readonly [{
|
|
2446
|
+
readonly type: "function";
|
|
2447
|
+
readonly name: "getAdmin";
|
|
2448
|
+
readonly inputs: readonly [{
|
|
2449
|
+
readonly name: "contractAddr";
|
|
2450
|
+
readonly type: "address";
|
|
2451
|
+
readonly internalType: "address";
|
|
2452
|
+
}];
|
|
2453
|
+
readonly outputs: readonly [{
|
|
2454
|
+
readonly name: "";
|
|
2455
|
+
readonly type: "address";
|
|
2456
|
+
readonly internalType: "address";
|
|
2457
|
+
}];
|
|
2458
|
+
readonly stateMutability: "view";
|
|
2459
|
+
}, {
|
|
2460
|
+
readonly type: "function";
|
|
2461
|
+
readonly name: "setAdmin";
|
|
2462
|
+
readonly inputs: readonly [{
|
|
2463
|
+
readonly name: "contractAddr";
|
|
2464
|
+
readonly type: "address";
|
|
2465
|
+
readonly internalType: "address";
|
|
2466
|
+
}, {
|
|
2467
|
+
readonly name: "newAdmin";
|
|
2468
|
+
readonly type: "address";
|
|
2469
|
+
readonly internalType: "address";
|
|
2470
|
+
}];
|
|
2471
|
+
readonly outputs: readonly [];
|
|
2472
|
+
readonly stateMutability: "nonpayable";
|
|
2473
|
+
}, {
|
|
2474
|
+
readonly type: "function";
|
|
2475
|
+
readonly name: "destroy";
|
|
2476
|
+
readonly inputs: readonly [{
|
|
2477
|
+
readonly name: "contractAddr";
|
|
2478
|
+
readonly type: "address";
|
|
2479
|
+
readonly internalType: "address";
|
|
2480
|
+
}];
|
|
2481
|
+
readonly outputs: readonly [];
|
|
2482
|
+
readonly stateMutability: "nonpayable";
|
|
2483
|
+
}];
|
|
2484
|
+
declare const ADMIN_CONTROL_ABI: readonly [{
|
|
2485
|
+
readonly type: "function";
|
|
2486
|
+
readonly name: "getAdmin";
|
|
2487
|
+
readonly inputs: readonly [{
|
|
2488
|
+
readonly name: "contractAddr";
|
|
2489
|
+
readonly type: "address";
|
|
2490
|
+
readonly internalType: "address";
|
|
2491
|
+
}];
|
|
2492
|
+
readonly outputs: readonly [{
|
|
2493
|
+
readonly name: "";
|
|
2494
|
+
readonly type: "address";
|
|
2495
|
+
readonly internalType: "address";
|
|
2496
|
+
}];
|
|
2497
|
+
readonly stateMutability: "view";
|
|
2498
|
+
}, {
|
|
2499
|
+
readonly type: "function";
|
|
2500
|
+
readonly name: "setAdmin";
|
|
2501
|
+
readonly inputs: readonly [{
|
|
2502
|
+
readonly name: "contractAddr";
|
|
2503
|
+
readonly type: "address";
|
|
2504
|
+
readonly internalType: "address";
|
|
2505
|
+
}, {
|
|
2506
|
+
readonly name: "newAdmin";
|
|
2507
|
+
readonly type: "address";
|
|
2508
|
+
readonly internalType: "address";
|
|
2509
|
+
}];
|
|
2510
|
+
readonly outputs: readonly [];
|
|
2511
|
+
readonly stateMutability: "nonpayable";
|
|
2512
|
+
}, {
|
|
2513
|
+
readonly type: "function";
|
|
2514
|
+
readonly name: "destroy";
|
|
2515
|
+
readonly inputs: readonly [{
|
|
2516
|
+
readonly name: "contractAddr";
|
|
2517
|
+
readonly type: "address";
|
|
2518
|
+
readonly internalType: "address";
|
|
2519
|
+
}];
|
|
2520
|
+
readonly outputs: readonly [];
|
|
2521
|
+
readonly stateMutability: "nonpayable";
|
|
2522
|
+
}];
|
|
2523
|
+
declare const adminControlAddress: "0x0888000000000000000000000000000000000000";
|
|
2524
|
+
/**
|
|
2525
|
+
* SponsorWhitelist — Core Space internal contract.
|
|
2526
|
+
* Manages gas and collateral sponsorship, enabling gasless dApp UX.
|
|
2527
|
+
*
|
|
2528
|
+
* Address: 0x0888000000000000000000000000000000000001
|
|
2529
|
+
* Access: Core Space only (use `cive` client).
|
|
2530
|
+
*/
|
|
2531
|
+
declare const sponsorWhitelistAbi: readonly [{
|
|
2532
|
+
readonly type: "function";
|
|
2533
|
+
readonly name: "getSponsorForGas";
|
|
2534
|
+
readonly inputs: readonly [{
|
|
2535
|
+
readonly name: "contractAddr";
|
|
2536
|
+
readonly type: "address";
|
|
2537
|
+
readonly internalType: "address";
|
|
2538
|
+
}];
|
|
2539
|
+
readonly outputs: readonly [{
|
|
2540
|
+
readonly name: "";
|
|
2541
|
+
readonly type: "address";
|
|
2542
|
+
readonly internalType: "address";
|
|
2543
|
+
}];
|
|
2544
|
+
readonly stateMutability: "view";
|
|
2545
|
+
}, {
|
|
2546
|
+
readonly type: "function";
|
|
2547
|
+
readonly name: "getSponsoredBalanceForGas";
|
|
2548
|
+
readonly inputs: readonly [{
|
|
2549
|
+
readonly name: "contractAddr";
|
|
2550
|
+
readonly type: "address";
|
|
2551
|
+
readonly internalType: "address";
|
|
2552
|
+
}];
|
|
2553
|
+
readonly outputs: readonly [{
|
|
2554
|
+
readonly name: "";
|
|
2555
|
+
readonly type: "uint256";
|
|
2556
|
+
readonly internalType: "uint256";
|
|
2557
|
+
}];
|
|
2558
|
+
readonly stateMutability: "view";
|
|
2559
|
+
}, {
|
|
2560
|
+
readonly type: "function";
|
|
2561
|
+
readonly name: "getSponsoredGasFeeUpperBound";
|
|
2562
|
+
readonly inputs: readonly [{
|
|
2563
|
+
readonly name: "contractAddr";
|
|
2564
|
+
readonly type: "address";
|
|
2565
|
+
readonly internalType: "address";
|
|
2566
|
+
}];
|
|
2567
|
+
readonly outputs: readonly [{
|
|
2568
|
+
readonly name: "";
|
|
2569
|
+
readonly type: "uint256";
|
|
2570
|
+
readonly internalType: "uint256";
|
|
2571
|
+
}];
|
|
2572
|
+
readonly stateMutability: "view";
|
|
2573
|
+
}, {
|
|
2574
|
+
readonly type: "function";
|
|
2575
|
+
readonly name: "getSponsorForCollateral";
|
|
2576
|
+
readonly inputs: readonly [{
|
|
2577
|
+
readonly name: "contractAddr";
|
|
2578
|
+
readonly type: "address";
|
|
2579
|
+
readonly internalType: "address";
|
|
2580
|
+
}];
|
|
2581
|
+
readonly outputs: readonly [{
|
|
2582
|
+
readonly name: "";
|
|
2583
|
+
readonly type: "address";
|
|
2584
|
+
readonly internalType: "address";
|
|
2585
|
+
}];
|
|
2586
|
+
readonly stateMutability: "view";
|
|
2587
|
+
}, {
|
|
2588
|
+
readonly type: "function";
|
|
2589
|
+
readonly name: "getSponsoredBalanceForCollateral";
|
|
2590
|
+
readonly inputs: readonly [{
|
|
2591
|
+
readonly name: "contractAddr";
|
|
2592
|
+
readonly type: "address";
|
|
2593
|
+
readonly internalType: "address";
|
|
2594
|
+
}];
|
|
2595
|
+
readonly outputs: readonly [{
|
|
2596
|
+
readonly name: "";
|
|
2597
|
+
readonly type: "uint256";
|
|
2598
|
+
readonly internalType: "uint256";
|
|
2599
|
+
}];
|
|
2600
|
+
readonly stateMutability: "view";
|
|
2601
|
+
}, {
|
|
2602
|
+
readonly type: "function";
|
|
2603
|
+
readonly name: "isWhitelisted";
|
|
2604
|
+
readonly inputs: readonly [{
|
|
2605
|
+
readonly name: "contractAddr";
|
|
2606
|
+
readonly type: "address";
|
|
2607
|
+
readonly internalType: "address";
|
|
2608
|
+
}, {
|
|
2609
|
+
readonly name: "userAddr";
|
|
2610
|
+
readonly type: "address";
|
|
2611
|
+
readonly internalType: "address";
|
|
2612
|
+
}];
|
|
2613
|
+
readonly outputs: readonly [{
|
|
2614
|
+
readonly name: "";
|
|
2615
|
+
readonly type: "bool";
|
|
2616
|
+
readonly internalType: "bool";
|
|
2617
|
+
}];
|
|
2618
|
+
readonly stateMutability: "view";
|
|
2619
|
+
}, {
|
|
2620
|
+
readonly type: "function";
|
|
2621
|
+
readonly name: "isAllWhitelisted";
|
|
2622
|
+
readonly inputs: readonly [{
|
|
2623
|
+
readonly name: "contractAddr";
|
|
2624
|
+
readonly type: "address";
|
|
2625
|
+
readonly internalType: "address";
|
|
2626
|
+
}];
|
|
2627
|
+
readonly outputs: readonly [{
|
|
2628
|
+
readonly name: "";
|
|
2629
|
+
readonly type: "bool";
|
|
2630
|
+
readonly internalType: "bool";
|
|
2631
|
+
}];
|
|
2632
|
+
readonly stateMutability: "view";
|
|
2633
|
+
}, {
|
|
2634
|
+
readonly type: "function";
|
|
2635
|
+
readonly name: "addPrivilegeByAdmin";
|
|
2636
|
+
readonly inputs: readonly [{
|
|
2637
|
+
readonly name: "contractAddr";
|
|
2638
|
+
readonly type: "address";
|
|
2639
|
+
readonly internalType: "address";
|
|
2640
|
+
}, {
|
|
2641
|
+
readonly name: "addresses";
|
|
2642
|
+
readonly type: "address[]";
|
|
2643
|
+
readonly internalType: "address[]";
|
|
2644
|
+
}];
|
|
2645
|
+
readonly outputs: readonly [];
|
|
2646
|
+
readonly stateMutability: "nonpayable";
|
|
2647
|
+
}, {
|
|
2648
|
+
readonly type: "function";
|
|
2649
|
+
readonly name: "removePrivilegeByAdmin";
|
|
2650
|
+
readonly inputs: readonly [{
|
|
2651
|
+
readonly name: "contractAddr";
|
|
2652
|
+
readonly type: "address";
|
|
2653
|
+
readonly internalType: "address";
|
|
2654
|
+
}, {
|
|
2655
|
+
readonly name: "addresses";
|
|
2656
|
+
readonly type: "address[]";
|
|
2657
|
+
readonly internalType: "address[]";
|
|
2658
|
+
}];
|
|
2659
|
+
readonly outputs: readonly [];
|
|
2660
|
+
readonly stateMutability: "nonpayable";
|
|
2661
|
+
}, {
|
|
2662
|
+
readonly type: "function";
|
|
2663
|
+
readonly name: "setSponsorForGas";
|
|
2664
|
+
readonly inputs: readonly [{
|
|
2665
|
+
readonly name: "contractAddr";
|
|
2666
|
+
readonly type: "address";
|
|
2667
|
+
readonly internalType: "address";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly name: "upperBound";
|
|
2670
|
+
readonly type: "uint256";
|
|
2671
|
+
readonly internalType: "uint256";
|
|
2672
|
+
}];
|
|
2673
|
+
readonly outputs: readonly [];
|
|
2674
|
+
readonly stateMutability: "payable";
|
|
2675
|
+
}, {
|
|
2676
|
+
readonly type: "function";
|
|
2677
|
+
readonly name: "setSponsorForCollateral";
|
|
2678
|
+
readonly inputs: readonly [{
|
|
2679
|
+
readonly name: "contractAddr";
|
|
2680
|
+
readonly type: "address";
|
|
2681
|
+
readonly internalType: "address";
|
|
2682
|
+
}];
|
|
2683
|
+
readonly outputs: readonly [];
|
|
2684
|
+
readonly stateMutability: "payable";
|
|
2685
|
+
}, {
|
|
2686
|
+
readonly type: "function";
|
|
2687
|
+
readonly name: "addPrivilege";
|
|
2688
|
+
readonly inputs: readonly [{
|
|
2689
|
+
readonly name: "addresses";
|
|
2690
|
+
readonly type: "address[]";
|
|
2691
|
+
readonly internalType: "address[]";
|
|
2692
|
+
}];
|
|
2693
|
+
readonly outputs: readonly [];
|
|
2694
|
+
readonly stateMutability: "nonpayable";
|
|
2695
|
+
}, {
|
|
2696
|
+
readonly type: "function";
|
|
2697
|
+
readonly name: "removePrivilege";
|
|
2698
|
+
readonly inputs: readonly [{
|
|
2699
|
+
readonly name: "addresses";
|
|
2700
|
+
readonly type: "address[]";
|
|
2701
|
+
readonly internalType: "address[]";
|
|
2702
|
+
}];
|
|
2703
|
+
readonly outputs: readonly [];
|
|
2704
|
+
readonly stateMutability: "nonpayable";
|
|
2705
|
+
}, {
|
|
2706
|
+
readonly type: "event";
|
|
2707
|
+
readonly name: "SponsorUpdated";
|
|
2708
|
+
readonly inputs: readonly [{
|
|
2709
|
+
readonly indexed: true;
|
|
2710
|
+
readonly name: "contractAddr";
|
|
2711
|
+
readonly type: "address";
|
|
2712
|
+
}, {
|
|
2713
|
+
readonly indexed: false;
|
|
2714
|
+
readonly name: "sponsorType";
|
|
2715
|
+
readonly type: "uint32";
|
|
2716
|
+
}, {
|
|
2717
|
+
readonly indexed: false;
|
|
2718
|
+
readonly name: "sponsor";
|
|
2719
|
+
readonly type: "address";
|
|
2720
|
+
}, {
|
|
2721
|
+
readonly indexed: false;
|
|
2722
|
+
readonly name: "value";
|
|
2723
|
+
readonly type: "uint256";
|
|
2724
|
+
}];
|
|
2725
|
+
readonly anonymous: false;
|
|
2726
|
+
}, {
|
|
2727
|
+
readonly type: "event";
|
|
2728
|
+
readonly name: "WhitelistUpdated";
|
|
2729
|
+
readonly inputs: readonly [{
|
|
2730
|
+
readonly indexed: true;
|
|
2731
|
+
readonly name: "contractAddr";
|
|
2732
|
+
readonly type: "address";
|
|
2733
|
+
}, {
|
|
2734
|
+
readonly indexed: true;
|
|
2735
|
+
readonly name: "userAddr";
|
|
2736
|
+
readonly type: "address";
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly indexed: false;
|
|
2739
|
+
readonly name: "isAdded";
|
|
2740
|
+
readonly type: "bool";
|
|
2741
|
+
}];
|
|
2742
|
+
readonly anonymous: false;
|
|
2743
|
+
}];
|
|
2744
|
+
declare const SPONSOR_WHITELIST_ABI: readonly [{
|
|
2745
|
+
readonly type: "function";
|
|
2746
|
+
readonly name: "getSponsorForGas";
|
|
2747
|
+
readonly inputs: readonly [{
|
|
2748
|
+
readonly name: "contractAddr";
|
|
2749
|
+
readonly type: "address";
|
|
2750
|
+
readonly internalType: "address";
|
|
2751
|
+
}];
|
|
2752
|
+
readonly outputs: readonly [{
|
|
2753
|
+
readonly name: "";
|
|
2754
|
+
readonly type: "address";
|
|
2755
|
+
readonly internalType: "address";
|
|
2756
|
+
}];
|
|
2757
|
+
readonly stateMutability: "view";
|
|
2758
|
+
}, {
|
|
2759
|
+
readonly type: "function";
|
|
2760
|
+
readonly name: "getSponsoredBalanceForGas";
|
|
2761
|
+
readonly inputs: readonly [{
|
|
2762
|
+
readonly name: "contractAddr";
|
|
2763
|
+
readonly type: "address";
|
|
2764
|
+
readonly internalType: "address";
|
|
2765
|
+
}];
|
|
2766
|
+
readonly outputs: readonly [{
|
|
2767
|
+
readonly name: "";
|
|
2768
|
+
readonly type: "uint256";
|
|
2769
|
+
readonly internalType: "uint256";
|
|
2770
|
+
}];
|
|
2771
|
+
readonly stateMutability: "view";
|
|
2772
|
+
}, {
|
|
2773
|
+
readonly type: "function";
|
|
2774
|
+
readonly name: "getSponsoredGasFeeUpperBound";
|
|
2775
|
+
readonly inputs: readonly [{
|
|
2776
|
+
readonly name: "contractAddr";
|
|
2777
|
+
readonly type: "address";
|
|
2778
|
+
readonly internalType: "address";
|
|
2779
|
+
}];
|
|
2780
|
+
readonly outputs: readonly [{
|
|
2781
|
+
readonly name: "";
|
|
2782
|
+
readonly type: "uint256";
|
|
2783
|
+
readonly internalType: "uint256";
|
|
2784
|
+
}];
|
|
2785
|
+
readonly stateMutability: "view";
|
|
2786
|
+
}, {
|
|
2787
|
+
readonly type: "function";
|
|
2788
|
+
readonly name: "getSponsorForCollateral";
|
|
2789
|
+
readonly inputs: readonly [{
|
|
2790
|
+
readonly name: "contractAddr";
|
|
2791
|
+
readonly type: "address";
|
|
2792
|
+
readonly internalType: "address";
|
|
2793
|
+
}];
|
|
2794
|
+
readonly outputs: readonly [{
|
|
2795
|
+
readonly name: "";
|
|
2796
|
+
readonly type: "address";
|
|
2797
|
+
readonly internalType: "address";
|
|
2798
|
+
}];
|
|
2799
|
+
readonly stateMutability: "view";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly type: "function";
|
|
2802
|
+
readonly name: "getSponsoredBalanceForCollateral";
|
|
2803
|
+
readonly inputs: readonly [{
|
|
2804
|
+
readonly name: "contractAddr";
|
|
2805
|
+
readonly type: "address";
|
|
2806
|
+
readonly internalType: "address";
|
|
2807
|
+
}];
|
|
2808
|
+
readonly outputs: readonly [{
|
|
2809
|
+
readonly name: "";
|
|
2810
|
+
readonly type: "uint256";
|
|
2811
|
+
readonly internalType: "uint256";
|
|
2812
|
+
}];
|
|
2813
|
+
readonly stateMutability: "view";
|
|
2814
|
+
}, {
|
|
2815
|
+
readonly type: "function";
|
|
2816
|
+
readonly name: "isWhitelisted";
|
|
2817
|
+
readonly inputs: readonly [{
|
|
2818
|
+
readonly name: "contractAddr";
|
|
2819
|
+
readonly type: "address";
|
|
2820
|
+
readonly internalType: "address";
|
|
2821
|
+
}, {
|
|
2822
|
+
readonly name: "userAddr";
|
|
2823
|
+
readonly type: "address";
|
|
2824
|
+
readonly internalType: "address";
|
|
2825
|
+
}];
|
|
2826
|
+
readonly outputs: readonly [{
|
|
2827
|
+
readonly name: "";
|
|
2828
|
+
readonly type: "bool";
|
|
2829
|
+
readonly internalType: "bool";
|
|
2830
|
+
}];
|
|
2831
|
+
readonly stateMutability: "view";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly type: "function";
|
|
2834
|
+
readonly name: "isAllWhitelisted";
|
|
2835
|
+
readonly inputs: readonly [{
|
|
2836
|
+
readonly name: "contractAddr";
|
|
2837
|
+
readonly type: "address";
|
|
2838
|
+
readonly internalType: "address";
|
|
2839
|
+
}];
|
|
2840
|
+
readonly outputs: readonly [{
|
|
2841
|
+
readonly name: "";
|
|
2842
|
+
readonly type: "bool";
|
|
2843
|
+
readonly internalType: "bool";
|
|
2844
|
+
}];
|
|
2845
|
+
readonly stateMutability: "view";
|
|
2846
|
+
}, {
|
|
2847
|
+
readonly type: "function";
|
|
2848
|
+
readonly name: "addPrivilegeByAdmin";
|
|
2849
|
+
readonly inputs: readonly [{
|
|
2850
|
+
readonly name: "contractAddr";
|
|
2851
|
+
readonly type: "address";
|
|
2852
|
+
readonly internalType: "address";
|
|
2853
|
+
}, {
|
|
2854
|
+
readonly name: "addresses";
|
|
2855
|
+
readonly type: "address[]";
|
|
2856
|
+
readonly internalType: "address[]";
|
|
2857
|
+
}];
|
|
2858
|
+
readonly outputs: readonly [];
|
|
2859
|
+
readonly stateMutability: "nonpayable";
|
|
2860
|
+
}, {
|
|
2861
|
+
readonly type: "function";
|
|
2862
|
+
readonly name: "removePrivilegeByAdmin";
|
|
2863
|
+
readonly inputs: readonly [{
|
|
2864
|
+
readonly name: "contractAddr";
|
|
2865
|
+
readonly type: "address";
|
|
2866
|
+
readonly internalType: "address";
|
|
2867
|
+
}, {
|
|
2868
|
+
readonly name: "addresses";
|
|
2869
|
+
readonly type: "address[]";
|
|
2870
|
+
readonly internalType: "address[]";
|
|
2871
|
+
}];
|
|
2872
|
+
readonly outputs: readonly [];
|
|
2873
|
+
readonly stateMutability: "nonpayable";
|
|
2874
|
+
}, {
|
|
2875
|
+
readonly type: "function";
|
|
2876
|
+
readonly name: "setSponsorForGas";
|
|
2877
|
+
readonly inputs: readonly [{
|
|
2878
|
+
readonly name: "contractAddr";
|
|
2879
|
+
readonly type: "address";
|
|
2880
|
+
readonly internalType: "address";
|
|
2881
|
+
}, {
|
|
2882
|
+
readonly name: "upperBound";
|
|
2883
|
+
readonly type: "uint256";
|
|
2884
|
+
readonly internalType: "uint256";
|
|
2885
|
+
}];
|
|
2886
|
+
readonly outputs: readonly [];
|
|
2887
|
+
readonly stateMutability: "payable";
|
|
2888
|
+
}, {
|
|
2889
|
+
readonly type: "function";
|
|
2890
|
+
readonly name: "setSponsorForCollateral";
|
|
2891
|
+
readonly inputs: readonly [{
|
|
2892
|
+
readonly name: "contractAddr";
|
|
2893
|
+
readonly type: "address";
|
|
2894
|
+
readonly internalType: "address";
|
|
2895
|
+
}];
|
|
2896
|
+
readonly outputs: readonly [];
|
|
2897
|
+
readonly stateMutability: "payable";
|
|
2898
|
+
}, {
|
|
2899
|
+
readonly type: "function";
|
|
2900
|
+
readonly name: "addPrivilege";
|
|
2901
|
+
readonly inputs: readonly [{
|
|
2902
|
+
readonly name: "addresses";
|
|
2903
|
+
readonly type: "address[]";
|
|
2904
|
+
readonly internalType: "address[]";
|
|
2905
|
+
}];
|
|
2906
|
+
readonly outputs: readonly [];
|
|
2907
|
+
readonly stateMutability: "nonpayable";
|
|
2908
|
+
}, {
|
|
2909
|
+
readonly type: "function";
|
|
2910
|
+
readonly name: "removePrivilege";
|
|
2911
|
+
readonly inputs: readonly [{
|
|
2912
|
+
readonly name: "addresses";
|
|
2913
|
+
readonly type: "address[]";
|
|
2914
|
+
readonly internalType: "address[]";
|
|
2915
|
+
}];
|
|
2916
|
+
readonly outputs: readonly [];
|
|
2917
|
+
readonly stateMutability: "nonpayable";
|
|
2918
|
+
}, {
|
|
2919
|
+
readonly type: "event";
|
|
2920
|
+
readonly name: "SponsorUpdated";
|
|
2921
|
+
readonly inputs: readonly [{
|
|
2922
|
+
readonly indexed: true;
|
|
2923
|
+
readonly name: "contractAddr";
|
|
2924
|
+
readonly type: "address";
|
|
2925
|
+
}, {
|
|
2926
|
+
readonly indexed: false;
|
|
2927
|
+
readonly name: "sponsorType";
|
|
2928
|
+
readonly type: "uint32";
|
|
2929
|
+
}, {
|
|
2930
|
+
readonly indexed: false;
|
|
2931
|
+
readonly name: "sponsor";
|
|
2932
|
+
readonly type: "address";
|
|
2933
|
+
}, {
|
|
2934
|
+
readonly indexed: false;
|
|
2935
|
+
readonly name: "value";
|
|
2936
|
+
readonly type: "uint256";
|
|
2937
|
+
}];
|
|
2938
|
+
readonly anonymous: false;
|
|
2939
|
+
}, {
|
|
2940
|
+
readonly type: "event";
|
|
2941
|
+
readonly name: "WhitelistUpdated";
|
|
2942
|
+
readonly inputs: readonly [{
|
|
2943
|
+
readonly indexed: true;
|
|
2944
|
+
readonly name: "contractAddr";
|
|
2945
|
+
readonly type: "address";
|
|
2946
|
+
}, {
|
|
2947
|
+
readonly indexed: true;
|
|
2948
|
+
readonly name: "userAddr";
|
|
2949
|
+
readonly type: "address";
|
|
2950
|
+
}, {
|
|
2951
|
+
readonly indexed: false;
|
|
2952
|
+
readonly name: "isAdded";
|
|
2953
|
+
readonly type: "bool";
|
|
2954
|
+
}];
|
|
2955
|
+
readonly anonymous: false;
|
|
2956
|
+
}];
|
|
2957
|
+
declare const sponsorWhitelistAddress: "0x0888000000000000000000000000000000000001";
|
|
2958
|
+
/**
|
|
2959
|
+
* Staking — Core Space internal contract.
|
|
2960
|
+
* Manages PoS staking: deposit CFX, withdraw, and vote-lock for governance.
|
|
2961
|
+
*
|
|
2962
|
+
* Address: 0x0888000000000000000000000000000000000002
|
|
2963
|
+
* Access: Core Space only (use `cive` client).
|
|
2964
|
+
*/
|
|
2965
|
+
declare const stakingAbi: readonly [{
|
|
2966
|
+
readonly type: "function";
|
|
2967
|
+
readonly name: "getStakingBalance";
|
|
2968
|
+
readonly inputs: readonly [{
|
|
2969
|
+
readonly name: "user";
|
|
2970
|
+
readonly type: "address";
|
|
2971
|
+
readonly internalType: "address";
|
|
2972
|
+
}];
|
|
2973
|
+
readonly outputs: readonly [{
|
|
2974
|
+
readonly name: "";
|
|
2975
|
+
readonly type: "uint256";
|
|
2976
|
+
readonly internalType: "uint256";
|
|
2977
|
+
}];
|
|
2978
|
+
readonly stateMutability: "view";
|
|
2979
|
+
}, {
|
|
2980
|
+
readonly type: "function";
|
|
2981
|
+
readonly name: "getLockedStakingBalance";
|
|
2982
|
+
readonly inputs: readonly [{
|
|
2983
|
+
readonly name: "user";
|
|
2984
|
+
readonly type: "address";
|
|
2985
|
+
readonly internalType: "address";
|
|
2986
|
+
}, {
|
|
2987
|
+
readonly name: "blockNumber";
|
|
2988
|
+
readonly type: "uint256";
|
|
2989
|
+
readonly internalType: "uint256";
|
|
2990
|
+
}];
|
|
2991
|
+
readonly outputs: readonly [{
|
|
2992
|
+
readonly name: "";
|
|
2993
|
+
readonly type: "uint256";
|
|
2994
|
+
readonly internalType: "uint256";
|
|
2995
|
+
}];
|
|
2996
|
+
readonly stateMutability: "view";
|
|
2997
|
+
}, {
|
|
2998
|
+
readonly type: "function";
|
|
2999
|
+
readonly name: "getVotePower";
|
|
3000
|
+
readonly inputs: readonly [{
|
|
3001
|
+
readonly name: "user";
|
|
3002
|
+
readonly type: "address";
|
|
3003
|
+
readonly internalType: "address";
|
|
3004
|
+
}, {
|
|
3005
|
+
readonly name: "blockNumber";
|
|
3006
|
+
readonly type: "uint256";
|
|
3007
|
+
readonly internalType: "uint256";
|
|
3008
|
+
}];
|
|
3009
|
+
readonly outputs: readonly [{
|
|
3010
|
+
readonly name: "";
|
|
3011
|
+
readonly type: "uint256";
|
|
3012
|
+
readonly internalType: "uint256";
|
|
3013
|
+
}];
|
|
3014
|
+
readonly stateMutability: "view";
|
|
3015
|
+
}, {
|
|
3016
|
+
readonly type: "function";
|
|
3017
|
+
readonly name: "deposit";
|
|
3018
|
+
readonly inputs: readonly [{
|
|
3019
|
+
readonly name: "amount";
|
|
3020
|
+
readonly type: "uint256";
|
|
3021
|
+
readonly internalType: "uint256";
|
|
3022
|
+
}];
|
|
3023
|
+
readonly outputs: readonly [];
|
|
3024
|
+
readonly stateMutability: "nonpayable";
|
|
3025
|
+
}, {
|
|
3026
|
+
readonly type: "function";
|
|
3027
|
+
readonly name: "withdraw";
|
|
3028
|
+
readonly inputs: readonly [{
|
|
3029
|
+
readonly name: "amount";
|
|
3030
|
+
readonly type: "uint256";
|
|
3031
|
+
readonly internalType: "uint256";
|
|
3032
|
+
}];
|
|
3033
|
+
readonly outputs: readonly [];
|
|
3034
|
+
readonly stateMutability: "nonpayable";
|
|
3035
|
+
}, {
|
|
3036
|
+
readonly type: "function";
|
|
3037
|
+
readonly name: "voteLock";
|
|
3038
|
+
readonly inputs: readonly [{
|
|
3039
|
+
readonly name: "amount";
|
|
3040
|
+
readonly type: "uint256";
|
|
3041
|
+
readonly internalType: "uint256";
|
|
3042
|
+
}, {
|
|
3043
|
+
readonly name: "unlockBlock";
|
|
3044
|
+
readonly type: "uint256";
|
|
3045
|
+
readonly internalType: "uint256";
|
|
3046
|
+
}];
|
|
3047
|
+
readonly outputs: readonly [];
|
|
3048
|
+
readonly stateMutability: "nonpayable";
|
|
3049
|
+
}, {
|
|
3050
|
+
readonly type: "event";
|
|
3051
|
+
readonly name: "Deposit";
|
|
3052
|
+
readonly inputs: readonly [{
|
|
3053
|
+
readonly indexed: true;
|
|
3054
|
+
readonly name: "user";
|
|
3055
|
+
readonly type: "address";
|
|
3056
|
+
}, {
|
|
3057
|
+
readonly indexed: false;
|
|
3058
|
+
readonly name: "amount";
|
|
3059
|
+
readonly type: "uint256";
|
|
3060
|
+
}];
|
|
3061
|
+
readonly anonymous: false;
|
|
3062
|
+
}, {
|
|
3063
|
+
readonly type: "event";
|
|
3064
|
+
readonly name: "Withdraw";
|
|
3065
|
+
readonly inputs: readonly [{
|
|
3066
|
+
readonly indexed: true;
|
|
3067
|
+
readonly name: "user";
|
|
3068
|
+
readonly type: "address";
|
|
3069
|
+
}, {
|
|
3070
|
+
readonly indexed: false;
|
|
3071
|
+
readonly name: "amount";
|
|
3072
|
+
readonly type: "uint256";
|
|
3073
|
+
}];
|
|
3074
|
+
readonly anonymous: false;
|
|
3075
|
+
}, {
|
|
3076
|
+
readonly type: "event";
|
|
3077
|
+
readonly name: "VoteLock";
|
|
3078
|
+
readonly inputs: readonly [{
|
|
3079
|
+
readonly indexed: true;
|
|
3080
|
+
readonly name: "user";
|
|
3081
|
+
readonly type: "address";
|
|
3082
|
+
}, {
|
|
3083
|
+
readonly indexed: false;
|
|
3084
|
+
readonly name: "amount";
|
|
3085
|
+
readonly type: "uint256";
|
|
3086
|
+
}, {
|
|
3087
|
+
readonly indexed: false;
|
|
3088
|
+
readonly name: "unlockBlock";
|
|
3089
|
+
readonly type: "uint256";
|
|
3090
|
+
}];
|
|
3091
|
+
readonly anonymous: false;
|
|
3092
|
+
}];
|
|
3093
|
+
declare const STAKING_ABI: readonly [{
|
|
3094
|
+
readonly type: "function";
|
|
3095
|
+
readonly name: "getStakingBalance";
|
|
3096
|
+
readonly inputs: readonly [{
|
|
3097
|
+
readonly name: "user";
|
|
3098
|
+
readonly type: "address";
|
|
3099
|
+
readonly internalType: "address";
|
|
3100
|
+
}];
|
|
3101
|
+
readonly outputs: readonly [{
|
|
3102
|
+
readonly name: "";
|
|
3103
|
+
readonly type: "uint256";
|
|
3104
|
+
readonly internalType: "uint256";
|
|
3105
|
+
}];
|
|
3106
|
+
readonly stateMutability: "view";
|
|
3107
|
+
}, {
|
|
3108
|
+
readonly type: "function";
|
|
3109
|
+
readonly name: "getLockedStakingBalance";
|
|
3110
|
+
readonly inputs: readonly [{
|
|
3111
|
+
readonly name: "user";
|
|
3112
|
+
readonly type: "address";
|
|
3113
|
+
readonly internalType: "address";
|
|
3114
|
+
}, {
|
|
3115
|
+
readonly name: "blockNumber";
|
|
3116
|
+
readonly type: "uint256";
|
|
3117
|
+
readonly internalType: "uint256";
|
|
3118
|
+
}];
|
|
3119
|
+
readonly outputs: readonly [{
|
|
3120
|
+
readonly name: "";
|
|
3121
|
+
readonly type: "uint256";
|
|
3122
|
+
readonly internalType: "uint256";
|
|
3123
|
+
}];
|
|
3124
|
+
readonly stateMutability: "view";
|
|
3125
|
+
}, {
|
|
3126
|
+
readonly type: "function";
|
|
3127
|
+
readonly name: "getVotePower";
|
|
3128
|
+
readonly inputs: readonly [{
|
|
3129
|
+
readonly name: "user";
|
|
3130
|
+
readonly type: "address";
|
|
3131
|
+
readonly internalType: "address";
|
|
3132
|
+
}, {
|
|
3133
|
+
readonly name: "blockNumber";
|
|
3134
|
+
readonly type: "uint256";
|
|
3135
|
+
readonly internalType: "uint256";
|
|
3136
|
+
}];
|
|
3137
|
+
readonly outputs: readonly [{
|
|
3138
|
+
readonly name: "";
|
|
3139
|
+
readonly type: "uint256";
|
|
3140
|
+
readonly internalType: "uint256";
|
|
3141
|
+
}];
|
|
3142
|
+
readonly stateMutability: "view";
|
|
3143
|
+
}, {
|
|
3144
|
+
readonly type: "function";
|
|
3145
|
+
readonly name: "deposit";
|
|
3146
|
+
readonly inputs: readonly [{
|
|
3147
|
+
readonly name: "amount";
|
|
3148
|
+
readonly type: "uint256";
|
|
3149
|
+
readonly internalType: "uint256";
|
|
3150
|
+
}];
|
|
3151
|
+
readonly outputs: readonly [];
|
|
3152
|
+
readonly stateMutability: "nonpayable";
|
|
3153
|
+
}, {
|
|
3154
|
+
readonly type: "function";
|
|
3155
|
+
readonly name: "withdraw";
|
|
3156
|
+
readonly inputs: readonly [{
|
|
3157
|
+
readonly name: "amount";
|
|
3158
|
+
readonly type: "uint256";
|
|
3159
|
+
readonly internalType: "uint256";
|
|
3160
|
+
}];
|
|
3161
|
+
readonly outputs: readonly [];
|
|
3162
|
+
readonly stateMutability: "nonpayable";
|
|
3163
|
+
}, {
|
|
3164
|
+
readonly type: "function";
|
|
3165
|
+
readonly name: "voteLock";
|
|
3166
|
+
readonly inputs: readonly [{
|
|
3167
|
+
readonly name: "amount";
|
|
3168
|
+
readonly type: "uint256";
|
|
3169
|
+
readonly internalType: "uint256";
|
|
3170
|
+
}, {
|
|
3171
|
+
readonly name: "unlockBlock";
|
|
3172
|
+
readonly type: "uint256";
|
|
3173
|
+
readonly internalType: "uint256";
|
|
3174
|
+
}];
|
|
3175
|
+
readonly outputs: readonly [];
|
|
3176
|
+
readonly stateMutability: "nonpayable";
|
|
3177
|
+
}, {
|
|
3178
|
+
readonly type: "event";
|
|
3179
|
+
readonly name: "Deposit";
|
|
3180
|
+
readonly inputs: readonly [{
|
|
3181
|
+
readonly indexed: true;
|
|
3182
|
+
readonly name: "user";
|
|
3183
|
+
readonly type: "address";
|
|
3184
|
+
}, {
|
|
3185
|
+
readonly indexed: false;
|
|
3186
|
+
readonly name: "amount";
|
|
3187
|
+
readonly type: "uint256";
|
|
3188
|
+
}];
|
|
3189
|
+
readonly anonymous: false;
|
|
3190
|
+
}, {
|
|
3191
|
+
readonly type: "event";
|
|
3192
|
+
readonly name: "Withdraw";
|
|
3193
|
+
readonly inputs: readonly [{
|
|
3194
|
+
readonly indexed: true;
|
|
3195
|
+
readonly name: "user";
|
|
3196
|
+
readonly type: "address";
|
|
3197
|
+
}, {
|
|
3198
|
+
readonly indexed: false;
|
|
3199
|
+
readonly name: "amount";
|
|
3200
|
+
readonly type: "uint256";
|
|
3201
|
+
}];
|
|
3202
|
+
readonly anonymous: false;
|
|
3203
|
+
}, {
|
|
3204
|
+
readonly type: "event";
|
|
3205
|
+
readonly name: "VoteLock";
|
|
3206
|
+
readonly inputs: readonly [{
|
|
3207
|
+
readonly indexed: true;
|
|
3208
|
+
readonly name: "user";
|
|
3209
|
+
readonly type: "address";
|
|
3210
|
+
}, {
|
|
3211
|
+
readonly indexed: false;
|
|
3212
|
+
readonly name: "amount";
|
|
3213
|
+
readonly type: "uint256";
|
|
3214
|
+
}, {
|
|
3215
|
+
readonly indexed: false;
|
|
3216
|
+
readonly name: "unlockBlock";
|
|
3217
|
+
readonly type: "uint256";
|
|
3218
|
+
}];
|
|
3219
|
+
readonly anonymous: false;
|
|
3220
|
+
}];
|
|
3221
|
+
declare const stakingAddress: "0x0888000000000000000000000000000000000002";
|
|
3222
|
+
/**
|
|
3223
|
+
* CrossSpaceCall — internal contract accessible from both Core Space and eSpace.
|
|
3224
|
+
* Enables synchronous cross-space calls: eSpace → Core Space and Core → eSpace.
|
|
3225
|
+
*
|
|
3226
|
+
* eSpace address: 0x0888000000000000000000000000000000000006
|
|
3227
|
+
* Access: Use `viem` client on eSpace, or `cive` client on Core Space.
|
|
3228
|
+
*/
|
|
3229
|
+
declare const crossSpaceCallAbi: readonly [{
|
|
3230
|
+
readonly type: "function";
|
|
3231
|
+
readonly name: "callEVM";
|
|
3232
|
+
readonly inputs: readonly [{
|
|
3233
|
+
readonly name: "to";
|
|
3234
|
+
readonly type: "bytes20";
|
|
3235
|
+
readonly internalType: "bytes20";
|
|
3236
|
+
}, {
|
|
3237
|
+
readonly name: "data";
|
|
3238
|
+
readonly type: "bytes";
|
|
3239
|
+
readonly internalType: "bytes";
|
|
3240
|
+
}];
|
|
3241
|
+
readonly outputs: readonly [{
|
|
3242
|
+
readonly name: "";
|
|
3243
|
+
readonly type: "bytes";
|
|
3244
|
+
readonly internalType: "bytes";
|
|
3245
|
+
}];
|
|
3246
|
+
readonly stateMutability: "payable";
|
|
3247
|
+
}, {
|
|
3248
|
+
readonly type: "function";
|
|
3249
|
+
readonly name: "staticCallEVM";
|
|
3250
|
+
readonly inputs: readonly [{
|
|
3251
|
+
readonly name: "to";
|
|
3252
|
+
readonly type: "bytes20";
|
|
3253
|
+
readonly internalType: "bytes20";
|
|
3254
|
+
}, {
|
|
3255
|
+
readonly name: "data";
|
|
3256
|
+
readonly type: "bytes";
|
|
3257
|
+
readonly internalType: "bytes";
|
|
3258
|
+
}];
|
|
3259
|
+
readonly outputs: readonly [{
|
|
3260
|
+
readonly name: "";
|
|
3261
|
+
readonly type: "bytes";
|
|
3262
|
+
readonly internalType: "bytes";
|
|
3263
|
+
}];
|
|
3264
|
+
readonly stateMutability: "view";
|
|
3265
|
+
}, {
|
|
3266
|
+
readonly type: "function";
|
|
3267
|
+
readonly name: "withdrawFromMapped";
|
|
3268
|
+
readonly inputs: readonly [{
|
|
3269
|
+
readonly name: "value";
|
|
3270
|
+
readonly type: "uint256";
|
|
3271
|
+
readonly internalType: "uint256";
|
|
3272
|
+
}];
|
|
3273
|
+
readonly outputs: readonly [];
|
|
3274
|
+
readonly stateMutability: "nonpayable";
|
|
3275
|
+
}, {
|
|
3276
|
+
readonly type: "function";
|
|
3277
|
+
readonly name: "mappedBalance";
|
|
3278
|
+
readonly inputs: readonly [{
|
|
3279
|
+
readonly name: "addr";
|
|
3280
|
+
readonly type: "address";
|
|
3281
|
+
readonly internalType: "address";
|
|
3282
|
+
}];
|
|
3283
|
+
readonly outputs: readonly [{
|
|
3284
|
+
readonly name: "";
|
|
3285
|
+
readonly type: "uint256";
|
|
3286
|
+
readonly internalType: "uint256";
|
|
3287
|
+
}];
|
|
3288
|
+
readonly stateMutability: "view";
|
|
3289
|
+
}, {
|
|
3290
|
+
readonly type: "function";
|
|
3291
|
+
readonly name: "transferEVM";
|
|
3292
|
+
readonly inputs: readonly [{
|
|
3293
|
+
readonly name: "to";
|
|
3294
|
+
readonly type: "bytes20";
|
|
3295
|
+
readonly internalType: "bytes20";
|
|
3296
|
+
}];
|
|
3297
|
+
readonly outputs: readonly [{
|
|
3298
|
+
readonly name: "";
|
|
3299
|
+
readonly type: "bytes";
|
|
3300
|
+
readonly internalType: "bytes";
|
|
3301
|
+
}];
|
|
3302
|
+
readonly stateMutability: "payable";
|
|
3303
|
+
}, {
|
|
3304
|
+
readonly type: "event";
|
|
3305
|
+
readonly name: "Call";
|
|
3306
|
+
readonly inputs: readonly [{
|
|
3307
|
+
readonly indexed: true;
|
|
3308
|
+
readonly name: "sender";
|
|
3309
|
+
readonly type: "bytes20";
|
|
3310
|
+
}, {
|
|
3311
|
+
readonly indexed: true;
|
|
3312
|
+
readonly name: "receiver";
|
|
3313
|
+
readonly type: "bytes20";
|
|
3314
|
+
}, {
|
|
3315
|
+
readonly indexed: false;
|
|
3316
|
+
readonly name: "value";
|
|
3317
|
+
readonly type: "uint256";
|
|
3318
|
+
}, {
|
|
3319
|
+
readonly indexed: false;
|
|
3320
|
+
readonly name: "nonce";
|
|
3321
|
+
readonly type: "uint256";
|
|
3322
|
+
}, {
|
|
3323
|
+
readonly indexed: false;
|
|
3324
|
+
readonly name: "data";
|
|
3325
|
+
readonly type: "bytes";
|
|
3326
|
+
}];
|
|
3327
|
+
readonly anonymous: false;
|
|
3328
|
+
}, {
|
|
3329
|
+
readonly type: "event";
|
|
3330
|
+
readonly name: "Outcome";
|
|
3331
|
+
readonly inputs: readonly [{
|
|
3332
|
+
readonly indexed: false;
|
|
3333
|
+
readonly name: "success";
|
|
3334
|
+
readonly type: "bool";
|
|
3335
|
+
}, {
|
|
3336
|
+
readonly indexed: false;
|
|
3337
|
+
readonly name: "data";
|
|
3338
|
+
readonly type: "bytes";
|
|
3339
|
+
}];
|
|
3340
|
+
readonly anonymous: false;
|
|
3341
|
+
}];
|
|
3342
|
+
declare const CROSS_SPACE_CALL_ABI: readonly [{
|
|
3343
|
+
readonly type: "function";
|
|
3344
|
+
readonly name: "callEVM";
|
|
3345
|
+
readonly inputs: readonly [{
|
|
3346
|
+
readonly name: "to";
|
|
3347
|
+
readonly type: "bytes20";
|
|
3348
|
+
readonly internalType: "bytes20";
|
|
3349
|
+
}, {
|
|
3350
|
+
readonly name: "data";
|
|
3351
|
+
readonly type: "bytes";
|
|
3352
|
+
readonly internalType: "bytes";
|
|
3353
|
+
}];
|
|
3354
|
+
readonly outputs: readonly [{
|
|
3355
|
+
readonly name: "";
|
|
3356
|
+
readonly type: "bytes";
|
|
3357
|
+
readonly internalType: "bytes";
|
|
3358
|
+
}];
|
|
3359
|
+
readonly stateMutability: "payable";
|
|
3360
|
+
}, {
|
|
3361
|
+
readonly type: "function";
|
|
3362
|
+
readonly name: "staticCallEVM";
|
|
3363
|
+
readonly inputs: readonly [{
|
|
3364
|
+
readonly name: "to";
|
|
3365
|
+
readonly type: "bytes20";
|
|
3366
|
+
readonly internalType: "bytes20";
|
|
3367
|
+
}, {
|
|
3368
|
+
readonly name: "data";
|
|
3369
|
+
readonly type: "bytes";
|
|
3370
|
+
readonly internalType: "bytes";
|
|
3371
|
+
}];
|
|
3372
|
+
readonly outputs: readonly [{
|
|
3373
|
+
readonly name: "";
|
|
3374
|
+
readonly type: "bytes";
|
|
3375
|
+
readonly internalType: "bytes";
|
|
3376
|
+
}];
|
|
3377
|
+
readonly stateMutability: "view";
|
|
3378
|
+
}, {
|
|
3379
|
+
readonly type: "function";
|
|
3380
|
+
readonly name: "withdrawFromMapped";
|
|
3381
|
+
readonly inputs: readonly [{
|
|
3382
|
+
readonly name: "value";
|
|
3383
|
+
readonly type: "uint256";
|
|
3384
|
+
readonly internalType: "uint256";
|
|
3385
|
+
}];
|
|
3386
|
+
readonly outputs: readonly [];
|
|
3387
|
+
readonly stateMutability: "nonpayable";
|
|
3388
|
+
}, {
|
|
3389
|
+
readonly type: "function";
|
|
3390
|
+
readonly name: "mappedBalance";
|
|
3391
|
+
readonly inputs: readonly [{
|
|
3392
|
+
readonly name: "addr";
|
|
3393
|
+
readonly type: "address";
|
|
3394
|
+
readonly internalType: "address";
|
|
3395
|
+
}];
|
|
3396
|
+
readonly outputs: readonly [{
|
|
3397
|
+
readonly name: "";
|
|
3398
|
+
readonly type: "uint256";
|
|
3399
|
+
readonly internalType: "uint256";
|
|
3400
|
+
}];
|
|
3401
|
+
readonly stateMutability: "view";
|
|
3402
|
+
}, {
|
|
3403
|
+
readonly type: "function";
|
|
3404
|
+
readonly name: "transferEVM";
|
|
3405
|
+
readonly inputs: readonly [{
|
|
3406
|
+
readonly name: "to";
|
|
3407
|
+
readonly type: "bytes20";
|
|
3408
|
+
readonly internalType: "bytes20";
|
|
3409
|
+
}];
|
|
3410
|
+
readonly outputs: readonly [{
|
|
3411
|
+
readonly name: "";
|
|
3412
|
+
readonly type: "bytes";
|
|
3413
|
+
readonly internalType: "bytes";
|
|
3414
|
+
}];
|
|
3415
|
+
readonly stateMutability: "payable";
|
|
3416
|
+
}, {
|
|
3417
|
+
readonly type: "event";
|
|
3418
|
+
readonly name: "Call";
|
|
3419
|
+
readonly inputs: readonly [{
|
|
3420
|
+
readonly indexed: true;
|
|
3421
|
+
readonly name: "sender";
|
|
3422
|
+
readonly type: "bytes20";
|
|
3423
|
+
}, {
|
|
3424
|
+
readonly indexed: true;
|
|
3425
|
+
readonly name: "receiver";
|
|
3426
|
+
readonly type: "bytes20";
|
|
3427
|
+
}, {
|
|
3428
|
+
readonly indexed: false;
|
|
3429
|
+
readonly name: "value";
|
|
3430
|
+
readonly type: "uint256";
|
|
3431
|
+
}, {
|
|
3432
|
+
readonly indexed: false;
|
|
3433
|
+
readonly name: "nonce";
|
|
3434
|
+
readonly type: "uint256";
|
|
3435
|
+
}, {
|
|
3436
|
+
readonly indexed: false;
|
|
3437
|
+
readonly name: "data";
|
|
3438
|
+
readonly type: "bytes";
|
|
3439
|
+
}];
|
|
3440
|
+
readonly anonymous: false;
|
|
3441
|
+
}, {
|
|
3442
|
+
readonly type: "event";
|
|
3443
|
+
readonly name: "Outcome";
|
|
3444
|
+
readonly inputs: readonly [{
|
|
3445
|
+
readonly indexed: false;
|
|
3446
|
+
readonly name: "success";
|
|
3447
|
+
readonly type: "bool";
|
|
3448
|
+
}, {
|
|
3449
|
+
readonly indexed: false;
|
|
3450
|
+
readonly name: "data";
|
|
3451
|
+
readonly type: "bytes";
|
|
3452
|
+
}];
|
|
3453
|
+
readonly anonymous: false;
|
|
3454
|
+
}];
|
|
3455
|
+
declare const crossSpaceCallAddress: "0x0888000000000000000000000000000000000006";
|
|
3456
|
+
/**
|
|
3457
|
+
* PoSRegister — Core Space internal contract.
|
|
3458
|
+
* Manages PoS validator registration and provides staking/reward queries.
|
|
3459
|
+
*
|
|
3460
|
+
* Address: 0x0888000000000000000000000000000000000005
|
|
3461
|
+
* Access: Core Space only (use `cive` client).
|
|
3462
|
+
*/
|
|
3463
|
+
declare const posRegisterAbi: readonly [{
|
|
3464
|
+
readonly type: "function";
|
|
3465
|
+
readonly name: "register";
|
|
3466
|
+
readonly inputs: readonly [{
|
|
3467
|
+
readonly name: "indentifier";
|
|
3468
|
+
readonly type: "bytes32";
|
|
3469
|
+
readonly internalType: "bytes32";
|
|
3470
|
+
}, {
|
|
3471
|
+
readonly name: "votePower";
|
|
3472
|
+
readonly type: "uint64";
|
|
3473
|
+
readonly internalType: "uint64";
|
|
3474
|
+
}, {
|
|
3475
|
+
readonly name: "blsPubKey";
|
|
3476
|
+
readonly type: "bytes";
|
|
3477
|
+
readonly internalType: "bytes";
|
|
3478
|
+
}, {
|
|
3479
|
+
readonly name: "vrfPubKey";
|
|
3480
|
+
readonly type: "bytes";
|
|
3481
|
+
readonly internalType: "bytes";
|
|
3482
|
+
}, {
|
|
3483
|
+
readonly name: "blsPubKeyProof";
|
|
3484
|
+
readonly type: "bytes[2]";
|
|
3485
|
+
readonly internalType: "bytes[2]";
|
|
3486
|
+
}];
|
|
3487
|
+
readonly outputs: readonly [];
|
|
3488
|
+
readonly stateMutability: "nonpayable";
|
|
3489
|
+
}, {
|
|
3490
|
+
readonly type: "function";
|
|
3491
|
+
readonly name: "increaseStake";
|
|
3492
|
+
readonly inputs: readonly [{
|
|
3493
|
+
readonly name: "votePower";
|
|
3494
|
+
readonly type: "uint64";
|
|
3495
|
+
readonly internalType: "uint64";
|
|
3496
|
+
}];
|
|
3497
|
+
readonly outputs: readonly [];
|
|
3498
|
+
readonly stateMutability: "nonpayable";
|
|
3499
|
+
}, {
|
|
3500
|
+
readonly type: "function";
|
|
3501
|
+
readonly name: "retire";
|
|
3502
|
+
readonly inputs: readonly [{
|
|
3503
|
+
readonly name: "votePower";
|
|
3504
|
+
readonly type: "uint64";
|
|
3505
|
+
readonly internalType: "uint64";
|
|
3506
|
+
}];
|
|
3507
|
+
readonly outputs: readonly [];
|
|
3508
|
+
readonly stateMutability: "nonpayable";
|
|
3509
|
+
}, {
|
|
3510
|
+
readonly type: "function";
|
|
3511
|
+
readonly name: "getVotes";
|
|
3512
|
+
readonly inputs: readonly [{
|
|
3513
|
+
readonly name: "identifier";
|
|
3514
|
+
readonly type: "bytes32";
|
|
3515
|
+
readonly internalType: "bytes32";
|
|
3516
|
+
}];
|
|
3517
|
+
readonly outputs: readonly [{
|
|
3518
|
+
readonly name: "totalVotes";
|
|
3519
|
+
readonly type: "uint256";
|
|
3520
|
+
readonly internalType: "uint256";
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly name: "unlockedVotes";
|
|
3523
|
+
readonly type: "uint256";
|
|
3524
|
+
readonly internalType: "uint256";
|
|
3525
|
+
}];
|
|
3526
|
+
readonly stateMutability: "view";
|
|
3527
|
+
}, {
|
|
3528
|
+
readonly type: "function";
|
|
3529
|
+
readonly name: "identifierToAddress";
|
|
3530
|
+
readonly inputs: readonly [{
|
|
3531
|
+
readonly name: "identifier";
|
|
3532
|
+
readonly type: "bytes32";
|
|
3533
|
+
readonly internalType: "bytes32";
|
|
3534
|
+
}];
|
|
3535
|
+
readonly outputs: readonly [{
|
|
3536
|
+
readonly name: "";
|
|
3537
|
+
readonly type: "address";
|
|
3538
|
+
readonly internalType: "address";
|
|
3539
|
+
}];
|
|
3540
|
+
readonly stateMutability: "view";
|
|
3541
|
+
}, {
|
|
3542
|
+
readonly type: "function";
|
|
3543
|
+
readonly name: "addressToIdentifier";
|
|
3544
|
+
readonly inputs: readonly [{
|
|
3545
|
+
readonly name: "addr";
|
|
3546
|
+
readonly type: "address";
|
|
3547
|
+
readonly internalType: "address";
|
|
3548
|
+
}];
|
|
3549
|
+
readonly outputs: readonly [{
|
|
3550
|
+
readonly name: "";
|
|
3551
|
+
readonly type: "bytes32";
|
|
3552
|
+
readonly internalType: "bytes32";
|
|
3553
|
+
}];
|
|
3554
|
+
readonly stateMutability: "view";
|
|
3555
|
+
}, {
|
|
3556
|
+
readonly type: "event";
|
|
3557
|
+
readonly name: "Register";
|
|
3558
|
+
readonly inputs: readonly [{
|
|
3559
|
+
readonly indexed: true;
|
|
3560
|
+
readonly name: "identifier";
|
|
3561
|
+
readonly type: "bytes32";
|
|
3562
|
+
}, {
|
|
3563
|
+
readonly indexed: false;
|
|
3564
|
+
readonly name: "blsPubKey";
|
|
3565
|
+
readonly type: "bytes";
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly indexed: false;
|
|
3568
|
+
readonly name: "vrfPubKey";
|
|
3569
|
+
readonly type: "bytes";
|
|
3570
|
+
}];
|
|
3571
|
+
readonly anonymous: false;
|
|
3572
|
+
}, {
|
|
3573
|
+
readonly type: "event";
|
|
3574
|
+
readonly name: "IncreaseStake";
|
|
3575
|
+
readonly inputs: readonly [{
|
|
3576
|
+
readonly indexed: true;
|
|
3577
|
+
readonly name: "identifier";
|
|
3578
|
+
readonly type: "bytes32";
|
|
3579
|
+
}, {
|
|
3580
|
+
readonly indexed: false;
|
|
3581
|
+
readonly name: "votePower";
|
|
3582
|
+
readonly type: "uint64";
|
|
3583
|
+
}];
|
|
3584
|
+
readonly anonymous: false;
|
|
3585
|
+
}, {
|
|
3586
|
+
readonly type: "event";
|
|
3587
|
+
readonly name: "Retire";
|
|
3588
|
+
readonly inputs: readonly [{
|
|
3589
|
+
readonly indexed: true;
|
|
3590
|
+
readonly name: "identifier";
|
|
3591
|
+
readonly type: "bytes32";
|
|
3592
|
+
}, {
|
|
3593
|
+
readonly indexed: false;
|
|
3594
|
+
readonly name: "votePower";
|
|
3595
|
+
readonly type: "uint64";
|
|
3596
|
+
}];
|
|
3597
|
+
readonly anonymous: false;
|
|
3598
|
+
}];
|
|
3599
|
+
declare const POS_REGISTER_ABI: readonly [{
|
|
3600
|
+
readonly type: "function";
|
|
3601
|
+
readonly name: "register";
|
|
3602
|
+
readonly inputs: readonly [{
|
|
3603
|
+
readonly name: "indentifier";
|
|
3604
|
+
readonly type: "bytes32";
|
|
3605
|
+
readonly internalType: "bytes32";
|
|
3606
|
+
}, {
|
|
3607
|
+
readonly name: "votePower";
|
|
3608
|
+
readonly type: "uint64";
|
|
3609
|
+
readonly internalType: "uint64";
|
|
3610
|
+
}, {
|
|
3611
|
+
readonly name: "blsPubKey";
|
|
3612
|
+
readonly type: "bytes";
|
|
3613
|
+
readonly internalType: "bytes";
|
|
3614
|
+
}, {
|
|
3615
|
+
readonly name: "vrfPubKey";
|
|
3616
|
+
readonly type: "bytes";
|
|
3617
|
+
readonly internalType: "bytes";
|
|
3618
|
+
}, {
|
|
3619
|
+
readonly name: "blsPubKeyProof";
|
|
3620
|
+
readonly type: "bytes[2]";
|
|
3621
|
+
readonly internalType: "bytes[2]";
|
|
3622
|
+
}];
|
|
3623
|
+
readonly outputs: readonly [];
|
|
3624
|
+
readonly stateMutability: "nonpayable";
|
|
3625
|
+
}, {
|
|
3626
|
+
readonly type: "function";
|
|
3627
|
+
readonly name: "increaseStake";
|
|
3628
|
+
readonly inputs: readonly [{
|
|
3629
|
+
readonly name: "votePower";
|
|
3630
|
+
readonly type: "uint64";
|
|
3631
|
+
readonly internalType: "uint64";
|
|
3632
|
+
}];
|
|
3633
|
+
readonly outputs: readonly [];
|
|
3634
|
+
readonly stateMutability: "nonpayable";
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly type: "function";
|
|
3637
|
+
readonly name: "retire";
|
|
3638
|
+
readonly inputs: readonly [{
|
|
3639
|
+
readonly name: "votePower";
|
|
3640
|
+
readonly type: "uint64";
|
|
3641
|
+
readonly internalType: "uint64";
|
|
3642
|
+
}];
|
|
3643
|
+
readonly outputs: readonly [];
|
|
3644
|
+
readonly stateMutability: "nonpayable";
|
|
3645
|
+
}, {
|
|
3646
|
+
readonly type: "function";
|
|
3647
|
+
readonly name: "getVotes";
|
|
3648
|
+
readonly inputs: readonly [{
|
|
3649
|
+
readonly name: "identifier";
|
|
3650
|
+
readonly type: "bytes32";
|
|
3651
|
+
readonly internalType: "bytes32";
|
|
3652
|
+
}];
|
|
3653
|
+
readonly outputs: readonly [{
|
|
3654
|
+
readonly name: "totalVotes";
|
|
3655
|
+
readonly type: "uint256";
|
|
3656
|
+
readonly internalType: "uint256";
|
|
3657
|
+
}, {
|
|
3658
|
+
readonly name: "unlockedVotes";
|
|
3659
|
+
readonly type: "uint256";
|
|
3660
|
+
readonly internalType: "uint256";
|
|
3661
|
+
}];
|
|
3662
|
+
readonly stateMutability: "view";
|
|
3663
|
+
}, {
|
|
3664
|
+
readonly type: "function";
|
|
3665
|
+
readonly name: "identifierToAddress";
|
|
3666
|
+
readonly inputs: readonly [{
|
|
3667
|
+
readonly name: "identifier";
|
|
3668
|
+
readonly type: "bytes32";
|
|
3669
|
+
readonly internalType: "bytes32";
|
|
3670
|
+
}];
|
|
3671
|
+
readonly outputs: readonly [{
|
|
3672
|
+
readonly name: "";
|
|
3673
|
+
readonly type: "address";
|
|
3674
|
+
readonly internalType: "address";
|
|
3675
|
+
}];
|
|
3676
|
+
readonly stateMutability: "view";
|
|
3677
|
+
}, {
|
|
3678
|
+
readonly type: "function";
|
|
3679
|
+
readonly name: "addressToIdentifier";
|
|
3680
|
+
readonly inputs: readonly [{
|
|
3681
|
+
readonly name: "addr";
|
|
3682
|
+
readonly type: "address";
|
|
3683
|
+
readonly internalType: "address";
|
|
3684
|
+
}];
|
|
3685
|
+
readonly outputs: readonly [{
|
|
3686
|
+
readonly name: "";
|
|
3687
|
+
readonly type: "bytes32";
|
|
3688
|
+
readonly internalType: "bytes32";
|
|
3689
|
+
}];
|
|
3690
|
+
readonly stateMutability: "view";
|
|
3691
|
+
}, {
|
|
3692
|
+
readonly type: "event";
|
|
3693
|
+
readonly name: "Register";
|
|
3694
|
+
readonly inputs: readonly [{
|
|
3695
|
+
readonly indexed: true;
|
|
3696
|
+
readonly name: "identifier";
|
|
3697
|
+
readonly type: "bytes32";
|
|
3698
|
+
}, {
|
|
3699
|
+
readonly indexed: false;
|
|
3700
|
+
readonly name: "blsPubKey";
|
|
3701
|
+
readonly type: "bytes";
|
|
3702
|
+
}, {
|
|
3703
|
+
readonly indexed: false;
|
|
3704
|
+
readonly name: "vrfPubKey";
|
|
3705
|
+
readonly type: "bytes";
|
|
3706
|
+
}];
|
|
3707
|
+
readonly anonymous: false;
|
|
3708
|
+
}, {
|
|
3709
|
+
readonly type: "event";
|
|
3710
|
+
readonly name: "IncreaseStake";
|
|
3711
|
+
readonly inputs: readonly [{
|
|
3712
|
+
readonly indexed: true;
|
|
3713
|
+
readonly name: "identifier";
|
|
3714
|
+
readonly type: "bytes32";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly indexed: false;
|
|
3717
|
+
readonly name: "votePower";
|
|
3718
|
+
readonly type: "uint64";
|
|
3719
|
+
}];
|
|
3720
|
+
readonly anonymous: false;
|
|
3721
|
+
}, {
|
|
3722
|
+
readonly type: "event";
|
|
3723
|
+
readonly name: "Retire";
|
|
3724
|
+
readonly inputs: readonly [{
|
|
3725
|
+
readonly indexed: true;
|
|
3726
|
+
readonly name: "identifier";
|
|
3727
|
+
readonly type: "bytes32";
|
|
3728
|
+
}, {
|
|
3729
|
+
readonly indexed: false;
|
|
3730
|
+
readonly name: "votePower";
|
|
3731
|
+
readonly type: "uint64";
|
|
3732
|
+
}];
|
|
3733
|
+
readonly anonymous: false;
|
|
3734
|
+
}];
|
|
3735
|
+
declare const posRegisterAddress: "0x0888000000000000000000000000000000000005";
|
|
3736
|
+
|
|
3737
|
+
export { ADMIN_CONTROL_ABI, automationManagerAbi as AUTOMATION_MANAGER_ABI, CONFLUX_PRECOMPILE_ADDRESSES, CROSS_SPACE_CALL_ABI, permitHandlerAbi as PERMIT_HANDLER_ABI, POS_REGISTER_ABI, SPONSOR_WHITELIST_ABI, STAKING_ABI, swappiPriceAdapterAbi as SWAPPI_PRICE_ADAPTER_ABI, adminControlAbi, adminControlAddress, automationManagerAbi, automationManagerAddress, automationManagerBytecode, automationManagerConfig, crossSpaceCallAbi, crossSpaceCallAddress, permitHandlerAbi, permitHandlerAddress, permitHandlerBytecode, permitHandlerConfig, posRegisterAbi, posRegisterAddress, sponsorWhitelistAbi, sponsorWhitelistAddress, stakingAbi, stakingAddress, swappiPriceAdapterAbi, swappiPriceAdapterAddress, swappiPriceAdapterBytecode, swappiPriceAdapterConfig };
|