Skip to content

Commit

Permalink
Merge pull request #119 from iotaledger/poc-experimental
Browse files Browse the repository at this point in the history
Added architecture doc
  • Loading branch information
dessaya authored Mar 3, 2021
2 parents df34b04 + 6585e0b commit fff2125
Show file tree
Hide file tree
Showing 48 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions contracts/rust/wasmlib/docs/Context.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ contract functions in the ISCP:
To support this function type distinction, Func and View each receive a
separate, different function call context, and only the functionality that is
necessary for their implementation is provided through their respective contexts
ScFuncContext and ScViewContext. ScViewContext only provides a limited,
immutable subset of the functionality provided by ScFuncContext. Again, the
`ScFuncContext` and `ScViewContext`. `ScViewContext` only provides a limited,
immutable subset of the functionality provided by `ScFuncContext`. Again, the
compiler will prevent the programmer from using the wrong functionality in the
wrong context.

Expand Down Expand Up @@ -52,9 +52,9 @@ fn on_load() {
}
```

As you can see this on_load() function first creates the required ScExports
As you can see this on_load() function first creates the required `ScExports`
context and then proceeds to define two Funcs named "divide" and "member" by
calling the add_func() method of the ScExports object and then one View named
calling the add_func() method of the `ScExports` object and then one View named
"getFactor" by calling its add_view() method. The second parameter to these
methods is the smart contract function associated with the name specified. These
methods will also automatically assign unique identifiers and then send it all
Expand Down
26 changes: 13 additions & 13 deletions contracts/rust/wasmlib/docs/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

WasmLib provides direct support for the following value data types:

- Int64 - We currently only directly support 64-bit integer values.
- Bytes - An arbitrary-length byte array.
- String - An UTF-8 encoded string value.
- Address - A 33-byte Tangle address.
- AgentId - A 37-byte ISCP Agent id.
- ChainId - A 33-byte ISCP Chain id.
- Color - A 32-byte token color id.
- ContractId - A 37-byte ISCP smart contract id.
- Hash - A 32-byte hash values.
- Hname - A 4-byte unsigned integer hash value derived from a name string.
- RequestId - A 34-byte transaction request id.
- `Int64` - We currently only directly support 64-bit integer values.
- `Bytes` - An arbitrary-length byte array.
- `String` - An UTF-8 encoded string value.
- `Address` - A 33-byte Tangle address.
- `AgentId` - A 37-byte ISCP Agent id.
- `ChainId` - A 33-byte ISCP Chain id.
- `Color` - A 32-byte token color id.
- `ContractId` - A 37-byte ISCP smart contract id.
- `Hash` - A 32-byte hash values.
- `Hname` - A 4-byte unsigned integer hash value derived from a name string.
- `RequestId` - A 34-byte transaction request id.

The first three are basic value data types found in all programming languages,
whereas the other types are ISCP-specific value data types. More detailed
explanations about their specific use can be found in the documentation of the
ISCP. Each of these value data types has the ability to serialize into and
explanations about their specific use can be found in the [documentation of the
ISCP](../../../../docs/docs/coretypes.md). Each of these value data types has the ability to serialize into and
deserialize from a byte array. Each value data type can also be used as a key to
our key/value proxy objects.

Expand Down
10 changes: 5 additions & 5 deletions contracts/rust/wasmlib/docs/Proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ name is subsequently followed by Array.

Examples:

- ScMutableInt - proxy to mutable int value
- ScImmutableString - proxy to immutable string value
- ScImmutableColorArray - proxy to immutable array of immutable color values
- ScMutableMap - proxy to mutable map
- ScImmutableMapArray - proxy to immutable array of immutable map
- `ScMutableInt` - proxy to mutable int value
- `ScImmutableString` - proxy to immutable string value
- `ScImmutableColorArray` - proxy to immutable array of immutable color values
- `ScMutableMap` - proxy to mutable map
- `ScImmutableMapArray` - proxy to immutable array of immutable map

Next: [Function Call Context](Context.md)
Binary file added docs/ISCP architecture description v2.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion plugins/banner/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PluginName = "Banner"

const (
// AppVersion version number
AppVersion = "v0.1.0"
AppVersion = "v0.1.1"

// AppName app code name
AppName = "Wasp"
Expand Down
16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ introduction](https://blog.iota.org/an-introduction-to-iota-smart-contracts-16ea
into ISCP.

A _smart contract_ is a distributed software agent that stores its state in the
[UTXO ledger](articles/intro/utxo.md), and evolves with each _request_ sent to
[UTXO ledger](docs/intro/utxo.md), and evolves with each _request_ sent to
the contrct. Since the UTXO ledger is immutable, by extension the smart
contract state is also immutable.

Expand Down Expand Up @@ -60,16 +60,16 @@ tests).

## Run

- [How to run a Wasp node on Pollen](articles/docs/runwasp.md)
- [Using `wasp-cli` to deploy a chain and a contract](articles/docs/deploy.md)
- [How to run a Wasp node on Pollen](docs/docs/runwasp.md)
- [Using `wasp-cli` to deploy a chain and a contract](docs/docs/deploy.md)

## Learn

- [Exploring IOTA Smart Contracts](articles/tutorial/readme.md)
- [UTXO ledger and digital assets](articles/intro/utxo.md)
- [Core types](articles/docs/coretypes.md)
- [On-chain accounts](articles/docs/accounts.md)
- [Wasp Publisher](articles/docs/publisher.md)
- [Exploring IOTA Smart Contracts](docs/tutorial/readme.md)
- [UTXO ledger and digital assets](docs/intro/utxo.md)
- [Core types](docs/docs/coretypes.md)
- [On-chain accounts](docs/docs/accounts.md)
- [Wasp Publisher](docs/docs/publisher.md)

## Tools

Expand Down

0 comments on commit fff2125

Please sign in to comment.