-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.ts
68 lines (49 loc) · 2.2 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
Fadroma
Copyright (C) 2023 Hack.bg
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
**/
export { Chain, Connection, Block, Transaction } from './src/Chain.ts'
export { Identity, Agent, SigningConnection, Batch } from './src/Agent.ts'
export { Backend } from './src/Backend.ts'
export { Proposal, Vote } from './src/dlt/Governance.ts'
export { Validator } from './src/dlt/Staking.ts'
export * as Token from './src/dlt/Token.ts'
export { SourceCode, RustSourceCode } from './src/compute/Source.ts'
export { Compiler, CompiledCode } from './src/compute/Compile.ts'
export { UploadedCode, UploadStore } from './src/compute/Upload.ts'
export { Contract } from './src/compute/Contract.ts'
export * from './src/Util.ts'
/** An address on a chain. */
export type Address = string
/** A chain's unique ID. */
export type ChainId = string
/** A 128-bit integer. */
export type Uint128 = string
/** A 256-bit integer. */
export type Uint256 = string
/** A 128-bit decimal fraction. */
export type Decimal128 = string
/** A 256-bit decimal fraction. */
export type Decimal256 = string
/** A transaction message that can be sent to a contract. */
export type Message = string|Record<string, unknown>
/** A transaction hash, uniquely identifying an executed transaction on a chain. */
export type TxHash = string
/** A code ID, identifying uploaded code on a chain. */
export type CodeId = string
/** The hash of a contract's code. */
export type CodeHash = string
/** The name of a deployment unit. Used to generate contract label. */
export type Name = string
/** A contract's full unique on-chain label. */
export type Label = string