Skip to content

Commit

Permalink
Merge pull request #15 from nervina-labs/rename
Browse files Browse the repository at this point in the history
Rename to cota-syncer
  • Loading branch information
duanyytop authored Sep 8, 2022
2 parents d169946 + eabf31f commit 2cd1cff
Show file tree
Hide file tree
Showing 44 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cota-nft-entries-syncer
# cota-syncer
The data syncer of [CoTA Script](https://talk.nervos.org/t/rfc-cota-a-compact-token-aggregator-standard-for-extremely-low-cost-nfts-and-fts/6338).

# Prerequisites
Expand Down
12 changes: 6 additions & 6 deletions cmd/syncer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import (
"log"
"os"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/app"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/config"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/service"
"github.com/nervina-labs/cota-syncer/internal/app"
"github.com/nervina-labs/cota-syncer/internal/config"
"github.com/nervina-labs/cota-syncer/internal/data"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/service"
"gopkg.in/natefinch/lumberjack.v2"
)

func newApp(logger *logger.Logger, blockSyncSvc *service.BlockSyncService, checkInfoCleanerSvc *service.CheckInfoCleanerService, metadataSyncSvc *service.MetadataSyncService, invalidDataCleanerSvc *service.InvalidDataCleaner, withdrawExtraInfoService *service.WithdrawExtraInfoService, m *data.DBMigration) *app.App {
return app.NewApp(
app.Name("cota-nft-entries-syncer"),
app.Name("cota-syncer"),
app.Version("0.0.1"),
app.Logger(logger),
app.Services(blockSyncSvc, checkInfoCleanerSvc, metadataSyncSvc, invalidDataCleanerSvc, withdrawExtraInfoService), app.Migration(m))
Expand Down
12 changes: 6 additions & 6 deletions cmd/syncer/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ package main

import (
"github.com/google/wire"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/app"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/config"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/service"
"github.com/nervina-labs/cota-syncer/internal/app"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/config"
"github.com/nervina-labs/cota-syncer/internal/data"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/service"
)

func initApp(*config.Database, *config.CkbNode, *logger.Logger) (*app.App, func(), error) {
Expand Down
12 changes: 6 additions & 6 deletions cmd/syncer/wire_gen.go

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nervina-labs/cota-nft-entries-syncer
module github.com/nervina-labs/cota-syncer

go 1.18

Expand Down
6 changes: 3 additions & 3 deletions internal/app/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package app

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/service"
"github.com/nervina-labs/cota-syncer/internal/data"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/service"
"os"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/check_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type CheckType uint8
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/claimed_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type ClaimedCotaNftKvPair struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/class_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type ClassInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/define_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/biz/hold_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/biz/invalid_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type InvalidDataRepo interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/issuer_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/biz/mint_cota_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type MintCotaKvPair struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/register_cota_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package biz

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/biz/sync_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package biz
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type KvPair struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/transfer_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package biz
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type TransferCotaKvPair struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/withdraw_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package biz
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type WithdrawCotaNftKvPair struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/biz/withdraw_extra_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package biz
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

type WithdrawQueryInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/data/block_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/biz"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/check_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package data

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/claimed_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"hash/crc32"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/class_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"errors"
"github.com/mitchellh/mapstructure"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"gorm.io/gorm/clause"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/data/class_info_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package data

import (
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"reflect"
"testing"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/data/cota_witness_args_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package data
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data/blockchain"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/data/blockchain"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
mMsql "github.com/golang-migrate/migrate/v4/database/mysql"
_ "github.com/golang-migrate/migrate/v4/source/file"
"github.com/google/wire"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/config"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/config"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervosnetwork/ckb-sdk-go/rpc"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
"gorm.io/driver/mysql"
Expand Down
4 changes: 2 additions & 2 deletions internal/data/define_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"hash/crc32"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/hold_cota_nft_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"hash/crc32"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/invalid_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package data

import (
"context"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
)

var _ biz.InvalidDataRepo = (*invalidDataRepo)(nil)
Expand Down
4 changes: 2 additions & 2 deletions internal/data/issuer_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"github.com/mitchellh/mapstructure"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
"gorm.io/gorm/clause"
"time"
Expand Down
4 changes: 2 additions & 2 deletions internal/data/issuer_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package data

import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
"reflect"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions internal/data/kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"hash/crc32"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/data/metadata_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package data
import (
"context"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/biz"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/data/mint_cota_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"hash/crc32"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/data/register_cota_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/hex"
"time"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data/blockchain"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/data/blockchain"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
ckbTypes "github.com/nervosnetwork/ckb-sdk-go/types"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/data/script_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/hex"
"hash/crc32"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/data/blockchain"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/data/blockchain"
)

func GenerateSenderLock(entry biz.Entry) (lockScript biz.Script, err error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/data/transfer_cota_kv_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"encoding/hex"
"hash/crc32"

"github.com/nervina-labs/cota-nft-entries-syncer/internal/biz"
"github.com/nervina-labs/cota-nft-entries-syncer/internal/logger"
"github.com/nervina-labs/cota-syncer/internal/biz"
"github.com/nervina-labs/cota-syncer/internal/logger"
"github.com/nervina-labs/cota-smt-go/smt"
)

Expand Down
Loading

0 comments on commit 2cd1cff

Please sign in to comment.