@qubic.org/contracts 0.2.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.
- package/README.md +285 -0
- package/dist/__generated__/computorcontrolledfund.d.ts +185 -0
- package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -0
- package/dist/__generated__/computorcontrolledfund.js +805 -0
- package/dist/__generated__/computorcontrolledfund.js.map +1 -0
- package/dist/__generated__/escrow.d.ts +103 -0
- package/dist/__generated__/escrow.d.ts.map +1 -0
- package/dist/__generated__/escrow.js +383 -0
- package/dist/__generated__/escrow.js.map +1 -0
- package/dist/__generated__/generalquorumproposal.d.ts +130 -0
- package/dist/__generated__/generalquorumproposal.d.ts.map +1 -0
- package/dist/__generated__/generalquorumproposal.js +499 -0
- package/dist/__generated__/generalquorumproposal.js.map +1 -0
- package/dist/__generated__/index.d.ts +28 -0
- package/dist/__generated__/index.d.ts.map +1 -0
- package/dist/__generated__/index.js +28 -0
- package/dist/__generated__/index.js.map +1 -0
- package/dist/__generated__/msvault.d.ts +336 -0
- package/dist/__generated__/msvault.d.ts.map +1 -0
- package/dist/__generated__/msvault.js +1187 -0
- package/dist/__generated__/msvault.js.map +1 -0
- package/dist/__generated__/multisignvault.d.ts +348 -0
- package/dist/__generated__/multisignvault.d.ts.map +1 -0
- package/dist/__generated__/multisignvault.js +913 -0
- package/dist/__generated__/multisignvault.js.map +1 -0
- package/dist/__generated__/mylastmatch.d.ts +5 -0
- package/dist/__generated__/mylastmatch.d.ts.map +1 -0
- package/dist/__generated__/mylastmatch.js +7 -0
- package/dist/__generated__/mylastmatch.js.map +1 -0
- package/dist/__generated__/nostromo.d.ts +295 -0
- package/dist/__generated__/nostromo.d.ts.map +1 -0
- package/dist/__generated__/nostromo.js +1113 -0
- package/dist/__generated__/nostromo.js.map +1 -0
- package/dist/__generated__/pulse.d.ts +320 -0
- package/dist/__generated__/pulse.d.ts.map +1 -0
- package/dist/__generated__/pulse.js +1024 -0
- package/dist/__generated__/pulse.js.map +1 -0
- package/dist/__generated__/qbay.d.ts +415 -0
- package/dist/__generated__/qbay.d.ts.map +1 -0
- package/dist/__generated__/qbay.js +1486 -0
- package/dist/__generated__/qbay.js.map +1 -0
- package/dist/__generated__/qbond.d.ts +210 -0
- package/dist/__generated__/qbond.d.ts.map +1 -0
- package/dist/__generated__/qbond.js +694 -0
- package/dist/__generated__/qbond.js.map +1 -0
- package/dist/__generated__/qdraw.d.ts +39 -0
- package/dist/__generated__/qdraw.d.ts.map +1 -0
- package/dist/__generated__/qdraw.js +135 -0
- package/dist/__generated__/qdraw.js.map +1 -0
- package/dist/__generated__/qduel.d.ts +171 -0
- package/dist/__generated__/qduel.d.ts.map +1 -0
- package/dist/__generated__/qduel.js +573 -0
- package/dist/__generated__/qduel.js.map +1 -0
- package/dist/__generated__/qearn.d.ts +139 -0
- package/dist/__generated__/qearn.d.ts.map +1 -0
- package/dist/__generated__/qearn.js +471 -0
- package/dist/__generated__/qearn.js.map +1 -0
- package/dist/__generated__/qip.d.ts +84 -0
- package/dist/__generated__/qip.d.ts.map +1 -0
- package/dist/__generated__/qip.js +303 -0
- package/dist/__generated__/qip.js.map +1 -0
- package/dist/__generated__/qraffle.d.ts +235 -0
- package/dist/__generated__/qraffle.d.ts.map +1 -0
- package/dist/__generated__/qraffle.js +798 -0
- package/dist/__generated__/qraffle.js.map +1 -0
- package/dist/__generated__/qreservepool.d.ts +70 -0
- package/dist/__generated__/qreservepool.d.ts.map +1 -0
- package/dist/__generated__/qreservepool.js +177 -0
- package/dist/__generated__/qreservepool.js.map +1 -0
- package/dist/__generated__/qrwa.d.ts +285 -0
- package/dist/__generated__/qrwa.d.ts.map +1 -0
- package/dist/__generated__/qrwa.js +1063 -0
- package/dist/__generated__/qrwa.js.map +1 -0
- package/dist/__generated__/qswap.d.ts +273 -0
- package/dist/__generated__/qswap.d.ts.map +1 -0
- package/dist/__generated__/qswap.js +897 -0
- package/dist/__generated__/qswap.js.map +1 -0
- package/dist/__generated__/qthirtyfour.d.ts +231 -0
- package/dist/__generated__/qthirtyfour.d.ts.map +1 -0
- package/dist/__generated__/qthirtyfour.js +790 -0
- package/dist/__generated__/qthirtyfour.js.map +1 -0
- package/dist/__generated__/qubicicoportal.d.ts +81 -0
- package/dist/__generated__/qubicicoportal.d.ts.map +1 -0
- package/dist/__generated__/qubicicoportal.js +260 -0
- package/dist/__generated__/qubicicoportal.js.map +1 -0
- package/dist/__generated__/quottery.d.ts +308 -0
- package/dist/__generated__/quottery.d.ts.map +1 -0
- package/dist/__generated__/quottery.js +1062 -0
- package/dist/__generated__/quottery.js.map +1 -0
- package/dist/__generated__/qusino.d.ts +172 -0
- package/dist/__generated__/qusino.d.ts.map +1 -0
- package/dist/__generated__/qusino.js +533 -0
- package/dist/__generated__/qusino.js.map +1 -0
- package/dist/__generated__/qutil.d.ts +310 -0
- package/dist/__generated__/qutil.d.ts.map +1 -0
- package/dist/__generated__/qutil.js +1033 -0
- package/dist/__generated__/qutil.js.map +1 -0
- package/dist/__generated__/qvault.d.ts +535 -0
- package/dist/__generated__/qvault.d.ts.map +1 -0
- package/dist/__generated__/qvault.js +2047 -0
- package/dist/__generated__/qvault.js.map +1 -0
- package/dist/__generated__/qx.d.ts +178 -0
- package/dist/__generated__/qx.d.ts.map +1 -0
- package/dist/__generated__/qx.js +586 -0
- package/dist/__generated__/qx.js.map +1 -0
- package/dist/__generated__/random.d.ts +12 -0
- package/dist/__generated__/random.d.ts.map +1 -0
- package/dist/__generated__/random.js +26 -0
- package/dist/__generated__/random.js.map +1 -0
- package/dist/__generated__/randomlottery.d.ts +135 -0
- package/dist/__generated__/randomlottery.d.ts.map +1 -0
- package/dist/__generated__/randomlottery.js +451 -0
- package/dist/__generated__/randomlottery.js.map +1 -0
- package/dist/__generated__/supplywatcher.d.ts +5 -0
- package/dist/__generated__/supplywatcher.d.ts.map +1 -0
- package/dist/__generated__/supplywatcher.js +7 -0
- package/dist/__generated__/supplywatcher.js.map +1 -0
- package/dist/__generated__/vottunbridge.d.ts +226 -0
- package/dist/__generated__/vottunbridge.d.ts.map +1 -0
- package/dist/__generated__/vottunbridge.js +835 -0
- package/dist/__generated__/vottunbridge.js.map +1 -0
- package/dist/call-contract.d.ts +25 -0
- package/dist/call-contract.d.ts.map +1 -0
- package/dist/call-contract.js +41 -0
- package/dist/call-contract.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/result.d.ts +12 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +7 -0
- package/dist/result.js.map +1 -0
- package/package.json +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# `@qubic.org/contracts`
|
|
2
|
+
|
|
3
|
+
Generated typed TypeScript wrappers for every deployed Qubic smart contract.
|
|
4
|
+
|
|
5
|
+
This package provides ready-to-use, fully-typed functions for every procedure and function exposed by Qubic's on-chain contracts. It is generated from the latest epoch snapshot in `@qubic.org/registry` and eliminates the need to manually construct binary payloads or look up ABI field descriptors. The generated files are committed — consumers do not need to run the generator.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add @qubic.org/contracts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
In a monorepo workspace:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{ "dependencies": { "@qubic.org/contracts": "workspace:*" } }
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Supported contracts
|
|
20
|
+
|
|
21
|
+
| Contract | Index |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Random | 3 |
|
|
24
|
+
| MyLastMatch | 5 |
|
|
25
|
+
| Qx | 1 |
|
|
26
|
+
| Quottery | 2 |
|
|
27
|
+
| QUtil | 4 |
|
|
28
|
+
| SupplyWatcher | 7 |
|
|
29
|
+
| ComputorControlledFund | 8 |
|
|
30
|
+
| Qearn | 9 |
|
|
31
|
+
| QVault | 10 |
|
|
32
|
+
| MsVault / MultiSignVault | 11 |
|
|
33
|
+
| Qbay | 12 |
|
|
34
|
+
| Qswap | 13 |
|
|
35
|
+
| Nostromo | 14 |
|
|
36
|
+
| Qdraw | 15 |
|
|
37
|
+
| RandomLottery | 16 |
|
|
38
|
+
| QBond | 17 |
|
|
39
|
+
| QIP | 18 |
|
|
40
|
+
| QRaffle | 19 |
|
|
41
|
+
| qRWA | 20 |
|
|
42
|
+
| QReservePool | 21 |
|
|
43
|
+
| QThirtyFour | 22 |
|
|
44
|
+
| QDuel | 23 |
|
|
45
|
+
| Pulse | 24 |
|
|
46
|
+
| VottunBridge | 25 |
|
|
47
|
+
| Qusino | 26 |
|
|
48
|
+
| Escrow | 27 |
|
|
49
|
+
| GeneralQuorumProposal | 6 |
|
|
50
|
+
|
|
51
|
+
## API Reference
|
|
52
|
+
|
|
53
|
+
### `Result<T, E>` type
|
|
54
|
+
|
|
55
|
+
All async callers return `Result` — a discriminated union that never throws on contract errors.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E }
|
|
59
|
+
|
|
60
|
+
function ok<T>(value: T): Ok<T>
|
|
61
|
+
function err<E>(error: E): Err<E>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### `SmartContractCaller` interface
|
|
65
|
+
|
|
66
|
+
Any live node client that implements `querySmartContract` satisfies this interface, including `createLiveClient()` from `@qubic.org/rpc`.
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
interface SmartContractCaller {
|
|
70
|
+
querySmartContract(req: QuerySmartContractRequest): Promise<QuerySmartContractResponse>
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### `ContractCallOptions`
|
|
75
|
+
|
|
76
|
+
Optional converters injected into function callers for `id`-typed fields. Both default to no-ops (zero public key / `'AAA...AAA'` identity) if omitted.
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
interface ContractCallOptions {
|
|
80
|
+
identityToPublicKey?: (identity: string) => Uint8Array
|
|
81
|
+
publicKeyToIdentity?: (pk: Uint8Array) => string
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### `callContractFunction`
|
|
86
|
+
|
|
87
|
+
Low-level function used by generated wrappers. Useful when calling a contract not yet in the generated set.
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
async function callContractFunction<TInput, TOutput>(
|
|
91
|
+
options: CallContractFunctionOptions<TInput>,
|
|
92
|
+
): Promise<Result<TOutput, QubicRpcError>>
|
|
93
|
+
|
|
94
|
+
interface CallContractFunctionOptions<TInput> {
|
|
95
|
+
live: SmartContractCaller
|
|
96
|
+
contractIndex: number
|
|
97
|
+
inputType: number
|
|
98
|
+
inputSize: number
|
|
99
|
+
inputFields: BinaryField[]
|
|
100
|
+
outputFields: BinaryField[]
|
|
101
|
+
structs: Record<string, NamedStruct>
|
|
102
|
+
input: TInput
|
|
103
|
+
identityToPublicKey?: (identity: string) => Uint8Array
|
|
104
|
+
publicKeyToIdentity?: (pk: Uint8Array) => string
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Per-contract exports (Qearn example)
|
|
109
|
+
|
|
110
|
+
Every contract follows the same pattern. Qearn (index 9) exports:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
// Constants
|
|
114
|
+
const QEARN_CONTRACT_INDEX: 9
|
|
115
|
+
const QEARN_LOCK_INPUT_TYPE: 6
|
|
116
|
+
const QEARN_UNLOCK_INPUT_TYPE: 7
|
|
117
|
+
const QEARN_GET_STATE_OF_ROUND_INPUT_TYPE: 3
|
|
118
|
+
// ... one INPUT_TYPE constant per procedure and function
|
|
119
|
+
|
|
120
|
+
// Procedure payload builders (for transaction inputs)
|
|
121
|
+
function buildQearnUnlockInput(
|
|
122
|
+
input: QearnUnlockInput,
|
|
123
|
+
identityToPublicKey?: (identity: string) => Uint8Array,
|
|
124
|
+
): Uint8Array
|
|
125
|
+
|
|
126
|
+
// Procedure output decoders
|
|
127
|
+
function decodeQearnLockOutput(
|
|
128
|
+
data: Uint8Array,
|
|
129
|
+
publicKeyToIdentity?: (pk: Uint8Array) => string,
|
|
130
|
+
): QearnLockOutput
|
|
131
|
+
|
|
132
|
+
function decodeQearnUnlockOutput(
|
|
133
|
+
data: Uint8Array,
|
|
134
|
+
publicKeyToIdentity?: (pk: Uint8Array) => string,
|
|
135
|
+
): QearnUnlockOutput
|
|
136
|
+
|
|
137
|
+
// Function callers (async read-only RPC queries)
|
|
138
|
+
function qearnGetStateOfRound(
|
|
139
|
+
live: SmartContractCaller,
|
|
140
|
+
input: QearnGetStateOfRoundInput,
|
|
141
|
+
options?: ContractCallOptions,
|
|
142
|
+
): Promise<Result<QearnGetStateOfRoundOutput, QubicRpcError>>
|
|
143
|
+
|
|
144
|
+
function qearnGetLockInfoPerEpoch(live, input, options?)
|
|
145
|
+
function qearnGetUserLockedInfo(live, input, options?)
|
|
146
|
+
function qearnGetUserLockStatus(live, input, options?)
|
|
147
|
+
function qearnGetEndedStatus(live, input, options?)
|
|
148
|
+
function qearnGetStatsPerEpoch(live, input, options?)
|
|
149
|
+
function qearnGetBurnedAndBoostedStats(live, options?)
|
|
150
|
+
function qearnGetBurnedAndBoostedStatsPerEpoch(live, input, options?)
|
|
151
|
+
|
|
152
|
+
// Namespace object — all of the above collected
|
|
153
|
+
const qearn: {
|
|
154
|
+
contractIndex: 9
|
|
155
|
+
getLockInfoPerEpoch: typeof qearnGetLockInfoPerEpoch
|
|
156
|
+
getUserLockedInfo: typeof qearnGetUserLockedInfo
|
|
157
|
+
getStateOfRound: typeof qearnGetStateOfRound
|
|
158
|
+
getUserLockStatus: typeof qearnGetUserLockStatus
|
|
159
|
+
getEndedStatus: typeof qearnGetEndedStatus
|
|
160
|
+
getStatsPerEpoch: typeof qearnGetStatsPerEpoch
|
|
161
|
+
getBurnedAndBoostedStats: typeof qearnGetBurnedAndBoostedStats
|
|
162
|
+
getBurnedAndBoostedStatsPerEpoch: typeof qearnGetBurnedAndBoostedStatsPerEpoch
|
|
163
|
+
decodeLockOutput: typeof decodeQearnLockOutput
|
|
164
|
+
buildUnlockInput: typeof buildQearnUnlockInput
|
|
165
|
+
decodeUnlockOutput: typeof decodeQearnUnlockOutput
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
All other contracts export the same structure with names derived from their contract name.
|
|
170
|
+
|
|
171
|
+
## Examples
|
|
172
|
+
|
|
173
|
+
### Query a contract function
|
|
174
|
+
|
|
175
|
+
```ts
|
|
176
|
+
import { createLiveClient } from '@qubic.org/rpc'
|
|
177
|
+
import { qearnGetStateOfRound } from '@qubic.org/contracts'
|
|
178
|
+
|
|
179
|
+
const live = createLiveClient({ baseUrl: 'https://rpc.qubic.org' })
|
|
180
|
+
|
|
181
|
+
const result = await qearnGetStateOfRound(live, { epoch: 212 })
|
|
182
|
+
|
|
183
|
+
if (result.ok) {
|
|
184
|
+
console.log('round state:', result.value.state)
|
|
185
|
+
} else {
|
|
186
|
+
console.error('RPC error:', result.error.message)
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Use the namespace object
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
import { createLiveClient } from '@qubic.org/rpc'
|
|
194
|
+
import { qearn } from '@qubic.org/contracts'
|
|
195
|
+
|
|
196
|
+
const live = createLiveClient({ baseUrl: 'https://rpc.qubic.org' })
|
|
197
|
+
|
|
198
|
+
const result = await qearn.getStatsPerEpoch(live, { epoch: 212 })
|
|
199
|
+
if (result.ok) {
|
|
200
|
+
console.log('total locked:', result.value.totalLockedAmount)
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Build a procedure input for a transaction
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
import { buildQearnUnlockInput } from '@qubic.org/contracts'
|
|
208
|
+
import { identityToPublicKey } from '@qubic.org/crypto'
|
|
209
|
+
|
|
210
|
+
const payload = buildQearnUnlockInput(
|
|
211
|
+
{ amount: 5_000_000n, lockedEpoch: 210 },
|
|
212
|
+
identityToPublicKey,
|
|
213
|
+
)
|
|
214
|
+
// payload is a Uint8Array ready to embed in a transaction
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Decode a procedure output returned from a node
|
|
218
|
+
|
|
219
|
+
```ts
|
|
220
|
+
import { decodeQearnLockOutput } from '@qubic.org/contracts'
|
|
221
|
+
|
|
222
|
+
const output = decodeQearnLockOutput(responseBytes)
|
|
223
|
+
console.log('returnCode:', output.returnCode)
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Pass identity converters for id-typed fields
|
|
227
|
+
|
|
228
|
+
```ts
|
|
229
|
+
import { identityToPublicKey, publicKeyToIdentity } from '@qubic.org/crypto'
|
|
230
|
+
import { qearnGetUserLockedInfo } from '@qubic.org/contracts'
|
|
231
|
+
|
|
232
|
+
const result = await qearnGetUserLockedInfo(
|
|
233
|
+
live,
|
|
234
|
+
{ user: 'BZBQFLLBNCXEMGLOBHUVGPKHZALRYIZMDRCU...', epoch: 212 },
|
|
235
|
+
{ identityToPublicKey, publicKeyToIdentity },
|
|
236
|
+
)
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Error handling
|
|
240
|
+
|
|
241
|
+
Function callers never throw on network or RPC errors — they wrap them in `Result`:
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
import { QubicRpcError } from '@qubic.org/rpc'
|
|
245
|
+
|
|
246
|
+
const result = await qearnGetStateOfRound(live, { epoch: 212 })
|
|
247
|
+
|
|
248
|
+
if (!result.ok) {
|
|
249
|
+
const e = result.error // QubicRpcError
|
|
250
|
+
console.error(e.message)
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
`PayloadBuildError` can still be thrown synchronously by procedure builders if the input object is malformed:
|
|
255
|
+
|
|
256
|
+
```ts
|
|
257
|
+
import { PayloadBuildError } from '@qubic.org/registry'
|
|
258
|
+
|
|
259
|
+
try {
|
|
260
|
+
buildQearnUnlockInput({ amount: 'wrong' as any, lockedEpoch: 210 })
|
|
261
|
+
} catch (e) {
|
|
262
|
+
if (e instanceof PayloadBuildError) {
|
|
263
|
+
console.error(e.message) // 'Field "amount": expected bigint'
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Code generation
|
|
269
|
+
|
|
270
|
+
Generated files live in `src/__generated__/` and are committed to the repository.
|
|
271
|
+
|
|
272
|
+
```sh
|
|
273
|
+
# Regenerate from the latest epoch snapshot in @qubic.org/registry/data/epochs/
|
|
274
|
+
bun run generate
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
The generator reads the highest-numbered epoch folder, produces one `*.ts` file per contract, and writes `src/__generated__/index.ts`. Run it after updating the registry with new epoch data.
|
|
278
|
+
|
|
279
|
+
## Design notes
|
|
280
|
+
|
|
281
|
+
**Generated and committed** — consumers get typed completions and never need to run the generator or have access to the registry data files.
|
|
282
|
+
|
|
283
|
+
**`Result` instead of throw** — network failures and RPC errors are expected and recoverable. Returning `Result<T, QubicRpcError>` makes error paths explicit in the caller without requiring try/catch around every async call.
|
|
284
|
+
|
|
285
|
+
**Optional identity converters** — `id`-typed fields (Qubic 60-character identity strings) need cryptographic conversion. Passing converters as optional parameters keeps the generated code free of crypto dependencies; callers only pay for it when their contract actually has `id` fields.
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type { QubicRpcError } from '@qubic.org/rpc';
|
|
2
|
+
import { type ContractCallOptions, type SmartContractCaller } from '../call-contract.js';
|
|
3
|
+
import type { Result } from '../result.js';
|
|
4
|
+
export declare const COMPUTOR_CONTROLLED_FUND_CONTRACT_INDEX = 8;
|
|
5
|
+
export interface ComputorControlledFundProposalDataTStruct {
|
|
6
|
+
url: Uint8Array;
|
|
7
|
+
epoch: number;
|
|
8
|
+
type: number;
|
|
9
|
+
tick: number;
|
|
10
|
+
data: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export interface ComputorControlledFundSubscriptionDataStruct {
|
|
13
|
+
destination: string;
|
|
14
|
+
url: number[];
|
|
15
|
+
weeksPerPeriod: number;
|
|
16
|
+
_padding1: number[];
|
|
17
|
+
_padding2: number[];
|
|
18
|
+
numberOfPeriods: number;
|
|
19
|
+
amountPerPeriod: bigint;
|
|
20
|
+
startEpoch: number;
|
|
21
|
+
currentPeriod: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ComputorControlledFundSubscriptionProposalDataStruct {
|
|
24
|
+
proposerId: string;
|
|
25
|
+
destination: string;
|
|
26
|
+
url: number[];
|
|
27
|
+
weeksPerPeriod: number;
|
|
28
|
+
_padding0: number[];
|
|
29
|
+
_padding1: number[];
|
|
30
|
+
numberOfPeriods: number;
|
|
31
|
+
amountPerPeriod: bigint;
|
|
32
|
+
startEpoch: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ComputorControlledFundProposalSingleVoteDataV1Struct {
|
|
35
|
+
proposalIndex: number;
|
|
36
|
+
proposalType: number;
|
|
37
|
+
proposalTick: number;
|
|
38
|
+
voteValue: bigint;
|
|
39
|
+
}
|
|
40
|
+
export interface ComputorControlledFundProposalSummarizedVotingDataV1Struct {
|
|
41
|
+
proposalIndex: number;
|
|
42
|
+
optionCount: number;
|
|
43
|
+
proposalTick: number;
|
|
44
|
+
totalVotesAuthorized: number;
|
|
45
|
+
totalVotesCasted: number;
|
|
46
|
+
optionVoteCount: number[];
|
|
47
|
+
}
|
|
48
|
+
export interface ComputorControlledFundLatestTransfersEntryStruct {
|
|
49
|
+
destination: string;
|
|
50
|
+
url: number[];
|
|
51
|
+
amount: bigint;
|
|
52
|
+
tick: number;
|
|
53
|
+
success: number;
|
|
54
|
+
}
|
|
55
|
+
export interface ComputorControlledFundRegularPaymentEntryStruct {
|
|
56
|
+
destination: string;
|
|
57
|
+
url: number[];
|
|
58
|
+
amount: bigint;
|
|
59
|
+
tick: number;
|
|
60
|
+
periodIndex: number;
|
|
61
|
+
success: number;
|
|
62
|
+
_padding0: number[];
|
|
63
|
+
_padding1: number[];
|
|
64
|
+
}
|
|
65
|
+
export declare const COMPUTOR_CONTROLLED_FUND_SET_PROPOSAL_INPUT_TYPE = 1;
|
|
66
|
+
export interface ComputorControlledFundSetProposalInput {
|
|
67
|
+
proposal: ComputorControlledFundProposalDataTStruct;
|
|
68
|
+
isSubscription: number;
|
|
69
|
+
weeksPerPeriod: number;
|
|
70
|
+
_padding0: number[];
|
|
71
|
+
startEpoch: number;
|
|
72
|
+
amountPerPeriod: bigint;
|
|
73
|
+
numberOfPeriods: number;
|
|
74
|
+
}
|
|
75
|
+
export declare function buildComputorControlledFundSetProposalInput(input: ComputorControlledFundSetProposalInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
76
|
+
export interface ComputorControlledFundSetProposalOutput {
|
|
77
|
+
proposalIndex: number;
|
|
78
|
+
}
|
|
79
|
+
export declare function decodeComputorControlledFundSetProposalOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundSetProposalOutput;
|
|
80
|
+
export declare const COMPUTOR_CONTROLLED_FUND_VOTE_INPUT_TYPE = 4;
|
|
81
|
+
export interface ComputorControlledFundVoteInput {
|
|
82
|
+
proposalIndex: number;
|
|
83
|
+
proposalType: number;
|
|
84
|
+
proposalTick: number;
|
|
85
|
+
voteValue: bigint;
|
|
86
|
+
}
|
|
87
|
+
export declare function buildComputorControlledFundVoteInput(input: ComputorControlledFundVoteInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
88
|
+
export interface ComputorControlledFundVoteOutput {
|
|
89
|
+
okay: number;
|
|
90
|
+
}
|
|
91
|
+
export declare function decodeComputorControlledFundVoteOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundVoteOutput;
|
|
92
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_INDICES_INPUT_TYPE = 2;
|
|
93
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_INDICES_INPUT_SIZE = 5;
|
|
94
|
+
export interface ComputorControlledFundGetProposalIndicesInput {
|
|
95
|
+
activeProposals: number;
|
|
96
|
+
prevProposalIndex: number;
|
|
97
|
+
}
|
|
98
|
+
export declare function buildComputorControlledFundGetProposalIndicesInput(input: ComputorControlledFundGetProposalIndicesInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
99
|
+
export interface ComputorControlledFundGetProposalIndicesOutput {
|
|
100
|
+
numOfIndices: number;
|
|
101
|
+
indices: number[];
|
|
102
|
+
}
|
|
103
|
+
export declare function decodeComputorControlledFundGetProposalIndicesOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetProposalIndicesOutput;
|
|
104
|
+
export declare function computorControlledFundGetProposalIndices(live: SmartContractCaller, input: ComputorControlledFundGetProposalIndicesInput, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetProposalIndicesOutput, QubicRpcError>>;
|
|
105
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_INPUT_TYPE = 3;
|
|
106
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_INPUT_SIZE = 34;
|
|
107
|
+
export interface ComputorControlledFundGetProposalInput {
|
|
108
|
+
subscriptionDestination: string;
|
|
109
|
+
proposalIndex: number;
|
|
110
|
+
}
|
|
111
|
+
export declare function buildComputorControlledFundGetProposalInput(input: ComputorControlledFundGetProposalInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
112
|
+
export interface ComputorControlledFundGetProposalOutput {
|
|
113
|
+
okay: number;
|
|
114
|
+
hasSubscriptionProposal: number;
|
|
115
|
+
hasActiveSubscription: number;
|
|
116
|
+
_padding0: number[];
|
|
117
|
+
_padding1: number[];
|
|
118
|
+
proposerPublicKey: string;
|
|
119
|
+
proposal: ComputorControlledFundProposalDataTStruct;
|
|
120
|
+
subscription: ComputorControlledFundSubscriptionDataStruct;
|
|
121
|
+
subscriptionProposal: ComputorControlledFundSubscriptionProposalDataStruct;
|
|
122
|
+
}
|
|
123
|
+
export declare function decodeComputorControlledFundGetProposalOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetProposalOutput;
|
|
124
|
+
export declare function computorControlledFundGetProposal(live: SmartContractCaller, input: ComputorControlledFundGetProposalInput, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetProposalOutput, QubicRpcError>>;
|
|
125
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_VOTE_INPUT_TYPE = 5;
|
|
126
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_VOTE_INPUT_SIZE = 34;
|
|
127
|
+
export interface ComputorControlledFundGetVoteInput {
|
|
128
|
+
voter: string;
|
|
129
|
+
proposalIndex: number;
|
|
130
|
+
}
|
|
131
|
+
export declare function buildComputorControlledFundGetVoteInput(input: ComputorControlledFundGetVoteInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
132
|
+
export interface ComputorControlledFundGetVoteOutput {
|
|
133
|
+
okay: number;
|
|
134
|
+
vote: ComputorControlledFundProposalSingleVoteDataV1Struct;
|
|
135
|
+
}
|
|
136
|
+
export declare function decodeComputorControlledFundGetVoteOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetVoteOutput;
|
|
137
|
+
export declare function computorControlledFundGetVote(live: SmartContractCaller, input: ComputorControlledFundGetVoteInput, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetVoteOutput, QubicRpcError>>;
|
|
138
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_VOTING_RESULTS_INPUT_TYPE = 6;
|
|
139
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_VOTING_RESULTS_INPUT_SIZE = 2;
|
|
140
|
+
export interface ComputorControlledFundGetVotingResultsInput {
|
|
141
|
+
proposalIndex: number;
|
|
142
|
+
}
|
|
143
|
+
export declare function buildComputorControlledFundGetVotingResultsInput(input: ComputorControlledFundGetVotingResultsInput, identityToPublicKey?: (identity: string) => Uint8Array): Uint8Array;
|
|
144
|
+
export interface ComputorControlledFundGetVotingResultsOutput {
|
|
145
|
+
okay: number;
|
|
146
|
+
results: ComputorControlledFundProposalSummarizedVotingDataV1Struct;
|
|
147
|
+
}
|
|
148
|
+
export declare function decodeComputorControlledFundGetVotingResultsOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetVotingResultsOutput;
|
|
149
|
+
export declare function computorControlledFundGetVotingResults(live: SmartContractCaller, input: ComputorControlledFundGetVotingResultsInput, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetVotingResultsOutput, QubicRpcError>>;
|
|
150
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_LATEST_TRANSFERS_INPUT_TYPE = 7;
|
|
151
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_LATEST_TRANSFERS_INPUT_SIZE = 0;
|
|
152
|
+
export interface ComputorControlledFundGetLatestTransfersOutput {
|
|
153
|
+
data: number[];
|
|
154
|
+
}
|
|
155
|
+
export declare function decodeComputorControlledFundGetLatestTransfersOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetLatestTransfersOutput;
|
|
156
|
+
export declare function computorControlledFundGetLatestTransfers(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetLatestTransfersOutput, QubicRpcError>>;
|
|
157
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_REGULAR_PAYMENTS_INPUT_TYPE = 8;
|
|
158
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_REGULAR_PAYMENTS_INPUT_SIZE = 0;
|
|
159
|
+
export interface ComputorControlledFundGetRegularPaymentsOutput {
|
|
160
|
+
data: number[];
|
|
161
|
+
}
|
|
162
|
+
export declare function decodeComputorControlledFundGetRegularPaymentsOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetRegularPaymentsOutput;
|
|
163
|
+
export declare function computorControlledFundGetRegularPayments(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetRegularPaymentsOutput, QubicRpcError>>;
|
|
164
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_FEE_INPUT_TYPE = 9;
|
|
165
|
+
export declare const COMPUTOR_CONTROLLED_FUND_GET_PROPOSAL_FEE_INPUT_SIZE = 0;
|
|
166
|
+
export interface ComputorControlledFundGetProposalFeeOutput {
|
|
167
|
+
proposalFee: number;
|
|
168
|
+
}
|
|
169
|
+
export declare function decodeComputorControlledFundGetProposalFeeOutput(data: Uint8Array, publicKeyToIdentity?: (pk: Uint8Array) => string): ComputorControlledFundGetProposalFeeOutput;
|
|
170
|
+
export declare function computorControlledFundGetProposalFee(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<ComputorControlledFundGetProposalFeeOutput, QubicRpcError>>;
|
|
171
|
+
export declare const computorControlledFund: {
|
|
172
|
+
contractIndex: number;
|
|
173
|
+
GetProposalIndices: typeof computorControlledFundGetProposalIndices;
|
|
174
|
+
GetProposal: typeof computorControlledFundGetProposal;
|
|
175
|
+
GetVote: typeof computorControlledFundGetVote;
|
|
176
|
+
GetVotingResults: typeof computorControlledFundGetVotingResults;
|
|
177
|
+
GetLatestTransfers: typeof computorControlledFundGetLatestTransfers;
|
|
178
|
+
GetRegularPayments: typeof computorControlledFundGetRegularPayments;
|
|
179
|
+
GetProposalFee: typeof computorControlledFundGetProposalFee;
|
|
180
|
+
buildSetProposalInput: typeof buildComputorControlledFundSetProposalInput;
|
|
181
|
+
decodeSetProposalOutput: typeof decodeComputorControlledFundSetProposalOutput;
|
|
182
|
+
buildVoteInput: typeof buildComputorControlledFundVoteInput;
|
|
183
|
+
decodeVoteOutput: typeof decodeComputorControlledFundVoteOutput;
|
|
184
|
+
};
|
|
185
|
+
//# sourceMappingURL=computorcontrolledfund.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computorcontrolledfund.d.ts","sourceRoot":"","sources":["../../src/__generated__/computorcontrolledfund.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAwB,MAAM,qBAAqB,CAAA;AAC9G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,eAAO,MAAM,uCAAuC,IAAI,CAAA;AAExD,MAAM,WAAW,yCAAyC;IACxD,GAAG,EAAE,UAAU,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,MAAM,WAAW,4CAA4C;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oDAAoD;IACnE,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAA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