Skip to content

Commit 5e15b92

Browse files
authored
Merge pull request #42 from KomodoPlatform/add-nft-docs
[r2r] Add nft docs
2 parents 602fe78 + 418d2d4 commit 5e15b92

File tree

30 files changed

+10281
-4517
lines changed

30 files changed

+10281
-4517
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ Thumbs.db
3434
*.pid
3535
*.sublime-*
3636

37-
#custom
37+
# custom
38+
filepathSlugs.json
3839
links-to-manually-check

STYLE_GUIDE.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For example:
7171
| Parameter | Type | Description |
7272
| --------- | ------- | --------------------------------------------------------------------------------------- |
7373
| coin | string | The name of the coin the user desires to activate. |
74-
| fee | object | Optional. A standard [FeeInfo](/atomicdex/api/v20/#FeeInfo) object. |
74+
| fee | object | Optional. A standard [FeeInfo](/atomicdex/api/common_structures/#FeeInfo) object. |
7575
| amount | float | Required, unless `max` is `true`. The amount of balance to send. |
7676
| max | boolean | Optional, defaults to `false`. Send whole balance. |
7777
| memo | string | Optional, used for ZHTLC and Tendermint coins only. Attaches a memo to the transaction. |
@@ -142,6 +142,22 @@ For example, when method and title are the same:
142142

143143
We've got a few **MDX** components we use across the Docs. Below is a walkthrough of how to start writing and using the components that make up the Docs.
144144

145+
IMPORTANT: Alwats use double quotes inside mdx tags.
146+
147+
Example:
148+
149+
Correct:
150+
151+
```
152+
<CollapsibleSection expandedText="Hide Examples" collapsedText="Show Examples">
153+
```
154+
155+
Wrong:
156+
157+
```
158+
<CollapsibleSection expandedText='Hide Examples' collapsedText='Show Examples'>
159+
```
160+
145161
MDX supports standard markdown by default [CommonMark](https://commonmark.org/). However, this project also has [GFM](https://github.github.com/gfm/) installed.
146162

147163
> Many of the components mentioned here are simplified and possibly do more than **explicitly pointed out**.

data-for-gpts/all-content.txt

+6,183-4,346
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/code.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -131756,7 +131756,7 @@ pub struct GetTransactionResponse {
131756131756
#[prost(message, optional, tag="1")]
131757131757
pub transaction: ::core::option::Option<Transaction>,
131758131758
#[prost(message, optional, tag="2")]
131759-
pub token_metadata: ::core::option::Option<SlpTokenMetadata>,
131759+
pub token_metadata: ::core::option::Option<SlpNftMetadata>,
131760131760
}
131761131761
/// Get an encoded transaction from a transaction hash.
131762131762
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -131898,7 +131898,7 @@ pub struct GetAddressUnspentOutputsResponse {
131898131898
#[prost(message, repeated, tag="1")]
131899131899
pub outputs: ::prost::alloc::vec::Vec<UnspentOutput>,
131900131900
#[prost(message, repeated, tag="2")]
131901-
pub token_metadata: ::prost::alloc::vec::Vec<SlpTokenMetadata>,
131901+
pub token_metadata: ::prost::alloc::vec::Vec<SlpNftMetadata>,
131902131902
}
131903131903
#[derive(Clone, PartialEq, ::prost::Message)]
131904131904
pub struct GetUnspentOutputRequest {
@@ -131936,7 +131936,7 @@ pub struct GetUnspentOutputResponse {
131936131936
#[prost(message, optional, tag="6")]
131937131937
pub slp_token: ::core::option::Option<SlpToken>,
131938131938
#[prost(message, optional, tag="7")]
131939-
pub token_metadata: ::core::option::Option<SlpTokenMetadata>,
131939+
pub token_metadata: ::core::option::Option<SlpNftMetadata>,
131940131940
}
131941131941
#[derive(Clone, PartialEq, ::prost::Message)]
131942131942
pub struct GetMerkleProofRequest {
@@ -132068,14 +132068,14 @@ pub struct SubscribeBlocksRequest {
132068132068
pub serialize_block: bool,
132069132069
}
132070132070
#[derive(Clone, PartialEq, ::prost::Message)]
132071-
pub struct GetSlpTokenMetadataRequest {
132071+
pub struct GetSlpNftMetadataRequest {
132072132072
#[prost(bytes="vec", repeated, tag="1")]
132073132073
pub token_ids: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
132074132074
}
132075132075
#[derive(Clone, PartialEq, ::prost::Message)]
132076-
pub struct GetSlpTokenMetadataResponse {
132076+
pub struct GetSlpNftMetadataResponse {
132077132077
#[prost(message, repeated, tag="1")]
132078-
pub token_metadata: ::prost::alloc::vec::Vec<SlpTokenMetadata>,
132078+
pub token_metadata: ::prost::alloc::vec::Vec<SlpNftMetadata>,
132079132079
}
132080132080
#[derive(Clone, PartialEq, ::prost::Message)]
132081132081
pub struct GetSlpParsedScriptRequest {
@@ -132628,17 +132628,17 @@ pub struct SlpV1Nft1ChildSendMetadata {
132628132628
#[prost(bytes="vec", tag="1")]
132629132629
pub group_token_id: ::prost::alloc::vec::Vec<u8>,
132630132630
}
132631-
/// SlpTokenMetadata is used to marshal metadata about a specific TokenID
132631+
/// SlpNftMetadata is used to marshal metadata about a specific TokenID
132632132632
#[derive(Clone, PartialEq, ::prost::Message)]
132633-
pub struct SlpTokenMetadata {
132633+
pub struct SlpNftMetadata {
132634132634
#[prost(bytes="vec", tag="1")]
132635132635
pub token_id: ::prost::alloc::vec::Vec<u8>,
132636132636
#[prost(enumeration="SlpTokenType", tag="2")]
132637132637
pub token_type: i32,
132638132638
#[prost(oneof="slp_token_metadata::TypeMetadata", tags="3, 4, 5")]
132639132639
pub type_metadata: ::core::option::Option<slp_token_metadata::TypeMetadata>,
132640132640
}
132641-
/// Nested message and enum types in `SlpTokenMetadata`.
132641+
/// Nested message and enum types in `SlpNftMetadata`.
132642132642
pub mod slp_token_metadata {
132643132643
/// V1Fungible is used to marshal metadata specific to Type 1 token IDs
132644132644
#[derive(Clone, PartialEq, ::prost::Message)]

0 commit comments

Comments
 (0)