Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

ocean protocol react sample tutorial

<span class="token keyword">const</span> AssetModel <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token comment">// OEP-08 Attributes</span>
  <span class="token comment">// https://github.com/oceanprotocol/OEPs/tree/master/8</span>
  main <span class="token punctuation">:</span> <span class="token punctuation">{</span>
    type <span class="token punctuation">:</span> <span class="token string">'dataset'</span> <span class="token punctuation">,</span>
    name <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    dateCreated <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    author <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    license <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    price <span class="token punctuation">:</span> <span class="token string">'0'</span> <span class="token punctuation">,</span>
    files <span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token punctuation">]</span>
  <span class="token punctuation">}</span> <span class="token punctuation">,</span>
  additionalInformation <span class="token punctuation">:</span> <span class="token punctuation">{</span>
    description <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    copyrightHolder <span class="token punctuation">:</span> <span class="token string">''</span> <span class="token punctuation">,</span>
    categories <span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token punctuation">]</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span> <span class="token punctuation">;</span>
 
Source by itzone.com.vn #
 
PREVIOUS NEXT
Tagged: #ocean #protocol #react #sample #tutorial
ADD COMMENT
Topic
Name
8+4 =