mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-22 21:38:05 +00:00
Merge pull request #75 from 0xfnzero/chore/sync-current-program-idls
fix: use current parser and program IDLs
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ sdk-perf-stats = ["sol-parser-sdk/perf-stats"]
|
|||||||
sdk-ultra-perf = ["sol-parser-sdk/ultra-perf"]
|
sdk-ultra-perf = ["sol-parser-sdk/ultra-perf"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sol-parser-sdk = { version = "0.6.1", default-features = false }
|
sol-parser-sdk = { version = "0.6.2", default-features = false }
|
||||||
solana-sdk = "3.0.0"
|
solana-sdk = "3.0.0"
|
||||||
solana-client = "3.1.12"
|
solana-client = "3.1.12"
|
||||||
solana-transaction-status = "3.1.12"
|
solana-transaction-status = "3.1.12"
|
||||||
|
|||||||
+3681
-1548
File diff suppressed because it is too large
Load Diff
+889
-1130
File diff suppressed because it is too large
Load Diff
+8310
-6448
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+7531
-4249
File diff suppressed because it is too large
Load Diff
+5581
-2808
File diff suppressed because it is too large
Load Diff
+3091
-3084
File diff suppressed because it is too large
Load Diff
+228
-2
@@ -1108,6 +1108,79 @@
|
|||||||
],
|
],
|
||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "close_platform_global_access",
|
||||||
|
"docs": [
|
||||||
|
"Close a platform's permission to use a global config."
|
||||||
|
],
|
||||||
|
"discriminator": [
|
||||||
|
123,
|
||||||
|
180,
|
||||||
|
184,
|
||||||
|
129,
|
||||||
|
111,
|
||||||
|
185,
|
||||||
|
187,
|
||||||
|
59
|
||||||
|
],
|
||||||
|
"accounts": [
|
||||||
|
{
|
||||||
|
"name": "owner",
|
||||||
|
"signer": true,
|
||||||
|
"address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "global_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "platform_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "platform_global_access",
|
||||||
|
"writable": true,
|
||||||
|
"pda": {
|
||||||
|
"seeds": [
|
||||||
|
{
|
||||||
|
"kind": "const",
|
||||||
|
"value": [
|
||||||
|
112,
|
||||||
|
108,
|
||||||
|
97,
|
||||||
|
116,
|
||||||
|
102,
|
||||||
|
111,
|
||||||
|
114,
|
||||||
|
109,
|
||||||
|
95,
|
||||||
|
103,
|
||||||
|
108,
|
||||||
|
111,
|
||||||
|
98,
|
||||||
|
97,
|
||||||
|
108,
|
||||||
|
95,
|
||||||
|
97,
|
||||||
|
99,
|
||||||
|
99,
|
||||||
|
101,
|
||||||
|
115,
|
||||||
|
115
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "account",
|
||||||
|
"path": "platform_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "account",
|
||||||
|
"path": "global_config"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"args": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "collect_fee",
|
"name": "collect_fee",
|
||||||
"docs": [
|
"docs": [
|
||||||
@@ -1539,6 +1612,84 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "create_platform_global_access",
|
||||||
|
"docs": [
|
||||||
|
"Create a platform permission to use a global config when authorization is enabled."
|
||||||
|
],
|
||||||
|
"discriminator": [
|
||||||
|
162,
|
||||||
|
91,
|
||||||
|
146,
|
||||||
|
199,
|
||||||
|
93,
|
||||||
|
133,
|
||||||
|
234,
|
||||||
|
237
|
||||||
|
],
|
||||||
|
"accounts": [
|
||||||
|
{
|
||||||
|
"name": "owner",
|
||||||
|
"writable": true,
|
||||||
|
"signer": true,
|
||||||
|
"address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "global_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "platform_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "platform_global_access",
|
||||||
|
"writable": true,
|
||||||
|
"pda": {
|
||||||
|
"seeds": [
|
||||||
|
{
|
||||||
|
"kind": "const",
|
||||||
|
"value": [
|
||||||
|
112,
|
||||||
|
108,
|
||||||
|
97,
|
||||||
|
116,
|
||||||
|
102,
|
||||||
|
111,
|
||||||
|
114,
|
||||||
|
109,
|
||||||
|
95,
|
||||||
|
103,
|
||||||
|
108,
|
||||||
|
111,
|
||||||
|
98,
|
||||||
|
97,
|
||||||
|
108,
|
||||||
|
95,
|
||||||
|
97,
|
||||||
|
99,
|
||||||
|
99,
|
||||||
|
101,
|
||||||
|
115,
|
||||||
|
115
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "account",
|
||||||
|
"path": "platform_config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "account",
|
||||||
|
"path": "global_config"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "system_program",
|
||||||
|
"address": "11111111111111111111111111111111"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"args": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "create_platform_vesting_account",
|
"name": "create_platform_vesting_account",
|
||||||
"docs": [
|
"docs": [
|
||||||
@@ -4116,6 +4267,7 @@
|
|||||||
"* `param` - Parameter to update:",
|
"* `param` - Parameter to update:",
|
||||||
"- 0: Update trade_fee_rate",
|
"- 0: Update trade_fee_rate",
|
||||||
"- 1: Update fee owner",
|
"- 1: Update fee owner",
|
||||||
|
"- 12: Toggle whether explicit platform authorization is required",
|
||||||
"* `value` - New value for the selected parameter",
|
"* `value` - New value for the selected parameter",
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
@@ -4354,6 +4506,19 @@
|
|||||||
160
|
160
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "PlatformGlobalAccess",
|
||||||
|
"discriminator": [
|
||||||
|
174,
|
||||||
|
147,
|
||||||
|
132,
|
||||||
|
240,
|
||||||
|
137,
|
||||||
|
219,
|
||||||
|
243,
|
||||||
|
16
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "PoolState",
|
"name": "PoolState",
|
||||||
"discriminator": [
|
"discriminator": [
|
||||||
@@ -4545,6 +4710,16 @@
|
|||||||
"code": 6021,
|
"code": 6021,
|
||||||
"name": "InvalidTotalLockedAmount",
|
"name": "InvalidTotalLockedAmount",
|
||||||
"msg": "Total locked amount must great or equal to the platform vesting share amount"
|
"msg": "Total locked amount must great or equal to the platform vesting share amount"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": 6022,
|
||||||
|
"name": "PlatformGlobalAccessDenied",
|
||||||
|
"msg": "Platform is not authorized to use this global config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": 6023,
|
||||||
|
"name": "InvalidPlatformGlobalAccess",
|
||||||
|
"msg": "Invalid platform-global access account"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
@@ -4896,6 +5071,25 @@
|
|||||||
],
|
],
|
||||||
"type": "pubkey"
|
"type": "pubkey"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "requires_platform_auth",
|
||||||
|
"docs": [
|
||||||
|
"Whether a platform must be explicitly authorized before using this global config"
|
||||||
|
],
|
||||||
|
"type": "u8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "padding_alignment",
|
||||||
|
"docs": [
|
||||||
|
"padding alignment"
|
||||||
|
],
|
||||||
|
"type": {
|
||||||
|
"array": [
|
||||||
|
"u8",
|
||||||
|
7
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "padding",
|
"name": "padding",
|
||||||
"docs": [
|
"docs": [
|
||||||
@@ -4904,7 +5098,7 @@
|
|||||||
"type": {
|
"type": {
|
||||||
"array": [
|
"array": [
|
||||||
"u64",
|
"u64",
|
||||||
16
|
15
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5342,6 +5536,38 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "PlatformGlobalAccess",
|
||||||
|
"type": {
|
||||||
|
"kind": "struct",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "bump",
|
||||||
|
"type": "u8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "global_config",
|
||||||
|
"type": "pubkey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "platform_config",
|
||||||
|
"type": "pubkey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "padding",
|
||||||
|
"docs": [
|
||||||
|
"padding for future updates"
|
||||||
|
],
|
||||||
|
"type": {
|
||||||
|
"array": [
|
||||||
|
"u64",
|
||||||
|
8
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "PlatformParams",
|
"name": "PlatformParams",
|
||||||
"docs": [
|
"docs": [
|
||||||
@@ -5943,4 +6169,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user