Skip to content

Commit 62d055c

Browse files
julienrbrtPantani
andcommitted
refactor!: remove oracle support (#3993)
* refactor!: remove oracle support * changelog --------- Co-authored-by: Danilo Pantani <[email protected]>
1 parent 4abc107 commit 62d055c

File tree

18 files changed

+3
-1066
lines changed

18 files changed

+3
-1066
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111
### Changes
1212

13+
- [#3993](https://github.com/ignite/cli/pull/3993) Oracle scaffolding was deprecated and has been removed
1314
- [#3959](https://github.com/ignite/cli/pull/3959) Remove app name prefix from the `.gitignore` file
14-
- [#3962](https://github.com/ignite/cli/pull/3962) Rename all RPC endpoints and autocli commands generated for `map`/`list`/`single` types
15+
- [#3962](https://github.com/ignite/cli/pull/3962) Rename all RPC endpoints and autocli commands generated for `map`/`list`/`single` types
1516
- [#3972](https://github.com/ignite/cli/pull/3972) Skip Ignite app loading for some base commands that don't allow apps
1617
- [#3976](https://github.com/ignite/cli/pull/3976) Remove error checks for Cobra command value get calls
1718
- [#3983](https://github.com/ignite/cli/pull/3983) Bump `cosmos-sdk` to `v0.50.4` and `ibc-go` to `v8.1.0`

ignite/cmd/scaffold.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ with an "--ibc" flag. Note that the default module is not IBC-enabled.
129129
NewScaffoldMessage(),
130130
NewScaffoldQuery(),
131131
NewScaffoldPacket(),
132-
NewScaffoldBandchain(),
133132
NewScaffoldVue(),
134133
NewScaffoldReact(),
135134
)

ignite/cmd/scaffold_band.go

Lines changed: 0 additions & 88 deletions
This file was deleted.

ignite/services/scaffolder/component.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ func checkForbiddenComponentName(name multiformatname.Name) error {
130130
// Check with names already used from the scaffolded code
131131
switch name.LowerCase {
132132
case
133-
"oracle",
134133
"logger",
135134
"keeper",
136135
"query",
@@ -199,32 +198,6 @@ func checkGoReservedWord(name string) error {
199198
return nil
200199
}
201200

202-
// checkForbiddenOracleFieldName returns true if the name is forbidden as an oracle field name.
203-
//
204-
// Deprecated: This function is no longer maintained.
205-
func checkForbiddenOracleFieldName(name string) error {
206-
mfName, err := multiformatname.NewName(name, multiformatname.NoNumber)
207-
if err != nil {
208-
return err
209-
}
210-
211-
// Check with names already used from the scaffolded code
212-
switch mfName.UpperCase {
213-
case
214-
"CLIENTID",
215-
"ORACLESCRIPTID",
216-
"SOURCECHANNEL",
217-
"CALLDATA",
218-
"ASKCOUNT",
219-
"MINCOUNT",
220-
"FEELIMIT",
221-
"PREPAREGAS",
222-
"EXECUTEGAS":
223-
return errors.Errorf("%s is used by Ignite scaffolder", name)
224-
}
225-
return nil
226-
}
227-
228201
// containsCustomTypes returns true if the list of fields contains at least one custom type.
229202
func containsCustomTypes(fields []string) bool {
230203
for _, field := range fields {

ignite/services/scaffolder/component_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestCheckForbiddenComponentName(t *testing.T) {
2121
},
2222
{
2323
name: "should prevent forbidden name",
24-
compName: "oracle",
24+
compName: "genesis",
2525
shouldError: true,
2626
},
2727
}

ignite/services/scaffolder/oracle.go

Lines changed: 0 additions & 127 deletions
This file was deleted.

ignite/templates/ibc/files/oracle/proto/{{appName}}/{{moduleName}}/{{queryName}}.proto.plush

Lines changed: 0 additions & 13 deletions
This file was deleted.

ignite/templates/ibc/files/oracle/x/{{moduleName}}/keeper/msg_{{queryName}}.go.plush

Lines changed: 0 additions & 69 deletions
This file was deleted.

ignite/templates/ibc/files/oracle/x/{{moduleName}}/keeper/query_{{queryName}}.go.plush

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)