Skip to content

Commit

Permalink
Merge branch 'master' into feature/dynamic-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
yossigi committed Aug 14, 2023
2 parents cc5a872 + 4ff2bf3 commit 69633c7
Show file tree
Hide file tree
Showing 70 changed files with 7,674 additions and 1,579 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ commands:
shell: bash.exe
command: |
choco install -y msys2 pacman make wget --force
choco install -y golang --version=1.20.5 --force
choco install -y golang --version=1.20.6 --force
choco install -y python3 --version=3.7.3 --force
export msys2='cmd //C RefreshEnv.cmd '
export msys2+='& set MSYS=winsymlinks:nativestrict '
Expand Down Expand Up @@ -602,7 +602,6 @@ commands:
export PACKAGE_NAMES=$(echo $PACKAGES | tr -d '\n')
export PARTITION_TOTAL=${CIRCLE_NODE_TOTAL}
export PARTITION_ID=${CIRCLE_NODE_INDEX}
export GOEXPERIMENT="none"
gotestsum --format standard-verbose --junitfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/results.xml --jsonfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/testresults.json -- --tags "sqlite_unlock_notify sqlite_omit_load_extension" << parameters.short_test_flag >> -race -timeout 1h -coverprofile=coverage.txt -covermode=atomic -p 1 $PACKAGE_NAMES
- store_artifacts:
path: << parameters.result_path >>
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uses: actions/[email protected]
with:
path: cicdtmp/golangci-lint/golangci-lint-cgo
key: cicd-golangci-lint-cgo-v0.0.2
key: cicd-golangci-lint-cgo-v0.0.2-${{ env.GO_VERSION }}

- name: Build custom golangci-lint with CGO_ENABLED
if: steps.cache-golangci-lint.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04 as builder

ARG GO_VERSION="1.20.5"
ARG GO_VERSION="1.20.6"

ARG CHANNEL
ARG URL
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ ifeq ($(SHORT_PART_PERIOD), 1)
export SHORT_PART_PERIOD_FLAG := -s
endif

# Disable go experiments during build as of go 1.20.5 due to
# https://github.com/golang/go/issues/60825
# Likely fix: https://go-review.googlesource.com/c/go/+/503937/6/src/runtime/race_arm64.s
export GOEXPERIMENT=none

GOTAGS := --tags "$(GOTAGSLIST)"
GOTRIMPATH := $(shell GOPATH=$(GOPATH) && go help build | grep -q .-trimpath && echo -trimpath)

Expand Down
28 changes: 16 additions & 12 deletions cmd/goal/clerk.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ var (
simulateAllowMoreOpcodeBudget bool
simulateExtraOpcodeBudget uint64

simulateFullTrace bool
simulateEnableRequestTrace bool
simulateStackChange bool
simulateScratchChange bool
simulateFullTrace bool
simulateEnableRequestTrace bool
simulateStackChange bool
simulateScratchChange bool
simulateAllowUnnamedResources bool
)

