@logswap/sdk 0.5.68 → 0.5.70

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/src/generated.ts CHANGED
@@ -1100,13 +1100,6 @@ export const fPoolManagerAbi = [
1100
1100
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1101
1101
  stateMutability: 'view',
1102
1102
  },
1103
- {
1104
- type: 'function',
1105
- inputs: [],
1106
- name: 'HARVEST_CUT_MAX',
1107
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1108
- stateMutability: 'view',
1109
- },
1110
1103
  {
1111
1104
  type: 'function',
1112
1105
  inputs: [],
@@ -3713,7 +3706,14 @@ export const padPolicyAbi = [
3713
3706
  {
3714
3707
  type: 'function',
3715
3708
  inputs: [],
3716
- name: 'burnPerRung',
3709
+ name: 'burnMax',
3710
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3711
+ stateMutability: 'view',
3712
+ },
3713
+ {
3714
+ type: 'function',
3715
+ inputs: [],
3716
+ name: 'burnMin',
3717
3717
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3718
3718
  stateMutability: 'view',
3719
3719
  },
@@ -3727,14 +3727,14 @@ export const padPolicyAbi = [
3727
3727
  {
3728
3728
  type: 'function',
3729
3729
  inputs: [],
3730
- name: 'creatorShare',
3730
+ name: 'creatorShareMax',
3731
3731
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3732
3732
  stateMutability: 'view',
3733
3733
  },
3734
3734
  {
3735
3735
  type: 'function',
3736
3736
  inputs: [],
3737
- name: 'harvestCut',
3737
+ name: 'creatorShareMin',
3738
3738
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3739
3739
  stateMutability: 'view',
3740
3740
  },
@@ -3796,37 +3796,6 @@ export const padPolicyAbi = [
3796
3796
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3797
3797
  stateMutability: 'view',
3798
3798
  },
3799
- {
3800
- type: 'function',
3801
- inputs: [
3802
- {
3803
- name: 'a',
3804
- internalType: 'struct IFPolicy.Ask',
3805
- type: 'tuple',
3806
- components: [
3807
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3808
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
3809
- {
3810
- name: 'action',
3811
- internalType: 'enum IFPolicy.Action',
3812
- type: 'uint8',
3813
- },
3814
- { name: 'who', internalType: 'address', type: 'address' },
3815
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
3816
- { name: 'income', internalType: 'uint256', type: 'uint256' },
3817
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
3818
- { name: 'L', internalType: 'uint256', type: 'uint256' },
3819
- { name: 'n', internalType: 'uint256', type: 'uint256' },
3820
- ],
3821
- },
3822
- ],
3823
- name: 'onHarvest',
3824
- outputs: [
3825
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
3826
- { name: 'cut', internalType: 'uint256', type: 'uint256' },
3827
- ],
3828
- stateMutability: 'view',
3829
- },
3830
3799
  {
3831
3800
  type: 'function',
3832
3801
  inputs: [
@@ -3904,6 +3873,17 @@ export const padPolicyAbi = [
3904
3873
  ],
3905
3874
  stateMutability: 'nonpayable',
3906
3875
  },
3876
+ {
3877
+ type: 'function',
3878
+ inputs: [
3879
+ { name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
3880
+ { name: 'burnPerRung', internalType: 'uint256', type: 'uint256' },
3881
+ { name: 'nonce', internalType: 'uint128', type: 'uint128' },
3882
+ ],
3883
+ name: 'pack',
3884
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3885
+ stateMutability: 'pure',
3886
+ },
3907
3887
  {
3908
3888
  type: 'function',
3909
3889
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -3942,13 +3922,6 @@ export const padPolicyAbi = [
3942
3922
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3943
3923
  stateMutability: 'view',
3944
3924
  },
3945
- {
3946
- type: 'function',
3947
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
3948
- name: 'setHarvestCut',
3949
- outputs: [],
3950
- stateMutability: 'nonpayable',
3951
- },
3952
3925
  {
3953
3926
  type: 'function',
3954
3927
  inputs: [
@@ -3981,14 +3954,27 @@ export const padPolicyAbi = [
3981
3954
  inputs: [
3982
3955
  { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3983
3956
  { name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
3984
- { name: '_creatorShare', internalType: 'uint256', type: 'uint256' },
3985
3957
  { name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
3986
- { name: '_burnPerRung', internalType: 'uint256', type: 'uint256' },
3958
+ { name: '_creatorShareMin', internalType: 'uint256', type: 'uint256' },
3959
+ { name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
3960
+ { name: '_burnMin', internalType: 'uint256', type: 'uint256' },
3961
+ { name: '_burnMax', internalType: 'uint256', type: 'uint256' },
3987
3962
  ],
3988
3963
  name: 'setSchedule',
3989
3964
  outputs: [],
3990
3965
  stateMutability: 'nonpayable',
3991
3966
  },
3967
+ {
3968
+ type: 'function',
3969
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3970
+ name: 'splitOf',
3971
+ outputs: [
3972
+ { name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
3973
+ { name: 'burnPerRung', internalType: 'uint64', type: 'uint64' },
3974
+ { name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
3975
+ ],
3976
+ stateMutability: 'view',
3977
+ },
3992
3978
  {
3993
3979
  type: 'function',
3994
3980
  inputs: [{ name: 'r', internalType: 'uint256', type: 'uint256' }],
@@ -4065,19 +4051,6 @@ export const padPolicyAbi = [
4065
4051
  ],
4066
4052
  name: 'Graduated',
4067
4053
  },
4068
- {
4069
- type: 'event',
4070
- anonymous: false,
4071
- inputs: [
4072
- {
4073
- name: 'harvestCut',
4074
- internalType: 'uint256',
4075
- type: 'uint256',
4076
- indexed: false,
4077
- },
4078
- ],
4079
- name: 'HarvestCutSet',
4080
- },
4081
4054
  {
4082
4055
  type: 'event',
4083
4056
  anonymous: false,
@@ -4136,19 +4109,31 @@ export const padPolicyAbi = [
4136
4109
  indexed: false,
4137
4110
  },
4138
4111
  {
4139
- name: 'creatorShare',
4112
+ name: 'protocolShare',
4140
4113
  internalType: 'uint256',
4141
4114
  type: 'uint256',
4142
4115
  indexed: false,
4143
4116
  },
4144
4117
  {
4145
- name: 'protocolShare',
4118
+ name: 'creatorShareMin',
4146
4119
  internalType: 'uint256',
4147
4120
  type: 'uint256',
4148
4121
  indexed: false,
4149
4122
  },
4150
4123
  {
4151
- name: 'burnPerRung',
4124
+ name: 'creatorShareMax',
4125
+ internalType: 'uint256',
4126
+ type: 'uint256',
4127
+ indexed: false,
4128
+ },
4129
+ {
4130
+ name: 'burnMin',
4131
+ internalType: 'uint256',
4132
+ type: 'uint256',
4133
+ indexed: false,
4134
+ },
4135
+ {
4136
+ name: 'burnMax',
4152
4137
  internalType: 'uint256',
4153
4138
  type: 'uint256',
4154
4139
  indexed: false,
@@ -4156,6 +4141,37 @@ export const padPolicyAbi = [
4156
4141
  ],
4157
4142
  name: 'ScheduleSet',
4158
4143
  },
4144
+ {
4145
+ type: 'event',
4146
+ anonymous: false,
4147
+ inputs: [
4148
+ {
4149
+ name: 'poolId',
4150
+ internalType: 'bytes32',
4151
+ type: 'bytes32',
4152
+ indexed: true,
4153
+ },
4154
+ {
4155
+ name: 'creatorShare',
4156
+ internalType: 'uint256',
4157
+ type: 'uint256',
4158
+ indexed: false,
4159
+ },
4160
+ {
4161
+ name: 'burnPerRung',
4162
+ internalType: 'uint256',
4163
+ type: 'uint256',
4164
+ indexed: false,
4165
+ },
4166
+ {
4167
+ name: 'protocolShare',
4168
+ internalType: 'uint256',
4169
+ type: 'uint256',
4170
+ indexed: false,
4171
+ },
4172
+ ],
4173
+ name: 'SplitSet',
4174
+ },
4159
4175
  { type: 'error', inputs: [], name: 'BadFee' },
4160
4176
  { type: 'error', inputs: [], name: 'BadRate' },
4161
4177
  { type: 'error', inputs: [], name: 'NoCreator' },
@@ -4165,6 +4181,7 @@ export const padPolicyAbi = [
4165
4181
  { type: 'error', inputs: [], name: 'NotManager' },
4166
4182
  { type: 'error', inputs: [], name: 'NotRegistry' },
4167
4183
  { type: 'error', inputs: [], name: 'OneBase' },
4184
+ { type: 'error', inputs: [], name: 'OutOfRange' },
4168
4185
  {
4169
4186
  type: 'error',
4170
4187
  inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
@@ -4210,13 +4227,6 @@ export const polPolicyAbi = [
4210
4227
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
4211
4228
  stateMutability: 'view',
4212
4229
  },
4213
- {
4214
- type: 'function',
4215
- inputs: [],
4216
- name: 'harvestCut',
4217
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4218
- stateMutability: 'view',
4219
- },
4220
4230
  {
4221
4231
  type: 'function',
4222
4232
  inputs: [],
@@ -4289,37 +4299,6 @@ export const polPolicyAbi = [
4289
4299
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4290
4300
  stateMutability: 'view',
4291
4301
  },
4292
- {
4293
- type: 'function',
4294
- inputs: [
4295
- {
4296
- name: 'a',
4297
- internalType: 'struct IFPolicy.Ask',
4298
- type: 'tuple',
4299
- components: [
4300
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4301
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
4302
- {
4303
- name: 'action',
4304
- internalType: 'enum IFPolicy.Action',
4305
- type: 'uint8',
4306
- },
4307
- { name: 'who', internalType: 'address', type: 'address' },
4308
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
4309
- { name: 'income', internalType: 'uint256', type: 'uint256' },
4310
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
4311
- { name: 'L', internalType: 'uint256', type: 'uint256' },
4312
- { name: 'n', internalType: 'uint256', type: 'uint256' },
4313
- ],
4314
- },
4315
- ],
4316
- name: 'onHarvest',
4317
- outputs: [
4318
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
4319
- { name: 'cut', internalType: 'uint256', type: 'uint256' },
4320
- ],
4321
- stateMutability: 'view',
4322
- },
4323
4302
  {
4324
4303
  type: 'function',
4325
4304
  inputs: [
@@ -4428,13 +4407,6 @@ export const polPolicyAbi = [
4428
4407
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4429
4408
  stateMutability: 'view',
4430
4409
  },
4431
- {
4432
- type: 'function',
4433
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4434
- name: 'setHarvestCut',
4435
- outputs: [],
4436
- stateMutability: 'nonpayable',
4437
- },
4438
4410
  {
4439
4411
  type: 'function',
4440
4412
  inputs: [
@@ -4512,19 +4484,6 @@ export const polPolicyAbi = [
4512
4484
  ],
4513
4485
  name: 'AuthoritySet',
4514
4486
  },
4515
- {
4516
- type: 'event',
4517
- anonymous: false,
4518
- inputs: [
4519
- {
4520
- name: 'harvestCut',
4521
- internalType: 'uint256',
4522
- type: 'uint256',
4523
- indexed: false,
4524
- },
4525
- ],
4526
- name: 'HarvestCutSet',
4527
- },
4528
4487
  {
4529
4488
  type: 'event',
4530
4489
  anonymous: false,
@@ -4958,13 +4917,6 @@ export const privatePolicyAbi = [
4958
4917
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4959
4918
  stateMutability: 'view',
4960
4919
  },
4961
- {
4962
- type: 'function',
4963
- inputs: [],
4964
- name: 'harvestCut',
4965
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4966
- stateMutability: 'view',
4967
- },
4968
4920
  {
4969
4921
  type: 'function',
4970
4922
  inputs: [
@@ -5060,37 +5012,6 @@ export const privatePolicyAbi = [
5060
5012
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5061
5013
  stateMutability: 'view',
5062
5014
  },
5063
- {
5064
- type: 'function',
5065
- inputs: [
5066
- {
5067
- name: 'a',
5068
- internalType: 'struct IFPolicy.Ask',
5069
- type: 'tuple',
5070
- components: [
5071
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5072
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
5073
- {
5074
- name: 'action',
5075
- internalType: 'enum IFPolicy.Action',
5076
- type: 'uint8',
5077
- },
5078
- { name: 'who', internalType: 'address', type: 'address' },
5079
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
5080
- { name: 'income', internalType: 'uint256', type: 'uint256' },
5081
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
5082
- { name: 'L', internalType: 'uint256', type: 'uint256' },
5083
- { name: 'n', internalType: 'uint256', type: 'uint256' },
5084
- ],
5085
- },
5086
- ],
5087
- name: 'onHarvest',
5088
- outputs: [
5089
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
5090
- { name: 'cut', internalType: 'uint256', type: 'uint256' },
5091
- ],
5092
- stateMutability: 'view',
5093
- },
5094
5015
  {
5095
5016
  type: 'function',
5096
5017
  inputs: [
@@ -5231,13 +5152,6 @@ export const privatePolicyAbi = [
5231
5152
  outputs: [],
5232
5153
  stateMutability: 'nonpayable',
5233
5154
  },
5234
- {
5235
- type: 'function',
5236
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
5237
- name: 'setHarvestCut',
5238
- outputs: [],
5239
- stateMutability: 'nonpayable',
5240
- },
5241
5155
  {
5242
5156
  type: 'function',
5243
5157
  inputs: [
@@ -5342,19 +5256,6 @@ export const privatePolicyAbi = [
5342
5256
  ],
5343
5257
  name: 'GatesSet',
5344
5258
  },
5345
- {
5346
- type: 'event',
5347
- anonymous: false,
5348
- inputs: [
5349
- {
5350
- name: 'harvestCut',
5351
- internalType: 'uint256',
5352
- type: 'uint256',
5353
- indexed: false,
5354
- },
5355
- ],
5356
- name: 'HarvestCutSet',
5357
- },
5358
5259
  {
5359
5260
  type: 'event',
5360
5261
  anonymous: false,
@@ -5519,13 +5420,6 @@ export const publicPolicyAbi = [
5519
5420
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5520
5421
  stateMutability: 'view',
5521
5422
  },
5522
- {
5523
- type: 'function',
5524
- inputs: [],
5525
- name: 'harvestCut',
5526
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
5527
- stateMutability: 'view',
5528
- },
5529
5423
  {
5530
5424
  type: 'function',
5531
5425
  inputs: [],
@@ -5591,37 +5485,6 @@ export const publicPolicyAbi = [
5591
5485
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5592
5486
  stateMutability: 'view',
5593
5487
  },
5594
- {
5595
- type: 'function',
5596
- inputs: [
5597
- {
5598
- name: 'a',
5599
- internalType: 'struct IFPolicy.Ask',
5600
- type: 'tuple',
5601
- components: [
5602
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5603
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
5604
- {
5605
- name: 'action',
5606
- internalType: 'enum IFPolicy.Action',
5607
- type: 'uint8',
5608
- },
5609
- { name: 'who', internalType: 'address', type: 'address' },
5610
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
5611
- { name: 'income', internalType: 'uint256', type: 'uint256' },
5612
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
5613
- { name: 'L', internalType: 'uint256', type: 'uint256' },
5614
- { name: 'n', internalType: 'uint256', type: 'uint256' },
5615
- ],
5616
- },
5617
- ],
5618
- name: 'onHarvest',
5619
- outputs: [
5620
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
5621
- { name: 'cut', internalType: 'uint256', type: 'uint256' },
5622
- ],
5623
- stateMutability: 'view',
5624
- },
5625
5488
  {
5626
5489
  type: 'function',
5627
5490
  inputs: [
@@ -5737,13 +5600,6 @@ export const publicPolicyAbi = [
5737
5600
  outputs: [],
5738
5601
  stateMutability: 'nonpayable',
5739
5602
  },
5740
- {
5741
- type: 'function',
5742
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
5743
- name: 'setHarvestCut',
5744
- outputs: [],
5745
- stateMutability: 'nonpayable',
5746
- },
5747
5603
  {
5748
5604
  type: 'function',
5749
5605
  inputs: [
@@ -5829,19 +5685,6 @@ export const publicPolicyAbi = [
5829
5685
  ],
5830
5686
  name: 'CuratedSet',
5831
5687
  },
5832
- {
5833
- type: 'event',
5834
- anonymous: false,
5835
- inputs: [
5836
- {
5837
- name: 'harvestCut',
5838
- internalType: 'uint256',
5839
- type: 'uint256',
5840
- indexed: false,
5841
- },
5842
- ],
5843
- name: 'HarvestCutSet',
5844
- },
5845
5688
  {
5846
5689
  type: 'event',
5847
5690
  anonymous: false,