@neutral-trade/sdk 2.3.0 → 2.4.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.
@@ -4953,6 +4953,227 @@ var ntbundle_default = {
4953
4953
  "type": "u64"
4954
4954
  }]
4955
4955
  },
4956
+ {
4957
+ "name": "request_token_switch",
4958
+ "discriminator": [
4959
+ 187,
4960
+ 232,
4961
+ 234,
4962
+ 24,
4963
+ 215,
4964
+ 96,
4965
+ 20,
4966
+ 53
4967
+ ],
4968
+ "accounts": [
4969
+ {
4970
+ "name": "token_withdrawal_request",
4971
+ "accounts": [
4972
+ {
4973
+ "name": "user",
4974
+ "writable": true,
4975
+ "signer": true
4976
+ },
4977
+ {
4978
+ "name": "user_bundle_account",
4979
+ "writable": true,
4980
+ "pda": { "seeds": [
4981
+ {
4982
+ "kind": "const",
4983
+ "value": [
4984
+ 85,
4985
+ 83,
4986
+ 69,
4987
+ 82,
4988
+ 95,
4989
+ 66,
4990
+ 85,
4991
+ 78,
4992
+ 68,
4993
+ 76,
4994
+ 69
4995
+ ]
4996
+ },
4997
+ {
4998
+ "kind": "account",
4999
+ "path": "user"
5000
+ },
5001
+ {
5002
+ "kind": "account",
5003
+ "path": "bundle_account"
5004
+ }
5005
+ ] }
5006
+ },
5007
+ {
5008
+ "name": "bundle_account",
5009
+ "writable": true
5010
+ },
5011
+ {
5012
+ "name": "bundle_temp_data",
5013
+ "writable": true,
5014
+ "pda": { "seeds": [{
5015
+ "kind": "const",
5016
+ "value": [
5017
+ 66,
5018
+ 85,
5019
+ 78,
5020
+ 68,
5021
+ 76,
5022
+ 69,
5023
+ 95,
5024
+ 84,
5025
+ 69,
5026
+ 77,
5027
+ 80,
5028
+ 95,
5029
+ 68,
5030
+ 65,
5031
+ 84,
5032
+ 65
5033
+ ]
5034
+ }, {
5035
+ "kind": "account",
5036
+ "path": "bundle_account"
5037
+ }] }
5038
+ },
5039
+ {
5040
+ "name": "oracle_data",
5041
+ "pda": { "seeds": [{
5042
+ "kind": "const",
5043
+ "value": [
5044
+ 79,
5045
+ 82,
5046
+ 65,
5047
+ 67,
5048
+ 76,
5049
+ 69
5050
+ ]
5051
+ }, {
5052
+ "kind": "account",
5053
+ "path": "bundle_account"
5054
+ }] }
5055
+ },
5056
+ {
5057
+ "name": "tokenized_bundle_depositor",
5058
+ "writable": true,
5059
+ "pda": { "seeds": [{
5060
+ "kind": "const",
5061
+ "value": [
5062
+ 84,
5063
+ 79,
5064
+ 75,
5065
+ 69,
5066
+ 78,
5067
+ 73,
5068
+ 90,
5069
+ 69,
5070
+ 68,
5071
+ 95,
5072
+ 66,
5073
+ 85,
5074
+ 78,
5075
+ 68,
5076
+ 76,
5077
+ 69,
5078
+ 95,
5079
+ 68,
5080
+ 69,
5081
+ 80,
5082
+ 79,
5083
+ 83,
5084
+ 73,
5085
+ 84,
5086
+ 79,
5087
+ 82
5088
+ ]
5089
+ }, {
5090
+ "kind": "account",
5091
+ "path": "bundle_account"
5092
+ }] }
5093
+ },
5094
+ {
5095
+ "name": "mint",
5096
+ "writable": true,
5097
+ "pda": { "seeds": [{
5098
+ "kind": "const",
5099
+ "value": [
5100
+ 84,
5101
+ 79,
5102
+ 75,
5103
+ 69,
5104
+ 78,
5105
+ 73,
5106
+ 90,
5107
+ 69,
5108
+ 68,
5109
+ 95,
5110
+ 66,
5111
+ 85,
5112
+ 78,
5113
+ 68,
5114
+ 76,
5115
+ 69,
5116
+ 95,
5117
+ 77,
5118
+ 73,
5119
+ 78,
5120
+ 84
5121
+ ]
5122
+ }, {
5123
+ "kind": "account",
5124
+ "path": "bundle_account"
5125
+ }] }
5126
+ },
5127
+ {
5128
+ "name": "source_token_account",
5129
+ "writable": true
5130
+ },
5131
+ {
5132
+ "name": "token_program",
5133
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
5134
+ }
5135
+ ]
5136
+ },
5137
+ { "name": "target_bundle_account" },
5138
+ {
5139
+ "name": "target_user_bundle_account",
5140
+ "pda": { "seeds": [
5141
+ {
5142
+ "kind": "const",
5143
+ "value": [
5144
+ 85,
5145
+ 83,
5146
+ 69,
5147
+ 82,
5148
+ 95,
5149
+ 66,
5150
+ 85,
5151
+ 78,
5152
+ 68,
5153
+ 76,
5154
+ 69
5155
+ ]
5156
+ },
5157
+ {
5158
+ "kind": "account",
5159
+ "path": "token_withdrawal_request.user",
5160
+ "account": "RequestTokenWithdrawal"
5161
+ },
5162
+ {
5163
+ "kind": "account",
5164
+ "path": "target_bundle_account"
5165
+ }
5166
+ ] }
5167
+ }
5168
+ ],
5169
+ "args": [{
5170
+ "name": "tokens_to_burn",
5171
+ "type": "u64"
5172
+ }, {
5173
+ "name": "min_shares_out",
5174
+ "type": "u128"
5175
+ }]
5176
+ },
4956
5177
  {
4957
5178
  "name": "request_token_withdrawal",
4958
5179
  "discriminator": [
@@ -7153,6 +7374,19 @@ var ntbundle_default = {
7153
7374
  144
7154
7375
  ]
7155
7376
  },
7377
+ {
7378
+ "name": "TokenSwitchRequested",
7379
+ "discriminator": [
7380
+ 14,
7381
+ 152,
7382
+ 212,
7383
+ 226,
7384
+ 82,
7385
+ 255,
7386
+ 201,
7387
+ 252
7388
+ ]
7389
+ },
7156
7390
  {
7157
7391
  "name": "TokenWithdrawalRequested",
7158
7392
  "discriminator": [
@@ -9621,6 +9855,91 @@ var ntbundle_default = {
9621
9855
  }]
9622
9856
  }
9623
9857
  },
