Skip to content
Permalink
Browse files

v1.1.2

  • Loading branch information
ansigroup committed Sep 4, 2019
1 parent 0e657aa commit b4026a68dcf4a05ea25f4d45b8e61e613afe5a44
Showing with 3,477 additions and 3,292 deletions.
  1. +8 −1,162 README.md
  2. +677 −0 README_KR.md
  3. +605 −0 README_ZH.md
  4. +1,075 −1,063 SimpleAssets.abi
  5. +1,075 −1,063 build/SimpleAssets/SimpleAssets.abi
  6. BIN build/SimpleAssets/SimpleAssets.wasm
  7. +33 −2 include/SimpleAssets.hpp
  8. +4 −2 src/SimpleAssets.cpp
1,170 README.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

BIN +1013 Bytes (100%) build/SimpleAssets/SimpleAssets.wasm
Binary file not shown.
@@ -59,9 +59,24 @@ CONTRACT SimpleAssets : public contract{
* @param stemplate is stringified json with key:state values, where key is key from mdata or idata and
* state indicates recommended way of displaying field:
* url, img, webgl, mp3, video, hide (ie. don't display), etc.
* @param imgpriority is json with assosiation category with tipe of image or video
* Example EOS:img, USD:mp3, KOLOBOK:webglb
* types of image
* txt - default
* url - show as clickable URL
* img - link to img file
* webgl - link to webgl file
* mp3 - link to mp3 file
* video - link to video file
* hide - do not show
* imgb - image as string in binary format
* webglb - webgl binary
* mp3b - mp3 binary
* videob - video binary
*
* @return no return value
*/
ACTION regauthor( name author, string data, string stemplate );
ACTION regauthor( name author, string data, string stemplate, string imgpriority );
using regauthor_action = action_wrapper< "regauthor"_n, &SimpleAssets::regauthor >;

/*
@@ -76,9 +91,24 @@ CONTRACT SimpleAssets : public contract{
* @param stemplate is stringified json with key:state values, where key is key from mdata or idata and
* state indicates recommended way of displaying field:
* url, img, webgl, mp3, video, hide (ie. don't display), etc.
* @param imgpriority is json with assosiation category with tipe of image or video
* Example EOS:img, USD:mp3, KOLOBOK:webglb
* types of image
* txt - default
* url - show as clickable URL
* img - link to img file
* webgl - link to webgl file
* mp3 - link to mp3 file
* video - link to video file
* hide - do not show
* imgb - image as string in binary format
* webglb - webgl binary
* mp3b - mp3 binary
* videob - video binary
*
* @return no return value.
*/
ACTION authorupdate( name author, string data, string stemplate );
ACTION authorupdate( name author, string data, string stemplate, string imgpriority );
using authorupdate_action = action_wrapper< "authorupdate"_n, &SimpleAssets::authorupdate >;

/*
@@ -517,6 +547,7 @@ CONTRACT SimpleAssets : public contract{
name author;
string data;
string stemplate;
string imgpriority;

auto primary_key() const {
return author.value;
@@ -7,7 +7,7 @@ ACTION SimpleAssets::updatever( string version ) {
configs.set( tokenconfigs{ "simpleassets"_n, version }, _self );
}

ACTION SimpleAssets::regauthor( name author, string data, string stemplate ) {
ACTION SimpleAssets::regauthor( name author, string data, string stemplate, string imgpriority ) {

require_auth( author );
require_recipient( author );
@@ -19,14 +19,15 @@ ACTION SimpleAssets::regauthor( name author, string data, string stemplate ) {
s.author = author;
s.data = data;
s.stemplate = stemplate;
s.imgpriority = imgpriority;
});
}
else {
check( false, "Registration Error. You're probably already registered. Try the authupdate action." );
}
}

ACTION SimpleAssets::authorupdate( name author, string data, string stemplate ) {
ACTION SimpleAssets::authorupdate( name author, string data, string stemplate, string imgpriority ) {

require_auth( author );
require_recipient( author );
@@ -41,6 +42,7 @@ ACTION SimpleAssets::authorupdate( name author, string data, string stemplate )
author_.modify( itr, author, [&]( auto& s ) {
s.data = data;
s.stemplate = stemplate;
s.imgpriority = imgpriority;
});
}
}

0 comments on commit b4026a6

Please sign in to comment.
You can’t perform that action at this time.