Skip to content

Commit d2d29a4

Browse files
author
Seulgi Kim
committed
Remove the description about disabled transaction
1 parent c08a19b commit d2d29a4

File tree

2 files changed

+2
-109
lines changed

2 files changed

+2
-109
lines changed

spec/JSON-RPC.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,6 @@ A string that starts with "(NetworkID)c", and Bech32 string follows. For example
8282
- approvals: `Signature[]`
8383
- expiration: `Expiration time` | `null`
8484

85-
### ComposeAsset Action
86-
87-
- networkId: `NetworkID`
88-
- shardId: `number`
89-
- metadata: `string`
90-
- inputs: `AssetTransferInput[]`
91-
- output: `AssetMintOutput`
92-
- approver: `PlatformAddress` | `null`
93-
- approvals: `Signature[]`
94-
95-
### DecomposeAsset Action
96-
97-
- networkId: `NetworkID`
98-
- input: `AssetTransferInput`
99-
- outputs: `AssetTransferOutput[]`
100-
- approvals: `Signature[]`
101-
10285
### UnwrapCCC Action
10386

10487
- networkId: `NetworkID`
@@ -116,22 +99,6 @@ A string that starts with "(NetworkID)c", and Bech32 string follows. For example
11699
- type: "setRegularKey"
117100
- key: `H512`
118101

119-
### CreateShard Action
120-
- type: "createShard"
121-
- users: `PlatformAddress[]`
122-
123-
### SetShardOwners Action
124-
125-
- type: "setShardOwners"
126-
- shardId: `number`
127-
- owners: `PlatformAddress[]`
128-
129-
### SetShardUsers Action
130-
131-
- type: "setShardUsers"
132-
- shardId: `number`
133-
- users: `PlatformAddress[]`
134-
135102
### WrapCCC Action
136103

137104
- type: "wrapCCC"
@@ -179,8 +146,8 @@ A string that starts with "(NetworkID)c", and Bech32 string follows. For example
179146

180147
## Transactions
181148

182-
- type: "assetMint" | "assetTransfer" | "assetCompose" | "assetDecompose" | "assetUnwrapCCC"
183-
- data: `AssetMintData` | `AssetTransferData` | `AssetComposeData` | `AssetDecomposeData` | `AssetUnwrapCCCData`
149+
- type: "assetMint" | "assetTransfer" | "assetUnwrapCCC"
150+
- data: `AssetMintData` | `AssetTransferData` | `AssetUnwrapCCCData`
184151

185152
### Transaction in Response
186153

spec/Transaction.md

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ enum Action {
2020
MintAsset { ..., },
2121
TransferAsset { ..., },
2222
ChangeAssetScheme { ..., },
23-
ComposeAsset { ..., },
24-
DecomposeAsset { ..., },
2523
Pay { ..., },
2624
SetRegularKey { ..., },
27-
CreateShard { ..., },
28-
SetShardOwners { ..., },
29-
SetShardUsers { ..., },
3025
WrapCCC { ..., },
3126
UnwrapCCC { ..., },
3227
Store { ..., },
@@ -148,39 +143,6 @@ ChangeAssetScheme {
148143
}
149144
```
150145

151-
## ComposeAsset
152-
153-
It creates a new asset that holds the input assets.
154-
The composed asset can be used as a regular asset, but it can be decomposed as well.
155-
156-
```rust
157-
ComposeAsset {
158-
network_id: NetworkId,
159-
shard_id: ShardId,
160-
metadata: String,
161-
approver: Option<PlatformAddress>,
162-
registrar: Option<PlatformAddress>,
163-
inputs: Vec<AssetTransferInput>,
164-
output: Box<AssetMintOutput>,
165-
166-
approvals: Vec<Signature>,
167-
}
168-
```
169-
170-
## DecomposeAsset
171-
172-
It decomposes the composed asset.
173-
174-
```rust
175-
DecomposeAsset {
176-
network_id: NetworkId,
177-
input: Box<AssetTransferInput>,
178-
outputs: Vec<AssetTransferOutput>,
179-
180-
approvals: Vec<Signature>,
181-
}
182-
```
183-
184146
## Pay
185147

186148
`Pay` sends `value` amount of CCC to the `receiver`.
@@ -203,42 +165,6 @@ SetRegularKey {
203165
}
204166
```
205167

206-
## Create Shard
207-
208-
It creates a new shard.
209-
The payer becomes the owner of the shard.
210-
211-
```rust
212-
CreateShard {
213-
users: Vec<Address>,
214-
}
215-
```
216-
217-
## SetShardOwners
218-
219-
It changes the owner of the shard.
220-
Only the shard owner can send this transaction.
221-
The payer must be one of the new owners.
222-
223-
```rust
224-
SetShardOwners {
225-
shard_id: ShardId,
226-
owners: Vec<Address>,
227-
}
228-
```
229-
230-
## SetShardUsers
231-
232-
It changes the users of the shard.
233-
Only the shard owner can send this transaction.
234-
235-
```rust
236-
SetShardUsers {
237-
shard_id: ShardId,
238-
users: Vec<Address>,
239-
}
240-
```
241-
242168
## WrapCCC
243169

244170
`WrapCCC` converts CCC to WCCC.

0 commit comments

Comments
 (0)