Skip to content

Commit

Permalink
Merge pull request #2 from blockpane/hotfix/fio-go-version-bump
Browse files Browse the repository at this point in the history
Hotfix/fio go version bump
  • Loading branch information
blockpane authored Jan 8, 2021
2 parents 2ebb81d + 5555f05 commit a9d3799
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
package
local*

.DS_Store
3 changes: 3 additions & 0 deletions action-form.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func GetAbiForm(action string, account *fio.Account, api *fio.API, opts *fio.TxO
in.SetText("10,000.00")
}
}
if field.Name == "periods" {
variation.SetSelected("json -> struct")
}
}

hideFailed := widget.NewCheck("Hide Failed", func(b bool) {})
Expand Down
17 changes: 17 additions & 0 deletions action-vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ func defaultValues(contract string, action string, fieldName string, fieldType s
fee = fio.GetMaxFee("register_fio_domain")
}
returnValue = p.Sprintf("%.9f", fee)
case fieldName == "can_vote":
returnValue = "1"
case fieldName == "is_public":
returnValue = "1"
case fieldType == "tokenpubaddr[]":
Expand Down Expand Up @@ -338,6 +340,21 @@ func defaultValues(contract string, action string, fieldName string, fieldType s
"actor":"%s",
"permission":"active"
}`, account.Actor)
case fieldName == "periods":
returnValue = `[
{
"duration": 86400,
"percent": 1.2
},
{
"duration": 172800,
"percent": 90.8
},
{
"duration": 259200,
"percent": 8.0
}
]`
case fieldType == "permission_level[]":
returnValue = fmt.Sprintf(`[{
"actor":"%s",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/btcsuite/btcd v0.20.1-beta
github.com/btcsuite/btcutil v1.0.1
github.com/ethereum/go-ethereum v1.9.15
github.com/fioprotocol/fio-go v1.0.1-0.20200923061247-06f15c940f04
github.com/fioprotocol/fio-go v1.0.3-0.20201222151005-9e1df6dd6005
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/text v0.3.3
Expand Down
8 changes: 6 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt
github.com/ethereum/go-ethereum v1.9.15 h1:wrWl+QrtutRUJ9LZXdUqBoGoo2b1tOCYRDrAOQhCY3A=
github.com/ethereum/go-ethereum v1.9.15/go.mod h1:slT8bPPRhXsyNTwHQxrOnjuTZ1sDXRajW11EkJ84QJ0=
github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fioprotocol/fio-go v1.0.1-0.20200923061247-06f15c940f04 h1:1s2ZTfjMrGE32ZNL0Tr1ScI+zVZQmSbty2kHXm1tsp4=
github.com/fioprotocol/fio-go v1.0.1-0.20200923061247-06f15c940f04/go.mod h1:cX96BK9Y8fQPJP2GXGQvCFovHJ35lw7ICUUUAzqnH40=
github.com/fioprotocol/fio-go v1.0.2-0.20201220021236-16318c6f0d8e h1:H4nMH3Q02qCGm+iMWskaougG9jLIfjOSn/LPo7f+9xs=
github.com/fioprotocol/fio-go v1.0.2-0.20201220021236-16318c6f0d8e/go.mod h1:cX96BK9Y8fQPJP2GXGQvCFovHJ35lw7ICUUUAzqnH40=
github.com/fioprotocol/fio-go v1.0.3-0.20201220224546-01e10838c33f h1:z7USAVPeG0e9gKOrkGfCZ08cvlL40yVwiN0ICLXJM24=
github.com/fioprotocol/fio-go v1.0.3-0.20201220224546-01e10838c33f/go.mod h1:cX96BK9Y8fQPJP2GXGQvCFovHJ35lw7ICUUUAzqnH40=
github.com/fioprotocol/fio-go v1.0.3-0.20201222151005-9e1df6dd6005 h1:j65XCEjg+xFKKcsngbXRECbXN2UEZGqGrO7tq3+u0qI=
github.com/fioprotocol/fio-go v1.0.3-0.20201222151005-9e1df6dd6005/go.mod h1:cX96BK9Y8fQPJP2GXGQvCFovHJ35lw7ICUUUAzqnH40=
github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
Expand Down

0 comments on commit a9d3799

Please sign in to comment.