@cubee_ee/sdk 0.1.0 → 0.1.1
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/dist/idl/cubic_pool.json +16 -0
- package/dist/idl/index.d.ts +10 -0
- package/dist/idl/index.d.ts.map +1 -1
- package/dist/idl/protocol_admin.json +70 -0
- package/package.json +1 -1
- package/src/idl/cubic_pool.json +16 -0
- package/src/idl/protocol_admin.json +70 -0
package/dist/idl/cubic_pool.json
CHANGED
|
@@ -362,6 +362,17 @@
|
|
|
362
362
|
"writable": true,
|
|
363
363
|
"signer": true
|
|
364
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"name": "protocol_admin_treasury",
|
|
367
|
+
"docs": [
|
|
368
|
+
"`seeds` + `seeds::program` constraint Anchor enforces here is",
|
|
369
|
+
"the entire validation — any account passed in that isn't that",
|
|
370
|
+
"exact PDA fails before the handler runs. The handler then",
|
|
371
|
+
"requires the `protocol_admin` argument to equal this account's",
|
|
372
|
+
"key, so on-chain `config.protocol_admin` can only ever be the",
|
|
373
|
+
"Treasury PDA."
|
|
374
|
+
]
|
|
375
|
+
},
|
|
365
376
|
{
|
|
366
377
|
"name": "payer",
|
|
367
378
|
"docs": [
|
|
@@ -1461,6 +1472,11 @@
|
|
|
1461
1472
|
"code": 6037,
|
|
1462
1473
|
"name": "InvalidPendingAdmin",
|
|
1463
1474
|
"msg": "Pending admin cannot be the zero pubkey"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"code": 6038,
|
|
1478
|
+
"name": "ProtocolAdminNotTreasury",
|
|
1479
|
+
"msg": "protocol_admin must equal the hardcoded Treasury PDA"
|
|
1464
1480
|
}
|
|
1465
1481
|
],
|
|
1466
1482
|
"types": [
|
package/dist/idl/index.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export declare const CUBIC_POOL_IDL: {
|
|
|
44
44
|
writable: boolean;
|
|
45
45
|
signer: boolean;
|
|
46
46
|
docs?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
name: string;
|
|
49
|
+
docs: string[];
|
|
50
|
+
writable?: undefined;
|
|
51
|
+
signer?: undefined;
|
|
47
52
|
} | {
|
|
48
53
|
name: string;
|
|
49
54
|
docs: string[];
|
|
@@ -531,6 +536,11 @@ export declare const IDLS: {
|
|
|
531
536
|
writable: boolean;
|
|
532
537
|
signer: boolean;
|
|
533
538
|
docs?: undefined;
|
|
539
|
+
} | {
|
|
540
|
+
name: string;
|
|
541
|
+
docs: string[];
|
|
542
|
+
writable?: undefined;
|
|
543
|
+
signer?: undefined;
|
|
534
544
|
} | {
|
|
535
545
|
name: string;
|
|
536
546
|
docs: string[];
|
package/dist/idl/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/idl/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/idl/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmB,CAAC;AACnD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0B,CAAC;AAElE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIP,CAAC"}
|
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
|
+
{
|
|
210
|
+
"name": "pool_accept_protocol_admin_transfer",
|
|
211
|
+
"docs": [
|
|
212
|
+
"Step 2 — accept the in-flight `protocol_admin` transfer with the",
|
|
213
|
+
"Treasury PDA as the new admin. Signs the cubic-pool accept CPI",
|
|
214
|
+
"with treasury seeds, so the Treasury PDA itself becomes",
|
|
215
|
+
"`config.protocol_admin`. Required because a PDA cannot sign",
|
|
216
|
+
"cubic-pool's `accept_protocol_admin_transfer` directly."
|
|
217
|
+
],
|
|
218
|
+
"discriminator": [
|
|
219
|
+
34,
|
|
220
|
+
167,
|
|
221
|
+
199,
|
|
222
|
+
116,
|
|
223
|
+
14,
|
|
224
|
+
203,
|
|
225
|
+
208,
|
|
226
|
+
67
|
|
227
|
+
],
|
|
228
|
+
"accounts": [
|
|
229
|
+
{
|
|
230
|
+
"name": "treasury"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "admin",
|
|
234
|
+
"signer": true
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "config",
|
|
238
|
+
"writable": true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "cubic_pool_program"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"args": []
|
|
245
|
+
},
|
|
209
246
|
{
|
|
210
247
|
"name": "pool_cancel_protocol_admin_transfer",
|
|
211
248
|
"docs": [
|
|
@@ -978,6 +1015,19 @@
|
|
|
978
1015
|
242
|
|
979
1016
|
]
|
|
980
1017
|
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "PoolProtocolAdminTransferAccepted",
|
|
1020
|
+
"discriminator": [
|
|
1021
|
+
235,
|
|
1022
|
+
91,
|
|
1023
|
+
63,
|
|
1024
|
+
65,
|
|
1025
|
+
174,
|
|
1026
|
+
42,
|
|
1027
|
+
55,
|
|
1028
|
+
129
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
981
1031
|
{
|
|
982
1032
|
"name": "PoolProtocolAdminTransferCancelled",
|
|
983
1033
|
"discriminator": [
|
|
@@ -1407,6 +1457,26 @@
|
|
|
1407
1457
|
]
|
|
1408
1458
|
}
|
|
1409
1459
|
},
|
|
1460
|
+
{
|
|
1461
|
+
"name": "PoolProtocolAdminTransferAccepted",
|
|
1462
|
+
"type": {
|
|
1463
|
+
"kind": "struct",
|
|
1464
|
+
"fields": [
|
|
1465
|
+
{
|
|
1466
|
+
"name": "treasury",
|
|
1467
|
+
"type": "pubkey"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "config",
|
|
1471
|
+
"type": "pubkey"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "timestamp",
|
|
1475
|
+
"type": "i64"
|
|
1476
|
+
}
|
|
1477
|
+
]
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1410
1480
|
{
|
|
1411
1481
|
"name": "PoolProtocolAdminTransferCancelled",
|
|
1412
1482
|
"type": {
|
package/package.json
CHANGED
package/src/idl/cubic_pool.json
CHANGED
|
@@ -362,6 +362,17 @@
|
|
|
362
362
|
"writable": true,
|
|
363
363
|
"signer": true
|
|
364
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"name": "protocol_admin_treasury",
|
|
367
|
+
"docs": [
|
|
368
|
+
"`seeds` + `seeds::program` constraint Anchor enforces here is",
|
|
369
|
+
"the entire validation — any account passed in that isn't that",
|
|
370
|
+
"exact PDA fails before the handler runs. The handler then",
|
|
371
|
+
"requires the `protocol_admin` argument to equal this account's",
|
|
372
|
+
"key, so on-chain `config.protocol_admin` can only ever be the",
|
|
373
|
+
"Treasury PDA."
|
|
374
|
+
]
|
|
375
|
+
},
|
|
365
376
|
{
|
|
366
377
|
"name": "payer",
|
|
367
378
|
"docs": [
|
|
@@ -1461,6 +1472,11 @@
|
|
|
1461
1472
|
"code": 6037,
|
|
1462
1473
|
"name": "InvalidPendingAdmin",
|
|
1463
1474
|
"msg": "Pending admin cannot be the zero pubkey"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"code": 6038,
|
|
1478
|
+
"name": "ProtocolAdminNotTreasury",
|
|
1479
|
+
"msg": "protocol_admin must equal the hardcoded Treasury PDA"
|
|
1464
1480
|
}
|
|
1465
1481
|
],
|
|
1466
1482
|
"types": [
|
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
|
+
{
|
|
210
|
+
"name": "pool_accept_protocol_admin_transfer",
|
|
211
|
+
"docs": [
|
|
212
|
+
"Step 2 — accept the in-flight `protocol_admin` transfer with the",
|
|
213
|
+
"Treasury PDA as the new admin. Signs the cubic-pool accept CPI",
|
|
214
|
+
"with treasury seeds, so the Treasury PDA itself becomes",
|
|
215
|
+
"`config.protocol_admin`. Required because a PDA cannot sign",
|
|
216
|
+
"cubic-pool's `accept_protocol_admin_transfer` directly."
|
|
217
|
+
],
|
|
218
|
+
"discriminator": [
|
|
219
|
+
34,
|
|
220
|
+
167,
|
|
221
|
+
199,
|
|
222
|
+
116,
|
|
223
|
+
14,
|
|
224
|
+
203,
|
|
225
|
+
208,
|
|
226
|
+
67
|
|
227
|
+
],
|
|
228
|
+
"accounts": [
|
|
229
|
+
{
|
|
230
|
+
"name": "treasury"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "admin",
|
|
234
|
+
"signer": true
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "config",
|
|
238
|
+
"writable": true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "cubic_pool_program"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"args": []
|
|
245
|
+
},
|
|
209
246
|
{
|
|
210
247
|
"name": "pool_cancel_protocol_admin_transfer",
|
|
211
248
|
"docs": [
|
|
@@ -978,6 +1015,19 @@
|
|
|
978
1015
|
242
|
|
979
1016
|
]
|
|
980
1017
|
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "PoolProtocolAdminTransferAccepted",
|
|
1020
|
+
"discriminator": [
|
|
1021
|
+
235,
|
|
1022
|
+
91,
|
|
1023
|
+
63,
|
|
1024
|
+
65,
|
|
1025
|
+
174,
|
|
1026
|
+
42,
|
|
1027
|
+
55,
|
|
1028
|
+
129
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
981
1031
|
{
|
|
982
1032
|
"name": "PoolProtocolAdminTransferCancelled",
|
|
983
1033
|
"discriminator": [
|
|
@@ -1407,6 +1457,26 @@
|
|
|
1407
1457
|
]
|
|
1408
1458
|
}
|
|
1409
1459
|
},
|
|
1460
|
+
{
|
|
1461
|
+
"name": "PoolProtocolAdminTransferAccepted",
|
|
1462
|
+
"type": {
|
|
1463
|
+
"kind": "struct",
|
|
1464
|
+
"fields": [
|
|
1465
|
+
{
|
|
1466
|
+
"name": "treasury",
|
|
1467
|
+
"type": "pubkey"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "config",
|
|
1471
|
+
"type": "pubkey"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "timestamp",
|
|
1475
|
+
"type": "i64"
|
|
1476
|
+
}
|
|
1477
|
+
]
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1410
1480
|
{
|
|
1411
1481
|
"name": "PoolProtocolAdminTransferCancelled",
|
|
1412
1482
|
"type": {
|