Skip to content

Commit

Permalink
reconcile
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Sep 13, 2024
1 parent 9981bf4 commit 7a0b769
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 16 deletions.
1 change: 0 additions & 1 deletion core/java/src/test/java/io/kaleido/paladin/TestDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class TestDomain extends DomainInstance {
@Override
protected CompletableFuture<ToDomain.ConfigureDomainResponse> configureDomain(ToDomain.ConfigureDomainRequest request) {
ToDomain.DomainConfig domainConfig = ToDomain.DomainConfig.newBuilder()
.setFactoryContractAddress("0x1000000000000000000000000000000000000001")
.setBaseLedgerSubmitConfig(ToDomain.BaseLedgerSubmitConfig.newBuilder()
.setSubmitMode(ToDomain.BaseLedgerSubmitConfig.Mode.ONE_TIME_USE_KEYS)
.build())
Expand Down
1 change: 1 addition & 0 deletions domains/noto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ task test(type: Exec) {
workingDir '.'
executable 'go'
args 'test'
args '-v'
args './internal/...'
args './pkg/...'
args '-cover'
Expand Down
3 changes: 3 additions & 0 deletions domains/noto/internal/noto/e2e_noto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package noto
import (
"context"
"encoding/json"
"fmt"
"testing"

"github.com/go-resty/resty/v2"
Expand Down Expand Up @@ -87,11 +88,13 @@ func newNotoDomain(t *testing.T, config *types.DomainConfig) (*Noto, *testbed.Te
domain.Callbacks = callbacks
return &domain
}),
RegistryAddress: tktypes.MustEthAddress(config.FactoryAddress),
}
}

func newTestbed(t *testing.T, domains map[string]*testbed.TestbedDomain) (context.CancelFunc, testbed.Testbed, rpcbackend.Backend) {
tb := testbed.NewTestBed()
fmt.Printf("tb: %+v, domains: %+v\n", tb, domains)
url, done, err := tb.StartForTest("../../testbed.config.yaml", domains)
assert.NoError(t, err)
rpc := rpcbackend.NewRPCClient(resty.New().SetBaseURL(url))
Expand Down
3 changes: 1 addition & 2 deletions domains/noto/internal/noto/noto.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func (n *Noto) ConfigureDomain(ctx context.Context, req *pb.ConfigureDomainReque

return &pb.ConfigureDomainResponse{
DomainConfig: &pb.DomainConfig{
FactoryContractAddress: n.config.FactoryAddress,
AbiStateSchemasJson: []string{string(schemaJSON)},
AbiStateSchemasJson: []string{string(schemaJSON)},
BaseLedgerSubmitConfig: &pb.BaseLedgerSubmitConfig{
SubmitMode: pb.BaseLedgerSubmitConfig_ENDORSER_SUBMISSION,
},
Expand Down
2 changes: 1 addition & 1 deletion domains/test/pvp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func newNotoDomain(t *testing.T, config *types.DomainConfig) (*noto.Noto, *testb
domain = noto.New(callbacks)
return domain
}),
FactoryAddress: tktypes.MustEthAddress(config.FactoryAddress),
RegistryAddress: tktypes.MustEthAddress(config.FactoryAddress),
}
}

Expand Down
4 changes: 2 additions & 2 deletions domains/zeto/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ module github.com/kaleido-io/paladin/domains/zeto
go 1.22.5

require (
github.com/go-resty/resty/v2 v2.14.0
github.com/hyperledger-labs/zeto/go-sdk v0.0.0-20240905213624-43a614759076
github.com/hyperledger/firefly-signer v1.1.14
github.com/iden3/go-iden3-crypto v0.0.16
github.com/kaleido-io/paladin/core v0.0.0-00010101000000-000000000000
github.com/kaleido-io/paladin/toolkit v0.0.0-00010101000000-000000000000
github.com/stretchr/testify v1.9.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand All @@ -30,7 +32,6 @@ require (
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/jsonpointer v0.20.2 // indirect
github.com/go-openapi/swag v0.22.7 // indirect
github.com/go-resty/resty/v2 v2.14.0 // indirect
github.com/golang-migrate/migrate/v4 v4.17.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect
Expand Down Expand Up @@ -102,7 +103,6 @@ require (
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/postgres v1.5.9 // indirect
gorm.io/driver/sqlite v1.5.6 // indirect
gorm.io/gorm v1.25.11 // indirect
Expand Down
3 changes: 2 additions & 1 deletion domains/zeto/integration-test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ func newZetoDomain(t *testing.T, config *types.DomainFactoryConfig) (zeto.Zeto,
domain.Callbacks = callbacks
return &domain
}),
RegistryAddress: tktypes.MustEthAddress(config.FactoryAddress),
}
}

func newTestbed(t *testing.T, domains map[string]*testbed.TestbedDomain) (context.CancelFunc, testbed.Testbed, rpcbackend.Backend) {
tb := testbed.NewTestBed()
url, done, err := tb.StartForTest("../../testbed.config.yaml", domains)
url, done, err := tb.StartForTest("./testbed.config.yaml", domains)
assert.NoError(t, err)
rpc := rpcbackend.NewRPCClient(resty.New().SetBaseURL(url))
return done, tb, rpc
Expand Down
3 changes: 1 addition & 2 deletions domains/zeto/internal/zeto/zeto.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func (z *Zeto) ConfigureDomain(ctx context.Context, req *pb.ConfigureDomainReque

return &pb.ConfigureDomainResponse{
DomainConfig: &pb.DomainConfig{
FactoryContractAddress: config.FactoryAddress,
AbiStateSchemasJson: []string{string(schemaJSON)},
AbiStateSchemasJson: []string{string(schemaJSON)},
BaseLedgerSubmitConfig: &pb.BaseLedgerSubmitConfig{
SubmitMode: pb.BaseLedgerSubmitConfig_ENDORSER_SUBMISSION,
},
Expand Down
7 changes: 0 additions & 7 deletions solidity/test/shared/atom/Atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,8 @@ describe("Atom", function () {
const Atom = await ethers.getContractFactory("Atom");

// Deploy noto contract
<<<<<<< HEAD
const noto = await Noto.connect(notary1).deploy(
randomBytes32(),
notary1.address,
"0x"
=======
const noto: Noto = Noto.attach(
await deployNotoInstance(notoFactory, Noto.interface, notary1.address)
>>>>>>> main
);

// Fake up a delegation
Expand Down

0 comments on commit 7a0b769

Please sign in to comment.