@sly-rentals/core 5.4.0 → 5.5.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/api.json +13092 -9148
- package/dist/cjs/audit/events-registry.js +3 -0
- package/dist/cjs/audit/events-registry.js.map +1 -1
- package/dist/cjs/audit/events.js +41 -0
- package/dist/cjs/audit/events.js.map +1 -1
- package/dist/cjs/doctor/contract.js +297 -0
- package/dist/cjs/doctor/contract.js.map +1 -0
- package/dist/cjs/doctor/contract.test.js +143 -0
- package/dist/cjs/doctor/contract.test.js.map +1 -0
- package/dist/cjs/doctor/index.js +18 -0
- package/dist/cjs/doctor/index.js.map +1 -0
- package/dist/cjs/generated/codama/errors/srsly.js +10 -1
- package/dist/cjs/generated/codama/errors/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/closeContract.js +6 -1
- package/dist/cjs/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/contractDoctorFiber.js +202 -0
- package/dist/cjs/generated/codama/instructions/contractDoctorFiber.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/index.js +1 -0
- package/dist/cjs/generated/codama/instructions/index.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/processContract.js.map +1 -1
- package/dist/cjs/generated/codama/programs/srsly.js +23 -19
- package/dist/cjs/generated/codama/programs/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/types/contractFiberDoctored.js +31 -0
- package/dist/cjs/generated/codama/types/contractFiberDoctored.js.map +1 -0
- package/dist/cjs/generated/codama/types/index.js +3 -0
- package/dist/cjs/generated/codama/types/index.js.map +1 -1
- package/dist/cjs/generated/codama/types/reservationForceClosed.js +37 -0
- package/dist/cjs/generated/codama/types/reservationForceClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/serializableAccountMeta.js +31 -0
- package/dist/cjs/generated/codama/types/serializableAccountMeta.js.map +1 -0
- package/dist/cjs/idl/srsly.json +301 -2
- package/dist/cjs/instructions/closeContract.js +56 -12
- package/dist/cjs/instructions/closeContract.js.map +1 -1
- package/dist/cjs/instructions/closeContract.test.js +117 -0
- package/dist/cjs/instructions/closeContract.test.js.map +1 -0
- package/dist/cjs/instructions/closeRental.js +7 -4
- package/dist/cjs/instructions/closeRental.js.map +1 -1
- package/dist/cjs/instructions/contractDoctorFiber.js +75 -0
- package/dist/cjs/instructions/contractDoctorFiber.js.map +1 -0
- package/dist/cjs/instructions/index.js +3 -1
- package/dist/cjs/instructions/index.js.map +1 -1
- package/dist/cjs/kit/index.js +1 -0
- package/dist/cjs/kit/index.js.map +1 -1
- package/dist/cjs/legacy/index.js +3 -1
- package/dist/cjs/legacy/index.js.map +1 -1
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/utils/config.js +48 -11
- package/dist/cjs/utils/config.js.map +1 -1
- package/dist/cjs/utils/config.test.js +86 -0
- package/dist/cjs/utils/config.test.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/audit/events-registry.js +3 -0
- package/dist/esm/audit/events-registry.js.map +1 -1
- package/dist/esm/audit/events.js +41 -0
- package/dist/esm/audit/events.js.map +1 -1
- package/dist/esm/doctor/contract.js +292 -0
- package/dist/esm/doctor/contract.js.map +1 -0
- package/dist/esm/doctor/contract.test.js +141 -0
- package/dist/esm/doctor/contract.test.js.map +1 -0
- package/dist/esm/doctor/index.js +12 -0
- package/dist/esm/doctor/index.js.map +1 -0
- package/dist/esm/generated/codama/errors/srsly.js +9 -0
- package/dist/esm/generated/codama/errors/srsly.js.map +1 -1
- package/dist/esm/generated/codama/instructions/closeContract.js +6 -1
- package/dist/esm/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/contractDoctorFiber.js +192 -0
- package/dist/esm/generated/codama/instructions/contractDoctorFiber.js.map +1 -0
- package/dist/esm/generated/codama/instructions/index.js +1 -0
- package/dist/esm/generated/codama/instructions/index.js.map +1 -1
- package/dist/esm/generated/codama/instructions/processContract.js.map +1 -1
- package/dist/esm/generated/codama/programs/srsly.js +23 -19
- package/dist/esm/generated/codama/programs/srsly.js.map +1 -1
- package/dist/esm/generated/codama/types/contractFiberDoctored.js +26 -0
- package/dist/esm/generated/codama/types/contractFiberDoctored.js.map +1 -0
- package/dist/esm/generated/codama/types/index.js +3 -0
- package/dist/esm/generated/codama/types/index.js.map +1 -1
- package/dist/esm/generated/codama/types/reservationForceClosed.js +32 -0
- package/dist/esm/generated/codama/types/reservationForceClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/serializableAccountMeta.js +26 -0
- package/dist/esm/generated/codama/types/serializableAccountMeta.js.map +1 -0
- package/dist/esm/idl/srsly.json +301 -2
- package/dist/esm/instructions/closeContract.js +57 -13
- package/dist/esm/instructions/closeContract.js.map +1 -1
- package/dist/esm/instructions/closeContract.test.js +115 -0
- package/dist/esm/instructions/closeContract.test.js.map +1 -0
- package/dist/esm/instructions/closeRental.js +7 -4
- package/dist/esm/instructions/closeRental.js.map +1 -1
- package/dist/esm/instructions/contractDoctorFiber.js +72 -0
- package/dist/esm/instructions/contractDoctorFiber.js.map +1 -0
- package/dist/esm/instructions/index.js +1 -0
- package/dist/esm/instructions/index.js.map +1 -1
- package/dist/esm/kit/index.js +1 -0
- package/dist/esm/kit/index.js.map +1 -1
- package/dist/esm/legacy/index.js +2 -0
- package/dist/esm/legacy/index.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/utils/config.js +49 -12
- package/dist/esm/utils/config.js.map +1 -1
- package/dist/esm/utils/config.test.js +84 -0
- package/dist/esm/utils/config.test.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/idl/srsly.json +301 -2
- package/dist/types/audit/events-registry.d.ts +1 -1
- package/dist/types/audit/events-registry.d.ts.map +1 -1
- package/dist/types/audit/events.d.ts.map +1 -1
- package/dist/types/audit/index.d.ts +1 -1
- package/dist/types/audit/index.d.ts.map +1 -1
- package/dist/types/audit/types.d.ts +46 -1
- package/dist/types/audit/types.d.ts.map +1 -1
- package/dist/types/doctor/contract.d.ts +133 -0
- package/dist/types/doctor/contract.d.ts.map +1 -0
- package/dist/types/doctor/contract.test.d.ts +2 -0
- package/dist/types/doctor/contract.test.d.ts.map +1 -0
- package/dist/types/doctor/index.d.ts +12 -0
- package/dist/types/doctor/index.d.ts.map +1 -0
- package/dist/types/generated/codama/errors/srsly.d.ts +6 -1
- package/dist/types/generated/codama/errors/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/closeContract.d.ts +34 -12
- package/dist/types/generated/codama/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/contractDoctorFiber.d.ts +154 -0
- package/dist/types/generated/codama/instructions/contractDoctorFiber.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/index.d.ts +1 -0
- package/dist/types/generated/codama/instructions/index.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/processContract.d.ts +15 -3
- package/dist/types/generated/codama/instructions/processContract.d.ts.map +1 -1
- package/dist/types/generated/codama/programs/srsly.d.ts +23 -20
- package/dist/types/generated/codama/programs/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/types/contractFiberDoctored.d.ts +22 -0
- package/dist/types/generated/codama/types/contractFiberDoctored.d.ts.map +1 -0
- package/dist/types/generated/codama/types/index.d.ts +3 -0
- package/dist/types/generated/codama/types/index.d.ts.map +1 -1
- package/dist/types/generated/codama/types/reservationForceClosed.d.ts +36 -0
- package/dist/types/generated/codama/types/reservationForceClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/serializableAccountMeta.d.ts +19 -0
- package/dist/types/generated/codama/types/serializableAccountMeta.d.ts.map +1 -0
- package/dist/types/instructions/closeContract.d.ts +13 -3
- package/dist/types/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/instructions/closeContract.test.d.ts +2 -0
- package/dist/types/instructions/closeContract.test.d.ts.map +1 -0
- package/dist/types/instructions/closeRental.d.ts +11 -0
- package/dist/types/instructions/closeRental.d.ts.map +1 -1
- package/dist/types/instructions/contractDoctorFiber.d.ts +87 -0
- package/dist/types/instructions/contractDoctorFiber.d.ts.map +1 -0
- package/dist/types/instructions/index.d.ts +1 -0
- package/dist/types/instructions/index.d.ts.map +1 -1
- package/dist/types/kit/index.d.ts +1 -0
- package/dist/types/kit/index.d.ts.map +1 -1
- package/dist/types/legacy/index.d.ts +2 -0
- package/dist/types/legacy/index.d.ts.map +1 -1
- package/dist/types/utils/config.d.ts +5 -0
- package/dist/types/utils/config.d.ts.map +1 -1
- package/dist/types/utils/config.test.d.ts +2 -0
- package/dist/types/utils/config.test.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/idl/srsly.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "SRSLYxcFnjd5jG2DpJw4as6UEyjwJQK1U4J1TD1hvZH",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "srsly",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.7.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "Space Rental from SLY",
|
|
8
8
|
"repository": "https://github.com/wuwei-labs/srsly"
|
|
@@ -1541,6 +1541,16 @@
|
|
|
1541
1541
|
"writable": true,
|
|
1542
1542
|
"optional": true
|
|
1543
1543
|
},
|
|
1544
|
+
{
|
|
1545
|
+
"name": "contract_thread",
|
|
1546
|
+
"docs": [
|
|
1547
|
+
"gone when `contract.thread` still names it — `delete_contract_thread`",
|
|
1548
|
+
"tears a thread down without clearing the pointer, which would",
|
|
1549
|
+
"otherwise leave the contract permanently unclosable. Only the address",
|
|
1550
|
+
"is trusted; it must equal `contract.thread` and hold no data."
|
|
1551
|
+
],
|
|
1552
|
+
"optional": true
|
|
1553
|
+
},
|
|
1544
1554
|
{
|
|
1545
1555
|
"name": "rental_authority",
|
|
1546
1556
|
"pda": {
|
|
@@ -1936,6 +1946,146 @@
|
|
|
1936
1946
|
}
|
|
1937
1947
|
}
|
|
1938
1948
|
},
|
|
1949
|
+
{
|
|
1950
|
+
"name": "contract_doctor_fiber",
|
|
1951
|
+
"docs": [
|
|
1952
|
+
"Rewrite one of a contract thread's fibers, for when `fiber_ids` and the",
|
|
1953
|
+
"accounts it names have diverged and the thread can no longer build.",
|
|
1954
|
+
"Callable by the contract's owner or by admin; `payer` funds the rent and",
|
|
1955
|
+
"`rental_authority` signs the CPI."
|
|
1956
|
+
],
|
|
1957
|
+
"discriminator": [
|
|
1958
|
+
129,
|
|
1959
|
+
173,
|
|
1960
|
+
84,
|
|
1961
|
+
247,
|
|
1962
|
+
167,
|
|
1963
|
+
228,
|
|
1964
|
+
206,
|
|
1965
|
+
192
|
|
1966
|
+
],
|
|
1967
|
+
"accounts": [
|
|
1968
|
+
{
|
|
1969
|
+
"name": "payer",
|
|
1970
|
+
"docs": [
|
|
1971
|
+
"Signs, and pays rent for the rewritten fiber. The contract's owner or",
|
|
1972
|
+
"`config.admin`. It is *not* the thread's authority — that is",
|
|
1973
|
+
"`rental_authority`, and only this program can sign for it."
|
|
1974
|
+
],
|
|
1975
|
+
"writable": true,
|
|
1976
|
+
"signer": true
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "config",
|
|
1980
|
+
"docs": [
|
|
1981
|
+
"Bypassed when payer is AUTHORIZED_INITIALIZER (break-glass)."
|
|
1982
|
+
],
|
|
1983
|
+
"pda": {
|
|
1984
|
+
"seeds": [
|
|
1985
|
+
{
|
|
1986
|
+
"kind": "const",
|
|
1987
|
+
"value": [
|
|
1988
|
+
99,
|
|
1989
|
+
111,
|
|
1990
|
+
110,
|
|
1991
|
+
102,
|
|
1992
|
+
105,
|
|
1993
|
+
103
|
|
1994
|
+
]
|
|
1995
|
+
}
|
|
1996
|
+
]
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"name": "contract",
|
|
2001
|
+
"docs": [
|
|
2002
|
+
"binds the write: it authorizes the payer, pins `contract_thread` to",
|
|
2003
|
+
"`contract.thread`, and scopes the payload. Owners must supply it.",
|
|
2004
|
+
"Optional so admins retain a break-glass path for a contract that is",
|
|
2005
|
+
"mid-migration or undeserializable."
|
|
2006
|
+
],
|
|
2007
|
+
"optional": true
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"name": "rental_authority",
|
|
2011
|
+
"writable": true,
|
|
2012
|
+
"pda": {
|
|
2013
|
+
"seeds": [
|
|
2014
|
+
{
|
|
2015
|
+
"kind": "const",
|
|
2016
|
+
"value": [
|
|
2017
|
+
114,
|
|
2018
|
+
101,
|
|
2019
|
+
110,
|
|
2020
|
+
116,
|
|
2021
|
+
97,
|
|
2022
|
+
108,
|
|
2023
|
+
95,
|
|
2024
|
+
97,
|
|
2025
|
+
117,
|
|
2026
|
+
116,
|
|
2027
|
+
104,
|
|
2028
|
+
111,
|
|
2029
|
+
114,
|
|
2030
|
+
105,
|
|
2031
|
+
116,
|
|
2032
|
+
121
|
|
2033
|
+
]
|
|
2034
|
+
}
|
|
2035
|
+
]
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "contract_thread",
|
|
2040
|
+
"docs": [
|
|
2041
|
+
"`contract` is supplied. Left unchecked in the struct so the break-glass",
|
|
2042
|
+
"path still works: antegen's `update_fiber` rejects any thread whose",
|
|
2043
|
+
"authority is not `rental_authority`, which confines this to SRSLY",
|
|
2044
|
+
"threads on its own."
|
|
2045
|
+
],
|
|
2046
|
+
"writable": true
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"name": "fiber",
|
|
2050
|
+
"docs": [
|
|
2051
|
+
"against the thread via seeds."
|
|
2052
|
+
],
|
|
2053
|
+
"writable": true
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"name": "antegen_program",
|
|
2057
|
+
"address": "AgTv5w1UvUb6zeqkThwMrztGu9hpepBu8YLghuR4dpSx"
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"name": "fiber_program",
|
|
2061
|
+
"address": "AgFv5afjW9DmSPkiEvJ1er5bAAmRUqaBeTB6Cr8e1hKx"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"name": "system_program",
|
|
2065
|
+
"address": "11111111111111111111111111111111"
|
|
2066
|
+
}
|
|
2067
|
+
],
|
|
2068
|
+
"args": [
|
|
2069
|
+
{
|
|
2070
|
+
"name": "fiber_index",
|
|
2071
|
+
"type": "u8"
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"name": "instruction",
|
|
2075
|
+
"type": {
|
|
2076
|
+
"defined": {
|
|
2077
|
+
"name": "SerializableInstruction"
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"name": "priority_fee",
|
|
2083
|
+
"type": {
|
|
2084
|
+
"option": "u64"
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
]
|
|
2088
|
+
},
|
|
1939
2089
|
{
|
|
1940
2090
|
"name": "create_borrower",
|
|
1941
2091
|
"docs": [
|
|
@@ -3597,7 +3747,9 @@
|
|
|
3597
3747
|
{
|
|
3598
3748
|
"name": "owner_token_account",
|
|
3599
3749
|
"docs": [
|
|
3600
|
-
"Owner's destination token account (created by contract_thread)"
|
|
3750
|
+
"Owner's destination token account (created by contract_thread). The",
|
|
3751
|
+
"owner may close it, in which case payouts are deferred rather than",
|
|
3752
|
+
"failing the tick."
|
|
3601
3753
|
],
|
|
3602
3754
|
"writable": true
|
|
3603
3755
|
},
|
|
@@ -4600,6 +4752,19 @@
|
|
|
4600
4752
|
164
|
|
4601
4753
|
]
|
|
4602
4754
|
},
|
|
4755
|
+
{
|
|
4756
|
+
"name": "ContractFiberDoctored",
|
|
4757
|
+
"discriminator": [
|
|
4758
|
+
14,
|
|
4759
|
+
49,
|
|
4760
|
+
216,
|
|
4761
|
+
13,
|
|
4762
|
+
84,
|
|
4763
|
+
33,
|
|
4764
|
+
142,
|
|
4765
|
+
31
|
|
4766
|
+
]
|
|
4767
|
+
},
|
|
4603
4768
|
{
|
|
4604
4769
|
"name": "ContractUpdated",
|
|
4605
4770
|
"discriminator": [
|
|
@@ -4704,6 +4869,19 @@
|
|
|
4704
4869
|
59
|
|
4705
4870
|
]
|
|
4706
4871
|
},
|
|
4872
|
+
{
|
|
4873
|
+
"name": "ReservationForceClosed",
|
|
4874
|
+
"discriminator": [
|
|
4875
|
+
242,
|
|
4876
|
+
40,
|
|
4877
|
+
22,
|
|
4878
|
+
31,
|
|
4879
|
+
119,
|
|
4880
|
+
14,
|
|
4881
|
+
46,
|
|
4882
|
+
11
|
|
4883
|
+
]
|
|
4884
|
+
},
|
|
4707
4885
|
{
|
|
4708
4886
|
"name": "ReservationKnockedOff",
|
|
4709
4887
|
"discriminator": [
|
|
@@ -5253,6 +5431,11 @@
|
|
|
5253
5431
|
"code": 6093,
|
|
5254
5432
|
"name": "InsufficientFundsToCloseQueuedReservation",
|
|
5255
5433
|
"msg": "Owner has insufficient ATLAS to refund the queued challenger's full bid. \\\n Deposit more ATLAS into your token account and retry. The exact \\\n shortfall amount is emitted in the program log."
|
|
5434
|
+
},
|
|
5435
|
+
{
|
|
5436
|
+
"code": 6094,
|
|
5437
|
+
"name": "InvalidInstructionData",
|
|
5438
|
+
"msg": "Fiber payload rejected. Index 0 must carry ProcessContract and index 1 \\\n must carry CloseRental, both targeting this program; and when the \\\n caller is the contract owner rather than admin, the payload must \\\n name that same contract, and that same thread."
|
|
5256
5439
|
}
|
|
5257
5440
|
],
|
|
5258
5441
|
"types": [
|
|
@@ -5947,6 +6130,30 @@
|
|
|
5947
6130
|
]
|
|
5948
6131
|
}
|
|
5949
6132
|
},
|
|
6133
|
+
{
|
|
6134
|
+
"name": "ContractFiberDoctored",
|
|
6135
|
+
"docs": [
|
|
6136
|
+
"Emitted on `contract_doctor_fiber` — one per fiber rewritten to bring a",
|
|
6137
|
+
"thread's `fiber_ids` back into agreement with the accounts they name."
|
|
6138
|
+
],
|
|
6139
|
+
"type": {
|
|
6140
|
+
"kind": "struct",
|
|
6141
|
+
"fields": [
|
|
6142
|
+
{
|
|
6143
|
+
"name": "thread",
|
|
6144
|
+
"type": "pubkey"
|
|
6145
|
+
},
|
|
6146
|
+
{
|
|
6147
|
+
"name": "fiber",
|
|
6148
|
+
"type": "pubkey"
|
|
6149
|
+
},
|
|
6150
|
+
{
|
|
6151
|
+
"name": "fiber_index",
|
|
6152
|
+
"type": "u8"
|
|
6153
|
+
}
|
|
6154
|
+
]
|
|
6155
|
+
}
|
|
6156
|
+
},
|
|
5950
6157
|
{
|
|
5951
6158
|
"name": "ContractState",
|
|
5952
6159
|
"docs": [
|
|
@@ -6944,6 +7151,46 @@
|
|
|
6944
7151
|
]
|
|
6945
7152
|
}
|
|
6946
7153
|
},
|
|
7154
|
+
{
|
|
7155
|
+
"name": "ReservationForceClosed",
|
|
7156
|
+
"docs": [
|
|
7157
|
+
"Emitted when the owner closes a contract out from under a queued",
|
|
7158
|
+
"reservation. The challenger is made whole on their gross stake —",
|
|
7159
|
+
"`refund` = `from_contract` + `from_owner`, where `from_owner` is the",
|
|
7160
|
+
"shortfall the owner tops up (the bonus already paid out during the",
|
|
7161
|
+
"contract's auction history). No CTF points are awarded: the rental",
|
|
7162
|
+
"never happened."
|
|
7163
|
+
],
|
|
7164
|
+
"type": {
|
|
7165
|
+
"kind": "struct",
|
|
7166
|
+
"fields": [
|
|
7167
|
+
{
|
|
7168
|
+
"name": "rental_state",
|
|
7169
|
+
"type": "pubkey"
|
|
7170
|
+
},
|
|
7171
|
+
{
|
|
7172
|
+
"name": "contract",
|
|
7173
|
+
"type": "pubkey"
|
|
7174
|
+
},
|
|
7175
|
+
{
|
|
7176
|
+
"name": "borrower",
|
|
7177
|
+
"type": "pubkey"
|
|
7178
|
+
},
|
|
7179
|
+
{
|
|
7180
|
+
"name": "refund",
|
|
7181
|
+
"type": "u64"
|
|
7182
|
+
},
|
|
7183
|
+
{
|
|
7184
|
+
"name": "from_contract",
|
|
7185
|
+
"type": "u64"
|
|
7186
|
+
},
|
|
7187
|
+
{
|
|
7188
|
+
"name": "from_owner",
|
|
7189
|
+
"type": "u64"
|
|
7190
|
+
}
|
|
7191
|
+
]
|
|
7192
|
+
}
|
|
7193
|
+
},
|
|
6947
7194
|
{
|
|
6948
7195
|
"name": "ReservationKnockedOff",
|
|
6949
7196
|
"docs": [
|
|
@@ -7070,6 +7317,58 @@
|
|
|
7070
7317
|
]
|
|
7071
7318
|
}
|
|
7072
7319
|
},
|
|
7320
|
+
{
|
|
7321
|
+
"name": "SerializableAccountMeta",
|
|
7322
|
+
"docs": [
|
|
7323
|
+
"Serializable version of AccountMeta"
|
|
7324
|
+
],
|
|
7325
|
+
"type": {
|
|
7326
|
+
"kind": "struct",
|
|
7327
|
+
"fields": [
|
|
7328
|
+
{
|
|
7329
|
+
"name": "pubkey",
|
|
7330
|
+
"type": "pubkey"
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"name": "is_signer",
|
|
7334
|
+
"type": "bool"
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"name": "is_writable",
|
|
7338
|
+
"type": "bool"
|
|
7339
|
+
}
|
|
7340
|
+
]
|
|
7341
|
+
}
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
"name": "SerializableInstruction",
|
|
7345
|
+
"docs": [
|
|
7346
|
+
"Serializable version of Solana's Instruction for easier handling"
|
|
7347
|
+
],
|
|
7348
|
+
"type": {
|
|
7349
|
+
"kind": "struct",
|
|
7350
|
+
"fields": [
|
|
7351
|
+
{
|
|
7352
|
+
"name": "program_id",
|
|
7353
|
+
"type": "pubkey"
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
"name": "accounts",
|
|
7357
|
+
"type": {
|
|
7358
|
+
"vec": {
|
|
7359
|
+
"defined": {
|
|
7360
|
+
"name": "SerializableAccountMeta"
|
|
7361
|
+
}
|
|
7362
|
+
}
|
|
7363
|
+
}
|
|
7364
|
+
},
|
|
7365
|
+
{
|
|
7366
|
+
"name": "data",
|
|
7367
|
+
"type": "bytes"
|
|
7368
|
+
}
|
|
7369
|
+
]
|
|
7370
|
+
}
|
|
7371
|
+
},
|
|
7073
7372
|
{
|
|
7074
7373
|
"name": "ShipCounts",
|
|
7075
7374
|
"docs": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* The runtime tree is generated alongside the type so they can never drift.
|
|
15
15
|
*/
|
|
16
16
|
import type { AuditEvent } from './types';
|
|
17
|
-
declare const EVENT_MANIFEST: readonly [readonly ["RentalAccepted", "rental", "accepted"], readonly ["RentalSettled", "rental", "settled"], readonly ["RentalCancelled", "rental", "cancelled"], readonly ["RentalClosed", "rental", "closed"], readonly ["OwnerPaid", "owner", "paid"], readonly ["FeesPaid", "fees", "paid"], readonly ["ContractCreated", "contract", "created"], readonly ["ContractUpdated", "contract", "updated"], readonly ["ContractCloseQueued", "contract", "closeQueued"], readonly ["ContractClosed", "contract", "closed"], readonly ["DelegateSet", "contract", "delegateSet"], readonly ["ReservationPlaced", "reservation", "placed"], readonly ["ReservationKnockedOff", "reservation", "knockedOff"], readonly ["ThreadCreated", "thread", "created"], readonly ["ThreadFunded", "thread", "funded"], readonly ["ThreadClosed", "thread", "closed"], readonly ["BorrowerCreated", "borrower", "created"], readonly ["BorrowerClaimed", "borrower", "claimed"], readonly ["BorrowerClosed", "borrower", "closed"]];
|
|
17
|
+
declare const EVENT_MANIFEST: readonly [readonly ["RentalAccepted", "rental", "accepted"], readonly ["RentalSettled", "rental", "settled"], readonly ["RentalCancelled", "rental", "cancelled"], readonly ["RentalClosed", "rental", "closed"], readonly ["OwnerPaid", "owner", "paid"], readonly ["FeesPaid", "fees", "paid"], readonly ["ContractCreated", "contract", "created"], readonly ["ContractUpdated", "contract", "updated"], readonly ["ContractCloseQueued", "contract", "closeQueued"], readonly ["ContractClosed", "contract", "closed"], readonly ["DelegateSet", "contract", "delegateSet"], readonly ["StaleDecayApplied", "contract", "staleDecayApplied"], readonly ["ReservationPlaced", "reservation", "placed"], readonly ["ReservationKnockedOff", "reservation", "knockedOff"], readonly ["ReservationForceClosed", "reservation", "forceClosed"], readonly ["ThreadCreated", "thread", "created"], readonly ["ThreadFunded", "thread", "funded"], readonly ["ThreadClosed", "thread", "closed"], readonly ["ContractFiberDoctored", "contract", "fiberDoctored"], readonly ["BorrowerCreated", "borrower", "created"], readonly ["BorrowerClaimed", "borrower", "claimed"], readonly ["BorrowerClosed", "borrower", "closed"]];
|
|
18
18
|
type Manifest = typeof EVENT_MANIFEST;
|
|
19
19
|
type ManifestRow = Manifest[number];
|
|
20
20
|
type EventGroup = ManifestRow[1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-registry.d.ts","sourceRoot":"","sources":["../../../src/audit/events-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"events-registry.d.ts","sourceRoot":"","sources":["../../../src/audit/events-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,QAAA,MAAM,cAAc,6pCAuBV,CAAC;AAEX,KAAK,QAAQ,GAAG,OAAO,cAAc,CAAC;AACtC,KAAK,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AACpC,KAAK,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AACjC,KAAK,YAAY,CAAC,CAAC,SAAS,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7F,4EAA4E;AAC5E,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,UAAU;IAChD,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,MAAM,IAAI,CAAC;CAC/D;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,IAAI;IACjD,2CAA2C;IAC3C,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC,CAAC,CAAC;CACtE,GAAG;KACD,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAErC,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC,CACpF;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,kEAAkE;IAClE,GAAG,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CAC/B,GAAG;KACD,CAAC,IAAI,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC;CACrC,CAAC;AA0CF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,EAAE,UAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/audit/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/audit/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA2pB1C;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,UAAU,EAAE,CAqDd"}
|
|
@@ -4,5 +4,5 @@ export { closeSrslyEventListener, createSrslyEventListener, getEventsFromTx, onS
|
|
|
4
4
|
export { events } from './events-registry';
|
|
5
5
|
export type { EventChannel, EventsTree, GroupNamespace } from './events-registry';
|
|
6
6
|
export type { CreateSrslyEventListenerOpts, ListenerCommitment, SrslyAnyEventHandler, SrslyEventHandler, SrslyEventListener, SrslyEventName, SrslyProcessOpts, SrslyStartOpts, } from './listener';
|
|
7
|
-
export type { AuditEvent, AuditOptions, BorrowerClaimedEvent, BorrowerClosedEvent, BorrowerCreatedEvent, ContractAuditReport, ContractCloseQueuedEvent, ContractClosedEvent, ContractCreatedEvent, ContractUpdatedEvent, DelegateSetEvent, FeesPaidEvent, OwnerPaidEvent, RentalAcceptedEvent, RentalAudit, RentalCancelledEvent, RentalClosedEvent, RentalReconciliation, RentalSettledEvent, RentalStatus, ReservationKnockedOffEvent, ReservationPlacedEvent, ThreadClosedEvent, ThreadCreatedEvent, ThreadFundedEvent, } from './types';
|
|
7
|
+
export type { AuditEvent, AuditOptions, BorrowerClaimedEvent, BorrowerClosedEvent, BorrowerCreatedEvent, ContractAuditReport, ContractCloseQueuedEvent, ContractClosedEvent, ContractCreatedEvent, ContractFiberDoctoredEvent, ContractUpdatedEvent, DelegateSetEvent, FeesPaidEvent, OwnerPaidEvent, RentalAcceptedEvent, RentalAudit, RentalCancelledEvent, RentalClosedEvent, RentalReconciliation, RentalSettledEvent, RentalStatus, ReservationForceClosedEvent, ReservationKnockedOffEvent, ReservationPlacedEvent, StaleDecayAppliedEvent, ThreadClosedEvent, ThreadCreatedEvent, ThreadFundedEvent, } from './types';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EACf,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClF,YAAY,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EACf,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClF,YAAY,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -112,6 +112,19 @@ export interface DelegateSetEvent {
|
|
|
112
112
|
slot: bigint;
|
|
113
113
|
signature: string;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* A contract's rate was decayed after sitting idle. Emitted by
|
|
117
|
+
* `accept_rental` when it closes out a stale window.
|
|
118
|
+
*/
|
|
119
|
+
export interface StaleDecayAppliedEvent {
|
|
120
|
+
type: 'StaleDecayApplied';
|
|
121
|
+
contract: Address;
|
|
122
|
+
oldRate: bigint;
|
|
123
|
+
newRate: bigint;
|
|
124
|
+
staleSeconds: bigint;
|
|
125
|
+
slot: bigint;
|
|
126
|
+
signature: string;
|
|
127
|
+
}
|
|
115
128
|
export interface ReservationPlacedEvent {
|
|
116
129
|
type: 'ReservationPlaced';
|
|
117
130
|
rentalState: Address;
|
|
@@ -136,6 +149,24 @@ export interface ReservationKnockedOffEvent {
|
|
|
136
149
|
slot: bigint;
|
|
137
150
|
signature: string;
|
|
138
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* The owner closed a contract out from under a queued reservation. The
|
|
154
|
+
* challenger is made whole on their gross stake — `refund` equals
|
|
155
|
+
* `fromContract + fromOwner`, where `fromOwner` is the shortfall the owner
|
|
156
|
+
* tops up (the bonus already paid out during the contract's auction
|
|
157
|
+
* history). No capture points are awarded: the rental never happened.
|
|
158
|
+
*/
|
|
159
|
+
export interface ReservationForceClosedEvent {
|
|
160
|
+
type: 'ReservationForceClosed';
|
|
161
|
+
rentalState: Address;
|
|
162
|
+
contract: Address;
|
|
163
|
+
borrower: Address;
|
|
164
|
+
refund: bigint;
|
|
165
|
+
fromContract: bigint;
|
|
166
|
+
fromOwner: bigint;
|
|
167
|
+
slot: bigint;
|
|
168
|
+
signature: string;
|
|
169
|
+
}
|
|
139
170
|
export interface ThreadCreatedEvent {
|
|
140
171
|
type: 'ThreadCreated';
|
|
141
172
|
contract: Address;
|
|
@@ -161,6 +192,20 @@ export interface ThreadClosedEvent {
|
|
|
161
192
|
slot: bigint;
|
|
162
193
|
signature: string;
|
|
163
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* One fiber rewritten to bring a thread's `fiber_ids` back into agreement with
|
|
197
|
+
* the accounts they name. Carries no `contract` — the instruction deliberately
|
|
198
|
+
* does not bind the thread to a contract account on the admin path, since that
|
|
199
|
+
* account may be exactly what is unreadable.
|
|
200
|
+
*/
|
|
201
|
+
export interface ContractFiberDoctoredEvent {
|
|
202
|
+
type: 'ContractFiberDoctored';
|
|
203
|
+
thread: Address;
|
|
204
|
+
fiber: Address;
|
|
205
|
+
fiberIndex: number;
|
|
206
|
+
slot: bigint;
|
|
207
|
+
signature: string;
|
|
208
|
+
}
|
|
164
209
|
export interface BorrowerCreatedEvent {
|
|
165
210
|
type: 'BorrowerCreated';
|
|
166
211
|
borrowerState: Address;
|
|
@@ -183,7 +228,7 @@ export interface BorrowerClosedEvent {
|
|
|
183
228
|
slot: bigint;
|
|
184
229
|
signature: string;
|
|
185
230
|
}
|
|
186
|
-
export type AuditEvent = RentalAcceptedEvent | RentalSettledEvent | RentalCancelledEvent | RentalClosedEvent | OwnerPaidEvent | FeesPaidEvent | ContractCreatedEvent | ContractUpdatedEvent | ContractCloseQueuedEvent | ContractClosedEvent | DelegateSetEvent | ReservationPlacedEvent | ReservationKnockedOffEvent | ThreadCreatedEvent | ThreadFundedEvent | ThreadClosedEvent | BorrowerCreatedEvent | BorrowerClaimedEvent | BorrowerClosedEvent;
|
|
231
|
+
export type AuditEvent = RentalAcceptedEvent | RentalSettledEvent | RentalCancelledEvent | RentalClosedEvent | OwnerPaidEvent | FeesPaidEvent | ContractCreatedEvent | ContractUpdatedEvent | ContractCloseQueuedEvent | ContractClosedEvent | DelegateSetEvent | StaleDecayAppliedEvent | ReservationPlacedEvent | ReservationKnockedOffEvent | ReservationForceClosedEvent | ThreadCreatedEvent | ThreadFundedEvent | ThreadClosedEvent | ContractFiberDoctoredEvent | BorrowerCreatedEvent | BorrowerClaimedEvent | BorrowerClosedEvent;
|
|
187
232
|
export interface RentalReconciliation {
|
|
188
233
|
escrow: bigint;
|
|
189
234
|
escrowAccounted: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/audit/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,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AC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,OAAO,GAAG,IAAI,CAAC;QACnC,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @purpose Contract health diagnosis
|
|
3
|
+
*
|
|
4
|
+
* Reports why a contract has stopped settling, from account state alone.
|
|
5
|
+
*
|
|
6
|
+
* @module doctor
|
|
7
|
+
*/
|
|
8
|
+
import { type Address } from '@solana/kit';
|
|
9
|
+
import { type Thread } from '../generated/codama/types/thread';
|
|
10
|
+
/** What is wrong with a contract. */
|
|
11
|
+
export type ContractFindingCode =
|
|
12
|
+
/** `contract.thread` is unset — the contract has no automation at all. */
|
|
13
|
+
'threadNotConfigured'
|
|
14
|
+
/** `contract.thread` names an account that does not exist. */
|
|
15
|
+
| 'threadMissing'
|
|
16
|
+
/**
|
|
17
|
+
* The thread tracks a fiber index in `fiber_ids` whose account is gone. This
|
|
18
|
+
* is the condition `contractDoctorFiber` repairs: every executor fails to
|
|
19
|
+
* build with `Fiber <pubkey> not found`, so the contract stops settling.
|
|
20
|
+
*/
|
|
21
|
+
| 'fiberMissing'
|
|
22
|
+
/** A rental is active but the thread is paused, so nothing will settle. */
|
|
23
|
+
| 'threadPaused'
|
|
24
|
+
/** The thread cannot fund its own executions. */
|
|
25
|
+
| 'threadUnderfunded'
|
|
26
|
+
/** The active rental is past its end time and has not been closed. */
|
|
27
|
+
| 'rentalOverdue'
|
|
28
|
+
/** The active rental has not been settled in a long time. */
|
|
29
|
+
| 'settlementStalled'
|
|
30
|
+
/**
|
|
31
|
+
* The owner's ATLAS ATA — fiber 0's payout destination — does not exist.
|
|
32
|
+
* Settlement still accrues to `owner_claimable`, but nothing can be paid
|
|
33
|
+
* out, and a contract flagged `to_close` cannot finish closing.
|
|
34
|
+
*/
|
|
35
|
+
| 'ownerTokenAccountMissing';
|
|
36
|
+
export interface ContractFinding {
|
|
37
|
+
code: ContractFindingCode;
|
|
38
|
+
/** `critical` means the contract cannot make progress on its own. */
|
|
39
|
+
severity: 'critical' | 'warning';
|
|
40
|
+
/** Human-readable, safe to print directly. */
|
|
41
|
+
message: string;
|
|
42
|
+
/** Present on `fiberMissing`. */
|
|
43
|
+
fiberIndex?: number;
|
|
44
|
+
/** Present on `fiberMissing` — the account that needs rewriting. */
|
|
45
|
+
fiber?: Address;
|
|
46
|
+
}
|
|
47
|
+
/** Value that cannot move while the contract is stuck. */
|
|
48
|
+
export interface ContractAtRisk {
|
|
49
|
+
/** Escrow still held for the active rental. */
|
|
50
|
+
activeRentalEscrow: bigint;
|
|
51
|
+
/** Settled earnings the owner has not claimed. */
|
|
52
|
+
ownerClaimable: bigint;
|
|
53
|
+
/** Fees accrued but not yet flushed to the vault. */
|
|
54
|
+
feeClaimable: bigint;
|
|
55
|
+
}
|
|
56
|
+
export interface ContractDiagnosis {
|
|
57
|
+
contract: Address;
|
|
58
|
+
owner: Address | null;
|
|
59
|
+
fleet: Address | null;
|
|
60
|
+
thread: Address | null;
|
|
61
|
+
/** True when `findings` holds nothing critical. */
|
|
62
|
+
healthy: boolean;
|
|
63
|
+
findings: ContractFinding[];
|
|
64
|
+
/**
|
|
65
|
+
* Fiber indices the thread tracks whose accounts do not exist. These are
|
|
66
|
+
* exactly the indices to pass to `contractDoctorFiber`, one call each.
|
|
67
|
+
*/
|
|
68
|
+
missingFibers: number[];
|
|
69
|
+
atRisk: ContractAtRisk;
|
|
70
|
+
/** Thread balance, or null when the thread is missing. */
|
|
71
|
+
threadLamports: bigint | null;
|
|
72
|
+
/**
|
|
73
|
+
* The owner's ATLAS ATA, fiber 0's payout destination. Null when it was not
|
|
74
|
+
* probed — no thread configured, or the config account was unreadable.
|
|
75
|
+
*/
|
|
76
|
+
ownerTokenAccount: Address | null;
|
|
77
|
+
}
|
|
78
|
+
export interface DiagnoseOptions {
|
|
79
|
+
/** RPC endpoint. Defaults to the configured one. */
|
|
80
|
+
rpcUrl?: string;
|
|
81
|
+
/** Wall clock to judge staleness against. Defaults to now. */
|
|
82
|
+
nowSeconds?: bigint;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The contract a thread belongs to.
|
|
86
|
+
*
|
|
87
|
+
* `create_contract_thread` passes `contract.key()` as the thread's id, so the
|
|
88
|
+
* id bytes *are* the contract address. This is the only way back from a thread
|
|
89
|
+
* to its contract without scanning every contract account — which matters when
|
|
90
|
+
* the input is a recovery manifest, since those are keyed by thread.
|
|
91
|
+
*
|
|
92
|
+
* @param thread - Decoded thread account
|
|
93
|
+
* @returns The contract address the thread automates
|
|
94
|
+
*/
|
|
95
|
+
export declare function contractFromThread(thread: Pick<Thread, 'id'>): Address;
|
|
96
|
+
/**
|
|
97
|
+
* Diagnose one contract.
|
|
98
|
+
*
|
|
99
|
+
* Reads account state only — it never walks transaction history, so it costs
|
|
100
|
+
* two RPC round trips regardless of how long the contract has existed. That is
|
|
101
|
+
* deliberate: reconstructing a fiber's *content* needs history and belongs to
|
|
102
|
+
* `antegen thread doctor`; deciding whether a contract is stuck does not.
|
|
103
|
+
*
|
|
104
|
+
* @param contractAddress - Contract to diagnose
|
|
105
|
+
* @param options - RPC and clock overrides
|
|
106
|
+
* @returns The diagnosis, with `missingFibers` ready to feed `contractDoctorFiber`
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const dx = await diagnoseContract('ContractAddress...');
|
|
111
|
+
* if (!dx.healthy) {
|
|
112
|
+
* for (const f of dx.findings) console.log(f.severity, f.message);
|
|
113
|
+
* }
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
export declare function diagnoseContract(contractAddress: Address | string, options?: DiagnoseOptions): Promise<ContractDiagnosis>;
|
|
117
|
+
/**
|
|
118
|
+
* Diagnose every contract the program owns.
|
|
119
|
+
*
|
|
120
|
+
* Runs the per-contract diagnosis with bounded concurrency rather than all at
|
|
121
|
+
* once — a full scan is thousands of round trips and will otherwise trip any
|
|
122
|
+
* provider's rate limit.
|
|
123
|
+
*
|
|
124
|
+
* @param options - RPC and clock overrides, plus concurrency
|
|
125
|
+
* @returns One diagnosis per contract, in discovery order
|
|
126
|
+
*/
|
|
127
|
+
export declare function diagnoseAllContracts(options?: DiagnoseOptions & {
|
|
128
|
+
/** Simultaneous diagnoses. Defaults to 8. */
|
|
129
|
+
concurrency?: number;
|
|
130
|
+
/** Called after each contract, for progress reporting. */
|
|
131
|
+
onProgress?: (done: number, total: number) => void;
|
|
132
|
+
}): Promise<ContractDiagnosis[]>;
|
|
133
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/doctor/contract.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAuC,MAAM,aAAa,CAAC;AAChF,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAoCjF,qCAAqC;AACrC,MAAM,MAAM,mBAAmB;AAC7B,0EAA0E;AACxE,qBAAqB;AACvB,8DAA8D;GAC5D,eAAe;AACjB;;;;GAIG;GACD,cAAc;AAChB,2EAA2E;GACzE,cAAc;AAChB,iDAAiD;GAC/C,mBAAmB;AACrB,sEAAsE;GACpE,eAAe;AACjB,6DAA6D;GAC3D,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