334 lines
439 KiB
Go
334 lines
439 KiB
Go
|
// Code generated by go-bindata.
|
||
|
// sources:
|
||
|
// scripts/bignumber.js
|
||
|
// scripts/web3.js
|
||
|
// config/test-data.json
|
||
|
// keys/test-account1.pk
|
||
|
// keys/test-account2.pk
|
||
|
// DO NOT EDIT!
|
||
|
|
||
|
package static
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
"compress/gzip"
|
||
|
"fmt"
|
||
|
"io"
|
||
|
"io/ioutil"
|
||
|
"os"
|
||
|
"path/filepath"
|
||
|
"strings"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func bindataRead(data []byte, name string) ([]byte, error) {
|
||
|
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
||
|
if err != nil {
|
||
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
||
|
}
|
||
|
|
||
|
var buf bytes.Buffer
|
||
|
_, err = io.Copy(&buf, gz)
|
||
|
clErr := gz.Close()
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
||
|
}
|
||
|
if clErr != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
return buf.Bytes(), nil
|
||
|
}
|
||
|
|
||
|
type asset struct {
|
||
|
bytes []byte
|
||
|
info os.FileInfo
|
||
|
}
|
||
|
|
||
|
type bindataFileInfo struct {
|
||
|
name string
|
||
|
size int64
|
||
|
mode os.FileMode
|
||
|
modTime time.Time
|
||
|
}
|
||
|
|
||
|
func (fi bindataFileInfo) Name() string {
|
||
|
return fi.name
|
||
|
}
|
||
|
func (fi bindataFileInfo) Size() int64 {
|
||
|
return fi.size
|
||
|
}
|
||
|
func (fi bindataFileInfo) Mode() os.FileMode {
|
||
|
return fi.mode
|
||
|
}
|
||
|
func (fi bindataFileInfo) ModTime() time.Time {
|
||
|
return fi.modTime
|
||
|
}
|
||
|
func (fi bindataFileInfo) IsDir() bool {
|
||
|
return false
|
||
|
}
|
||
|
func (fi bindataFileInfo) Sys() interface{} {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var _scriptsBignumberJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xdc\xbd\xeb\x76\xdb\x38\x92\x00\xfc\xbf\x9f\xa2\x72\xce\x74\x24\x45\xd4\xcd\x97\x5c\x9c\x28\xfe\xdc\x69\xa7\xc7\xfb\x39\xb2\x37\x71\xcf\xcc\xae\xdb\xdd\x87\x22\x21\x8b\xb6\x44\x2a\x24\x65\x4b\x69\x67\xde\x69\x5f\x61\x9f\xec\x3b\x55\x00\x48\x80\x04\x28\xca\x9d\x9e\xdd\xfd\x74\x4e\x1c\x89\x04\x0a\x85\x02\x50\x28\x14\xea\xd2\x7b\xf6\x04\xc6\xc1\x75\xb8\x9c\x8f\x59\xdc\xbd\x49\xe0\x6e\xaf\xdb\xef\xf6\x61\x9a\xa6\x8b\xe4\xa0\xd7\xbb\x0e\xd2\xe9\x72\xdc\xf5\xa2\x79\xef\x43\x70\xcb\x3e\x78\xb3\x9e\x5a\xbc\x77\x7a\xf2\xee\x78\xf4\xee\x18\x9e\xf5\xbe\xfb\xee\x75\x73\xb2\x0c\xbd\x34\x88\x42\x68\x5e\xcf\xa2\xb1\x3b\x3b\x1b\xdf\xb4\xe0\xf7\xef\x00\x00\x1a\xcb\x84\x41\x92\xc6\x81\x97\x36\x5e\x7f\x47\x8f\x7a\xcf\xe8\x3f\x30\x21\x20\xde\x1c\xc1\xbf\xb9\x77\xee\x27\x2f\x0e\x16\x29\xcc\x82\x71\xec\xc6\x6b\x98\x44\x31\xb8\xf1\x38\x48\xf1\x57\x67\x11\x33\x2f\x48\xb0\x51\x37\x0e\xd2\xe9\x9c\xa5\x81\xd7\x15\xd5\x6b\xf6\x42\x94\x7e\x17\x2d\xd6\x71\x70\x3d\x4d\xa1\xe9\xb5\x60\xa7\x3f\x78\x01\x1f\x02\x6f\xea\xb2\x19\x7c\xf0\x66\xee\xf2\x7a\x3a\x0b\x42\x78\xf3\xe1\xa5\x37\x7d\xf9\x72\xf6\xff\x5c\xcf\xdd\x60\x86\x30\xdf\x8a\xfa\x1f\x4e\x2e\xe0\x78\xb5\x70\x53\x38\x0d\x3c\x16\x7a\x8c\x9e\x23\x65\xe8\xcb\x9d\x1b\xc3\x0f\xc1\xf5\x88\x5a\x75\x44\x1d\x80\x20\x19\x2d\xe7\x2c\x0e\x3c\x18\x42\xef\xd7\xce\x61\xf3\x17\xbf\xdd\xfc\xa5\xfb\x8b\xff\xac\x75\xf8\x80\xff\xb7\x5b\x4d\x76\xd9\xee\x5c\x1d\xe2\xd7\xc3\xbf\xf4\x82\xbc\xee\xdc\x4d\xa7\x1e\x0b\x66\x30\x84\x0f\x6e\x3a\xed\xe2\x77\xfd\xed\x64\x16\x45\xb1\x7c\x4d\x3f\xf2\xf7\x61\x94\xfe\x10\x45\x58\xb9\x81\xdf\xc1\x85\x71\x14\xcd\x98\x1b\x42\x14\xc3\x38\x08\x91\xd6\x7e\x70\x1d\xa4\x8d\xbc\x4e\x1c\x2d\x43\x3f\x08\xaf\x3f\x44\x3e\xc3\x8a\xf2\x37\xcc\x23\x9f\x29\xe5\xd2\x28\xfa\xe0\x86\xeb\x1f\xb1\x7a\x82\x05\x39\xb1\x21\x5d\x2f\x18\x4c\xdd\x04\xe6\x51\xcc\x20\x9d\xba\x21\x0c\xf6\x21\x09\xae\xc3\x60\x12\x78\x6e\x98\xf2\x16\x13\x05\xd4\xd1\xe9\xf9\x5f\x8f\x7e\x38\xbe\x40\x28\xfd\xc1\xce\xee\xde\xfe\xf3\x17\x2f\x5f\xb9\x63\xcf\x67\x93\xeb\x69\x70\x73\x3b\x9b\x87\xd1\xe2\x73\x9c\xa4\xcb\xbb\xfb\xd5\xfa\xcb\xd1\x0f\xef\x7e\x3c\x7e\xff\xd3\x5f\x4f\xfe\xed\xff\x3d\xfd\x30\x3a\x3b\xff\xf7\x8f\x9f\x2e\x7e\xfe\xdb\xdf\xff\xf1\x1f\xff\xf9\x97\xdf\x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\x83\x09\x1c\x7f\xfc\x78\xf6\xf1\x13\x3d\x8c\x97\xac\xd5\x55\xea\xf4\xd4\x49\x80\x04\x3a\x7e\xf5\xda\x30\x66\x86\x31\xec\x23\xfe\xd9\xa8\x7f\xa7\xf3\xbc\x67\xf0\x2e\x66\x6e\xca\x08\xfd\x98\xa5\xcb\x38\x04\x37\x67\x0f\xe0\x45\x61\x92\xc6\x4b\x2f\x8d\x62\x81\x8d\xc0\x24\x63\xb1\x4a\x89\xf7\x2e\xfe\x5d\x37\xbd\x28\x9c\x04\xd7\x92\xe3\x82\xe0\x39\x7e\x70\xe7\xc0\xc2\x8d\x13\x26\x18\x8d\x32\xc0\x02\xd5\xc0\x87\x34\x76\xbd\xdb\x84\x06\xc0\x73\x67\x33\x16\x67\x2d\x39\x90\x44\x80\xab\x38\x74\xe7\xf8\x32\x84\x31\x83\x20\xf4\x66\x4b\x9f\xf9\x10\x84\xc0\xe2\x38\x8a\x61\xce\x92\xc4\xbd\x66\x49\x57\x03\x1e\xf8\x38\xdd\x1d\xed\xd9\x39\x0c\xf3\x9e\x76\x17\x71\x94\x46\xc8\x16\xf4\x42\x67\x23\x9c\x8e\x21\xbb\xcf\
|
||
|
|
||
|
func scriptsBignumberJsBytes() ([]byte, error) {
|
||
|
return bindataRead(
|
||
|
_scriptsBignumberJs,
|
||
|
"scripts/bignumber.js",
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func scriptsBignumberJs() (*asset, error) {
|
||
|
bytes, err := scriptsBignumberJsBytes()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
info := bindataFileInfo{name: "scripts/bignumber.js", size: 96949, mode: os.FileMode(420), modTime: time.Unix(1491220671, 0)}
|
||
|
a := &asset{bytes: bytes, info: info}
|
||
|
return a, nil
|
||
|
}
|
||
|
|
||
|
var _scriptsWeb3Js = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xec\xfd\x69\x77\x1b\x37\xb2\x38\x0e\xbf\xd7\xa7\x80\xf8\xdc\xc7\x24\x2d\x9a\xd4\x16\xc7\xa1\xa2\x78\xe4\x25\xb1\x66\x6c\xcb\xc7\xb6\x26\x33\x57\xa3\xeb\xd3\x64\x83\x64\xc7\xcd\x6e\xfe\xba\x9b\x5a\x62\xe9\xbb\xff\x0f\x0a\x5b\x61\xe9\x85\x92\x9c\x6d\xa4\x17\x36\x1b\x28\x6c\x85\x42\xa1\x50\x28\x54\x65\xf4\xff\x2d\xa3\x8c\xee\x77\x26\xcb\x64\x5c\x44\x69\x42\x68\xa7\xe8\x25\xbd\xac\xfb\x45\xa5\xe4\x9d\xb4\xb7\xec\x7e\x89\x26\x9d\xf5\xe4\x24\x3d\xe5\xbf\x0a\xf8\x75\x16\x64\x24\xd8\x2f\x2e\x17\x34\x9d\x10\x59\xd7\x7e\x4b\x16\x6d\x3d\x78\x20\x12\xf7\x58\x99\xe5\x83\x07\x41\x37\xa3\xc5\x32\x4b\x48\xd0\x49\x7b\xeb\x9b\x5d\x96\x1e\xc9\xb4\x48\xa4\xb1\x5a\x27\xfb\x09\x3d\x27\x2f\xb3\x2c\xcd\x3a\xad\xe7\x41\x92\xa4\x05\x99\x44\x49\x48\xe6\x69\xb8\x8c\x29\x69\xb7\x36\xd2\x8d\x56\xbb\xd5\xdd\x2b\x66\x59\x7a\x4e\x26\xfd\x71\x1a\xd2\xfd\xd6\x9b\xa3\x17\xc7\xaf\x5f\x7e\x7a\x7b\xf4\xf1\xd3\x8f\x47\xc7\x6f\x5f\xb4\x7a\x93\x6b\x56\x5f\xbc\xcf\xfa\xbe\xff\x85\x5e\x2c\xd2\xac\xc8\x87\x5f\xae\xaf\xf7\xd8\x18\x4e\x36\x4f\xfb\xe3\x20\x8e\x3b\x71\x5f\x64\xf5\x64\xef\x3b\x94\x0f\x30\xd9\x07\xc0\xad\xd3\x13\x7a\xba\x27\xba\x9a\x77\x92\xa7\xc9\x90\x76\xaf\x7b\x71\x4f\x97\xa4\x3d\x8e\xbb\x6b\x01\xc5\x9a\x94\x99\xd0\x8b\xa8\x11\xae\x26\x69\xd6\x61\xd0\xe9\xfe\xe6\x5e\xfa\x7d\xd6\x8f\x69\x32\x2d\x66\x7b\xe9\xc6\x46\x37\xef\x64\x0c\xf1\xaa\x1b\xd7\xdd\xce\x97\xad\xe1\x89\xea\xb2\xa8\xa2\xc7\xb1\xd4\x13\x6d\x77\xbf\xac\xf1\x04\xd9\x99\xfd\x93\x35\x42\xbe\xac\x11\x42\x48\x6b\x9c\x26\x79\x11\x24\x45\x6b\x48\x8a\x6c\x49\x7b\x3c\x35\x4a\x16\xcb\x22\x6f\x0d\xc9\x09\x7c\x4b\x68\xc8\x4b\x82\x39\x6d\x0d\x49\xeb\x53\x7a\x9e\xd0\xac\xd5\xd3\x39\x6c\x74\x2c\x27\x08\xc3\x8c\xe6\x79\x4b\xe4\x5c\xc3\xff\xa7\xa2\x6a\x59\x1c\xfe\x17\x69\xe9\xb2\xa8\x6f\x2f\xfd\x84\x8a\x18\xed\x8d\x2e\x0b\x9a\xef\x6c\xfb\xdb\x93\x40\x0a\xd3\x6b\x84\x5c\xf7\xee\x04\x01\x37\xea\x8f\x1a\x0e\xc2\x5e\x33\x04\xac\x8c\xea\x3f\xea\xd0\xc7\x69\x52\xd0\xa4\xb8\xf5\xe0\xff\x94\xf3\xce\x66\xec\x0f\x33\xed\x93\x20\xce\x7f\xbb\xa1\x67\x34\xa7\xd9\x99\x6f\xd5\xff\xd1\x27\x2d\x5f\x8e\xde\xd3\x69\x94\x17\x59\xf0\x5f\x30\x79\xbd\xaa\x3a\xe8\xf9\xd1\xad\xf8\x7e\x91\x05\x49\x3e\xf1\xb2\xbe\x3f\x0b\x0e\x32\x8b\x14\x56\x47\x42\x4e\x8b\x0f\xd5\x24\x75\x67\xb8\xb0\x9b\xfe\x4d\x1a\xfd\xca\x13\x10\x34\x41\x7c\x55\x05\x8b\x2c\x9a\x07\xd9\xa5\xb7\x1f\x69\x1a\xd7\x4e\xde\x81\x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\x2f\x4c\x7c\xfe\xf6\x27\x99\x3b\x41\x52\x49\xdd\xcd\xe8\xec\x77\x40\xff\x1f\x16\xeb\x77\x71\x7e\xbc\x31\x9f\xfc\xda\x58\xb7\x99\xde\x3d\xda\x1b\xa2\xfd\xd6\x1b\xd7\xd7\x9e\xd9\x43\xcf\x96\x56\x25\xc7\xed\x36\x91\xe3\xc0\x78\x83\xec\x4b\x0b\x87\x4e\xbb\x3f\x98\xa4\xd9\x3c\x28\x0a\x9a\xe5\xed\xee\x1e\x00\x7c\x48\xe3\x28\x8c\x8a\xcb\x8f\x97\x0b\x6a\xc2\xb2\xf6\x19\xd4\xda\xe0\xe1\xc3\x35\xf2\xd0\x80\x14\x3a\x77\x12\xe5\x24\x20\x8b\x2c\x4d\x19\x30\x29\x66\x41\x41\x32\xba\x60\x87\xac\xa4\xc8\x89\x98\x3b\xc2\x32\x59\x0d\x87\x05\x99\x07\xc5\x78\x46\xf3\x21\xfb\x14\xd9\xe8\xe7\x
|
||
|
|
||
|
func scriptsWeb3JsBytes() ([]byte, error) {
|
||
|
return bindataRead(
|
||
|
_scriptsWeb3Js,
|
||
|
"scripts/web3.js",
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func scriptsWeb3Js() (*asset, error) {
|
||
|
bytes, err := scriptsWeb3JsBytes()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
info := bindataFileInfo{name: "scripts/web3.js", size: 492339, mode: os.FileMode(420), modTime: time.Unix(1491220671, 0)}
|
||
|
a := &asset{bytes: bytes, info: info}
|
||
|
return a, nil
|
||
|
}
|
||
|
|
||
|
var _configTestDataJson = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x84\x8d\x31\x6b\xc4\x30\x0c\x46\xf7\xfc\x0a\xa1\xb9\x83\x9d\x54\xb2\x9d\xed\xb6\x4e\x25\x90\x83\xce\xb2\xac\x8c\x31\xc4\x57\xda\x52\xee\xbf\x17\xd3\x83\x83\x42\xb9\x41\x20\x1e\x7c\xef\x7d\x0f\x00\xf8\x5a\x8b\xe1\x0c\xfd\x07\xc0\xf5\x6b\xd7\xd5\xb4\xee\xa5\xe1\x0c\xc9\x3d\xfd\xe2\x97\xf3\x79\x59\xea\x71\xc1\x19\x22\x3f\xd3\x8d\xbe\xad\x77\xc6\x03\xc0\xb5\x73\x3c\xa9\xd6\xf7\xfd\xe2\xef\xd2\x53\x29\x87\xb5\x2e\x44\xf7\x29\x45\x36\x4f\x2e\x27\x47\xba\x91\xb1\x84\x10\x8d\x68\x32\x4f\xe2\xa7\x94\x99\x7d\xcc\x39\x07\xbc\x45\x16\x69\xed\xa3\x1e\xa5\xaf\xa5\x95\xad\x1f\xfe\x8d\x8d\xff\xc4\x98\xd4\x79\x8a\x2c\xe2\xd4\x3c\x8d\x71\x22\x0d\x31\x8a\x1a\x33\x59\xf2\x92\x27\x1a\x43\x8e\x0f\x63\xc3\xf5\x27\x00\x00\xff\xff\xf7\x41\xbc\x81\x2d\x01\x00\x00")
|
||
|
|
||
|
func configTestDataJsonBytes() ([]byte, error) {
|
||
|
return bindataRead(
|
||
|
_configTestDataJson,
|
||
|
"config/test-data.json",
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func configTestDataJson() (*asset, error) {
|
||
|
bytes, err := configTestDataJsonBytes()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
info := bindataFileInfo{name: "config/test-data.json", size: 301, mode: os.FileMode(420), modTime: time.Unix(1491220671, 0)}
|
||
|
a := &asset{bytes: bytes, info: info}
|
||
|
return a, nil
|
||
|
}
|
||
|
|
||
|
var _keysTestAccount1Pk = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x74\x51\xdb\x6a\xdc\x40\x0c\xfd\x17\x3d\xdb\x30\x37\x69\x2e\x7f\x23\x8d\x34\xc4\x64\xe3\x5d\x6c\x6f\xba\x21\xe4\xdf\x8b\x17\xda\x90\x42\x1f\x25\x8e\x8e\xce\xe5\x13\x58\x75\xb3\x7d\x87\x06\xac\x3c\x3c\x3a\xa9\x0e\xfb\x40\x23\xce\xb9\x18\x62\x34\x8f\xec\x63\x15\x22\x5f\x44\x24\xc3\x04\x7d\xfb\xb8\x1d\x57\x68\x9f\xd0\x97\xdb\x8b\x6d\xe7\xb5\xed\xb3\x0f\x65\xee\xc7\x76\x02\x9e\xeb\xc3\x1e\x07\x34\x30\x92\xc4\x25\x0b\x05\xeb\x4c\x42\x98\x24\xa1\xf5\xe2\x88\x7d\x15\xe4\x32\x38\x98\x79\x89\x55\x43\x67\x9f\x93\xa3\xe1\xfd\x90\xe2\x53\x28\x09\xf1\x2f\xdf\x8d\x37\x7e\xdb\xcf\xb7\xcb\x3b\x34\x28\x14\xd1\xa3\x76\x25\x37\x8a\xd4\x61\x3d\x2b\x0a\x63\x1d\x81\x4b\x45\x83\xaf\x09\x5e\x75\x40\x83\xfd\x29\x18\x9e\xe3\x37\x89\xbe\x5e\x6c\x85\x16\xc3\x04\x2b\xb4\x40\xc1\xa7\x34\xc1\x0d\x9a\x9f\x60\x83\x56\x26\xd8\xf9\x72\x1a\x28\xd1\x92\x16\x0c\x2a\xea\x35\x89\xd4\xd8\x7d\x2d\x35\x47\x52\x4d\x7d\xa4\x94\xa2\xb8\x92\x42\xcd\x85\xc9\xac\x47\x47\x95\x7d\x4c\x8e\xba\x44\x72\x78\x0a\x79\xe3\x0e\x0d\xb2\x3a\x37\x2a\xb1\x89\xa7\x92\xb2\xcf\x21\x95\x21\x5d\x74\x58\x0f\x4a\xca\x54\x95\xd5\x98\x9c\x11\x86\x33\x10\x47\x29\x58\xac\xae\x66\xa9\x21\x9e\x4c\x8b\x42\x03\xe9\x2e\x85\x81\x79\x66\xad\x7e\x4e\x09\xeb\xcc\x0e\x69\x26\x97\xbb\x15\xc7\x99\x9c\xc2\x04\xef\xb6\xed\xcb\xf5\x34\x39\xc1\xaf\x97\x65\xbf\xd9\x66\x2b\xcb\xc5\x14\xda\xb1\xdd\x6d\x02\x7b\x1c\xb6\xaa\xe9\xab\x7d\xfc\xe8\xf3\xdf\x12\xff\x57\xc2\x77\xc8\x3f\xe3\x5d\xef\x97\xcb\x1f\xd7\x27\x66\xbf\x0b\xf7\x7e\xbd\xaf\xc7\xb2\xaa\x3d\xa0\xb9\xaf\xdf\x01\x00\x00\xff\xff\x5a\x39\xba\x20\x7d\x02\x00\x00")
|
||
|
|
||
|
func keysTestAccount1PkBytes() ([]byte, error) {
|
||
|
return bindataRead(
|
||
|
_keysTestAccount1Pk,
|
||
|
"keys/test-account1.pk",
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func keysTestAccount1Pk() (*asset, error) {
|
||
|
bytes, err := keysTestAccount1PkBytes()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
info := bindataFileInfo{name: "keys/test-account1.pk", size: 637, mode: os.FileMode(420), modTime: time.Unix(1491220671, 0)}
|
||
|
a := &asset{bytes: bytes, info: info}
|
||
|
return a, nil
|
||
|
}
|
||
|
|
||
|
var _keysTestAccount2Pk = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x92\x4d\x8a\xdb\x49\x0c\x47\xef\x52\x6b\x1b\x4a\x2a\xa9\xaa\xf4\xbf\x8d\x3e\x89\xe9\x8e\xbb\xb1\xdd\x99\x0e\x21\x77\x1f\xdc\x8b\xc9\x6a\x60\x16\xb3\x94\x10\x4f\x3f\xa1\xf7\xab\x69\xc4\x2d\xef\xf7\x76\xb4\xc9\xde\x81\xf7\x54\xed\x9e\xc0\xb8\x07\xfb\xda\x5b\x3d\xe7\xe4\x14\x50\x1b\x8c\xcb\x76\x3b\x35\xbf\xfd\x7c\x7f\xbc\xb5\xe3\x57\xf3\xcb\xfb\xb7\xbc\xb5\xa3\x69\xde\xcf\x80\xfb\xec\x8f\xdb\x73\xe0\xab\xfd\xc8\xcf\x47\x3b\x1a\x4e\x60\x2e\xf6\x01\x4c\x82\xee\x46\xbd\x90\x34\x6d\x50\xd5\xb4\xb2\xb0\x70\x5b\xd4\xd1\x24\x97\x19\xf3\x2e\x25\x97\x31\x2d\x19\xaa\xfe\xe1\xbd\xeb\x4d\xbf\xdf\x9f\x6b\x2f\x3f\xda\xd1\x20\xc4\x46\xa7\x61\x2c\x3e\x44\xd8\x09\x7a\x6d\xf4\x90\x69\x95\x9d\xdb\xef\x53\x7b\x89\x6a\x47\xbb\x7f\x05\x6e\x5f\xe5\x1f\x48\xbc\xbc\xe6\xb5\x1d\x03\x4f\xed\xda\x0e\xea\x32\x4f\xed\xbd\x1d\xf3\xd4\x6e\xed\xd8\xa7\x76\xd7\xd7\x67\x7c\x32\x9b\x81\x7d\x77\x40\xc8\x95\xee\xdb\x46\xb8\xa9\xb0\x47\xef\x03\xbc\x86\x8d\x09\x8b\x26\x20\xd2\x72\x20\xda\x13\xe7\xe4\xdd\x33\xc8\xf6\x33\xc6\x77\xf5\x76\x34\xf7\x5d\xd8\x25\x04\x70\x2b\xa5\xe8\x1e\xd3\xa7\xc0\x40\x4a\x20\x96\xa0\x18\x81\x8a\xd6\x27\x2e\x2f\xa1\x14\xd1\x95\xdb\x46\x67\x9b\xe1\x4f\xd2\x25\xda\xd1\x16\x4f\x47\xe0\x3c\xc7\xd0\x3a\xd3\xe0\x38\xef\xf2\x3a\x0f\x49\x9b\x18\xa2\x2c\xbd\x9d\xda\x8f\xbc\xdd\x2f\x6f\xcf\x13\x4f\xed\xaf\x6f\x97\xfb\x7b\xde\xf2\xaa\xf6\x9a\xd1\x8e\xc7\xed\x23\x4f\x2d\x3f\x1f\x79\x8d\x8c\x97\xfc\xf9\x5f\xbf\x19\xc1\xee\xb4\x3c\x52\x46\xb7\x30\x51\x98\xc8\x55\x98\x15\x38\xba\xa9\x8b\x32\xa6\xc4\x4a\xc4\xae\x3a\x45\xbc\xc3\x72\x52\x87\xaa\x49\xbc\x26\xeb\x42\x50\x9f\x45\x40\xa3\x4a\x99\x21\xbd\xd6\xe2\xc2\x6e\xc8\xb9\x3c\x38\xc6\xe6\x99\xc5\x92\xab\x06\x04\xf5\x65\x85\xd1\xa9\x53\xe1\xc0\x21\x20\xd0\xc1\xc7\x72\x21\x61\x2c\xdb\x34\x31\x08\x37\xa8\xa0\xf5\xce\x29\xb5\x41\x67\x04\x68\x15\x16\xa5\x01\xbb\x91\x4f\xe5\x19\x25\x7d\xb9\xb0\x00\xf7\xe1\x2b\xb6\x58\xf7\xd4\xbe\xdd\xfe\xcd\xb5\x9a\xd3\x08\xc8\xe6\x5c\x7b\xc3\x34\x1f\xc9\x66\x08\x34\x91\x8c\x6a\xfd\x4f\xae\x75\x21\x53\xaa\xc9\xa6\x3e\x77\x6d\x95\xdd\xd7\x5e\x00\x7b\x45\x08\x30\x53\xef\x30\xb4\x2f\x41\xab\x11\x00\xd1\x41\x34\x87\xa7\xae\x58\xde\xff\xb8\x86\x89\xb2\x44\x68\xe8\x62\xaf\x5a\x13\x69\x77\xc7\x69\x23\xb4\xaa\x97\xfa\xda\x1e\x05\x98\x3d\x63\x09\xe4\x54\x18\x08\x35\x32\x76\xb9\xc0\x93\x74\xff\x30\x75\x7f\xfb\xb8\x3e\x2e\xd7\xc8\xcf\x76\xf4\xdf\x7f\x07\x00\x00\xff\xff\x99\xc4\xef\xba\x31\x04\x00\x00")
|
||
|
|
||
|
func keysTestAccount2PkBytes() ([]byte, error) {
|
||
|
return bindataRead(
|
||
|
_keysTestAccount2Pk,
|
||
|
"keys/test-account2.pk",
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func keysTestAccount2Pk() (*asset, error) {
|
||
|
bytes, err := keysTestAccount2PkBytes()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
info := bindataFileInfo{name: "keys/test-account2.pk", size: 1073, mode: os.FileMode(420), modTime: time.Unix(1491220671, 0)}
|
||
|
a := &asset{bytes: bytes, info: info}
|
||
|
return a, nil
|
||
|
}
|
||
|
|
||
|
// Asset loads and returns the asset for the given name.
|
||
|
// It returns an error if the asset could not be found or
|
||
|
// could not be loaded.
|
||
|
func Asset(name string) ([]byte, error) {
|
||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||
|
if f, ok := _bindata[cannonicalName]; ok {
|
||
|
a, err := f()
|
||
|
if err != nil {
|
||
|
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
|
||
|
}
|
||
|
return a.bytes, nil
|
||
|
}
|
||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||
|
}
|
||
|
|
||
|
// MustAsset is like Asset but panics when Asset would return an error.
|
||
|
// It simplifies safe initialization of global variables.
|
||
|
func MustAsset(name string) []byte {
|
||
|
a, err := Asset(name)
|
||
|
if err != nil {
|
||
|
panic("asset: Asset(" + name + "): " + err.Error())
|
||
|
}
|
||
|
|
||
|
return a
|
||
|
}
|
||
|
|
||
|
// AssetInfo loads and returns the asset info for the given name.
|
||
|
// It returns an error if the asset could not be found or
|
||
|
// could not be loaded.
|
||
|
func AssetInfo(name string) (os.FileInfo, error) {
|
||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||
|
if f, ok := _bindata[cannonicalName]; ok {
|
||
|
a, err := f()
|
||
|
if err != nil {
|
||
|
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
|
||
|
}
|
||
|
return a.info, nil
|
||
|
}
|
||
|
return nil, fmt.Errorf("AssetInfo %s not found", name)
|
||
|
}
|
||
|
|
||
|
// AssetNames returns the names of the assets.
|
||
|
func AssetNames() []string {
|
||
|
names := make([]string, 0, len(_bindata))
|
||
|
for name := range _bindata {
|
||
|
names = append(names, name)
|
||
|
}
|
||
|
return names
|
||
|
}
|
||
|
|
||
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
||
|
var _bindata = map[string]func() (*asset, error){
|
||
|
"scripts/bignumber.js": scriptsBignumberJs,
|
||
|
"scripts/web3.js": scriptsWeb3Js,
|
||
|
"config/test-data.json": configTestDataJson,
|
||
|
"keys/test-account1.pk": keysTestAccount1Pk,
|
||
|
"keys/test-account2.pk": keysTestAccount2Pk,
|
||
|
}
|
||
|
|
||
|
// AssetDir returns the file names below a certain
|
||
|
// directory embedded in the file by go-bindata.
|
||
|
// For example if you run go-bindata on data/... and data contains the
|
||
|
// following hierarchy:
|
||
|
// data/
|
||
|
// foo.txt
|
||
|
// img/
|
||
|
// a.png
|
||
|
// b.png
|
||
|
// then AssetDir("data") would return []string{"foo.txt", "img"}
|
||
|
// AssetDir("data/img") would return []string{"a.png", "b.png"}
|
||
|
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
|
||
|
// AssetDir("") will return []string{"data"}.
|
||
|
func AssetDir(name string) ([]string, error) {
|
||
|
node := _bintree
|
||
|
if len(name) != 0 {
|
||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||
|
pathList := strings.Split(cannonicalName, "/")
|
||
|
for _, p := range pathList {
|
||
|
node = node.Children[p]
|
||
|
if node == nil {
|
||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if node.Func != nil {
|
||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||
|
}
|
||
|
rv := make([]string, 0, len(node.Children))
|
||
|
for childName := range node.Children {
|
||
|
rv = append(rv, childName)
|
||
|
}
|
||
|
return rv, nil
|
||
|
}
|
||
|
|
||
|
type bintree struct {
|
||
|
Func func() (*asset, error)
|
||
|
Children map[string]*bintree
|
||
|
}
|
||
|
var _bintree = &bintree{nil, map[string]*bintree{
|
||
|
"config": &bintree{nil, map[string]*bintree{
|
||
|
"test-data.json": &bintree{configTestDataJson, map[string]*bintree{}},
|
||
|
}},
|
||
|
"keys": &bintree{nil, map[string]*bintree{
|
||
|
"test-account1.pk": &bintree{keysTestAccount1Pk, map[string]*bintree{}},
|
||
|
"test-account2.pk": &bintree{keysTestAccount2Pk, map[string]*bintree{}},
|
||
|
}},
|
||
|
"scripts": &bintree{nil, map[string]*bintree{
|
||
|
"bignumber.js": &bintree{scriptsBignumberJs, map[string]*bintree{}},
|
||
|
"web3.js": &bintree{scriptsWeb3Js, map[string]*bintree{}},
|
||
|
}},
|
||
|
}}
|
||
|
|
||
|
// RestoreAsset restores an asset under the given directory
|
||
|
func RestoreAsset(dir, name string) error {
|
||
|
data, err := Asset(name)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
info, err := AssetInfo(name)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// RestoreAssets restores an asset under the given directory recursively
|
||
|
func RestoreAssets(dir, name string) error {
|
||
|
children, err := AssetDir(name)
|
||
|
// File
|
||
|
if err != nil {
|
||
|
return RestoreAsset(dir, name)
|
||
|
}
|
||
|
// Dir
|
||
|
for _, child := range children {
|
||
|
err = RestoreAssets(dir, filepath.Join(name, child))
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func _filePath(dir, name string) string {
|
||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||
|
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
||
|
}
|
||
|
|