aboutsummaryrefslogtreecommitdiffstats
path: root/trie/valuenode.go
blob: 8912b1c82bb5bc91ef4e77a4fd4f1602fb03fea3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package trie

import "github.com/ethereum/go-ethereum/ethutil"

type ValueNode struct {
    trie *Trie
    data []byte
}

func (self *ValueNode) Value() Node          { return self } // Best not to call :-)
func (self *ValueNode) Val() []byte          { return self.data }
func (self *ValueNode) Dirty() bool          { return true }
func (self *ValueNode) Copy(t *Trie) Node    { return &ValueNode{t, ethutil.CopyBytes(self.data)} }
func (self *ValueNode) RlpData() interface{} { return self.data }
func (self *ValueNode) Hash() interface{}    { return self.data }
n12' href='#n12'>12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
// fs.readFileSync is inlined by browserify transform "brfs"
const fs = require('fs')
const path = require('path')

module.exports = [
  {
    id: 0,
    read: false,
    date: 'Thu Feb 09 2017',
    title: 'Terms of Use',
    body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_0.md'), 'utf8'),
  },
  {
    id: 2,
    read: false,
    date: 'Mon May 08 2017',
    title: 'Privacy Notice',
    body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_2.md'), 'utf8'),
  },
  {
    id: 3,
    read: false,
    date: 'Tue Nov 28 2017',
    title: 'Seed Phrase Alert',
    firstVersion: '<=3.12.0',
    body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_3.md'), 'utf8'),
  },
  {
    id: 4,
    read: false,
    date: 'Wed Jun 13 2018',
    title: 'Phishing Warning',
    body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_4.md'), 'utf8'),
  },
]