@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.
@@ -2523,6 +2523,11 @@
2523
2523
  },
2524
2524
  {
2525
2525
  "name": "initialize_treasury_config",
2526
+ "docs": [
2527
+ "One-time allocation of the treasury config PDA. Required before any treasury role",
2528
+ "management — the role instructions require the account to already exist. Takes no",
2529
+ "thresholds: gating is per-token (see set_token_multisig_threshold)."
2530
+ ],
2526
2531
  "discriminator": [
2527
2532
  42,
2528
2533
  221,
@@ -2600,16 +2605,7 @@
2600
2605
  "address": "11111111111111111111111111111111"
2601
2606
  }
2602
2607
  ],
2603
- "args": [
2604
- {
2605
- "name": "manager_threshold",
2606
- "type": "u8"
2607
- },
2608
- {
2609
- "name": "executive_threshold",
2610
- "type": "u8"
2611
- }
2612
- ]
2608
+ "args": []
2613
2609
  },
2614
2610
  {
2615
2611
  "name": "is_admin_pubkey",
@@ -3430,283 +3426,10 @@
3430
3426
  21,
3431
3427
  184,
3432
3428
  234,
3433
- 157,
3434
- 232,
3435
- 48,
3436
- 70
3437
- ],
3438
- "accounts": [
3439
- {
3440
- "name": "escrow_config",
3441
- "pda": {
3442
- "seeds": [
3443
- {
3444
- "kind": "const",
3445
- "value": [
3446
- 101,
3447
- 115,
3448
- 99,
3449
- 114,
3450
- 111,
3451
- 119,
3452
- 45,
3453
- 99,
3454
- 111,
3455
- 110,
3456
- 102,
3457
- 105,
3458
- 103,
3459
- 45,
3460
- 118,
3461
- 50
3462
- ]
3463
- }
3464
- ]
3465
- }
3466
- },
3467
- {
3468
- "name": "treasury_config",
3469
- "writable": true,
3470
- "pda": {
3471
- "seeds": [
3472
- {
3473
- "kind": "const",
3474
- "value": [
3475
- 116,
3476
- 114,
3477
- 101,
3478
- 97,
3479
- 115,
3480
- 117,
3481
- 114,
3482
- 121,
3483
- 45,
3484
- 99,
3485
- 111,
3486
- 110,
3487
- 102,
3488
- 105,
3489
- 103
3490
- ]
3491
- }
3492
- ]
3493
- }
3494
- },
3495
- {
3496
- "name": "admin",
3497
- "writable": true,
3498
- "signer": true
3499
- }
3500
- ],
3501
- "args": [
3502
- {
3503
- "name": "pubkey",
3504
- "type": "pubkey"
3505
- }
3506
- ]
3507
- },
3508
- {
3509
- "name": "schedule_withdrawal_sol",
3510
- "discriminator": [
3511
- 41,
3512
- 253,
3513
- 139,
3514
- 251,
3515
- 39,
3516
- 160,
3517
- 13,
3518
- 135
3519
- ],
3520
- "accounts": [
3521
- {
3522
- "name": "escrow_config",
3523
- "pda": {
3524
- "seeds": [
3525
- {
3526
- "kind": "const",
3527
- "value": [
3528
- 101,
3529
- 115,
3530
- 99,
3531
- 114,
3532
- 111,
3533
- 119,
3534
- 45,
3535
- 99,
3536
- 111,
3537
- 110,
3538
- 102,
3539
- 105,
3540
- 103,
3541
- 45,
3542
- 118,
3543
- 50
3544
- ]
3545
- }
3546
- ]
3547
- }
3548
- },
3549
- {
3550
- "name": "treasury_config",
3551
- "pda": {
3552
- "seeds": [
3553
- {
3554
- "kind": "const",
3555
- "value": [
3556
- 116,
3557
- 114,
3558
- 101,
3559
- 97,
3560
- 115,
3561
- 117,
3562
- 114,
3563
- 121,
3564
- 45,
3565
- 99,
3566
- 111,
3567
- 110,
3568
- 102,
3569
- 105,
3570
- 103
3571
- ]
3572
- }
3573
- ]
3574
- }
3575
- },
3576
- {
3577
- "name": "commitment",
3578
- "writable": true,
3579
- "pda": {
3580
- "seeds": [
3581
- {
3582
- "kind": "const",
3583
- "value": [
3584
- 119,
3585
- 105,
3586
- 116,
3587
- 104,
3588
- 100,
3589
- 114,
3590
- 97,
3591
- 119,
3592
- 97,
3593
- 108
3594
- ]
3595
- },
3596
- {
3597
- "kind": "arg",
3598
- "path": "request_id"
3599
- }
3600
- ]
3601
- }
3602
- },
3603
- {
3604
- "name": "timelock_config",
3605
- "pda": {
3606
- "seeds": [
3607
- {
3608
- "kind": "const",
3609
- "value": [
3610
- 116,
3611
- 105,
3612
- 109,
3613
- 101,
3614
- 108,
3615
- 111,
3616
- 99,
3617
- 107,
3618
- 45,
3619
- 99,
3620
- 111,
3621
- 110,
3622
- 102,
3623
- 105,
3624
- 103
3625
- ]
3626
- }
3627
- ]
3628
- }
3629
- },
3630
- {
3631
- "name": "receiver_timelock_config",
3632
- "pda": {
3633
- "seeds": [
3634
- {
3635
- "kind": "const",
3636
- "value": [
3637
- 114,
3638
- 101,
3639
- 99,
3640
- 101,
3641
- 105,
3642
- 118,
3643
- 101,
3644
- 114,
3645
- 45,
3646
- 116,
3647
- 105,
3648
- 109,
3649
- 101,
3650
- 108,
3651
- 111,
3652
- 99,
3653
- 107
3654
- ]
3655
- },
3656
- {
3657
- "kind": "account",
3658
- "path": "recipient"
3659
- }
3660
- ]
3661
- }
3662
- },
3663
- {
3664
- "name": "recipient"
3665
- },
3666
- {
3667
- "name": "caller",
3668
- "writable": true,
3669
- "signer": true
3670
- },
3671
- {
3672
- "name": "system_program",
3673
- "address": "11111111111111111111111111111111"
3674
- },
3675
- {
3676
- "name": "instructions",
3677
- "address": "Sysvar1nstructions1111111111111111111111111"
3678
- }
3679
- ],
3680
- "args": [
3681
- {
3682
- "name": "request_id",
3683
- "type": "u64"
3684
- },
3685
- {
3686
- "name": "committed_amount",
3687
- "type": "u64"
3688
- },
3689
- {
3690
- "name": "net_amount",
3691
- "type": "u64"
3692
- },
3693
- {
3694
- "name": "chain_id",
3695
- "type": "u64"
3696
- }
3697
- ]
3698
- },
3699
- {
3700
- "name": "schedule_withdrawal_spl",
3701
- "discriminator": [
3702
- 95,
3703
- 68,
3704
- 202,
3705
- 149,
3706
- 66,
3707
- 113,
3708
- 28,
3709
- 201
3429
+ 157,
3430
+ 232,
3431
+ 48,
3432
+ 70
3710
3433
  ],
3711
3434
  "accounts": [
3712
3435
  {
@@ -3739,6 +3462,7 @@
3739
3462
  },
3740
3463
  {
3741
3464
  "name": "treasury_config",
3465
+ "writable": true,
3742
3466
  "pda": {
3743
3467
  "seeds": [
3744
3468
  {
@@ -3765,131 +3489,15 @@
3765
3489
  }
3766
3490
  },
3767
3491
  {
3768
- "name": "commitment",
3769
- "writable": true,
3770
- "pda": {
3771
- "seeds": [
3772
- {
3773
- "kind": "const",
3774
- "value": [
3775
- 119,
3776
- 105,
3777
- 116,
3778
- 104,
3779
- 100,
3780
- 114,
3781
- 97,
3782
- 119,
3783
- 97,
3784
- 108
3785
- ]
3786
- },
3787
- {
3788
- "kind": "arg",
3789
- "path": "request_id"
3790
- }
3791
- ]
3792
- }
3793
- },
3794
- {
3795
- "name": "timelock_config",
3796
- "pda": {
3797
- "seeds": [
3798
- {
3799
- "kind": "const",
3800
- "value": [
3801
- 116,
3802
- 105,
3803
- 109,
3804
- 101,
3805
- 108,
3806
- 111,
3807
- 99,
3808
- 107,
3809
- 45,
3810
- 99,
3811
- 111,
3812
- 110,
3813
- 102,
3814
- 105,
3815
- 103
3816
- ]
3817
- }
3818
- ]
3819
- }
3820
- },
3821
- {
3822
- "name": "receiver_timelock_config",
3823
- "pda": {
3824
- "seeds": [
3825
- {
3826
- "kind": "const",
3827
- "value": [
3828
- 114,
3829
- 101,
3830
- 99,
3831
- 101,
3832
- 105,
3833
- 118,
3834
- 101,
3835
- 114,
3836
- 45,
3837
- 116,
3838
- 105,
3839
- 109,
3840
- 101,
3841
- 108,
3842
- 111,
3843
- 99,
3844
- 107
3845
- ]
3846
- },
3847
- {
3848
- "kind": "account",
3849
- "path": "recipient"
3850
- }
3851
- ]
3852
- }
3853
- },
3854
- {
3855
- "name": "mint",
3856
- "docs": [
3857
- "The SPL token mint — determines which token is being withdrawn"
3858
- ]
3859
- },
3860
- {
3861
- "name": "recipient"
3862
- },
3863
- {
3864
- "name": "caller",
3492
+ "name": "admin",
3865
3493
  "writable": true,
3866
3494
  "signer": true
3867
- },
3868
- {
3869
- "name": "system_program",
3870
- "address": "11111111111111111111111111111111"
3871
- },
3872
- {
3873
- "name": "instructions",
3874
- "address": "Sysvar1nstructions1111111111111111111111111"
3875
3495
  }
3876
3496
  ],
3877
3497
  "args": [
3878
3498
  {
3879
- "name": "request_id",
3880
- "type": "u64"
3881
- },
3882
- {
3883
- "name": "committed_amount",
3884
- "type": "u64"
3885
- },
3886
- {
3887
- "name": "net_amount",
3888
- "type": "u64"
3889
- },
3890
- {
3891
- "name": "chain_id",
3892
- "type": "u64"
3499
+ "name": "pubkey",
3500
+ "type": "pubkey"
3893
3501
  }
3894
3502
  ]
3895
3503
  },
@@ -4532,92 +4140,6 @@
4532
4140
  }
4533
4141
  ]
