Skip to content

Commit

Permalink
updated to v1.7.0 of flowkit
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Nov 13, 2023
1 parent 8c6e141 commit 7e0de2f
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 73 deletions.
22 changes: 10 additions & 12 deletions doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import (
var docOptions = WithGlobalPrintOptions(WithoutId())

func Example() {

//in order to start overflow use the Overflow function
//it can be customized with lots of OverflowOption
// in order to start overflow use the Overflow function
// it can be customized with lots of OverflowOption
Overflow()
//Output:
//🧑 Created account: emulator-first with address: 01cf0e2f2f715450 with flow: 10.00
Expand All @@ -24,10 +23,10 @@ func ExampleOverflowState_Tx() {
// start the Tx DSL with the name of the transactions file, by default this
// is in the `transactions` folder in your root dit
o.Tx("arguments",
//Customize the Transaction by sending in more InteractionOptions,
//at minimum you need to set Signer and Args if any
// Customize the Transaction by sending in more InteractionOptions,
// at minimum you need to set Signer and Args if any
WithSigner("first"),
//Arguments are always passed by name in the DSL builder, order does not matter
// Arguments are always passed by name in the DSL builder, order does not matter
WithArg("test", "overflow ftw!"),
)
//Output:
Expand All @@ -41,7 +40,7 @@ func ExampleOverflowState_Tx() {
func ExampleOverflowState_Tx_inline() {
o := Overflow(docOptions)

//The Tx dsl can also contain an inline transaction
// The Tx dsl can also contain an inline transaction
o.Tx(`
import Debug from "../contracts/Debug.cdc"
transaction(message:String) {
Expand All @@ -56,7 +55,7 @@ func ExampleOverflowState_Tx_inline() {
//🧑 Created account: emulator-first with address: 01cf0e2f2f715450 with flow: 10.00
//🧑 Created account: emulator-second with address: 179b6b1cb6755e31 with flow: 10.00
//📜 deploy contracts NonFungibleToken, Debug, MetadataViews
//👌 Tx: fee:0.00001000 gas:7
//👌 Tx: fee:0.00001000 gas:8
//=== Events ===
//A.f8d6e0586b0a20c7.Debug.Log
// msg -> overflow ftw!
Expand All @@ -65,7 +64,7 @@ func ExampleOverflowState_Tx_inline() {
func ExampleOverflowState_Tx_multisign() {
o := Overflow(docOptions)

//The Tx dsl supports multiple signers, note that the mainSigner is the last account
// The Tx dsl supports multiple signers, note that the mainSigner is the last account
o.Tx(`
import Debug from "../contracts/Debug.cdc"
transaction {
Expand All @@ -82,7 +81,7 @@ func ExampleOverflowState_Tx_multisign() {
//🧑 Created account: emulator-first with address: 01cf0e2f2f715450 with flow: 10.00
//🧑 Created account: emulator-second with address: 179b6b1cb6755e31 with flow: 10.00
//📜 deploy contracts NonFungibleToken, Debug, MetadataViews
//👌 Tx: fee:0.00001000 gas:7
//👌 Tx: fee:0.00001000 gas:8
//=== Events ===
//A.f8d6e0586b0a20c7.Debug.Log
// msg -> acct:0x179b6b1cb6755e31
Expand Down Expand Up @@ -112,10 +111,9 @@ func ExampleOverflowState_Script() {
}

func ExampleOverflowState_Script_inline() {

o := Overflow(docOptions)

//Script can be run inline
// Script can be run inline
o.Script(`
pub fun main(account: Address): String {
return getAccount(account).address.toString()
Expand Down
54 changes: 28 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ require (
github.com/fatih/color v1.15.0
github.com/fatih/structtag v1.2.0
github.com/hexops/autogold v1.3.1
github.com/onflow/cadence v0.42.0
github.com/onflow/flow-cli/flowkit v1.6.0
github.com/onflow/flow-emulator v0.56.0
github.com/onflow/flow-go v0.32.2-0.20231017202518-0b275f42906c
github.com/onflow/flow-go-sdk v0.41.11
github.com/onflow/cadence v0.42.5
github.com/onflow/flow-cli/flowkit v1.7.0
github.com/onflow/flow-emulator v0.57.1
github.com/onflow/flow-go v0.32.4-0.20231110175038-e4011e4c93e4
github.com/onflow/flow-go-sdk v0.41.16
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.29.1
github.com/samber/lo v1.38.1
Expand All @@ -25,15 +25,16 @@ require (
)

require (
cloud.google.com/go/compute v1.21.0 // indirect
cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/kms v1.12.1 // indirect
cloud.google.com/go/kms v1.15.0 // indirect
github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect
github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.5.0 // indirect
github.com/bits-and-blooms/bitset v1.7.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.1 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand All @@ -47,7 +48,7 @@ require (
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/ef-ds/deque v1.0.4 // indirect
github.com/ethereum/go-ethereum v1.10.22 // indirect
github.com/ethereum/go-ethereum v1.12.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/fxamacker/cbor/v2 v2.4.1-0.20230228173756-c0c9f774e40c // indirect
github.com/fxamacker/circlehash v0.3.0 // indirect
Expand All @@ -56,13 +57,13 @@ require (
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-redis/redis/v8 v8.11.5 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.1.0 // indirect
github.com/golang/glog v1.1.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
github.com/gosuri/uilive v0.0.4 // indirect
Expand All @@ -74,6 +75,7 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/hexops/valast v1.4.3 // indirect
github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect
github.com/iancoleman/orderedmap v0.0.0-20190318233801-ac98e3ecb4b0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/jsonschema v0.7.0 // indirect
Expand Down Expand Up @@ -118,12 +120,12 @@ require (
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/nightlyone/lockfile v1.0.0 // indirect
github.com/onflow/atree v0.6.0 // indirect
github.com/onflow/flow-core-contracts/lib/go/contracts v1.2.4-0.20230703193002-53362441b57d // indirect
github.com/onflow/flow-core-contracts/lib/go/templates v1.2.3 // indirect
github.com/onflow/flow-ft/lib/go/contracts v0.7.0 // indirect
github.com/onflow/flow-core-contracts/lib/go/contracts v1.2.4-0.20231016154253-a00dbf7c061f // indirect
github.com/onflow/flow-core-contracts/lib/go/templates v1.2.4-0.20231016154253-a00dbf7c061f // indirect
github.com/onflow/flow-ft/lib/go/contracts v0.7.1-0.20230711213910-baad011d2b13 // indirect
github.com/onflow/flow-go/crypto v0.24.9 // indirect
github.com/onflow/flow-nft/lib/go/contracts v1.1.0 // indirect
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231017162044-5d0f9b6dfdb2 // indirect
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231018182244-e72527c55c63 // indirect
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead // indirect
github.com/onflow/sdks v0.5.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
Expand Down Expand Up @@ -152,7 +154,7 @@ require (
github.com/subosito/gotenv v1.4.2 // indirect
github.com/texttheater/golang-levenshtein/levenshtein v0.0.0-20200805054039-cae8b0eaed6c // indirect
github.com/turbolent/prettier v0.0.0-20220320183459-661cc755135d // indirect
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.11 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
Expand All @@ -169,22 +171,22 @@ require (
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/oauth2 v0.10.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/tools v0.9.1 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
gonum.org/v1/gonum v0.13.0 // indirect
google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/grpc v1.58.3 // indirect
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading

0 comments on commit 7e0de2f

Please sign in to comment.