@ercworldio/blockchain-shared 1.0.5-dev.7-PROJ-1469.2 → 1.0.5-dev.7-PROJ-1469.4

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.
@@ -2529,6 +2529,11 @@ export type Escrow = {
2529
2529
  },
2530
2530
  {
2531
2531
  "name": "initializeTreasuryConfig";
2532
+ "docs": [
2533
+ "One-time allocation of the treasury config PDA. Required before any treasury role",
2534
+ "management — the role instructions require the account to already exist. Takes no",
2535
+ "thresholds: gating is per-token (see set_token_multisig_threshold)."
2536
+ ];
2532
2537
  "discriminator": [
2533
2538
  42,
2534
2539
  221,
@@ -2606,16 +2611,7 @@ export type Escrow = {
2606
2611
  "address": "11111111111111111111111111111111";
2607
2612
  }
2608
2613
  ];
2609
- "args": [
2610
- {
2611
- "name": "managerThreshold";
2612
- "type": "u8";
2613
- },
2614
- {
2615
- "name": "executiveThreshold";
2616
- "type": "u8";
2617
- }
2618
- ];
2614
+ "args": [];
2619
2615
  },
2620
2616
  {
2621
2617
  "name": "isAdminPubkey";
@@ -3437,282 +3433,9 @@ export type Escrow = {
3437
3433
  184,
3438
3434
  234,
3439
3435
  157,
3440
- 232,
3441
- 48,
3442
- 70
3443
- ];
3444
- "accounts": [
3445
- {
3446
- "name": "escrowConfig";
3447
- "pda": {
3448
- "seeds": [
3449
- {
3450
- "kind": "const";
3451
- "value": [
3452
- 101,
3453
- 115,
3454
- 99,
3455
- 114,
3456
- 111,
3457
- 119,
3458
- 45,
3459
- 99,
3460
- 111,
3461
- 110,
3462
- 102,
3463
- 105,
3464
- 103,
3465
- 45,
3466
- 118,
3467
- 50
3468
- ];
3469
- }
3470
- ];
3471
- };
3472
- },
3473
- {
3474
- "name": "treasuryConfig";
3475
- "writable": true;
3476
- "pda": {
3477
- "seeds": [
3478
- {
3479
- "kind": "const";
3480
- "value": [
3481
- 116,
3482
- 114,
3483
- 101,
3484
- 97,
3485
- 115,
3486
- 117,
3487
- 114,
3488
- 121,
3489
- 45,
3490
- 99,
3491
- 111,
3492
- 110,
3493
- 102,
3494
- 105,
3495
- 103
3496
- ];
3497
- }
3498
- ];
3499
- };
3500
- },
3501
- {
3502
- "name": "admin";
3503
- "writable": true;
3504
- "signer": true;
3505
- }
3506
- ];
3507
- "args": [
3508
- {
3509
- "name": "pubkey";
3510
- "type": "pubkey";
3511
- }
3512
- ];
3513
- },
3514
- {
3515
- "name": "scheduleWithdrawalSol";
3516
- "discriminator": [
3517
- 41,
3518
- 253,
3519
- 139,
3520
- 251,
3521
- 39,
3522
- 160,
3523
- 13,
3524
- 135
3525
- ];
3526
- "accounts": [
3527
- {
3528
- "name": "escrowConfig";
3529
- "pda": {
3530
- "seeds": [
3531
- {
3532
- "kind": "const";
3533
- "value": [
3534
- 101,
3535
- 115,
3536
- 99,
3537
- 114,
3538
- 111,
3539
- 119,
3540
- 45,
3541
- 99,
3542
- 111,
3543
- 110,
3544
- 102,
3545
- 105,
3546
- 103,
3547
- 45,
3548
- 118,
3549
- 50
3550
- ];
3551
- }
3552
- ];
3553
- };
3554
- },
3555
- {
3556
- "name": "treasuryConfig";
3557
- "pda": {
3558
- "seeds": [
3559
- {
3560
- "kind": "const";
3561
- "value": [
3562
- 116,
3563
- 114,
3564
- 101,
3565
- 97,
3566
- 115,
3567
- 117,
3568
- 114,
3569
- 121,
3570
- 45,
3571
- 99,
3572
- 111,
3573
- 110,
3574
- 102,
3575
- 105,
3576
- 103
3577
- ];
3578
- }
3579
- ];
3580
- };
3581
- },
3582
- {
3583
- "name": "commitment";
3584
- "writable": true;
3585
- "pda": {
3586
- "seeds": [
3587
- {
3588
- "kind": "const";
3589
- "value": [
3590
- 119,
3591
- 105,
3592
- 116,
3593
- 104,
3594
- 100,
3595
- 114,
3596
- 97,
3597
- 119,
3598
- 97,
3599
- 108
3600
- ];
3601
- },
3602
- {
3603
- "kind": "arg";
3604
- "path": "requestId";
3605
- }
3606
- ];
3607
- };
3608
- },
3609
- {
3610
- "name": "timelockConfig";
3611
- "pda": {
3612
- "seeds": [
3613
- {
3614
- "kind": "const";
3615
- "value": [
3616
- 116,
3617
- 105,
3618
- 109,
3619
- 101,
3620
- 108,
3621
- 111,
3622
- 99,
3623
- 107,
3624
- 45,
3625
- 99,
3626
- 111,
3627
- 110,
3628
- 102,
3629
- 105,
3630
- 103
3631
- ];
3632
- }
3633
- ];
3634
- };
3635
- },
3636
- {
3637
- "name": "receiverTimelockConfig";
3638
- "pda": {
3639
- "seeds": [
3640
- {
3641
- "kind": "const";
3642
- "value": [
3643
- 114,
3644
- 101,
3645
- 99,
3646
- 101,
3647
- 105,
3648
- 118,
3649
- 101,
3650
- 114,
3651
- 45,
3652
- 116,
3653
- 105,
3654
- 109,
3655
- 101,
3656
- 108,
3657
- 111,
3658
- 99,
3659
- 107
3660
- ];
3661
- },
3662
- {
3663
- "kind": "account";
3664
- "path": "recipient";
3665
- }
3666
- ];
3667
- };
3668
- },
3669
- {
3670
- "name": "recipient";
3671
- },
3672
- {
3673
- "name": "caller";
3674
- "writable": true;
3675
- "signer": true;
3676
- },
3677
- {
3678
- "name": "systemProgram";
3679
- "address": "11111111111111111111111111111111";
3680
- },
3681
- {
3682
- "name": "instructions";
3683
- "address": "Sysvar1nstructions1111111111111111111111111";
3684
- }
3685
- ];
3686
- "args": [
3687
- {
3688
- "name": "requestId";
3689
- "type": "u64";
3690
- },
3691
- {
3692
- "name": "committedAmount";
3693
- "type": "u64";
3694
- },
3695
- {
3696
- "name": "netAmount";
3697
- "type": "u64";
3698
- },
3699
- {
3700
- "name": "chainId";
3701
- "type": "u64";
3702
- }
3703
- ];
3704
- },
3705
- {
3706
- "name": "scheduleWithdrawalSpl";
3707
- "discriminator": [
3708
- 95,
3709
- 68,
3710
- 202,
3711
- 149,
3712
- 66,
3713
- 113,
3714
- 28,
3715
- 201
3436
+ 232,
3437
+ 48,
3438
+ 70
3716
3439
  ];
3717
3440
  "accounts": [
3718
3441
  {
@@ -3745,6 +3468,7 @@ export type Escrow = {
3745
3468
  },
3746
3469
  {
3747
3470
  "name": "treasuryConfig";
3471
+ "writable": true;
3748
3472
  "pda": {
3749
3473
  "seeds": [
3750
3474
  {
@@ -3771,131 +3495,15 @@ export type Escrow = {
3771
3495
  };
3772
3496
  },
3773
3497
  {
3774
- "name": "commitment";
3775
- "writable": true;
3776
- "pda": {
3777
- "seeds": [
3778
- {
3779
- "kind": "const";
3780
- "value": [
3781
- 119,
3782
- 105,
3783
- 116,
3784
- 104,
3785
- 100,
3786
- 114,
3787
- 97,
3788
- 119,
3789
- 97,
3790
- 108
3791
- ];
3792
- },
3793
- {
3794
- "kind": "arg";
3795
- "path": "requestId";
3796
- }
3797
- ];
3798
- };
3799
- },
3800
- {
3801
- "name": "timelockConfig";
3802
- "pda": {
3803
- "seeds": [
3804
- {
3805
- "kind": "const";
3806
- "value": [
3807
- 116,
3808
- 105,
3809
- 109,
3810
- 101,
3811
- 108,
3812
- 111,
3813
- 99,
3814
- 107,
3815
- 45,
3816
- 99,
3817
- 111,
3818
- 110,
3819
- 102,
3820
- 105,
3821
- 103
3822
- ];
3823
- }
3824
- ];
3825
- };
3826
- },
3827
- {
3828
- "name": "receiverTimelockConfig";
3829
- "pda": {
3830
- "seeds": [
3831
- {
3832
- "kind": "const";
3833
- "value": [
3834
- 114,
3835
- 101,
3836
- 99,
3837
- 101,
3838
- 105,
3839
- 118,
3840
- 101,
3841
- 114,
3842
- 45,
3843
- 116,
3844
- 105,
3845
- 109,
3846
- 101,
3847
- 108,
3848
- 111,
3849
- 99,
3850
- 107
3851
- ];
3852
- },
3853
- {
3854
- "kind": "account";
3855
- "path": "recipient";
3856
- }
3857
- ];
3858
- };
3859
- },
3860
- {
3861
- "name": "mint";
3862
- "docs": [
3863
- "The SPL token mint — determines which token is being withdrawn"
3864
- ];
3865
- },
3866
- {
3867
- "name": "recipient";
3868
- },
3869
- {
3870
- "name": "caller";
3498
+ "name": "admin";
3871
3499
  "writable": true;
3872
3500
  "signer": true;
3873
- },
3874
- {
3875
- "name": "systemProgram";
3876
- "address": "11111111111111111111111111111111";
3877
- },
3878
- {
3879
- "name": "instructions";
3880
- "address": "Sysvar1nstructions1111111111111111111111111";
3881
3501
  }
3882
3502
  ];
3883
3503
  "args": [
3884
3504
  {
3885
- "name": "requestId";
3886
- "type": "u64";
3887
- },
3888
- {
3889
- "name": "committedAmount";
3890
- "type": "u64";
3891
- },
3892
- {
3893
- "name": "netAmount";
3894
- "type": "u64";
3895
- },
3896
- {
3897
- "name": "chainId";
3898
- "type": "u64";
3505
+ "name": "pubkey";
3506
+ "type": "pubkey";
3899
3507
  }
3900
3508
  ];
3901
3509
  },
@@ -4538,92 +4146,6 @@ export type Escrow = {
4538
4146
  }
4539
4147
  ];
4540
4148
  },
4541
- {
4542
- "name": "setWithdrawalThresholds";
4543
- "discriminator": [
4544
- 210,
4545
- 174,
4546
- 130,
4547
- 94,
4548
- 94,
4549
- 180,
4550
- 181,
4551
- 165
4552
- ];
4553
- "accounts": [
4554
- {
4555
- "name": "escrowConfig";
4556
- "pda": {
4557
- "seeds": [
4558
- {
4559
- "kind": "const";
4560
- "value": [
4561
- 101,
4562
- 115,
4563
- 99,
4564
- 114,
4565
- 111,
4566
- 119,
4567
- 45,
4568
- 99,
4569
- 111,
4570
- 110,
4571
- 102,
4572
- 105,
4573
- 103,
4574
- 45,
4575
- 118,
4576
- 50
4577
- ];
4578
- }
4579
- ];
4580
- };
4581
- },
4582
- {
4583
- "name": "treasuryConfig";
4584
- "writable": true;
4585
- "pda": {
4586
- "seeds": [
4587
- {
4588
- "kind": "const";
4589
- "value": [
4590
- 116,
4591
- 114,
4592
- 101,
4593
- 97,
4594
- 115,
4595
- 117,
4596
- 114,
4597
- 121,
4598
- 45,
4599
- 99,
4600
- 111,
4601
- 110,
4602
- 102,
4603
- 105,
4604
- 103
4605
- ];
4606
- }
4607
- ];
4608
- };
4609
- },
4610
- {
4611
- "name": "admin";
4612
- "writable": true;
4613
- "signer": true;
4614
- }
4615
- ];
4616
- "args": [
4617
- {
4618
- "name": "managerThreshold";
4619
- "type": "u8";
4620
- },
4621
- {
4622
- "name": "executiveThreshold";
4623
- "type": "u8";
4624
- }
4625
- ];
4626
- },
4627
4149
  {
4628
4150
  "name": "withdrawSolWithSig";
4629
4151
  "discriminator": [
@@ -5725,19 +5247,6 @@ export type Escrow = {
5725
5247
  247,
5726
5248
  68
5727
5249
  ];
5728
- },
5729
- {
5730
- "name": "withdrawalThresholdsConfiguredEvent";
5731
- "discriminator": [
5732
- 233,
5733
- 231,
5734
- 110,
5735
- 102,
5736
- 162,
5737
- 86,
5738
- 78,
5739
- 118
5740
- ];
5741
5250
  }
5742
5251
  ];
5743
5252
  "errors": [
@@ -6470,6 +5979,12 @@ export type Escrow = {
6470
5979
  },
6471
5980
  {
6472
5981
  "name": "treasuryConfig";
5982
+ "docs": [
5983
+ "Treasury roster + fee cap.",
5984
+ "",
5985
+ "Holds *who* may sign withdrawals; *how many* signatures are required is decided per token by",
5986
+ "TokenThresholdConfig (amount-banded), not here."
5987
+ ];
6473
5988
  "type": {
6474
5989
  "kind": "struct";
6475
5990
  "fields": [
@@ -6485,14 +6000,6 @@ export type Escrow = {
6485
6000
  "vec": "pubkey";
6486
6001
  };
6487
6002
  },
6488
- {
6489
- "name": "managerThreshold";
6490
- "type": "u8";
6491
- },
6492
- {
6493
- "name": "executiveThreshold";
6494
- "type": "u8";
6495
- },
6496
6003
  {
6497
6004
  "name": "maxFeeDelta";
6498
6005
  "docs": [
@@ -6510,19 +6017,13 @@ export type Escrow = {
6510
6017
  {
6511
6018
  "name": "treasuryConfigInitializedEvent";
6512
6019
  "docs": [
6513
- "Emitted when the treasury config is first initialized."
6020
+ "Emitted when the treasury config PDA is first allocated. Thresholds are not part of this",
6021
+ "event: withdrawal gating is decided by the per-token bands (see ConfigureTokenMultisig),",
6022
+ "not by any value set at init time."
6514
6023
  ];
6515
6024
  "type": {
6516
6025
  "kind": "struct";
6517
6026
  "fields": [
6518
- {
6519
- "name": "managerThreshold";
6520
- "type": "u8";
6521
- },
6522
- {
6523
- "name": "executiveThreshold";
6524
- "type": "u8";
6525
- },
6526
6027
  {
6527
6028
  "name": "sender";
6528
6029
  "type": "pubkey";
@@ -6768,37 +6269,6 @@ export type Escrow = {
6768
6269
  }
6769
6270
  ];
6770
6271
  };
6771
- },
6772
- {
6773
- "name": "withdrawalThresholdsConfiguredEvent";
6774
- "docs": [
6775
- "Emitted when the manager/executive withdrawal thresholds are updated."
6776
- ];
6777
- "type": {
6778
- "kind": "struct";
6779
- "fields": [
6780
- {
6781
- "name": "managerThreshold";
6782
- "type": "u8";
6783
- },
6784
- {
6785
- "name": "executiveThreshold";
6786
- "type": "u8";
6787
- },
6788
- {
6789
- "name": "sender";
6790
- "type": "pubkey";
6791
- },
6792
- {
6793
- "name": "slot";
6794
- "type": "u64";
6795
- },
6796
- {
6797
- "name": "timestamp";
6798
- "type": "i64";
6799
- }
6800
- ];
6801
- };
6802
6272
  }
6803
6273
  ];
6804
6274
  };