Skip to content
Snippets Groups Projects
Select Git revision
  • 9696c8997cb785c5f0d8f1a98d7da74b56a83e7c
  • without_tipselection default
  • develop protected
  • fix/grafana-local-dashboard
  • wasp
  • fix/dashboard-explorer-freeze
  • master
  • feat/timerqueue
  • test/sync_debug_and_650
  • feat/sync_revamp_inv
  • wip/sync
  • tool/db-recovery
  • portcheck/fix
  • fix/synchronization
  • feat/new-dashboard-analysis
  • feat/refactored-analysis-dashboard
  • feat/new-analysis-dashboard
  • test/demo-prometheus-fpc
  • prometheus_metrics
  • wip/analysis-server
  • merge/fpc-test-value-transfer
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

parameters.go

Blame
  • valuebundlefactory.go 664 B
    package client
    
    import (
    	"github.com/iotaledger/iota.go/consts"
    	"github.com/iotaledger/iota.go/trinary"
    )
    
    type ValueBundleFactory struct {
    	seed          trinary.Trytes
    	securityLevel consts.SecurityLevel
    	seedInputs    map[uint64]uint64
    	seedOutputs   map[uint64]uint64
    }
    
    func New(seed trinary.Trytes, securityLevel consts.SecurityLevel) *ValueBundleFactory {
    	return &ValueBundleFactory{
    		seed:          seed,
    		securityLevel: securityLevel,
    		seedInputs:    make(map[uint64]uint64),
    		seedOutputs:   make(map[uint64]uint64),
    	}
    }
    
    func (factory *ValueBundleFactory) AddInput(addressIndex uint64, value uint64) {
    	factory.seedInputs[addressIndex] = value
    }