9858
+ {
9859
+ "name": "TokenSwitchRequested",
9860
+ "docs": [
9861
+ "Emitted by `request_token_switch` instead of `TokenWithdrawalRequested` and",
9862
+ "`BundleSwitchRequested`, so indexers count the redemption once. The fields",
9863
+ "through `timestamp` match `BundleSwitchRequested`."
9864
+ ],
9865
+ "type": {
9866
+ "kind": "struct",
9867
+ "fields": [
9868
+ {
9869
+ "name": "user",
9870
+ "type": "pubkey"
9871
+ },
9872
+ {
9873
+ "name": "source_bundle",
9874
+ "type": "pubkey"
9875
+ },
9876
+ {
9877
+ "name": "target_bundle",
9878
+ "type": "pubkey"
9879
+ },
9880
+ {
9881
+ "name": "shares_amount",
9882
+ "type": "u128"
9883
+ },
9884
+ {
9885
+ "name": "estimated_gross_redemption",
9886
+ "type": "u64"
9887
+ },
9888
+ {
9889
+ "name": "estimated_net_to_destination",
9890
+ "type": "u64"
9891
+ },
9892
+ {
9893
+ "name": "estimated_destination_deposit_fee",
9894
+ "type": "u64"
9895
+ },
9896
+ {
9897
+ "name": "estimated_destination_pending_deposit",
9898
+ "type": "u64"
9899
+ },
9900
+ {
9901
+ "name": "cooldown_end_timestamp",
9902
+ "type": "i64"
9903
+ },
9904
+ {
9905
+ "name": "timestamp",
9906
+ "type": "i64"
9907
+ },
9908
+ {
9909
+ "name": "mint",
9910
+ "type": "pubkey"
9911
+ },
9912
+ {
9913
+ "name": "tokens_burned",
9914
+ "type": "u64"
9915
+ },
9916
+ {
9917
+ "name": "export_value",
9918
+ "type": "u64"
9919
+ },
9920
+ {
9921
+ "name": "tokenized_depositor_shares_after",
9922
+ "type": "u128"
9923
+ },
9924
+ {
9925
+ "name": "token_supply_after",
9926
+ "type": "u64"
9927
+ },
9928
+ {
9929
+ "name": "user_shares_after",
9930
+ "type": "u128"
9931
+ },
9932
+ {
9933
+ "name": "total_shares",
9934
+ "type": "u128"
9935
+ },
9936
+ {
9937
+ "name": "referred_net_deposits_after",
9938
+ "type": { "option": "i128" }
9939
+ }
9940
+ ]
9941
+ }
9942
+ },
9624
9943
  {
9625
9944
  "name": "TokenWithdrawalRequested",
9626
9945
  "type": {