Skip to content

Commit

Permalink
Copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
duktig666 committed May 23, 2023
1 parent 52626a0 commit 74749cf
Show file tree
Hide file tree
Showing 56 changed files with 841 additions and 1 deletion.
15 changes: 15 additions & 0 deletions blockchain/tron/key.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package tron

import (
Expand Down
15 changes: 15 additions & 0 deletions blockchain/tron/key_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package tron

import (
Expand Down
15 changes: 15 additions & 0 deletions cmd/cobra.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/10/6 14:36
Expand Down
15 changes: 15 additions & 0 deletions cmd/version/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package version

import (
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/abi.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description: abi编码 @see https://github.com/0xsequence/ethkit/tree/master/ethcoder
// @author renshiwei
// Date: 2022/11/3 17:08
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/aes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description: aes
// @author renshiwei
// Date: 2022/7/21 20:47
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/des.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description: des
// @author renshiwei
// Date: 2022/11/3 17:34
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/gorsa.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package cryptor

import (
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/gorsaSign.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package cryptor

// SignMd5WithRsa Signed using the RSA With MD5 algorithm
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/password.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/8/18 19:15
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/rsa.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package cryptor

import (
Expand Down
15 changes: 15 additions & 0 deletions common/cryptor/rsa_ext.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package cryptor

import (
Expand Down
15 changes: 15 additions & 0 deletions common/errs/sleep_error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package errs

import (
Expand Down
15 changes: 15 additions & 0 deletions common/logger/initialize.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/10/5 18:05
Expand Down
15 changes: 15 additions & 0 deletions common/logger/logger.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/10/5 19:39
Expand Down
15 changes: 15 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/10/5 17:33
Expand Down
15 changes: 15 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

package config

import (
Expand Down
15 changes: 15 additions & 0 deletions config/default_conf.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions config/var.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// description:
// @author renshiwei
// Date: 2022/10/5 17:06
Expand Down
15 changes: 15 additions & 0 deletions consensus/beacon/beacon_block_id.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// desc:
// beacon-api: @see https://ethereum.github.io/beacon-APIs/#/Beacon/getBlockV2
// /eth/v2/beacon/blocks/{}
Expand Down
15 changes: 15 additions & 0 deletions consensus/beacon/beacon_block_id_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* // Copyright © 2022-2023. duktig666 Limited.
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compliance with the License.
* // You may obtain a copy of the License at
* //
* // http://www.apache.org/licenses/LICENSE-2.0
* //
* // Unless required by applicable law or agreed to in writing, software
* // distributed under the License is distributed on an "AS IS" BASIS,
* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* // See the License for the specific language governing permissions and
* // limitations under the License.
*/

// desc:
// @author renshiwei
// Date: 2023/4/6 13:06
Expand Down
Loading

0 comments on commit 74749cf

Please sign in to comment.