@molpha/sdk 0.2.0-dev-20261008064918 → 0.2.0-dev-20261010184043
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/README.md +54 -10
- package/dist/index.d.ts +121 -40
- package/dist/index.js +226 -115
- package/dist/index.js.map +1 -1
- package/idl/molpha.json +27 -42
- package/idl/profiles/dev/molpha.json +27 -42
- package/package.json +1 -1
package/idl/molpha.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "molpha",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
|
-
"description": "Molpha Oracle Solana Program
|
|
7
|
+
"description": "Molpha Oracle Solana Program"
|
|
8
8
|
},
|
|
9
9
|
"instructions": [
|
|
10
10
|
{
|
|
@@ -1463,6 +1463,16 @@
|
|
|
1463
1463
|
"writable": true,
|
|
1464
1464
|
"signer": true
|
|
1465
1465
|
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "program",
|
|
1468
|
+
"docs": [
|
|
1469
|
+
"This program. Its account names the ProgramData account holding the upgrade authority."
|
|
1470
|
+
],
|
|
1471
|
+
"address": "chivcFQgxzwkpLvW41PV431HQ4dYpaW3povQH3AdpQt"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "program_data"
|
|
1475
|
+
},
|
|
1466
1476
|
{
|
|
1467
1477
|
"name": "token_program",
|
|
1468
1478
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
@@ -4110,19 +4120,6 @@
|
|
|
4110
4120
|
84
|
|
4111
4121
|
]
|
|
4112
4122
|
},
|
|
4113
|
-
{
|
|
4114
|
-
"name": "DelegateStatusChanged",
|
|
4115
|
-
"discriminator": [
|
|
4116
|
-
188,
|
|
4117
|
-
202,
|
|
4118
|
-
137,
|
|
4119
|
-
41,
|
|
4120
|
-
54,
|
|
4121
|
-
213,
|
|
4122
|
-
14,
|
|
4123
|
-
92
|
|
4124
|
-
]
|
|
4125
|
-
},
|
|
4126
4123
|
{
|
|
4127
4124
|
"name": "EpochClosed",
|
|
4128
4125
|
"discriminator": [
|
|
@@ -4985,6 +4982,16 @@
|
|
|
4985
4982
|
"code": 6101,
|
|
4986
4983
|
"name": "InvalidInitialTau",
|
|
4987
4984
|
"msg": "initial_tau is below the minimum ticket threshold"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
"code": 6102,
|
|
4988
|
+
"name": "InvalidProgramData",
|
|
4989
|
+
"msg": "program data account is not this program's"
|
|
4990
|
+
},
|
|
4991
|
+
{
|
|
4992
|
+
"code": 6103,
|
|
4993
|
+
"name": "NotUpgradeAuthority",
|
|
4994
|
+
"msg": "initialize must be signed by the program's upgrade authority"
|
|
4988
4995
|
}
|
|
4989
4996
|
],
|
|
4990
4997
|
"types": [
|
|
@@ -5067,6 +5074,9 @@
|
|
|
5067
5074
|
},
|
|
5068
5075
|
{
|
|
5069
5076
|
"name": "timestamp",
|
|
5077
|
+
"docs": [
|
|
5078
|
+
"Gateway-assigned round time in unix **milliseconds**."
|
|
5079
|
+
],
|
|
5070
5080
|
"type": "u64"
|
|
5071
5081
|
}
|
|
5072
5082
|
]
|
|
@@ -5282,34 +5292,6 @@
|
|
|
5282
5292
|
]
|
|
5283
5293
|
}
|
|
5284
5294
|
},
|
|
5285
|
-
{
|
|
5286
|
-
"name": "DelegateStatusChanged",
|
|
5287
|
-
"type": {
|
|
5288
|
-
"kind": "struct",
|
|
5289
|
-
"fields": [
|
|
5290
|
-
{
|
|
5291
|
-
"name": "delegate",
|
|
5292
|
-
"type": "pubkey"
|
|
5293
|
-
},
|
|
5294
|
-
{
|
|
5295
|
-
"name": "owner",
|
|
5296
|
-
"type": "pubkey"
|
|
5297
|
-
},
|
|
5298
|
-
{
|
|
5299
|
-
"name": "old_status",
|
|
5300
|
-
"type": "u8"
|
|
5301
|
-
},
|
|
5302
|
-
{
|
|
5303
|
-
"name": "new_status",
|
|
5304
|
-
"type": "u8"
|
|
5305
|
-
},
|
|
5306
|
-
{
|
|
5307
|
-
"name": "updated_at",
|
|
5308
|
-
"type": "i64"
|
|
5309
|
-
}
|
|
5310
|
-
]
|
|
5311
|
-
}
|
|
5312
|
-
},
|
|
5313
5295
|
{
|
|
5314
5296
|
"name": "EpochClosed",
|
|
5315
5297
|
"type": {
|
|
@@ -5718,6 +5700,9 @@
|
|
|
5718
5700
|
},
|
|
5719
5701
|
{
|
|
5720
5702
|
"name": "timestamp",
|
|
5703
|
+
"docs": [
|
|
5704
|
+
"Unix milliseconds. Updates are strictly ordered on it, so two rounds in one second order."
|
|
5705
|
+
],
|
|
5721
5706
|
"type": "u64"
|
|
5722
5707
|
},
|
|
5723
5708
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "molpha",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
|
-
"description": "Molpha Oracle Solana Program
|
|
7
|
+
"description": "Molpha Oracle Solana Program"
|
|
8
8
|
},
|
|
9
9
|
"instructions": [
|
|
10
10
|
{
|
|
@@ -1463,6 +1463,16 @@
|
|
|
1463
1463
|
"writable": true,
|
|
1464
1464
|
"signer": true
|
|
1465
1465
|
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "program",
|
|
1468
|
+
"docs": [
|
|
1469
|
+
"This program. Its account names the ProgramData account holding the upgrade authority."
|
|
1470
|
+
],
|
|
1471
|
+
"address": "chivcFQgxzwkpLvW41PV431HQ4dYpaW3povQH3AdpQt"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "program_data"
|
|
1475
|
+
},
|
|
1466
1476
|
{
|
|
1467
1477
|
"name": "token_program",
|
|
1468
1478
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
@@ -4110,19 +4120,6 @@
|
|
|
4110
4120
|
84
|
|
4111
4121
|
]
|
|
4112
4122
|
},
|
|
4113
|
-
{
|
|
4114
|
-
"name": "DelegateStatusChanged",
|
|
4115
|
-
"discriminator": [
|
|
4116
|
-
188,
|
|
4117
|
-
202,
|
|
4118
|
-
137,
|
|
4119
|
-
41,
|
|
4120
|
-
54,
|
|
4121
|
-
213,
|
|
4122
|
-
14,
|
|
4123
|
-
92
|
|
4124
|
-
]
|
|
4125
|
-
},
|
|
4126
4123
|
{
|
|
4127
4124
|
"name": "EpochClosed",
|
|
4128
4125
|
"discriminator": [
|
|
@@ -4985,6 +4982,16 @@
|
|
|
4985
4982
|
"code": 6101,
|
|
4986
4983
|
"name": "InvalidInitialTau",
|
|
4987
4984
|
"msg": "initial_tau is below the minimum ticket threshold"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
"code": 6102,
|
|
4988
|
+
"name": "InvalidProgramData",
|
|
4989
|
+
"msg": "program data account is not this program's"
|
|
4990
|
+
},
|
|
4991
|
+
{
|
|
4992
|
+
"code": 6103,
|
|
4993
|
+
"name": "NotUpgradeAuthority",
|
|
4994
|
+
"msg": "initialize must be signed by the program's upgrade authority"
|
|
4988
4995
|
}
|
|
4989
4996
|
],
|
|
4990
4997
|
"types": [
|
|
@@ -5067,6 +5074,9 @@
|
|
|
5067
5074
|
},
|
|
5068
5075
|
{
|
|
5069
5076
|
"name": "timestamp",
|
|
5077
|
+
"docs": [
|
|
5078
|
+
"Gateway-assigned round time in unix **milliseconds**."
|
|
5079
|
+
],
|
|
5070
5080
|
"type": "u64"
|
|
5071
5081
|
}
|
|
5072
5082
|
]
|
|
@@ -5282,34 +5292,6 @@
|
|
|
5282
5292
|
]
|
|
5283
5293
|
}
|
|
5284
5294
|
},
|
|
5285
|
-
{
|
|
5286
|
-
"name": "DelegateStatusChanged",
|
|
5287
|
-
"type": {
|
|
5288
|
-
"kind": "struct",
|
|
5289
|
-
"fields": [
|
|
5290
|
-
{
|
|
5291
|
-
"name": "delegate",
|
|
5292
|
-
"type": "pubkey"
|
|
5293
|
-
},
|
|
5294
|
-
{
|
|
5295
|
-
"name": "owner",
|
|
5296
|
-
"type": "pubkey"
|
|
5297
|
-
},
|
|
5298
|
-
{
|
|
5299
|
-
"name": "old_status",
|
|
5300
|
-
"type": "u8"
|
|
5301
|
-
},
|
|
5302
|
-
{
|
|
5303
|
-
"name": "new_status",
|
|
5304
|
-
"type": "u8"
|
|
5305
|
-
},
|
|
5306
|
-
{
|
|
5307
|
-
"name": "updated_at",
|
|
5308
|
-
"type": "i64"
|
|
5309
|
-
}
|
|
5310
|
-
]
|
|
5311
|
-
}
|
|
5312
|
-
},
|
|
5313
5295
|
{
|
|
5314
5296
|
"name": "EpochClosed",
|
|
5315
5297
|
"type": {
|
|
@@ -5718,6 +5700,9 @@
|
|
|
5718
5700
|
},
|
|
5719
5701
|
{
|
|
5720
5702
|
"name": "timestamp",
|
|
5703
|
+
"docs": [
|
|
5704
|
+
"Unix milliseconds. Updates are strictly ordered on it, so two rounds in one second order."
|
|
5705
|
+
],
|
|
5721
5706
|
"type": "u64"
|
|
5722
5707
|
},
|
|
5723
5708
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molpha/sdk",
|
|
3
|
-
"version": "0.2.0-dev-
|
|
3
|
+
"version": "0.2.0-dev-20261010184043",
|
|
4
4
|
"description": "Molpha Consumer SDK — subscribe, request signed data from the gateway, submit attestations and read on-chain feeds.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|