4534
4142
  },
4535
- {
4536
- "name": "set_withdrawal_thresholds",
4537
- "discriminator": [
4538
- 210,
4539
- 174,
4540
- 130,
4541
- 94,
4542
- 94,
4543
- 180,
4544
- 181,
4545
- 165
4546
- ],
4547
- "accounts": [
4548
- {
4549
- "name": "escrow_config",
4550
- "pda": {
4551
- "seeds": [
4552
- {
4553
- "kind": "const",
4554
- "value": [
4555
- 101,
4556
- 115,
4557
- 99,
4558
- 114,
4559
- 111,
4560
- 119,
4561
- 45,
4562
- 99,
4563
- 111,
4564
- 110,
4565
- 102,
4566
- 105,
4567
- 103,
4568
- 45,
4569
- 118,
4570
- 50
4571
- ]
4572
- }
4573
- ]
4574
- }
4575
- },
4576
- {
4577
- "name": "treasury_config",
4578
- "writable": true,
4579
- "pda": {
4580
- "seeds": [
4581
- {
4582
- "kind": "const",
4583
- "value": [
4584
- 116,
4585
- 114,
4586
- 101,
4587
- 97,
4588
- 115,
4589
- 117,
4590
- 114,
4591
- 121,
4592
- 45,
4593
- 99,
4594
- 111,
4595
- 110,
4596
- 102,
4597
- 105,
4598
- 103
4599
- ]
4600
- }
4601
- ]
4602
- }
4603
- },
4604
- {
4605
- "name": "admin",
4606
- "writable": true,
4607
- "signer": true
4608
- }
4609
- ],
4610
- "args": [
4611
- {
4612
- "name": "manager_threshold",
4613
- "type": "u8"
4614
- },
4615
- {
4616
- "name": "executive_threshold",
4617
- "type": "u8"
4618
- }
4619
- ]
4620
- },
4621
4143
  {
4622
4144
  "name": "withdraw_sol_with_sig",
4623
4145
  "discriminator": [
@@ -5719,19 +5241,6 @@
5719
5241
  247,
5720
5242
  68
5721
5243
  ]
5722
- },
5723
- {
5724
- "name": "WithdrawalThresholdsConfiguredEvent",
5725
- "discriminator": [
5726
- 233,
5727
- 231,
5728
- 110,
5729
- 102,
5730
- 162,
5731
- 86,
5732
- 78,
5733
- 118
5734
- ]
5735
5244
  }