func init() {
Expand Down Expand Up @@ -171,6 +172,7 @@ func init() {
simulateCmd.Flags().BoolVar(&simulateEnableRequestTrace, "trace", false, "Enable simulation time execution trace of app calls")
simulateCmd.Flags().BoolVar(&simulateStackChange, "stack", false, "Report stack change during simulation time")
simulateCmd.Flags().BoolVar(&simulateScratchChange, "scratch", false, "Report scratch change during simulation time")
simulateCmd.Flags().BoolVar(&simulateAllowUnnamedResources, "allow-unnamed-resources", false, "Allow access to unnamed resources during simulation")
}

var clerkCmd = &cobra.Command{
Expand Down Expand Up @@ -1281,10 +1283,11 @@ var simulateCmd = &cobra.Command{
Txns: txgroup,
},
},
AllowEmptySignatures: simulateAllowEmptySignatures,
AllowMoreLogging: simulateAllowMoreLogging,
ExtraOpcodeBudget: simulateExtraOpcodeBudget,
ExecTraceConfig: traceCmdOptionToSimulateTraceConfigModel(),
AllowEmptySignatures: simulateAllowEmptySignatures,
AllowMoreLogging: simulateAllowMoreLogging,
AllowUnnamedResources: simulateAllowUnnamedResources,
ExtraOpcodeBudget: simulateExtraOpcodeBudget,
ExecTraceConfig: traceCmdOptionToSimulateTraceConfigModel(),
}
err := writeFile(requestOutFilename, protocol.EncodeJSON(simulateRequest), 0600)
if err != nil {
Expand All @@ -1305,10 +1308,11 @@ var simulateCmd = &cobra.Command{
Txns: txgroup,
},
},
AllowEmptySignatures: simulateAllowEmptySignatures,
AllowMoreLogging: simulateAllowMoreLogging,
ExtraOpcodeBudget: simulateExtraOpcodeBudget,
ExecTraceConfig: traceCmdOptionToSimulateTraceConfigModel(),
AllowEmptySignatures: simulateAllowEmptySignatures,
AllowMoreLogging: simulateAllowMoreLogging,
AllowUnnamedResources: simulateAllowUnnamedResources,
ExtraOpcodeBudget: simulateExtraOpcodeBudget,
ExecTraceConfig: traceCmdOptionToSimulateTraceConfigModel(),
}
simulateResponse, responseErr = client.SimulateTransactions(simulateRequest)
} else {
Expand Down
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const VersionMajor = 3

// VersionMinor is the Minor semantic version number (x.#.z) - changed when backwards-compatible features are introduced.
// Not enforced until after initial public release (x > 0).
const VersionMinor = 17
const VersionMinor = 18

// Version is the type holding our full version information.
type Version struct {
Expand Down
130 changes: 129 additions & 1 deletion daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3093,6 +3093,46 @@
}
}
},
"AssetHoldingReference": {
"description": "References an asset held by an account.",
"type": "object",
"required": [
"account",
"asset"
],
"properties": {
"account": {
"description": "Address of the account holding the asset.",
"type": "string",
"x-algorand-format": "Address"
},
"asset": {
"description": "Asset ID of the holding.",
"type": "integer",
"x-algorand-format": "uint64"
}
}
},
"ApplicationLocalReference": {
"description": "References an account's local state for an application.",
"type": "object",
"required": [
"account",
"app"
],
"properties": {
"account": {
"description": "Address of the account with the local state.",
"type": "string",
"x-algorand-format": "Address"
},
"app": {
"description": "Application ID of the local state application.",
"type": "integer",
"x-algorand-format": "uint64"
}
}
},
"ApplicationStateSchema": {
"description": "Specifies maximums on the number of each type that may be stored.",
"type": "object",
Expand Down Expand Up @@ -3590,13 +3630,17 @@
}
},
"allow-empty-signatures": {
"description": "Allow transactions without signatures to be simulated as if they had correct signatures.",
"description": "Allows transactions without signatures to be simulated as if they had correct signatures.",
"type": "boolean"
},
"allow-more-logging": {
"description": "Lifts limits on log opcode usage during simulation.",
"type": "boolean"
},
"allow-unnamed-resources": {
"description": "Allows access to unnamed resources during simulation.",
"type": "boolean"
},
"extra-opcode-budget": {
"description": "Applies extra opcode budget during simulation for each transaction group.",
"type": "integer"
Expand Down Expand Up @@ -3682,6 +3726,25 @@
}
}
},
"BoxReference": {
"description": "References a box of an application.",
"type": "object",
"required": [
"app",
"name"
],
"properties": {
"app": {
"description": "Application ID which this box belongs to",
"type": "integer"
},
"name": {
"description": "Base64 encoded box name",
"type": "string",
"format": "byte"
}
}
},
"KvDelta": {
"description": "A single Delta containing the key, the previous value and the current value for a single round.",
"type": "object",
Expand Down Expand Up @@ -3874,6 +3937,9 @@
"app-budget-consumed": {
"description": "Total budget consumed during execution of app calls in the transaction group.",
"type": "integer"
},
"unnamed-resources-accessed": {
"$ref": "#/definitions/SimulateUnnamedResourcesAccessed"
}
}
},
Expand All @@ -3897,6 +3963,9 @@
},
"exec-trace": {
"$ref": "#/definitions/SimulationTransactionExecTrace"
},
"unnamed-resources-accessed": {
"$ref": "#/definitions/SimulateUnnamedResourcesAccessed"
}
}
},
Expand Down Expand Up @@ -3988,6 +4057,10 @@
"description": "If true, transactions without signatures are allowed and simulated as if they were properly signed.",
"type": "boolean"
},
"allow-unnamed-resources": {
"description": "If true, allows access to unnamed resources during simulation.",
"type": "boolean"
},
"max-log-calls": {
"description": "The maximum log calls one can make during simulation",
"type": "integer"
Expand Down Expand Up @@ -4090,6 +4163,61 @@
}
}
}
},
"SimulateUnnamedResourcesAccessed": {
"description": "These are resources that were accessed by this group that would normally have caused failure, but were allowed in simulation. Depending on where this object is in the response, the unnamed resources it contains may or may not qualify for group resource sharing. If this is a field in SimulateTransactionGroupResult, the resources do qualify, but if this is a field in SimulateTransactionResult, they do not qualify. In order to make this group valid for actual submission, resources that qualify for group sharing can be made available by any transaction of the group; otherwise, resources must be placed in the same transaction which accessed them.",
"type": "object",
"properties": {
"accounts": {
"description": "The unnamed accounts that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "string",
"x-algorand-format": "Address"
}
},
"assets": {
"description": "The unnamed assets that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
}
},
"apps": {
"description": "The unnamed applications that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
}
},
"boxes": {
"description": "The unnamed boxes that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"$ref": "#/definitions/BoxReference"
}
},
"extra-box-refs": {
"description": "The number of extra box references used to increase the IO budget. This is in addition to the references defined in the input transaction group and any referenced to unnamed boxes.",
"type": "integer"
},
"asset-holdings": {
"description": "The unnamed asset holdings that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"$ref": "#/definitions/AssetHoldingReference"
}
},
"app-locals": {
"description": "The unnamed application local states that were referenced. The order of this array is arbitrary.",
"type": "array",
"items": {
"$ref": "#/definitions/ApplicationLocalReference"
}
}
}
}
},
"parameters": {
Expand Down
Loading

0 comments on commit 69633c7

Please sign in to comment.