@safe-global/protocol-kit 6.1.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/index.cjs +1538 -203
- package/dist/cjs/test-utils/index.cjs +622 -75
- package/dist/esm/src/index.mjs +1500 -146
- package/dist/esm/test-utils/index.mjs +604 -38
- package/dist/src/Safe.d.ts +125 -3
- package/dist/src/Safe.d.ts.map +1 -1
- package/dist/src/SafeProvider.d.ts.map +1 -1
- package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts +1 -0
- package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/CompatibilityFallbackHandler/v1.5.0/CompatibilityFallbackHandlerContract_v1_5_0.d.ts +33 -0
- package/dist/src/contracts/CompatibilityFallbackHandler/v1.5.0/CompatibilityFallbackHandlerContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts +1 -0
- package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/CreateCall/v1.5.0/CreateCallContract_v1_5_0.d.ts +38 -0
- package/dist/src/contracts/CreateCall/v1.5.0/CreateCallContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/ExtensibleFallbackHandler/ExtensibleFallbackHandlerBaseContract.d.ts +36 -0
- package/dist/src/contracts/ExtensibleFallbackHandler/ExtensibleFallbackHandlerBaseContract.d.ts.map +1 -0
- package/dist/src/contracts/ExtensibleFallbackHandler/v1.5.0/ExtensibleFallbackHandlerContract_v1_5_0.d.ts +86 -0
- package/dist/src/contracts/ExtensibleFallbackHandler/v1.5.0/ExtensibleFallbackHandlerContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts +1 -0
- package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/MultiSend/v1.5.0/MultiSendCallOnlyContract_v1_5_0.d.ts +26 -0
- package/dist/src/contracts/MultiSend/v1.5.0/MultiSendCallOnlyContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/MultiSend/v1.5.0/MultiSendContract_v1_5_0.d.ts +26 -0
- package/dist/src/contracts/MultiSend/v1.5.0/MultiSendContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/Safe/SafeBaseContract.d.ts +1 -0
- package/dist/src/contracts/Safe/SafeBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.d.ts +1 -1
- package/dist/src/contracts/Safe/v1.5.0/SafeContract_v1_5_0.d.ts +156 -0
- package/dist/src/contracts/Safe/v1.5.0/SafeContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/SafeProxyFactory/v1.5.0/SafeProxyFactoryContract_v1_5_0.d.ts +60 -0
- package/dist/src/contracts/SafeProxyFactory/v1.5.0/SafeProxyFactoryContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts +1 -0
- package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/SignMessageLib/v1.5.0/SignMessageLibContract_v1_5_0.d.ts +34 -0
- package/dist/src/contracts/SignMessageLib/v1.5.0/SignMessageLibContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts +1 -0
- package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts.map +1 -1
- package/dist/src/contracts/SimulateTxAccessor/v1.5.0/SimulateTxAccessorContract_v1_5_0.d.ts +31 -0
- package/dist/src/contracts/SimulateTxAccessor/v1.5.0/SimulateTxAccessorContract_v1_5_0.d.ts.map +1 -0
- package/dist/src/contracts/config.d.ts +1 -1
- package/dist/src/contracts/config.d.ts.map +1 -1
- package/dist/src/contracts/contractInstances.d.ts +18 -8
- package/dist/src/contracts/contractInstances.d.ts.map +1 -1
- package/dist/src/contracts/index.d.ts +2 -1
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/safeDeploymentContracts.d.ts +2 -1
- package/dist/src/contracts/safeDeploymentContracts.d.ts.map +1 -1
- package/dist/src/contracts/utils.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/managers/fallbackHandlerManager.d.ts +1 -0
- package/dist/src/managers/fallbackHandlerManager.d.ts.map +1 -1
- package/dist/src/managers/moduleManager.d.ts +7 -0
- package/dist/src/managers/moduleManager.d.ts.map +1 -1
- package/dist/src/types/contracts.d.ts +22 -8
- package/dist/src/types/contracts.d.ts.map +1 -1
- package/dist/src/types/passkeys.d.ts +13 -2
- package/dist/src/types/passkeys.d.ts.map +1 -1
- package/dist/src/utils/eip-3770/config.d.ts.map +1 -1
- package/dist/src/utils/passkeys/PasskeyClient.d.ts +1 -1
- package/dist/src/utils/passkeys/PasskeyClient.d.ts.map +1 -1
- package/dist/src/utils/passkeys/extractPasskeyData.d.ts +8 -11
- package/dist/src/utils/passkeys/extractPasskeyData.d.ts.map +1 -1
- package/dist/src/utils/passkeys/isSharedSigner.d.ts +1 -1
- package/dist/src/utils/passkeys/isSharedSigner.d.ts.map +1 -1
- package/dist/src/utils/safeVersions.d.ts +8 -5
- package/dist/src/utils/safeVersions.d.ts.map +1 -1
- package/dist/test-utils/passkeys.d.ts +2 -2
- package/dist/test-utils/passkeys.d.ts.map +1 -1
- package/package.json +7 -5
|
@@ -319,6 +319,8 @@ var networks = [
|
|
|
319
319
|
{ chainId: 146n, shortName: "sonic" },
|
|
320
320
|
{ chainId: 148n, shortName: "shimmerevm" },
|
|
321
321
|
{ chainId: 150n, shortName: "sixt" },
|
|
322
|
+
{ chainId: 151n, shortName: "rbn" },
|
|
323
|
+
{ chainId: 153n, shortName: "rbn-testnet" },
|
|
322
324
|
{ chainId: 155n, shortName: "tenet-testnet" },
|
|
323
325
|
{ chainId: 169n, shortName: "manta" },
|
|
324
326
|
{ chainId: 173n, shortName: "eni" },
|
|
@@ -339,7 +341,7 @@ var networks = [
|
|
|
339
341
|
{ chainId: 255n, shortName: "kroma" },
|
|
340
342
|
{ chainId: 274n, shortName: "lachain" },
|
|
341
343
|
{ chainId: 280n, shortName: "zksync-goerli" },
|
|
342
|
-
{ chainId: 282n, shortName: "zkTCRO" },
|
|
344
|
+
{ chainId: 282n, shortName: "deprecated-zkTCRO" },
|
|
343
345
|
{ chainId: 288n, shortName: "boba" },
|
|
344
346
|
{ chainId: 291n, shortName: "orderly" },
|
|
345
347
|
{ chainId: 295n, shortName: "hedera-mainnet" },
|
|
@@ -372,7 +374,10 @@ var networks = [
|
|
|
372
374
|
{ chainId: 690n, shortName: "redstone" },
|
|
373
375
|
{ chainId: 698n, shortName: "Matchain" },
|
|
374
376
|
{ chainId: 747n, shortName: "flow-mainnet" },
|
|
377
|
+
{ chainId: 756n, shortName: "capx-testnet" },
|
|
378
|
+
{ chainId: 757n, shortName: "capx" },
|
|
375
379
|
{ chainId: 787n, shortName: "aca" },
|
|
380
|
+
{ chainId: 841n, shortName: "tara" },
|
|
376
381
|
{ chainId: 842n, shortName: "taratest" },
|
|
377
382
|
{ chainId: 870n, shortName: "AMN" },
|
|
378
383
|
{ chainId: 919n, shortName: "modesep" },
|
|
@@ -380,8 +385,9 @@ var networks = [
|
|
|
380
385
|
{ chainId: 943n, shortName: "t4pls" },
|
|
381
386
|
{ chainId: 964n, shortName: "bittensor-evm-mainnet" },
|
|
382
387
|
{ chainId: 970n, shortName: "ccn" },
|
|
388
|
+
{ chainId: 988n, shortName: "stable" },
|
|
383
389
|
{ chainId: 995n, shortName: "5ire" },
|
|
384
|
-
{ chainId: 999n, shortName: "
|
|
390
|
+
{ chainId: 999n, shortName: "hyper_evm" },
|
|
385
391
|
{ chainId: 1001n, shortName: "kaia-kairos" },
|
|
386
392
|
{ chainId: 1008n, shortName: "eun" },
|
|
387
393
|
{ chainId: 1030n, shortName: "cfx" },
|
|
@@ -415,9 +421,11 @@ var networks = [
|
|
|
415
421
|
{ chainId: 1559n, shortName: "tenet" },
|
|
416
422
|
{ chainId: 1625n, shortName: "gravity" },
|
|
417
423
|
{ chainId: 1663n, shortName: "Gobi" },
|
|
424
|
+
{ chainId: 1672n, shortName: "pharos" },
|
|
418
425
|
{ chainId: 1729n, shortName: "reya" },
|
|
419
426
|
{ chainId: 1740n, shortName: "metall2-testnet" },
|
|
420
427
|
{ chainId: 1750n, shortName: "metall2" },
|
|
428
|
+
{ chainId: 1776n, shortName: "injective" },
|
|
421
429
|
{ chainId: 1807n, shortName: "rana" },
|
|
422
430
|
{ chainId: 1811n, shortName: "lif3-testnet" },
|
|
423
431
|
{ chainId: 1868n, shortName: "soneium" },
|
|
@@ -439,6 +447,7 @@ var networks = [
|
|
|
439
447
|
{ chainId: 2039n, shortName: "aleph" },
|
|
440
448
|
{ chainId: 2187n, shortName: "g7" },
|
|
441
449
|
{ chainId: 2192n, shortName: "snax" },
|
|
450
|
+
{ chainId: 2201n, shortName: "stable-testnet" },
|
|
442
451
|
{ chainId: 2221n, shortName: "tkava" },
|
|
443
452
|
{ chainId: 2222n, shortName: "kava" },
|
|
444
453
|
{ chainId: 2331n, shortName: "rss3-testnet" },
|
|
@@ -448,10 +457,14 @@ var networks = [
|
|
|
448
457
|
{ chainId: 2391n, shortName: "tacchain_2391-1" },
|
|
449
458
|
{ chainId: 2424n, shortName: "inevm-testnet" },
|
|
450
459
|
{ chainId: 2442n, shortName: "zkevm-testnet-cardona" },
|
|
460
|
+
{ chainId: 2522n, shortName: "fraxtal-testnet" },
|
|
451
461
|
{ chainId: 2741n, shortName: "abstract" },
|
|
462
|
+
{ chainId: 2787n, shortName: "creator-chain-mainnet" },
|
|
452
463
|
{ chainId: 2810n, shortName: "hmorph" },
|
|
453
464
|
{ chainId: 2818n, shortName: "morph" },
|
|
465
|
+
{ chainId: 2910n, shortName: "morph-hoodi-testnet" },
|
|
454
466
|
{ chainId: 3068n, shortName: "bfc" },
|
|
467
|
+
{ chainId: 3111n, shortName: "alpha" },
|
|
455
468
|
{ chainId: 3338n, shortName: "PEAQ" },
|
|
456
469
|
{ chainId: 3501n, shortName: "JFIN" },
|
|
457
470
|
{ chainId: 3636n, shortName: "BTNXt" },
|
|
@@ -466,23 +479,30 @@ var networks = [
|
|
|
466
479
|
{ chainId: 4158n, shortName: "crossfi" },
|
|
467
480
|
{ chainId: 4162n, shortName: "SXR" },
|
|
468
481
|
{ chainId: 4202n, shortName: "lisksep" },
|
|
482
|
+
{ chainId: 4326n, shortName: "megaeth" },
|
|
469
483
|
{ chainId: 4337n, shortName: "beam" },
|
|
470
484
|
{ chainId: 4460n, shortName: "orderlyl2" },
|
|
471
485
|
{ chainId: 4488n, shortName: "HYDRA" },
|
|
486
|
+
{ chainId: 4509n, shortName: "SC" },
|
|
472
487
|
{ chainId: 4653n, shortName: "gold" },
|
|
473
488
|
{ chainId: 4661n, shortName: "appchaintestnet" },
|
|
474
489
|
{ chainId: 4689n, shortName: "iotex-mainnet" },
|
|
490
|
+
{ chainId: 4801n, shortName: "wcsep" },
|
|
475
491
|
{ chainId: 4918n, shortName: "txvm" },
|
|
476
492
|
{ chainId: 4919n, shortName: "xvm" },
|
|
477
493
|
{ chainId: 5000n, shortName: "mantle" },
|
|
478
494
|
{ chainId: 5001n, shortName: "mantle-testnet" },
|
|
479
495
|
{ chainId: 5003n, shortName: "mnt-sep" },
|
|
496
|
+
{ chainId: 5031n, shortName: "Somnia" },
|
|
480
497
|
{ chainId: 5115n, shortName: "citrea-testnet" },
|
|
481
498
|
{ chainId: 5165n, shortName: "ftn" },
|
|
482
499
|
{ chainId: 5330n, shortName: "sseed" },
|
|
500
|
+
{ chainId: 5464n, shortName: "saga" },
|
|
483
501
|
{ chainId: 5611n, shortName: "obnbt" },
|
|
484
502
|
{ chainId: 5700n, shortName: "tsys" },
|
|
485
503
|
{ chainId: 5851n, shortName: "OntologyTestnet" },
|
|
504
|
+
{ chainId: 5887n, shortName: "dukong" },
|
|
505
|
+
{ chainId: 5888n, shortName: "mantrachain" },
|
|
486
506
|
{ chainId: 6001n, shortName: "bouncebit-mainnet" },
|
|
487
507
|
{ chainId: 6102n, shortName: "cascadia" },
|
|
488
508
|
{ chainId: 6321n, shortName: "eaura" },
|
|
@@ -499,13 +519,17 @@ var networks = [
|
|
|
499
519
|
{ chainId: 7070n, shortName: "planq" },
|
|
500
520
|
{ chainId: 7171n, shortName: "bitrock" },
|
|
501
521
|
{ chainId: 7200n, shortName: "xsat" },
|
|
522
|
+
{ chainId: 7208n, shortName: "nxra-mainnet" },
|
|
502
523
|
{ chainId: 7332n, shortName: "EON" },
|
|
524
|
+
{ chainId: 7336n, shortName: "pruvtestnet" },
|
|
525
|
+
{ chainId: 7337n, shortName: "pruvmainnet" },
|
|
503
526
|
{ chainId: 7341n, shortName: "shyft" },
|
|
504
527
|
{ chainId: 7560n, shortName: "cyeth" },
|
|
505
528
|
{ chainId: 7700n, shortName: "canto" },
|
|
506
529
|
{ chainId: 7771n, shortName: "tbitrock" },
|
|
507
530
|
{ chainId: 7897n, shortName: "arena-z" },
|
|
508
531
|
{ chainId: 8008n, shortName: "polynomial" },
|
|
532
|
+
{ chainId: 8150n, shortName: "alpen" },
|
|
509
533
|
{ chainId: 8192n, shortName: "tqf" },
|
|
510
534
|
{ chainId: 8194n, shortName: "ttqf" },
|
|
511
535
|
{ chainId: 8217n, shortName: "kaia-mainnet" },
|
|
@@ -513,6 +537,8 @@ var networks = [
|
|
|
513
537
|
{ chainId: 8333n, shortName: "b3" },
|
|
514
538
|
{ chainId: 8408n, shortName: "zentest" },
|
|
515
539
|
{ chainId: 8453n, shortName: "base" },
|
|
540
|
+
{ chainId: 8700n, shortName: "ACN" },
|
|
541
|
+
{ chainId: 8765n, shortName: "ward" },
|
|
516
542
|
{ chainId: 8801n, shortName: "okto-testnet" },
|
|
517
543
|
{ chainId: 8822n, shortName: "iotaevm" },
|
|
518
544
|
{ chainId: 8844n, shortName: "THYDRA" },
|
|
@@ -523,7 +549,8 @@ var networks = [
|
|
|
523
549
|
{ chainId: 9369n, shortName: "z" },
|
|
524
550
|
{ chainId: 9700n, shortName: "MainnetDev" },
|
|
525
551
|
{ chainId: 9728n, shortName: "boba-testnet" },
|
|
526
|
-
{ chainId:
|
|
552
|
+
{ chainId: 9745n, shortName: "plasma" },
|
|
553
|
+
{ chainId: 9746n, shortName: "plasma-testnet" },
|
|
527
554
|
{ chainId: 10000n, shortName: "smartbch" },
|
|
528
555
|
{ chainId: 10001n, shortName: "smartbchtest" },
|
|
529
556
|
{ chainId: 10081n, shortName: "joct" },
|
|
@@ -537,6 +564,7 @@ var networks = [
|
|
|
537
564
|
{ chainId: 11111n, shortName: "WAGMI" },
|
|
538
565
|
{ chainId: 11124n, shortName: "abstract-sepolia" },
|
|
539
566
|
{ chainId: 11235n, shortName: "islm" },
|
|
567
|
+
{ chainId: 11417n, shortName: "anq-testnet" },
|
|
540
568
|
{ chainId: 11437n, shortName: "shyftt" },
|
|
541
569
|
{ chainId: 11501n, shortName: "bevm" },
|
|
542
570
|
{ chainId: 11503n, shortName: "bevm-test" },
|
|
@@ -548,33 +576,44 @@ var networks = [
|
|
|
548
576
|
{ chainId: 12553n, shortName: "rss3" },
|
|
549
577
|
{ chainId: 13337n, shortName: "beam-testnet" },
|
|
550
578
|
{ chainId: 13371n, shortName: "imx" },
|
|
579
|
+
{ chainId: 13441n, shortName: "bridgeless" },
|
|
551
580
|
{ chainId: 13473n, shortName: "imx-testnet" },
|
|
552
581
|
{ chainId: 13505n, shortName: "gravitysep" },
|
|
553
582
|
{ chainId: 13746n, shortName: "g7t" },
|
|
583
|
+
{ chainId: 14601n, shortName: "sonic-testnet" },
|
|
554
584
|
{ chainId: 14800n, shortName: "vana-moksha" },
|
|
585
|
+
{ chainId: 16661n, shortName: "0g" },
|
|
555
586
|
{ chainId: 17000n, shortName: "holesky" },
|
|
556
587
|
{ chainId: 17069n, shortName: "garnet" },
|
|
557
588
|
{ chainId: 17172n, shortName: "eclipse" },
|
|
558
589
|
{ chainId: 18231n, shortName: "unreal-old" },
|
|
559
590
|
{ chainId: 18233n, shortName: "unreal" },
|
|
560
591
|
{ chainId: 18880n, shortName: "expchain" },
|
|
592
|
+
{ chainId: 20994n, shortName: "fluent-testnet" },
|
|
561
593
|
{ chainId: 22776n, shortName: "mapo" },
|
|
562
594
|
{ chainId: 23294n, shortName: "sapphire" },
|
|
563
595
|
{ chainId: 23295n, shortName: "sapphire-testnet" },
|
|
596
|
+
{ chainId: 24101n, shortName: "incentiv" },
|
|
564
597
|
{ chainId: 25327n, shortName: "Everclear" },
|
|
598
|
+
{ chainId: 26888n, shortName: "tABCore" },
|
|
599
|
+
{ chainId: 28802n, shortName: "tcent" },
|
|
565
600
|
{ chainId: 28882n, shortName: "BobaSepolia" },
|
|
566
601
|
{ chainId: 28979n, shortName: "kimbonet-testnet" },
|
|
602
|
+
{ chainId: 30303n, shortName: "Ethiq" },
|
|
567
603
|
{ chainId: 31611n, shortName: "mezo" },
|
|
568
604
|
{ chainId: 32323n, shortName: "basedai" },
|
|
569
605
|
{ chainId: 32380n, shortName: "paix" },
|
|
570
606
|
{ chainId: 32769n, shortName: "zil" },
|
|
571
607
|
{ chainId: 32770n, shortName: "zq2-proto-mainnet" },
|
|
572
608
|
{ chainId: 33101n, shortName: "zil-testnet" },
|
|
609
|
+
{ chainId: 33111n, shortName: "curtis" },
|
|
573
610
|
{ chainId: 33139n, shortName: "apechain" },
|
|
574
611
|
{ chainId: 33401n, shortName: "slingshot" },
|
|
575
612
|
{ chainId: 34443n, shortName: "mode" },
|
|
576
613
|
{ chainId: 35441n, shortName: "q" },
|
|
577
614
|
{ chainId: 35443n, shortName: "q-testnet" },
|
|
615
|
+
{ chainId: 36888n, shortName: "abcore" },
|
|
616
|
+
{ chainId: 36900n, shortName: "adi" },
|
|
578
617
|
{ chainId: 37111n, shortName: "lens-sepolia" },
|
|
579
618
|
{ chainId: 41455n, shortName: "aleph-zero" },
|
|
580
619
|
{ chainId: 41923n, shortName: "edu-chain" },
|
|
@@ -582,6 +621,7 @@ var networks = [
|
|
|
582
621
|
{ chainId: 42170n, shortName: "arb-nova" },
|
|
583
622
|
{ chainId: 42220n, shortName: "celo" },
|
|
584
623
|
{ chainId: 42421n, shortName: "rwa" },
|
|
624
|
+
{ chainId: 42431n, shortName: "tempo-moderato" },
|
|
585
625
|
{ chainId: 42793n, shortName: "etlk" },
|
|
586
626
|
{ chainId: 43111n, shortName: "hemi" },
|
|
587
627
|
{ chainId: 43113n, shortName: "fuji" },
|
|
@@ -599,6 +639,7 @@ var networks = [
|
|
|
599
639
|
{ chainId: 49321n, shortName: "Stork" },
|
|
600
640
|
{ chainId: 50104n, shortName: "sophon" },
|
|
601
641
|
{ chainId: 50312n, shortName: "SomniaTestnet" },
|
|
642
|
+
{ chainId: 52924n, shortName: "lazai" },
|
|
602
643
|
{ chainId: 53302n, shortName: "seedsep" },
|
|
603
644
|
{ chainId: 53456n, shortName: "birdlayer" },
|
|
604
645
|
{ chainId: 53457n, shortName: "dodochain" },
|
|
@@ -633,35 +674,49 @@ var networks = [
|
|
|
633
674
|
{ chainId: 84532n, shortName: "basesep" },
|
|
634
675
|
{ chainId: 88811n, shortName: "unit0-mainnet" },
|
|
635
676
|
{ chainId: 88817n, shortName: "unit0-testnet" },
|
|
677
|
+
{ chainId: 88882n, shortName: "chzspicy" },
|
|
678
|
+
{ chainId: 88888n, shortName: "chiliz" },
|
|
636
679
|
{ chainId: 90001n, shortName: "dhobyghaut" },
|
|
680
|
+
{ chainId: 91342n, shortName: "giwasepolia" },
|
|
637
681
|
{ chainId: 97435n, shortName: "sling" },
|
|
638
682
|
{ chainId: 98864n, shortName: "plume-devnet" },
|
|
639
683
|
{ chainId: 98865n, shortName: "plume" },
|
|
684
|
+
{ chainId: 98866n, shortName: "plume-mainnet" },
|
|
640
685
|
{ chainId: 98867n, shortName: "plume-testnet" },
|
|
686
|
+
{ chainId: 98985n, shortName: "superposition-testnet" },
|
|
687
|
+
{ chainId: 102030n, shortName: "ctc" },
|
|
641
688
|
{ chainId: 103454n, shortName: "masatest" },
|
|
642
689
|
{ chainId: 105105n, shortName: "stratis" },
|
|
643
690
|
{ chainId: 111188n, shortName: "re-al" },
|
|
691
|
+
{ chainId: 127823n, shortName: "etls" },
|
|
644
692
|
{ chainId: 128123n, shortName: "etlt" },
|
|
645
693
|
{ chainId: 167000n, shortName: "tko-mainnet" },
|
|
646
694
|
{ chainId: 167008n, shortName: "tko-katla" },
|
|
647
695
|
{ chainId: 167009n, shortName: "tko-hekla" },
|
|
696
|
+
{ chainId: 167013n, shortName: "tko-hoodi" },
|
|
648
697
|
{ chainId: 175188n, shortName: "lpy" },
|
|
698
|
+
{ chainId: 181228n, shortName: "hpp-sepolia" },
|
|
699
|
+
{ chainId: 190415n, shortName: "hpp-mainnet" },
|
|
649
700
|
{ chainId: 200101n, shortName: "milktada" },
|
|
650
701
|
{ chainId: 200202n, shortName: "milktalgo" },
|
|
651
702
|
{ chainId: 200810n, shortName: "btrt" },
|
|
652
703
|
{ chainId: 200901n, shortName: "btr" },
|
|
653
704
|
{ chainId: 205205n, shortName: "auroria" },
|
|
654
705
|
{ chainId: 210425n, shortName: "platon" },
|
|
706
|
+
{ chainId: 222888n, shortName: "mocat" },
|
|
707
|
+
{ chainId: 278701n, shortName: "creator-chain-testnet" },
|
|
655
708
|
{ chainId: 314159n, shortName: "filecoin-calibration" },
|
|
656
709
|
{ chainId: 325000n, shortName: "CampV2" },
|
|
657
710
|
{ chainId: 328527n, shortName: "nal" },
|
|
658
711
|
{ chainId: 333999n, shortName: "olympus" },
|
|
712
|
+
{ chainId: 369369n, shortName: "den-mainnet" },
|
|
659
713
|
{ chainId: 381931n, shortName: "metal" },
|
|
660
714
|
{ chainId: 421611n, shortName: "arb-rinkeby" },
|
|
661
715
|
{ chainId: 421613n, shortName: "arb-goerli" },
|
|
662
716
|
{ chainId: 421614n, shortName: "arb-sep" },
|
|
663
717
|
{ chainId: 444444n, shortName: "syndr" },
|
|
664
718
|
{ chainId: 490000n, shortName: "ATN" },
|
|
719
|
+
{ chainId: 511111n, shortName: "alpha-testnet" },
|
|
665
720
|
{ chainId: 534351n, shortName: "scr-sepolia" },
|
|
666
721
|
{ chainId: 534352n, shortName: "scr" },
|
|
667
722
|
{ chainId: 534353n, shortName: "scr-alpha" },
|
|
@@ -674,37 +729,51 @@ var networks = [
|
|
|
674
729
|
{ chainId: 660279n, shortName: "xai" },
|
|
675
730
|
{ chainId: 668668n, shortName: "cnw" },
|
|
676
731
|
{ chainId: 688688n, shortName: "pharos-testnet" },
|
|
732
|
+
{ chainId: 688689n, shortName: "pharos-atlantic" },
|
|
677
733
|
{ chainId: 695569n, shortName: "pyrope" },
|
|
678
734
|
{ chainId: 713715n, shortName: "sei-devnet" },
|
|
679
735
|
{ chainId: 743111n, shortName: "hemi-sep" },
|
|
680
736
|
{ chainId: 747474n, shortName: "katana" },
|
|
681
737
|
{ chainId: 763373n, shortName: "inksepolia" },
|
|
738
|
+
{ chainId: 763375n, shortName: "surge-testnet" },
|
|
682
739
|
{ chainId: 764984n, shortName: "lamina1test" },
|
|
683
740
|
{ chainId: 808813n, shortName: "bob-sepolia" },
|
|
684
741
|
{ chainId: 810180n, shortName: "zklink-nova" },
|
|
685
742
|
{ chainId: 839999n, shortName: "txsat" },
|
|
743
|
+
{ chainId: 853211n, shortName: "haqq-testethiq" },
|
|
686
744
|
{ chainId: 978657n, shortName: "treasure-ruby" },
|
|
687
745
|
{ chainId: 984122n, shortName: "forma" },
|
|
746
|
+
{ chainId: 1000101n, shortName: "xo" },
|
|
747
|
+
{ chainId: 1440000n, shortName: "xrplevm" },
|
|
748
|
+
{ chainId: 1449000n, shortName: "xrplevmtestnet" },
|
|
688
749
|
{ chainId: 1501869n, shortName: "water9" },
|
|
689
750
|
{ chainId: 2206132n, shortName: "platondev2" },
|
|
690
751
|
{ chainId: 2632500n, shortName: "coti" },
|
|
691
752
|
{ chainId: 3441006n, shortName: "mantaSepoliaTestnet" },
|
|
692
753
|
{ chainId: 4457845n, shortName: "zero-sepolia" },
|
|
754
|
+
{ chainId: 5042002n, shortName: "arc-testnet" },
|
|
755
|
+
{ chainId: 5064014n, shortName: "ethereal" },
|
|
693
756
|
{ chainId: 6038361n, shortName: "azkyt" },
|
|
757
|
+
{ chainId: 6281971n, shortName: "dogeos-chykyu" },
|
|
758
|
+
{ chainId: 6985385n, shortName: "hp" },
|
|
694
759
|
{ chainId: 7225878n, shortName: "saakuru" },
|
|
695
760
|
{ chainId: 7777777n, shortName: "zora" },
|
|
696
761
|
{ chainId: 9999999n, shortName: "fluence" },
|
|
762
|
+
{ chainId: 11142220n, shortName: "celo-sep" },
|
|
697
763
|
{ chainId: 11155111n, shortName: "sep" },
|
|
698
764
|
{ chainId: 11155420n, shortName: "opsep" },
|
|
699
765
|
{ chainId: 11155931n, shortName: "rise-testnet" },
|
|
700
766
|
{ chainId: 12227332n, shortName: "neox-t4" },
|
|
767
|
+
{ chainId: 13374202n, shortName: "ethereal-testnet-0" },
|
|
768
|
+
{ chainId: 13863860n, shortName: "sis" },
|
|
769
|
+
{ chainId: 20250407n, shortName: "platondev3" },
|
|
701
770
|
{ chainId: 21000000n, shortName: "corn" },
|
|
702
771
|
{ chainId: 52164803n, shortName: "fluence-testnet" },
|
|
703
772
|
{ chainId: 65100004n, shortName: "piccadilly-04" },
|
|
704
773
|
{ chainId: 94204209n, shortName: "polygon-blackberry" },
|
|
705
774
|
{ chainId: 111557560n, shortName: "cysep" },
|
|
706
775
|
{ chainId: 123420111n, shortName: "opcelestia-raspberry" },
|
|
707
|
-
{ chainId: 161221135n, shortName: "plume-testnet" },
|
|
776
|
+
{ chainId: 161221135n, shortName: "plume-testnet-legacy" },
|
|
708
777
|
{ chainId: 168587773n, shortName: "blastsepolia" },
|
|
709
778
|
{ chainId: 222000222n, shortName: "kanazawa" },
|
|
710
779
|
{ chainId: 245022926n, shortName: "neonevm-devnet" },
|
|
@@ -714,6 +783,7 @@ var networks = [
|
|
|
714
783
|
{ chainId: 333000333n, shortName: "meld" },
|
|
715
784
|
{ chainId: 476462898n, shortName: "Skopje" },
|
|
716
785
|
{ chainId: 531050104n, shortName: "sophon-testnet" },
|
|
786
|
+
{ chainId: 531050204n, shortName: "sophon-os-testnet" },
|
|
717
787
|
{ chainId: 666666666n, shortName: "degen-chain" },
|
|
718
788
|
{ chainId: 888888888n, shortName: "ancient8" },
|
|
719
789
|
{ chainId: 994873017n, shortName: "lumia-mainnet" },
|
|
@@ -727,8 +797,11 @@ var networks = [
|
|
|
727
797
|
{ chainId: 1666600000n, shortName: "hmy-s0" },
|
|
728
798
|
{ chainId: 1666700000n, shortName: "hmy-b-s0" },
|
|
729
799
|
{ chainId: 1952959480n, shortName: "lumiatestnet" },
|
|
800
|
+
{ chainId: 2030232745n, shortName: "lumia-beam-testnet" },
|
|
801
|
+
{ chainId: 3735928814n, shortName: "edent" },
|
|
730
802
|
{ chainId: 11297108099n, shortName: "tpalm" },
|
|
731
803
|
{ chainId: 11297108109n, shortName: "palm" },
|
|
804
|
+
{ chainId: 30143370385n, shortName: "BUB" },
|
|
732
805
|
{ chainId: 37714555429n, shortName: "xaitestnet" },
|
|
733
806
|
{ chainId: 88153591557n, shortName: "arb-blueberry" },
|
|
734
807
|
{ chainId: 123420000220n, shortName: "fluence-stage" },
|
|
@@ -1032,7 +1105,8 @@ var SAFE_FEATURES_BY_VERSION = {
|
|
|
1032
1105
|
["REQUIRED_TXGAS" /* REQUIRED_TXGAS */]: "<=1.2.0",
|
|
1033
1106
|
["SIMULATE_AND_REVERT" /* SIMULATE_AND_REVERT */]: ">=1.3.0",
|
|
1034
1107
|
["PASSKEY_SIGNER" /* PASSKEY_SIGNER */]: ">=1.3.0",
|
|
1035
|
-
["SAFE_L2_CONTRACTS" /* SAFE_L2_CONTRACTS */]: ">=1.3.0"
|
|
1108
|
+
["SAFE_L2_CONTRACTS" /* SAFE_L2_CONTRACTS */]: ">=1.3.0",
|
|
1109
|
+
["SAFE_MODULE_GUARD" /* SAFE_MODULE_GUARD */]: ">=1.5.0"
|
|
1036
1110
|
};
|
|
1037
1111
|
var hasSafeFeature = (feature, version) => {
|
|
1038
1112
|
if (!(feature in SAFE_FEATURES_BY_VERSION)) {
|
|
@@ -1048,7 +1122,7 @@ var import_satisfies3 = __toESM(require("semver/functions/satisfies.js"));
|
|
|
1048
1122
|
|
|
1049
1123
|
// src/utils/transactions/gas.ts
|
|
1050
1124
|
var import_viem12 = require("viem");
|
|
1051
|
-
var
|
|
1125
|
+
var import_types_kit35 = require("@safe-global/types-kit");
|
|
1052
1126
|
var import_satisfies5 = __toESM(require("semver/functions/satisfies.js"));
|
|
1053
1127
|
|
|
1054
1128
|
// src/contracts/BaseContract.ts
|
|
@@ -1058,8 +1132,22 @@ var import_actions = require("viem/actions");
|
|
|
1058
1132
|
// src/contracts/config.ts
|
|
1059
1133
|
var import_safe_deployments = require("@safe-global/safe-deployments");
|
|
1060
1134
|
var import_safe_modules_deployments = require("@safe-global/safe-modules-deployments");
|
|
1061
|
-
var DEFAULT_SAFE_VERSION = "1.
|
|
1135
|
+
var DEFAULT_SAFE_VERSION = "1.4.1";
|
|
1062
1136
|
var safeDeploymentsVersions = {
|
|
1137
|
+
"1.5.0": {
|
|
1138
|
+
safeSingletonVersion: "1.5.0",
|
|
1139
|
+
safeSingletonL2Version: "1.5.0",
|
|
1140
|
+
safeProxyFactoryVersion: "1.5.0",
|
|
1141
|
+
compatibilityFallbackHandler: "1.5.0",
|
|
1142
|
+
extensibleFallbackHandler: "1.5.0",
|
|
1143
|
+
multiSendVersion: "1.5.0",
|
|
1144
|
+
multiSendCallOnlyVersion: "1.5.0",
|
|
1145
|
+
signMessageLibVersion: "1.5.0",
|
|
1146
|
+
createCallVersion: "1.5.0",
|
|
1147
|
+
simulateTxAccessorVersion: "1.5.0",
|
|
1148
|
+
safeWebAuthnSignerFactoryVersion: "0.2.1",
|
|
1149
|
+
safeWebAuthnSharedSignerVersion: "0.2.1"
|
|
1150
|
+
},
|
|
1063
1151
|
"1.4.1": {
|
|
1064
1152
|
safeSingletonVersion: "1.4.1",
|
|
1065
1153
|
safeSingletonL2Version: "1.4.1",
|
|
@@ -1132,6 +1220,7 @@ var contractFunctions = {
|
|
|
1132
1220
|
safeSingletonL2Version: import_safe_deployments.getSafeL2SingletonDeployments,
|
|
1133
1221
|
safeProxyFactoryVersion: import_safe_deployments.getProxyFactoryDeployments,
|
|
1134
1222
|
compatibilityFallbackHandler: import_safe_deployments.getCompatibilityFallbackHandlerDeployments,
|
|
1223
|
+
extensibleFallbackHandler: import_safe_deployments.getExtensibleFallbackHandlerDeployments,
|
|
1135
1224
|
multiSendVersion: import_safe_deployments.getMultiSendDeployments,
|
|
1136
1225
|
multiSendCallOnlyVersion: import_safe_deployments.getMultiSendCallOnlyDeployments,
|
|
1137
1226
|
signMessageLibVersion: import_safe_deployments.getSignMessageLibDeployments,
|
|
@@ -1322,35 +1411,19 @@ async function decodePublicKeyForWeb(publicKey) {
|
|
|
1322
1411
|
y: "0x" + import_buffer.Buffer.from(y, "base64").toString("hex")
|
|
1323
1412
|
};
|
|
1324
1413
|
}
|
|
1325
|
-
function getDefaultFCLP256VerifierAddress(chainId) {
|
|
1326
|
-
const FCLP256VerifierDeployment = (0, import_safe_modules_deployments2.getFCLP256VerifierDeployment)({
|
|
1327
|
-
version: "0.2.1",
|
|
1328
|
-
released: true,
|
|
1329
|
-
network: chainId
|
|
1330
|
-
});
|
|
1331
|
-
if (!FCLP256VerifierDeployment) {
|
|
1332
|
-
throw new Error(`Failed to load FCLP256Verifier deployment for chain ID ${chainId}`);
|
|
1333
|
-
}
|
|
1334
|
-
const verifierAddress = FCLP256VerifierDeployment.networkAddresses[chainId];
|
|
1335
|
-
if (!verifierAddress) {
|
|
1336
|
-
throw new Error(`FCLP256Verifier address not found for chain ID ${chainId}`);
|
|
1337
|
-
}
|
|
1338
|
-
return verifierAddress;
|
|
1339
|
-
}
|
|
1340
1414
|
|
|
1341
1415
|
// src/utils/passkeys/PasskeyClient.ts
|
|
1342
1416
|
var import_viem8 = require("viem");
|
|
1343
1417
|
|
|
1344
1418
|
// src/utils/passkeys/isSharedSigner.ts
|
|
1345
|
-
async function isSharedSigner(passkey, safeWebAuthnSharedSignerContract, safeAddress, owners
|
|
1419
|
+
async function isSharedSigner(passkey, safeWebAuthnSharedSignerContract, safeAddress, owners) {
|
|
1346
1420
|
const sharedSignerContractAddress = safeWebAuthnSharedSignerContract.contractAddress;
|
|
1347
1421
|
if (safeAddress && owners.includes(sharedSignerContractAddress)) {
|
|
1348
1422
|
const [sharedSignerSlot] = await safeWebAuthnSharedSignerContract.getConfiguration([
|
|
1349
1423
|
asHex(safeAddress)
|
|
1350
1424
|
]);
|
|
1351
1425
|
const { x, y, verifiers } = sharedSignerSlot;
|
|
1352
|
-
const
|
|
1353
|
-
const isSharedSigner2 = BigInt(passkey.coordinates.x) === x && BigInt(passkey.coordinates.y) === y && BigInt(verifierAddress) === verifiers;
|
|
1426
|
+
const isSharedSigner2 = BigInt(passkey.coordinates.x) === x && BigInt(passkey.coordinates.y) === y && BigInt(passkey.verifierAddress) === verifiers;
|
|
1354
1427
|
return isSharedSigner2;
|
|
1355
1428
|
}
|
|
1356
1429
|
return false;
|
|
@@ -1386,16 +1459,14 @@ var signTransaction = () => {
|
|
|
1386
1459
|
var signTypedData = () => {
|
|
1387
1460
|
throw new Error("Passkey Signers cannot sign signTypedData, they can only sign data.");
|
|
1388
1461
|
};
|
|
1389
|
-
var createPasskeyClient = async (passkey, safeWebAuthnSignerFactoryContract, safeWebAuthnSharedSignerContract, provider, safeAddress, owners
|
|
1390
|
-
const { rawId, coordinates,
|
|
1462
|
+
var createPasskeyClient = async (passkey, safeWebAuthnSignerFactoryContract, safeWebAuthnSharedSignerContract, provider, safeAddress, owners) => {
|
|
1463
|
+
const { rawId, coordinates, verifierAddress } = passkey;
|
|
1391
1464
|
const passkeyRawId = (0, import_viem8.hexToBytes)(asHex(rawId));
|
|
1392
|
-
const verifierAddress = customVerifierAddress || getDefaultFCLP256VerifierAddress(chainId);
|
|
1393
1465
|
const isPasskeySharedSigner = await isSharedSigner_default(
|
|
1394
1466
|
passkey,
|
|
1395
1467
|
safeWebAuthnSharedSignerContract,
|
|
1396
1468
|
safeAddress,
|
|
1397
|
-
owners
|
|
1398
|
-
chainId
|
|
1469
|
+
owners
|
|
1399
1470
|
);
|
|
1400
1471
|
let signerAddress;
|
|
1401
1472
|
if (isPasskeySharedSigner) {
|
|
@@ -1563,8 +1634,7 @@ var SafeProvider = class _SafeProvider {
|
|
|
1563
1634
|
safeWebAuthnSharedSignerContract,
|
|
1564
1635
|
safeProvider.getExternalProvider(),
|
|
1565
1636
|
safeAddress || "",
|
|
1566
|
-
owners || []
|
|
1567
|
-
chainId.toString()
|
|
1637
|
+
owners || []
|
|
1568
1638
|
);
|
|
1569
1639
|
} else {
|
|
1570
1640
|
passkeySigner = signer;
|
|
@@ -1842,27 +1912,39 @@ function isTypedDataSigner(signer) {
|
|
|
1842
1912
|
// src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts
|
|
1843
1913
|
var import_types_kit3 = require("@safe-global/types-kit");
|
|
1844
1914
|
|
|
1845
|
-
// src/contracts/
|
|
1915
|
+
// src/contracts/CreateCall/v1.5.0/CreateCallContract_v1_5_0.ts
|
|
1846
1916
|
var import_types_kit4 = require("@safe-global/types-kit");
|
|
1847
1917
|
|
|
1848
|
-
// src/contracts/MultiSend/v1.
|
|
1918
|
+
// src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts
|
|
1849
1919
|
var import_types_kit5 = require("@safe-global/types-kit");
|
|
1850
1920
|
|
|
1851
|
-
// src/contracts/MultiSend/v1.
|
|
1921
|
+
// src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts
|
|
1852
1922
|
var import_types_kit6 = require("@safe-global/types-kit");
|
|
1853
1923
|
|
|
1854
|
-
// src/contracts/MultiSend/v1.
|
|
1924
|
+
// src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts
|
|
1855
1925
|
var import_types_kit7 = require("@safe-global/types-kit");
|
|
1856
1926
|
|
|
1857
|
-
// src/contracts/MultiSend/v1.
|
|
1927
|
+
// src/contracts/MultiSend/v1.5.0/MultiSendContract_v1_5_0.ts
|
|
1858
1928
|
var import_types_kit8 = require("@safe-global/types-kit");
|
|
1859
1929
|
|
|
1860
|
-
// src/contracts/
|
|
1930
|
+
// src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts
|
|
1861
1931
|
var import_types_kit9 = require("@safe-global/types-kit");
|
|
1862
1932
|
|
|
1863
|
-
// src/contracts/
|
|
1933
|
+
// src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts
|
|
1864
1934
|
var import_types_kit10 = require("@safe-global/types-kit");
|
|
1865
1935
|
|
|
1936
|
+
// src/contracts/MultiSend/v1.5.0/MultiSendCallOnlyContract_v1_5_0.ts
|
|
1937
|
+
var import_types_kit11 = require("@safe-global/types-kit");
|
|
1938
|
+
|
|
1939
|
+
// src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts
|
|
1940
|
+
var import_types_kit12 = require("@safe-global/types-kit");
|
|
1941
|
+
|
|
1942
|
+
// src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts
|
|
1943
|
+
var import_types_kit13 = require("@safe-global/types-kit");
|
|
1944
|
+
|
|
1945
|
+
// src/contracts/SignMessageLib/v1.5.0/SignMessageLibContract_v1_5_0.ts
|
|
1946
|
+
var import_types_kit14 = require("@safe-global/types-kit");
|
|
1947
|
+
|
|
1866
1948
|
// src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts
|
|
1867
1949
|
var import_actions4 = require("viem/actions");
|
|
1868
1950
|
|
|
@@ -1900,7 +1982,7 @@ var SafeBaseContract = class extends BaseContract_default {
|
|
|
1900
1982
|
var SafeBaseContract_default = SafeBaseContract;
|
|
1901
1983
|
|
|
1902
1984
|
// src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts
|
|
1903
|
-
var
|
|
1985
|
+
var import_types_kit15 = require("@safe-global/types-kit");
|
|
1904
1986
|
var SafeContract_v1_0_0 = class extends SafeBaseContract_default {
|
|
1905
1987
|
/**
|
|
1906
1988
|
* Constructs an instance of SafeContract_v1_0_0
|
|
@@ -1914,7 +1996,7 @@ var SafeContract_v1_0_0 = class extends SafeBaseContract_default {
|
|
|
1914
1996
|
*/
|
|
1915
1997
|
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
1916
1998
|
const safeVersion = "1.0.0";
|
|
1917
|
-
const defaultAbi =
|
|
1999
|
+
const defaultAbi = import_types_kit15.safe_1_0_0_ContractArtifacts.abi;
|
|
1918
2000
|
super(
|
|
1919
2001
|
chainId,
|
|
1920
2002
|
safeProvider,
|
|
@@ -2181,7 +2263,7 @@ var SafeContract_v1_0_0_default = SafeContract_v1_0_0;
|
|
|
2181
2263
|
|
|
2182
2264
|
// src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts
|
|
2183
2265
|
var import_actions5 = require("viem/actions");
|
|
2184
|
-
var
|
|
2266
|
+
var import_types_kit16 = require("@safe-global/types-kit");
|
|
2185
2267
|
var SafeContract_v1_1_1 = class extends SafeBaseContract_default {
|
|
2186
2268
|
/**
|
|
2187
2269
|
* Constructs an instance of SafeContract_v1_1_1
|
|
@@ -2195,7 +2277,7 @@ var SafeContract_v1_1_1 = class extends SafeBaseContract_default {
|
|
|
2195
2277
|
*/
|
|
2196
2278
|
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
2197
2279
|
const safeVersion = "1.1.1";
|
|
2198
|
-
const defaultAbi =
|
|
2280
|
+
const defaultAbi = import_types_kit16.safe_1_1_1_ContractArtifacts.abi;
|
|
2199
2281
|
super(
|
|
2200
2282
|
chainId,
|
|
2201
2283
|
safeProvider,
|
|
@@ -2437,7 +2519,7 @@ var SafeContract_v1_1_1_default = SafeContract_v1_1_1;
|
|
|
2437
2519
|
|
|
2438
2520
|
// src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts
|
|
2439
2521
|
var import_actions6 = require("viem/actions");
|
|
2440
|
-
var
|
|
2522
|
+
var import_types_kit17 = require("@safe-global/types-kit");
|
|
2441
2523
|
var SafeContract_v1_2_0 = class extends SafeBaseContract_default {
|
|
2442
2524
|
/**
|
|
2443
2525
|
* Constructs an instance of SafeContract_v1_2_0
|
|
@@ -2451,7 +2533,7 @@ var SafeContract_v1_2_0 = class extends SafeBaseContract_default {
|
|
|
2451
2533
|
*/
|
|
2452
2534
|
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
2453
2535
|
const safeVersion = "1.2.0";
|
|
2454
|
-
const defaultAbi =
|
|
2536
|
+
const defaultAbi = import_types_kit17.safe_1_2_0_ContractArtifacts.abi;
|
|
2455
2537
|
super(
|
|
2456
2538
|
chainId,
|
|
2457
2539
|
safeProvider,
|
|
@@ -2697,7 +2779,7 @@ var SafeContract_v1_2_0_default = SafeContract_v1_2_0;
|
|
|
2697
2779
|
|
|
2698
2780
|
// src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts
|
|
2699
2781
|
var import_actions7 = require("viem/actions");
|
|
2700
|
-
var
|
|
2782
|
+
var import_types_kit18 = require("@safe-global/types-kit");
|
|
2701
2783
|
var SafeContract_v1_3_0 = class extends SafeBaseContract_default {
|
|
2702
2784
|
/**
|
|
2703
2785
|
* Constructs an instance of SafeContract_v1_3_0
|
|
@@ -2711,7 +2793,7 @@ var SafeContract_v1_3_0 = class extends SafeBaseContract_default {
|
|
|
2711
2793
|
*/
|
|
2712
2794
|
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
2713
2795
|
const safeVersion = "1.3.0";
|
|
2714
|
-
const defaultAbi =
|
|
2796
|
+
const defaultAbi = import_types_kit18.safe_1_3_0_ContractArtifacts.abi;
|
|
2715
2797
|
super(
|
|
2716
2798
|
chainId,
|
|
2717
2799
|
safeProvider,
|
|
@@ -2970,7 +3052,7 @@ var SafeContract_v1_3_0_default = SafeContract_v1_3_0;
|
|
|
2970
3052
|
|
|
2971
3053
|
// src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts
|
|
2972
3054
|
var import_actions8 = require("viem/actions");
|
|
2973
|
-
var
|
|
3055
|
+
var import_types_kit19 = require("@safe-global/types-kit");
|
|
2974
3056
|
var SafeContract_v1_4_1 = class extends SafeBaseContract_default {
|
|
2975
3057
|
/**
|
|
2976
3058
|
* Constructs an instance of SafeContract_v1_4_1
|
|
@@ -2984,7 +3066,7 @@ var SafeContract_v1_4_1 = class extends SafeBaseContract_default {
|
|
|
2984
3066
|
*/
|
|
2985
3067
|
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
2986
3068
|
const safeVersion = "1.4.1";
|
|
2987
|
-
const defaultAbi =
|
|
3069
|
+
const defaultAbi = import_types_kit19.safe_1_4_1_ContractArtifacts.abi;
|
|
2988
3070
|
super(
|
|
2989
3071
|
chainId,
|
|
2990
3072
|
safeProvider,
|
|
@@ -3058,7 +3140,7 @@ var SafeContract_v1_4_1 = class extends SafeBaseContract_default {
|
|
|
3058
3140
|
return [await this.read("getOwners")];
|
|
3059
3141
|
};
|
|
3060
3142
|
/**
|
|
3061
|
-
* Reads `length` bytes of storage in the
|
|
3143
|
+
* Reads `length` bytes of storage in the current contract
|
|
3062
3144
|
* @param args - Array[offset, length]
|
|
3063
3145
|
* @returns Array[storage]
|
|
3064
3146
|
*/
|
|
@@ -3241,6 +3323,328 @@ var SafeContract_v1_4_1 = class extends SafeBaseContract_default {
|
|
|
3241
3323
|
};
|
|
3242
3324
|
var SafeContract_v1_4_1_default = SafeContract_v1_4_1;
|
|
3243
3325
|
|
|
3326
|
+
// src/contracts/Safe/v1.5.0/SafeContract_v1_5_0.ts
|
|
3327
|
+
var import_actions9 = require("viem/actions");
|
|
3328
|
+
var import_types_kit20 = require("@safe-global/types-kit");
|
|
3329
|
+
var SafeContract_v1_5_0 = class extends SafeBaseContract_default {
|
|
3330
|
+
/**
|
|
3331
|
+
* Constructs an instance of SafeContract_v1_5_0
|
|
3332
|
+
*
|
|
3333
|
+
* @param chainId - The chain ID where the contract resides.
|
|
3334
|
+
* @param safeProvider - An instance of SafeProvider.
|
|
3335
|
+
* @param isL1SafeSingleton - A flag indicating if the contract is a L1 Safe Singleton.
|
|
3336
|
+
* @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
|
|
3337
|
+
* @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.5.0 is used.
|
|
3338
|
+
* @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
|
|
3339
|
+
*/
|
|
3340
|
+
constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
|
|
3341
|
+
const safeVersion = "1.5.0";
|
|
3342
|
+
const defaultAbi = import_types_kit20.safe_1_5_0_ContractArtifacts.abi;
|
|
3343
|
+
super(
|
|
3344
|
+
chainId,
|
|
3345
|
+
safeProvider,
|
|
3346
|
+
defaultAbi,
|
|
3347
|
+
safeVersion,
|
|
3348
|
+
isL1SafeSingleton,
|
|
3349
|
+
customContractAddress,
|
|
3350
|
+
customContractAbi,
|
|
3351
|
+
deploymentType
|
|
3352
|
+
);
|
|
3353
|
+
/**
|
|
3354
|
+
* @returns Array[safeContractVersion]
|
|
3355
|
+
*/
|
|
3356
|
+
this.VERSION = async () => {
|
|
3357
|
+
return [await this.read("VERSION")];
|
|
3358
|
+
};
|
|
3359
|
+
/**
|
|
3360
|
+
* @param args - Array[owner, txHash]
|
|
3361
|
+
* @returns Array[approvedHashes]
|
|
3362
|
+
*/
|
|
3363
|
+
this.approvedHashes = async (args) => {
|
|
3364
|
+
return [await this.read("approvedHashes", args)];
|
|
3365
|
+
};
|
|
3366
|
+
/**
|
|
3367
|
+
* Checks whether the signature provided is valid for the provided data, hash and number of required signatures.
|
|
3368
|
+
* Will revert otherwise.
|
|
3369
|
+
* @param args - Array[dataHash, data, signatures, requiredSignatures]
|
|
3370
|
+
* @returns Empty array
|
|
3371
|
+
*/
|
|
3372
|
+
this.checkNSignatures = async (args) => {
|
|
3373
|
+
await this.read("checkNSignatures", args);
|
|
3374
|
+
return [];
|
|
3375
|
+
};
|
|
3376
|
+
/**
|
|
3377
|
+
* New in v1.5.0: overload of checkNSignatures that accepts an explicit executor address.
|
|
3378
|
+
* Allows modules to pass msg.sender explicitly rather than relying on the contract's own context.
|
|
3379
|
+
* Will revert otherwise.
|
|
3380
|
+
* @param args - Array[executor, dataHash, signatures, requiredSignatures]
|
|
3381
|
+
* @returns Empty array
|
|
3382
|
+
*/
|
|
3383
|
+
this.checkNSignaturesWithExecutor = async (args) => {
|
|
3384
|
+
await (0, import_actions9.readContract)(this.runner, {
|
|
3385
|
+
address: this.contractAddress,
|
|
3386
|
+
functionName: "checkNSignatures",
|
|
3387
|
+
abi: [
|
|
3388
|
+
{
|
|
3389
|
+
inputs: [
|
|
3390
|
+
{ internalType: "address", name: "executor", type: "address" },
|
|
3391
|
+
{ internalType: "bytes32", name: "dataHash", type: "bytes32" },
|
|
3392
|
+
{ internalType: "bytes", name: "signatures", type: "bytes" },
|
|
3393
|
+
{ internalType: "uint256", name: "requiredSignatures", type: "uint256" }
|
|
3394
|
+
],
|
|
3395
|
+
name: "checkNSignatures",
|
|
3396
|
+
outputs: [],
|
|
3397
|
+
stateMutability: "view",
|
|
3398
|
+
type: "function"
|
|
3399
|
+
}
|
|
3400
|
+
],
|
|
3401
|
+
args
|
|
3402
|
+
});
|
|
3403
|
+
return [];
|
|
3404
|
+
};
|
|
3405
|
+
/**
|
|
3406
|
+
* Checks whether the signature provided is valid for the provided data and hash. Will revert otherwise.
|
|
3407
|
+
* @param args - Array[dataHash, data, signatures]
|
|
3408
|
+
* @returns Empty array
|
|
3409
|
+
*/
|
|
3410
|
+
this.checkSignatures = async (args) => {
|
|
3411
|
+
await this.read("checkSignatures", args);
|
|
3412
|
+
return [];
|
|
3413
|
+
};
|
|
3414
|
+
/**
|
|
3415
|
+
* New in v1.5.0: overload of checkSignatures that accepts an explicit executor address.
|
|
3416
|
+
* Allows modules to pass msg.sender explicitly rather than relying on the contract's own context.
|
|
3417
|
+
* Will revert otherwise.
|
|
3418
|
+
* @param args - Array[executor, dataHash, signatures]
|
|
3419
|
+
* @returns Empty array
|
|
3420
|
+
*/
|
|
3421
|
+
this.checkSignaturesWithExecutor = async (args) => {
|
|
3422
|
+
await (0, import_actions9.readContract)(this.runner, {
|
|
3423
|
+
address: this.contractAddress,
|
|
3424
|
+
functionName: "checkSignatures",
|
|
3425
|
+
abi: [
|
|
3426
|
+
{
|
|
3427
|
+
inputs: [
|
|
3428
|
+
{ internalType: "address", name: "executor", type: "address" },
|
|
3429
|
+
{ internalType: "bytes32", name: "dataHash", type: "bytes32" },
|
|
3430
|
+
{ internalType: "bytes", name: "signatures", type: "bytes" }
|
|
3431
|
+
],
|
|
3432
|
+
name: "checkSignatures",
|
|
3433
|
+
outputs: [],
|
|
3434
|
+
stateMutability: "view",
|
|
3435
|
+
type: "function"
|
|
3436
|
+
}
|
|
3437
|
+
],
|
|
3438
|
+
args
|
|
3439
|
+
});
|
|
3440
|
+
return [];
|
|
3441
|
+
};
|
|
3442
|
+
/**
|
|
3443
|
+
* @returns Array[domainSeparator]
|
|
3444
|
+
*/
|
|
3445
|
+
this.domainSeparator = async () => {
|
|
3446
|
+
return [await this.read("domainSeparator")];
|
|
3447
|
+
};
|
|
3448
|
+
/**
|
|
3449
|
+
* Returns array of modules.
|
|
3450
|
+
* @param args - Array[start, pageSize]
|
|
3451
|
+
* @returns Array[Array[modules], next]
|
|
3452
|
+
*/
|
|
3453
|
+
this.getModulesPaginated = async (args) => {
|
|
3454
|
+
const [array, next] = await this.read("getModulesPaginated", args);
|
|
3455
|
+
return [array, next];
|
|
3456
|
+
};
|
|
3457
|
+
/**
|
|
3458
|
+
* Returns the list of Safe owner accounts.
|
|
3459
|
+
* @returns Array[Array[owners]]
|
|
3460
|
+
*/
|
|
3461
|
+
this.getOwners = async () => {
|
|
3462
|
+
return [await this.read("getOwners")];
|
|
3463
|
+
};
|
|
3464
|
+
/**
|
|
3465
|
+
* Reads `length` bytes of storage in the current contract
|
|
3466
|
+
* @param args - Array[offset, length]
|
|
3467
|
+
* @returns Array[storage]
|
|
3468
|
+
*/
|
|
3469
|
+
this.getStorageAt = async (args) => {
|
|
3470
|
+
return [await this.read("getStorageAt", args)];
|
|
3471
|
+
};
|
|
3472
|
+
/**
|
|
3473
|
+
* Returns the Safe threshold.
|
|
3474
|
+
* @returns Array[threshold]
|
|
3475
|
+
*/
|
|
3476
|
+
this.getThreshold = async () => {
|
|
3477
|
+
return [await this.read("getThreshold")];
|
|
3478
|
+
};
|
|
3479
|
+
/**
|
|
3480
|
+
* Returns hash to be signed by owners.
|
|
3481
|
+
* @param args - Array[to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]
|
|
3482
|
+
* @returns Array[transactionHash]
|
|
3483
|
+
*/
|
|
3484
|
+
this.getTransactionHash = async (args) => {
|
|
3485
|
+
return [await this.read("getTransactionHash", args)];
|
|
3486
|
+
};
|
|
3487
|
+
/**
|
|
3488
|
+
* Checks if a specific Safe module is enabled for the current Safe.
|
|
3489
|
+
* @param args - Array[moduleAddress]
|
|
3490
|
+
* @returns Array[isEnabled]
|
|
3491
|
+
*/
|
|
3492
|
+
this.isModuleEnabled = async (args) => {
|
|
3493
|
+
return [await this.read("isModuleEnabled", args)];
|
|
3494
|
+
};
|
|
3495
|
+
/**
|
|
3496
|
+
* Checks if a specific address is an owner of the current Safe.
|
|
3497
|
+
* @param args - Array[address]
|
|
3498
|
+
* @returns Array[isOwner]
|
|
3499
|
+
*/
|
|
3500
|
+
this.isOwner = async (args) => {
|
|
3501
|
+
return [await this.read("isOwner", args)];
|
|
3502
|
+
};
|
|
3503
|
+
/**
|
|
3504
|
+
* Returns the Safe nonce.
|
|
3505
|
+
* @returns Array[nonce]
|
|
3506
|
+
*/
|
|
3507
|
+
this.nonce = async () => {
|
|
3508
|
+
return [await this.read("nonce")];
|
|
3509
|
+
};
|
|
3510
|
+
/**
|
|
3511
|
+
* @param args - Array[messageHash]
|
|
3512
|
+
* @returns Array[signedMessages]
|
|
3513
|
+
*/
|
|
3514
|
+
this.signedMessages = async (args) => {
|
|
3515
|
+
return [await this.read("signedMessages", args)];
|
|
3516
|
+
};
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
* Checks whether a given Safe transaction can be executed successfully with no errors.
|
|
3520
|
+
* @param safeTransaction - The Safe transaction to check.
|
|
3521
|
+
* @param options - Optional transaction options.
|
|
3522
|
+
* @returns True, if the given transactions is valid.
|
|
3523
|
+
*/
|
|
3524
|
+
async isValidTransaction(safeTransaction, options = {}) {
|
|
3525
|
+
try {
|
|
3526
|
+
const gasLimit = options?.gasLimit || await this.estimateGas(
|
|
3527
|
+
"execTransaction",
|
|
3528
|
+
[
|
|
3529
|
+
safeTransaction.data.to,
|
|
3530
|
+
BigInt(safeTransaction.data.value),
|
|
3531
|
+
asHex(safeTransaction.data.data),
|
|
3532
|
+
safeTransaction.data.operation,
|
|
3533
|
+
BigInt(safeTransaction.data.safeTxGas),
|
|
3534
|
+
BigInt(safeTransaction.data.baseGas),
|
|
3535
|
+
BigInt(safeTransaction.data.gasPrice),
|
|
3536
|
+
safeTransaction.data.gasToken,
|
|
3537
|
+
safeTransaction.data.refundReceiver,
|
|
3538
|
+
asHex(safeTransaction.encodedSignatures())
|
|
3539
|
+
],
|
|
3540
|
+
options
|
|
3541
|
+
);
|
|
3542
|
+
const converted = this.convertOptions({ ...options, gasLimit });
|
|
3543
|
+
const txResult = await (0, import_actions9.simulateContract)(this.runner, {
|
|
3544
|
+
address: this.contractAddress,
|
|
3545
|
+
functionName: "execTransaction",
|
|
3546
|
+
abi: this.contractAbi,
|
|
3547
|
+
args: [
|
|
3548
|
+
safeTransaction.data.to,
|
|
3549
|
+
BigInt(safeTransaction.data.value),
|
|
3550
|
+
asHex(safeTransaction.data.data),
|
|
3551
|
+
safeTransaction.data.operation,
|
|
3552
|
+
BigInt(safeTransaction.data.safeTxGas),
|
|
3553
|
+
BigInt(safeTransaction.data.baseGas),
|
|
3554
|
+
BigInt(safeTransaction.data.gasPrice),
|
|
3555
|
+
safeTransaction.data.gasToken,
|
|
3556
|
+
safeTransaction.data.refundReceiver,
|
|
3557
|
+
asHex(safeTransaction.encodedSignatures())
|
|
3558
|
+
],
|
|
3559
|
+
...converted
|
|
3560
|
+
});
|
|
3561
|
+
return txResult.result;
|
|
3562
|
+
} catch (error) {
|
|
3563
|
+
return false;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
/**
|
|
3567
|
+
* Executes a transaction.
|
|
3568
|
+
* @param safeTransaction - The Safe transaction to execute.
|
|
3569
|
+
* @param options - Transaction options.
|
|
3570
|
+
* @returns Transaction result.
|
|
3571
|
+
*/
|
|
3572
|
+
async execTransaction(safeTransaction, options) {
|
|
3573
|
+
const gasLimit = options?.gasLimit || await this.estimateGas(
|
|
3574
|
+
"execTransaction",
|
|
3575
|
+
[
|
|
3576
|
+
safeTransaction.data.to,
|
|
3577
|
+
BigInt(safeTransaction.data.value),
|
|
3578
|
+
asHex(safeTransaction.data.data),
|
|
3579
|
+
safeTransaction.data.operation,
|
|
3580
|
+
BigInt(safeTransaction.data.safeTxGas),
|
|
3581
|
+
BigInt(safeTransaction.data.baseGas),
|
|
3582
|
+
BigInt(safeTransaction.data.gasPrice),
|
|
3583
|
+
safeTransaction.data.gasToken,
|
|
3584
|
+
safeTransaction.data.refundReceiver,
|
|
3585
|
+
asHex(safeTransaction.encodedSignatures())
|
|
3586
|
+
],
|
|
3587
|
+
options
|
|
3588
|
+
);
|
|
3589
|
+
const args = [
|
|
3590
|
+
safeTransaction.data.to,
|
|
3591
|
+
BigInt(safeTransaction.data.value),
|
|
3592
|
+
asHex(safeTransaction.data.data),
|
|
3593
|
+
safeTransaction.data.operation,
|
|
3594
|
+
BigInt(safeTransaction.data.safeTxGas),
|
|
3595
|
+
BigInt(safeTransaction.data.baseGas),
|
|
3596
|
+
BigInt(safeTransaction.data.gasPrice),
|
|
3597
|
+
safeTransaction.data.gasToken,
|
|
3598
|
+
safeTransaction.data.refundReceiver,
|
|
3599
|
+
asHex(safeTransaction.encodedSignatures())
|
|
3600
|
+
];
|
|
3601
|
+
return toTxResult(
|
|
3602
|
+
this.runner,
|
|
3603
|
+
await this.write("execTransaction", args, { ...options, gasLimit }),
|
|
3604
|
+
options
|
|
3605
|
+
);
|
|
3606
|
+
}
|
|
3607
|
+
/**
|
|
3608
|
+
* Returns array of first 10 modules.
|
|
3609
|
+
* @returns Array[modules]
|
|
3610
|
+
*/
|
|
3611
|
+
async getModules() {
|
|
3612
|
+
const [modules] = await this.getModulesPaginated([SENTINEL_ADDRESS, BigInt(10)]);
|
|
3613
|
+
return [modules.map((module2) => module2)];
|
|
3614
|
+
}
|
|
3615
|
+
/**
|
|
3616
|
+
* Marks a hash as approved. This can be used to validate a hash that is used by a signature.
|
|
3617
|
+
* @param hash - The hash that should be marked as approved for signatures that are verified by this contract.
|
|
3618
|
+
* @param options - Optional transaction options.
|
|
3619
|
+
* @returns Transaction result.
|
|
3620
|
+
*/
|
|
3621
|
+
async approveHash(hash, options) {
|
|
3622
|
+
const gasLimit = options?.gasLimit || await this.estimateGas("approveHash", [asHash(hash)], options);
|
|
3623
|
+
return toTxResult(
|
|
3624
|
+
this.runner,
|
|
3625
|
+
await this.write("approveHash", [asHash(hash)], { ...options, gasLimit }),
|
|
3626
|
+
options
|
|
3627
|
+
);
|
|
3628
|
+
}
|
|
3629
|
+
/**
|
|
3630
|
+
* Returns the chain id of the Safe contract. (Custom method - not defined in the Safe Contract)
|
|
3631
|
+
* @returns Array[chainId]
|
|
3632
|
+
*/
|
|
3633
|
+
async getChainId() {
|
|
3634
|
+
return [await Promise.resolve(this.chainId)];
|
|
3635
|
+
}
|
|
3636
|
+
/**
|
|
3637
|
+
* returns the nonce of the Safe contract.
|
|
3638
|
+
*
|
|
3639
|
+
* @returns {Promise<bigint>} A promise that resolves to the nonce of the Safe contract.
|
|
3640
|
+
*/
|
|
3641
|
+
async getNonce() {
|
|
3642
|
+
const [nonce] = await this.nonce();
|
|
3643
|
+
return nonce;
|
|
3644
|
+
}
|
|
3645
|
+
};
|
|
3646
|
+
var SafeContract_v1_5_0_default = SafeContract_v1_5_0;
|
|
3647
|
+
|
|
3244
3648
|
// src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts
|
|
3245
3649
|
var SafeProxyFactoryBaseContract = class extends BaseContract_default {
|
|
3246
3650
|
/**
|
|
@@ -3273,7 +3677,7 @@ var SafeProxyFactoryBaseContract = class extends BaseContract_default {
|
|
|
3273
3677
|
var SafeProxyFactoryBaseContract_default = SafeProxyFactoryBaseContract;
|
|
3274
3678
|
|
|
3275
3679
|
// src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts
|
|
3276
|
-
var
|
|
3680
|
+
var import_types_kit21 = require("@safe-global/types-kit");
|
|
3277
3681
|
var SafeProxyFactoryContract_v1_0_0 = class extends SafeProxyFactoryBaseContract_default {
|
|
3278
3682
|
/**
|
|
3279
3683
|
* Constructs an instance of SafeProxyFactoryContract_v1_0_0
|
|
@@ -3286,7 +3690,7 @@ var SafeProxyFactoryContract_v1_0_0 = class extends SafeProxyFactoryBaseContract
|
|
|
3286
3690
|
*/
|
|
3287
3691
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3288
3692
|
const safeVersion = "1.0.0";
|
|
3289
|
-
const defaultAbi =
|
|
3693
|
+
const defaultAbi = import_types_kit21.safeProxyFactory_1_0_0_ContractArtifacts.abi;
|
|
3290
3694
|
super(
|
|
3291
3695
|
chainId,
|
|
3292
3696
|
safeProvider,
|
|
@@ -3331,7 +3735,7 @@ var SafeProxyFactoryContract_v1_0_0 = class extends SafeProxyFactoryBaseContract
|
|
|
3331
3735
|
var SafeProxyFactoryContract_v1_0_0_default = SafeProxyFactoryContract_v1_0_0;
|
|
3332
3736
|
|
|
3333
3737
|
// src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts
|
|
3334
|
-
var
|
|
3738
|
+
var import_types_kit22 = require("@safe-global/types-kit");
|
|
3335
3739
|
var SafeProxyFactoryContract_v1_1_1 = class extends SafeProxyFactoryBaseContract_default {
|
|
3336
3740
|
/**
|
|
3337
3741
|
* Constructs an instance of SafeProxyFactoryContract_v1_1_1
|
|
@@ -3344,7 +3748,7 @@ var SafeProxyFactoryContract_v1_1_1 = class extends SafeProxyFactoryBaseContract
|
|
|
3344
3748
|
*/
|
|
3345
3749
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3346
3750
|
const safeVersion = "1.1.1";
|
|
3347
|
-
const defaultAbi =
|
|
3751
|
+
const defaultAbi = import_types_kit22.safeProxyFactory_1_1_1_ContractArtifacts.abi;
|
|
3348
3752
|
super(
|
|
3349
3753
|
chainId,
|
|
3350
3754
|
safeProvider,
|
|
@@ -3405,7 +3809,7 @@ var SafeProxyFactoryContract_v1_1_1 = class extends SafeProxyFactoryBaseContract
|
|
|
3405
3809
|
var SafeProxyFactoryContract_v1_1_1_default = SafeProxyFactoryContract_v1_1_1;
|
|
3406
3810
|
|
|
3407
3811
|
// src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts
|
|
3408
|
-
var
|
|
3812
|
+
var import_types_kit23 = require("@safe-global/types-kit");
|
|
3409
3813
|
var SafeProxyFactoryContract_v1_3_0 = class extends SafeProxyFactoryBaseContract_default {
|
|
3410
3814
|
/**
|
|
3411
3815
|
* Constructs an instance of SafeProxyFactoryContract_v1_3_0
|
|
@@ -3418,7 +3822,7 @@ var SafeProxyFactoryContract_v1_3_0 = class extends SafeProxyFactoryBaseContract
|
|
|
3418
3822
|
*/
|
|
3419
3823
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3420
3824
|
const safeVersion = "1.3.0";
|
|
3421
|
-
const defaultAbi =
|
|
3825
|
+
const defaultAbi = import_types_kit23.safeProxyFactory_1_3_0_ContractArtifacts.abi;
|
|
3422
3826
|
super(
|
|
3423
3827
|
chainId,
|
|
3424
3828
|
safeProvider,
|
|
@@ -3479,7 +3883,7 @@ var SafeProxyFactoryContract_v1_3_0 = class extends SafeProxyFactoryBaseContract
|
|
|
3479
3883
|
var SafeProxyFactoryContract_v1_3_0_default = SafeProxyFactoryContract_v1_3_0;
|
|
3480
3884
|
|
|
3481
3885
|
// src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts
|
|
3482
|
-
var
|
|
3886
|
+
var import_types_kit24 = require("@safe-global/types-kit");
|
|
3483
3887
|
var SafeProxyFactoryContract_v1_4_1 = class extends SafeProxyFactoryBaseContract_default {
|
|
3484
3888
|
/**
|
|
3485
3889
|
* Constructs an instance of SafeProxyFactoryContract_v1_4_1
|
|
@@ -3492,7 +3896,7 @@ var SafeProxyFactoryContract_v1_4_1 = class extends SafeProxyFactoryBaseContract
|
|
|
3492
3896
|
*/
|
|
3493
3897
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3494
3898
|
const safeVersion = "1.4.1";
|
|
3495
|
-
const defaultAbi =
|
|
3899
|
+
const defaultAbi = import_types_kit24.safeProxyFactory_1_4_1_ContractArtifacts.abi;
|
|
3496
3900
|
super(
|
|
3497
3901
|
chainId,
|
|
3498
3902
|
safeProvider,
|
|
@@ -3545,11 +3949,88 @@ var SafeProxyFactoryContract_v1_4_1 = class extends SafeProxyFactoryBaseContract
|
|
|
3545
3949
|
};
|
|
3546
3950
|
var SafeProxyFactoryContract_v1_4_1_default = SafeProxyFactoryContract_v1_4_1;
|
|
3547
3951
|
|
|
3952
|
+
// src/contracts/SafeProxyFactory/v1.5.0/SafeProxyFactoryContract_v1_5_0.ts
|
|
3953
|
+
var import_types_kit25 = require("@safe-global/types-kit");
|
|
3954
|
+
var SafeProxyFactoryContract_v1_5_0 = class extends SafeProxyFactoryBaseContract_default {
|
|
3955
|
+
/**
|
|
3956
|
+
* Constructs an instance of SafeProxyFactoryContract_v1_5_0
|
|
3957
|
+
*
|
|
3958
|
+
* @param chainId - The chain ID where the contract resides.
|
|
3959
|
+
* @param safeProvider - An instance of SafeProvider.
|
|
3960
|
+
* @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
|
|
3961
|
+
* @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.5.0 is used.
|
|
3962
|
+
* @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
|
|
3963
|
+
*/
|
|
3964
|
+
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3965
|
+
const safeVersion = "1.5.0";
|
|
3966
|
+
const defaultAbi = import_types_kit25.safeProxyFactory_1_5_0_ContractArtifacts.abi;
|
|
3967
|
+
super(
|
|
3968
|
+
chainId,
|
|
3969
|
+
safeProvider,
|
|
3970
|
+
defaultAbi,
|
|
3971
|
+
safeVersion,
|
|
3972
|
+
customContractAddress,
|
|
3973
|
+
customContractAbi,
|
|
3974
|
+
deploymentType
|
|
3975
|
+
);
|
|
3976
|
+
/**
|
|
3977
|
+
* Returns the ID of the chain the contract is currently deployed on.
|
|
3978
|
+
* @returns Array[chainId]
|
|
3979
|
+
*/
|
|
3980
|
+
this.getChainId = async () => {
|
|
3981
|
+
return [await this.read("getChainId")];
|
|
3982
|
+
};
|
|
3983
|
+
/**
|
|
3984
|
+
* Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
|
|
3985
|
+
* @returns Array[creationCode]
|
|
3986
|
+
*/
|
|
3987
|
+
this.proxyCreationCode = async () => {
|
|
3988
|
+
return [await this.read("proxyCreationCode")];
|
|
3989
|
+
};
|
|
3990
|
+
/**
|
|
3991
|
+
* Deploys a new chain-specific proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
|
|
3992
|
+
* @param args - Array[singleton, initializer, saltNonce]
|
|
3993
|
+
* @returns Array[proxy]
|
|
3994
|
+
*/
|
|
3995
|
+
this.createChainSpecificProxyWithNonce = async (args) => {
|
|
3996
|
+
return [await this.write("createChainSpecificProxyWithNonce", args)];
|
|
3997
|
+
};
|
|
3998
|
+
/**
|
|
3999
|
+
* Deploys a new chain-specific proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
|
|
4000
|
+
* @param args - Array[singleton, initializer, saltNonce]
|
|
4001
|
+
* @returns Array[proxy]
|
|
4002
|
+
*/
|
|
4003
|
+
this.createChainSpecificProxyWithNonceL2 = async (args) => {
|
|
4004
|
+
return [await this.write("createChainSpecificProxyWithNonceL2", args)];
|
|
4005
|
+
};
|
|
4006
|
+
/**
|
|
4007
|
+
* Deploys a new proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
|
|
4008
|
+
* @param args - Array[singleton, initializer, saltNonce]
|
|
4009
|
+
* @returns Array[proxy]
|
|
4010
|
+
*/
|
|
4011
|
+
this.createProxyWithNonce = async (args) => {
|
|
4012
|
+
return [await this.write("createProxyWithNonce", args)];
|
|
4013
|
+
};
|
|
4014
|
+
/**
|
|
4015
|
+
* Deploys a new proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
|
|
4016
|
+
* @param args - Array[singleton, initializer, saltNonce]
|
|
4017
|
+
* @returns Array[proxy]
|
|
4018
|
+
*/
|
|
4019
|
+
this.createProxyWithNonceL2 = async (args) => {
|
|
4020
|
+
return [await this.write("createProxyWithNonceL2", args)];
|
|
4021
|
+
};
|
|
4022
|
+
}
|
|
4023
|
+
};
|
|
4024
|
+
var SafeProxyFactoryContract_v1_5_0_default = SafeProxyFactoryContract_v1_5_0;
|
|
4025
|
+
|
|
3548
4026
|
// src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts
|
|
3549
|
-
var
|
|
4027
|
+
var import_types_kit26 = require("@safe-global/types-kit");
|
|
3550
4028
|
|
|
3551
4029
|
// src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts
|
|
3552
|
-
var
|
|
4030
|
+
var import_types_kit27 = require("@safe-global/types-kit");
|
|
4031
|
+
|
|
4032
|
+
// src/contracts/SimulateTxAccessor/v1.5.0/SimulateTxAccessorContract_v1_5_0.ts
|
|
4033
|
+
var import_types_kit28 = require("@safe-global/types-kit");
|
|
3553
4034
|
|
|
3554
4035
|
// src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts
|
|
3555
4036
|
var CompatibilityFallbackHandlerBaseContract = class extends BaseContract_default {
|
|
@@ -3583,7 +4064,7 @@ var CompatibilityFallbackHandlerBaseContract = class extends BaseContract_defaul
|
|
|
3583
4064
|
var CompatibilityFallbackHandlerBaseContract_default = CompatibilityFallbackHandlerBaseContract;
|
|
3584
4065
|
|
|
3585
4066
|
// src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts
|
|
3586
|
-
var
|
|
4067
|
+
var import_types_kit29 = require("@safe-global/types-kit");
|
|
3587
4068
|
var CompatibilityFallbackHandlerContract_v1_3_0 = class extends CompatibilityFallbackHandlerBaseContract_default {
|
|
3588
4069
|
/**
|
|
3589
4070
|
* Constructs an instance of CompatibilityFallbackHandlerContract_v1_3_0
|
|
@@ -3596,7 +4077,7 @@ var CompatibilityFallbackHandlerContract_v1_3_0 = class extends CompatibilityFal
|
|
|
3596
4077
|
*/
|
|
3597
4078
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3598
4079
|
const safeVersion = "1.3.0";
|
|
3599
|
-
const defaultAbi =
|
|
4080
|
+
const defaultAbi = import_types_kit29.compatibilityFallbackHandler_1_3_0_ContractArtifacts.abi;
|
|
3600
4081
|
super(
|
|
3601
4082
|
chainId,
|
|
3602
4083
|
safeProvider,
|
|
@@ -3611,7 +4092,7 @@ var CompatibilityFallbackHandlerContract_v1_3_0 = class extends CompatibilityFal
|
|
|
3611
4092
|
var CompatibilityFallbackHandlerContract_v1_3_0_default = CompatibilityFallbackHandlerContract_v1_3_0;
|
|
3612
4093
|
|
|
3613
4094
|
// src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts
|
|
3614
|
-
var
|
|
4095
|
+
var import_types_kit30 = require("@safe-global/types-kit");
|
|
3615
4096
|
var CompatibilityFallbackHandlerContract_v1_4_1 = class extends CompatibilityFallbackHandlerBaseContract_default {
|
|
3616
4097
|
/**
|
|
3617
4098
|
* Constructs an instance of CompatibilityFallbackHandlerContract_v1_4_1
|
|
@@ -3624,7 +4105,7 @@ var CompatibilityFallbackHandlerContract_v1_4_1 = class extends CompatibilityFal
|
|
|
3624
4105
|
*/
|
|
3625
4106
|
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
3626
4107
|
const safeVersion = "1.4.1";
|
|
3627
|
-
const defaultAbi =
|
|
4108
|
+
const defaultAbi = import_types_kit30.compatibilityFallbackHandler_1_4_1_ContractArtifacts.abi;
|
|
3628
4109
|
super(
|
|
3629
4110
|
chainId,
|
|
3630
4111
|
safeProvider,
|
|
@@ -3638,6 +4119,46 @@ var CompatibilityFallbackHandlerContract_v1_4_1 = class extends CompatibilityFal
|
|
|
3638
4119
|
};
|
|
3639
4120
|
var CompatibilityFallbackHandlerContract_v1_4_1_default = CompatibilityFallbackHandlerContract_v1_4_1;
|
|
3640
4121
|
|
|
4122
|
+
// src/contracts/CompatibilityFallbackHandler/v1.5.0/CompatibilityFallbackHandlerContract_v1_5_0.ts
|
|
4123
|
+
var import_types_kit31 = require("@safe-global/types-kit");
|
|
4124
|
+
var CompatibilityFallbackHandlerContract_v1_5_0 = class extends CompatibilityFallbackHandlerBaseContract_default {
|
|
4125
|
+
/**
|
|
4126
|
+
* Constructs an instance of CompatibilityFallbackHandlerContract_v1_5_0
|
|
4127
|
+
*
|
|
4128
|
+
* @param chainId - The chain ID where the contract resides.
|
|
4129
|
+
* @param safeProvider - An instance of SafeProvider.
|
|
4130
|
+
* @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the CompatibilityFallbackHandler deployments based on the chainId and safeVersion.
|
|
4131
|
+
* @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.5.0 is used.
|
|
4132
|
+
* @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
|
|
4133
|
+
*/
|
|
4134
|
+
constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
|
|
4135
|
+
const safeVersion = "1.5.0";
|
|
4136
|
+
const defaultAbi = import_types_kit31.compatibilityFallbackHandler_1_5_0_ContractArtifacts.abi;
|
|
4137
|
+
super(
|
|
4138
|
+
chainId,
|
|
4139
|
+
safeProvider,
|
|
4140
|
+
defaultAbi,
|
|
4141
|
+
safeVersion,
|
|
4142
|
+
customContractAddress,
|
|
4143
|
+
customContractAbi,
|
|
4144
|
+
deploymentType
|
|
4145
|
+
);
|
|
4146
|
+
/**
|
|
4147
|
+
* New in v1.5.0: encodeTransactionData was moved from the Safe contract to CompatibilityFallbackHandler
|
|
4148
|
+
* to preserve backwards compatibility for existing integrations.
|
|
4149
|
+
* @param args - Array[to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, nonce]
|
|
4150
|
+
* @returns Array[encodedData]
|
|
4151
|
+
*/
|
|
4152
|
+
this.encodeTransactionData = async (args) => {
|
|
4153
|
+
return [await this.read("encodeTransactionData", args)];
|
|
4154
|
+
};
|
|
4155
|
+
}
|
|
4156
|
+
};
|
|
4157
|
+
var CompatibilityFallbackHandlerContract_v1_5_0_default = CompatibilityFallbackHandlerContract_v1_5_0;
|
|
4158
|
+
|
|
4159
|
+
// src/contracts/ExtensibleFallbackHandler/v1.5.0/ExtensibleFallbackHandlerContract_v1_5_0.ts
|
|
4160
|
+
var import_types_kit32 = require("@safe-global/types-kit");
|
|
4161
|
+
|
|
3641
4162
|
// src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts
|
|
3642
4163
|
var SafeWebAuthnSignerFactoryBaseContract = class extends BaseContract_default {
|
|
3643
4164
|
/**
|
|
@@ -3670,7 +4191,7 @@ var SafeWebAuthnSignerFactoryBaseContract = class extends BaseContract_default {
|
|
|
3670
4191
|
var SafeWebAuthnSignerFactoryBaseContract_default = SafeWebAuthnSignerFactoryBaseContract;
|
|
3671
4192
|
|
|
3672
4193
|
// src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts
|
|
3673
|
-
var
|
|
4194
|
+
var import_types_kit33 = require("@safe-global/types-kit");
|
|
3674
4195
|
var SafeWebAuthnSignerFactoryContract_v0_2_1 = class extends SafeWebAuthnSignerFactoryBaseContract_default {
|
|
3675
4196
|
/**
|
|
3676
4197
|
* Constructs an instance of SafeWebAuthnSignerFactoryContract_v0_2_1
|
|
@@ -3683,7 +4204,7 @@ var SafeWebAuthnSignerFactoryContract_v0_2_1 = class extends SafeWebAuthnSignerF
|
|
|
3683
4204
|
* @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
|
|
3684
4205
|
*/
|
|
3685
4206
|
constructor(chainId, safeProvider, safeVersion, customContractAddress, customContractAbi, deploymentType) {
|
|
3686
|
-
const defaultAbi =
|
|
4207
|
+
const defaultAbi = import_types_kit33.SafeWebAuthnSignerFactory_0_2_1_ContractArtifacts.abi;
|
|
3687
4208
|
super(
|
|
3688
4209
|
chainId,
|
|
3689
4210
|
safeProvider,
|
|
@@ -3748,7 +4269,7 @@ var SafeWebAuthnSharedSignerBaseContract = class extends BaseContract_default {
|
|
|
3748
4269
|
var SafeWebAuthnSharedSignerBaseContract_default = SafeWebAuthnSharedSignerBaseContract;
|
|
3749
4270
|
|
|
3750
4271
|
// src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts
|
|
3751
|
-
var
|
|
4272
|
+
var import_types_kit34 = require("@safe-global/types-kit");
|
|
3752
4273
|
var SafeWebAuthnSharedSignerContract_v0_2_1 = class extends SafeWebAuthnSharedSignerBaseContract_default {
|
|
3753
4274
|
/**
|
|
3754
4275
|
* Constructs an instance of SafeWebAuthnSharedSignerContract_v0_2_1
|
|
@@ -3761,7 +4282,7 @@ var SafeWebAuthnSharedSignerContract_v0_2_1 = class extends SafeWebAuthnSharedSi
|
|
|
3761
4282
|
* @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
|
|
3762
4283
|
*/
|
|
3763
4284
|
constructor(chainId, safeProvider, safeVersion, customContractAddress, customContractAbi, deploymentType) {
|
|
3764
|
-
const defaultAbi =
|
|
4285
|
+
const defaultAbi = import_types_kit34.SafeWebAuthnSharedSigner_0_2_1_ContractArtifacts.abi;
|
|
3765
4286
|
super(
|
|
3766
4287
|
chainId,
|
|
3767
4288
|
safeProvider,
|
|
@@ -3806,6 +4327,16 @@ async function getSafeContractInstance(safeVersion, safeProvider, contractAddres
|
|
|
3806
4327
|
const chainId = await safeProvider.getChainId();
|
|
3807
4328
|
let safeContractInstance;
|
|
3808
4329
|
switch (safeVersion) {
|
|
4330
|
+
case "1.5.0":
|
|
4331
|
+
safeContractInstance = new SafeContract_v1_5_0_default(
|
|
4332
|
+
chainId,
|
|
4333
|
+
safeProvider,
|
|
4334
|
+
isL1SafeSingleton,
|
|
4335
|
+
contractAddress,
|
|
4336
|
+
customContractAbi,
|
|
4337
|
+
deploymentType
|
|
4338
|
+
);
|
|
4339
|
+
break;
|
|
3809
4340
|
case "1.4.1":
|
|
3810
4341
|
safeContractInstance = new SafeContract_v1_4_1_default(
|
|
3811
4342
|
chainId,
|
|
@@ -3866,6 +4397,15 @@ async function getCompatibilityFallbackHandlerContractInstance(safeVersion, safe
|
|
|
3866
4397
|
const chainId = await safeProvider.getChainId();
|
|
3867
4398
|
let compatibilityFallbackHandlerInstance;
|
|
3868
4399
|
switch (safeVersion) {
|
|
4400
|
+
case "1.5.0":
|
|
4401
|
+
compatibilityFallbackHandlerInstance = new CompatibilityFallbackHandlerContract_v1_5_0_default(
|
|
4402
|
+
chainId,
|
|
4403
|
+
safeProvider,
|
|
4404
|
+
contractAddress,
|
|
4405
|
+
customContractAbi,
|
|
4406
|
+
deploymentType
|
|
4407
|
+
);
|
|
4408
|
+
break;
|
|
3869
4409
|
case "1.4.1":
|
|
3870
4410
|
compatibilityFallbackHandlerInstance = new CompatibilityFallbackHandlerContract_v1_4_1_default(
|
|
3871
4411
|
chainId,
|
|
@@ -3896,6 +4436,15 @@ async function getSafeProxyFactoryContractInstance(safeVersion, safeProvider, co
|
|
|
3896
4436
|
const chainId = await safeProvider.getChainId();
|
|
3897
4437
|
let safeProxyFactoryContractInstance;
|
|
3898
4438
|
switch (safeVersion) {
|
|
4439
|
+
case "1.5.0":
|
|
4440
|
+
safeProxyFactoryContractInstance = new SafeProxyFactoryContract_v1_5_0_default(
|
|
4441
|
+
chainId,
|
|
4442
|
+
safeProvider,
|
|
4443
|
+
contractAddress,
|
|
4444
|
+
customContractAbi,
|
|
4445
|
+
deploymentType
|
|
4446
|
+
);
|
|
4447
|
+
break;
|
|
3899
4448
|
case "1.4.1":
|
|
3900
4449
|
safeProxyFactoryContractInstance = new SafeProxyFactoryContract_v1_4_1_default(
|
|
3901
4450
|
chainId,
|
|
@@ -3942,6 +4491,7 @@ async function getSafeProxyFactoryContractInstance(safeVersion, safeProvider, co
|
|
|
3942
4491
|
async function getSafeWebAuthnSignerFactoryContractInstance(safeVersion, safeProvider, contractAddress, customContractAbi, deploymentType) {
|
|
3943
4492
|
const chainId = await safeProvider.getChainId();
|
|
3944
4493
|
switch (safeVersion) {
|
|
4494
|
+
case "1.5.0":
|
|
3945
4495
|
case "1.4.1":
|
|
3946
4496
|
case "1.3.0":
|
|
3947
4497
|
const safeWebAuthnSignerFactoryContractInstance = new SafeWebAuthnSignerFactoryContract_v0_2_1_default(
|
|
@@ -3961,6 +4511,7 @@ async function getSafeWebAuthnSignerFactoryContractInstance(safeVersion, safePro
|
|
|
3961
4511
|
async function getSafeWebAuthnSharedSignerContractInstance(safeVersion, safeProvider, contractAddress, customContractAbi, deploymentType) {
|
|
3962
4512
|
const chainId = await safeProvider.getChainId();
|
|
3963
4513
|
switch (safeVersion) {
|
|
4514
|
+
case "1.5.0":
|
|
3964
4515
|
case "1.4.1":
|
|
3965
4516
|
case "1.3.0":
|
|
3966
4517
|
const safeWebAuthnSharedSignerContractInstance = new SafeWebAuthnSharedSignerContract_v0_2_1_default(
|
|
@@ -4092,10 +4643,10 @@ var ECRECOVER_GAS_COST = 6e3;
|
|
|
4092
4643
|
var GAS_COST_PER_SIGNATURE = 1 * CALL_DATA_BYTE_GAS_COST + 2 * 32 * CALL_DATA_BYTE_GAS_COST + ECRECOVER_GAS_COST;
|
|
4093
4644
|
|
|
4094
4645
|
// src/utils/transactions/utils.ts
|
|
4095
|
-
var
|
|
4646
|
+
var import_types_kit36 = require("@safe-global/types-kit");
|
|
4096
4647
|
var import_satisfies6 = __toESM(require("semver/functions/satisfies.js"));
|
|
4097
4648
|
var import_viem13 = require("viem");
|
|
4098
|
-
var
|
|
4649
|
+
var import_actions10 = require("viem/actions");
|
|
4099
4650
|
function toEstimateGasParameters(tx) {
|
|
4100
4651
|
const params = isLegacyTransaction(tx) ? createLegacyTxOptions(tx) : createTxOptions(tx);
|
|
4101
4652
|
if (tx.value) {
|
|
@@ -4213,9 +4764,5 @@ async function createMockPasskey(name, webAuthnCredentials) {
|
|
|
4213
4764
|
const exportedPublicKey = await crypto.subtle.exportKey("spki", key);
|
|
4214
4765
|
const rawId = Buffer.from(passkeyCredential.rawId).toString("hex");
|
|
4215
4766
|
const coordinates = await decodePublicKeyForWeb(exportedPublicKey);
|
|
4216
|
-
|
|
4217
|
-
rawId,
|
|
4218
|
-
coordinates
|
|
4219
|
-
};
|
|
4220
|
-
return passkey;
|
|
4767
|
+
return { rawId, coordinates };
|
|
4221
4768
|
}
|