5736
5245
  ],
5737
5246
  "errors": [
@@ -6464,6 +5973,12 @@
6464
5973
  },
6465
5974
  {
6466
5975
  "name": "TreasuryConfig",
5976
+ "docs": [
5977
+ "Treasury roster + fee cap.",
5978
+ "",
5979
+ "Holds *who* may sign withdrawals; *how many* signatures are required is decided per token by",
5980
+ "TokenThresholdConfig (amount-banded), not here."
5981
+ ],
6467
5982
  "type": {
6468
5983
  "kind": "struct",
6469
5984
  "fields": [
@@ -6479,14 +5994,6 @@
6479
5994
  "vec": "pubkey"
6480
5995
  }
6481
5996
  },
6482
- {
6483
- "name": "manager_threshold",
6484
- "type": "u8"
6485
- },
6486
- {
6487
- "name": "executive_threshold",
6488
- "type": "u8"
6489
- },
6490
5997
  {
6491
5998
  "name": "max_fee_delta",
6492
5999
  "docs": [
@@ -6504,19 +6011,13 @@
6504
6011
  {
6505
6012
  "name": "TreasuryConfigInitializedEvent",
6506
6013
  "docs": [
6507
- "Emitted when the treasury config is first initialized."
6014
+ "Emitted when the treasury config PDA is first allocated. Thresholds are not part of this",
6015
+ "event: withdrawal gating is decided by the per-token bands (see ConfigureTokenMultisig),",
6016
+ "not by any value set at init time."
6508
6017
  ],
6509
6018
  "type": {
6510
6019
  "kind": "struct",
6511
6020
  "fields": [
6512
- {
6513
- "name": "manager_threshold",
6514
- "type": "u8"
6515
- },
6516
- {
6517
- "name": "executive_threshold",
6518
- "type": "u8"
6519
- },
6520
6021
  {
6521
6022
  "name": "sender",
6522
6023
  "type": "pubkey"
@@ -6762,37 +6263,6 @@
6762
6263
  }
6763
6264
  ]
6764
6265
  }
6765
- },
6766
- {
6767
- "name": "WithdrawalThresholdsConfiguredEvent",
6768
- "docs": [
6769
- "Emitted when the manager/executive withdrawal thresholds are updated."
6770
- ],
6771
- "type": {
6772
- "kind": "struct",
6773
- "fields": [
6774
- {
6775
- "name": "manager_threshold",
6776
- "type": "u8"
6777
- },
6778
- {
6779
- "name": "executive_threshold",
6780
- "type": "u8"
6781
- },
6782
- {
6783
- "name": "sender",
6784
- "type": "pubkey"
6785
- },
6786
- {
6787
- "name": "slot",
6788
- "type": "u64"
6789
- },
6790
- {
6791
- "name": "timestamp",
6792
- "type": "i64"
6793
- }
6794
- ]
6795
- }
6796
6266
  }
6797
6267
  ]
6798
6268
  }