GeezerVison is showing github.com — fix(withdrawal): remove UID Push transfers in v0.9.3 · gate/gate-cli@46af691
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: README.md -2Lines changed: 0 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,6 @@ API keys and secrets for **trading** are stored per profile (for example `gate-c | 54 | 54 | ### Account & Wallet | 55 | 55 | - **Wallet** — balances, deposits, withdrawal records/status, transfers (main/sub/cross-chain), small balance conversion | 56 | 56 | - **Account** — account detail, rate limits, STP groups, debit fee settings | 57 | | -- **UID transfer** — push order between main spot accounts | 58 | 57 |
| 59 | 58 | ### Ecosystem | 60 | 59 | - **Rebate** — partner/broker/agency commissions and transaction history | @@ -284,7 +283,6 @@ gate-cli news prediction get-market-orderbook --venue polymarket --market-id 123 | 284 | 283 | | mcl | `gate-cli cex mcl` | Multi-collateral loans | | 285 | 284 | | wallet | `gate-cli cex wallet` | Wallet & transfers | | 286 | 285 | | account | `gate-cli cex account` | Account details & settings | | 287 | | -| withdrawal | `gate-cli cex withdrawal` | UID transfers | | 288 | 286 | | alpha | `gate-cli cex alpha` | Alpha token trading | | 289 | 287 | | tradfi | `gate-cli cex tradfi` | CFD (MT5) trading | | 290 | 288 | | stock | `gate-cli cex stock` | Stock market, orders, positions and assets | | |
Collapse file Copy file name to clipboardExpand all lines: cmd/cex/cex.go -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,6 @@ import ( | 24 | 24 | "github.com/gate/gate-cli/cmd/cex/tradfi" | 25 | 25 | "github.com/gate/gate-cli/cmd/cex/unified" | 26 | 26 | "github.com/gate/gate-cli/cmd/cex/wallet" | 27 | | - "github.com/gate/gate-cli/cmd/cex/withdrawal" | 28 | 27 | ) | 29 | 28 |
| 30 | 29 | // Cmd is the parent command for CEX API command groups (spot, futures, wallet, …). | @@ -58,7 +57,6 @@ func init() { | 58 | 57 | // CrossEx, P2P, activity, coupon and welfare implementations are retained, | 59 | 58 | // but are not published in this release. The API transport also denies them. | 60 | 59 | Cmd.AddCommand(rebate.Cmd) | 61 | | - Cmd.AddCommand(withdrawal.Cmd) | 62 | 60 | Cmd.AddCommand(square.Cmd) | 63 | 61 | Cmd.AddCommand(assetswap.Cmd) | 64 | 62 | Cmd.AddCommand(bot.Cmd) | |
Collapse file Copy file name to clipboardExpand all lines: cmd/cex/withdrawal/withdrawal.go -64Lines changed: 0 additions & 64 deletions Collapse file Copy file name to clipboardExpand all lines: cmd/cex/withdrawal/withdrawal_test.go -52Lines changed: 0 additions & 52 deletions Collapse file Copy file name to clipboardExpand all lines: cmd/cex/withdrawal_retirement_test.go +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,14 +5,15 @@ import "testing" | 5 | 5 | // Cached command paths must no longer resolve to financial handlers. Retained | 6 | 6 | // wallet reads guard against removing their parent groups with the write leaves. | 7 | 7 | func TestWithdrawalRetirementRegistration(t *testing.T) { | 8 | | - for _, leaf := range []string{"create", "cancel"} { | | 8 | + for _, leaf := range []string{"create", "cancel", "push-order"} { | 9 | 9 | command, rest, err := Cmd.Find([]string{"withdrawal", leaf}) | 10 | 10 | if err == nil && len(rest) == 0 && command.Runnable() { | 11 | 11 | t.Errorf("removed withdrawal leaf still registered: %s", leaf) | 12 | 12 | } | 13 | 13 | } | 14 | 14 | for _, path := range [][]string{ | 15 | 15 | {"wallet", "deposit", "withdrawals"}, | | 16 | + {"wallet", "deposit", "push-orders"}, | 16 | 17 | {"wallet", "market", "withdraw-status"}, | 17 | 18 | {"wallet", "deposit", "address"}, | 18 | 19 | {"wallet", "transfer", "create"}, | |
Collapse file Copy file name to clipboardExpand all lines: cmd/command_contract_test.go +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ func loadCommandContracts(t *testing.T) []commandContract { | 35 | 35 | require.NoError(t, err) | 36 | 36 | var cases []commandContract | 37 | 37 | require.NoError(t, json.Unmarshal(raw, &cases)) | 38 | | - require.Len(t, cases, 409) | | 38 | + require.Len(t, cases, 408) | 39 | 39 | if agentfeature.Commands { | 40 | 40 | raw, err := os.ReadFile("../tests/agentic/fixtures/agent_command_contracts.json") | 41 | 41 | require.NoError(t, err) | |
Collapse file Copy file name to clipboardExpand all lines: internal/version/release_test.go +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import "testing" | 5 | 5 | // Pin the intended release independently of the implementation so a source | 6 | 6 | // version bump cannot leave the default artifact or details at the old release. | 7 | 7 | func TestDefaultReleaseVersion(t *testing.T) { | 8 | | - const want = "v0.9.2" | | 8 | + const want = "v0.9.3" | 9 | 9 | if Version != want || Details().Version != want { | 10 | 10 | t.Fatalf("release version=%q details=%q, want %q", Version, Details().Version, want) | 11 | 11 | } | |
Collapse file Copy file name to clipboardExpand all lines: internal/version/version.go +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,4 +2,4 @@ package version | 2 | 2 |
| 3 | 3 | // Version is the gate-cli release version. | 4 | 4 | // Set at build time via: -ldflags "-X github.com/gate/gate-cli/internal/version.Version=x.y.z" | 5 | | -var Version = "v0.9.2" | | 5 | +var Version = "v0.9.3" |
Collapse file Copy file name to clipboardExpand all lines: tests/agentic/README.market-regressions.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,7 @@ GOMAXPROCS=2 go test -p 2 -tags 'agentic_e2e integration' ./tests/agentic -run ' | 56 | 56 |
| 57 | 57 | ## 全命令组未知子路径 | 58 | 58 |
| 59 | | -command_groups_test.go复用真实TestMain/runCLI,以独立fixtures/command_groups.json覆盖101个可见组(含root/default completion、84个CEX子组、config/Info/News)。每组覆盖json/pretty/table下未知子命令exit1、stdout空和明确unknown command,以及裸组正确帮助exit0;API peer计数必须为0。另覆盖未注册的组内help、help=false、flag值/分隔符、根级help、alias、动态补全和真实配置叶子位置参数落盘。cmd/command_groups_test.go将真实命令树与fixture比较,未来增删组须同步审查契约。 | | 59 | +command_groups_test.go复用真实TestMain/runCLI,以独立fixtures/command_groups.json覆盖100个可见组(含root/default completion、83个CEX子组、config/Info/News)。每组覆盖json/pretty/table下未知子命令exit1、stdout空和明确unknown command,以及裸组正确帮助exit0;API peer计数必须为0。另覆盖未注册的组内help、help=false、flag值/分隔符、根级help、alias、动态补全和真实配置叶子位置参数落盘。cmd/command_groups_test.go将真实命令树与fixture比较,未来增删组须同步审查契约。 | 60 | 60 |
| 61 | 61 | ```sh | 62 | 62 | # 统一路由、格式、真实全树清单及既有帮助边界单元。 | |
Collapse file Copy file name to clipboardExpand all lines: tests/agentic/README.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,15 +16,15 @@ The suite covers normal responses, invalid inputs, missing credentials, resource | 16 | 16 |
| 17 | 17 | `withdrawal_retirement_test.go` runs the real CLI with isolated profiles and | 18 | 18 | synthetic anonymous/HMAC/OAuth/combined credentials. Cached withdrawal creation | 19 | | -and cancellation paths, complete old arguments, missing arguments, unknown flags, | | 19 | +cancellation and UID Push paths, complete old arguments, missing arguments, unknown flags, | 20 | 20 | direct help and `help` paths must fail without an API call. Help and completion | 21 | | -must retain UID transfers and omit the removed leaves. Only the remote peer and | | 21 | +must retain the wallet group and omit the retired withdrawal group. Only the remote peer and | 22 | 22 | credentials are replaced; parsing, discovery, exit codes and process execution | 23 | 23 | remain real. | 24 | 24 |
| 25 | | -The shared command and HTTP fixtures remove only these two positive contracts. | | 25 | +The shared command and HTTP fixtures remove the three retired positive contracts. | 26 | 26 | `TestAllCEXCommandContracts`, input/dependency-failure cases and the existing | 27 | | -handler unit suite continue to exercise UID transfers, withdrawal queries and | | 27 | +handler unit suite continue to exercise UID transfer history, withdrawal queries and | 28 | 28 | all other retained operations. `make test-cli` runs both standard and Agent | 29 | 29 | variants through the existing unified entry point. | 30 | 30 |
| |
|