@@ -13,7 +13,7 @@ import (
13
13
"github.com/ethereum/go-ethereum/common"
14
14
"github.com/ethereum/go-ethereum/ethclient"
15
15
vaultapi "github.com/hashicorp/vault/api"
16
- accountFactory "github.com/rarimo/geo-points-svc/internal/contracts/abstractionaccountfactory "
16
+ accountFactory "github.com/rarimo/geo-points-svc/internal/contracts/extendedaccountfactory "
17
17
pointTokens "github.com/rarimo/geo-points-svc/internal/contracts/points"
18
18
19
19
"gitlab.com/distributed_lab/dig"
@@ -107,12 +107,12 @@ func (r *AbstractionConfig) CreateAccount(ctx context.Context, nullifier [32]byt
107
107
return common.Address {}, fmt .Errorf ("failed to get keyed transactor: %w" , err )
108
108
}
109
109
110
- accountFactoryInstance , err := accountFactory .NewAbstractionAccountFactory (r .AccountFactory , r .RPC )
110
+ accountFactoryInstance , err := accountFactory .NewExtendedAccountFactory (r .AccountFactory , r .RPC )
111
111
if err != nil {
112
112
return common.Address {}, fmt .Errorf ("failed to get account factory: %w" , err )
113
113
}
114
114
115
- tx , err := accountFactoryInstance .DeployAbstractionAccount (signerOpts , nullifier )
115
+ tx , err := accountFactoryInstance .DeployAbstractAccount (signerOpts , nullifier )
116
116
if err != nil {
117
117
return common.Address {}, fmt .Errorf ("failed to deploy abstraction account: %w" , err )
118
118
}
@@ -125,20 +125,20 @@ func (r *AbstractionConfig) CreateAccount(ctx context.Context, nullifier [32]byt
125
125
return common.Address {}, fmt .Errorf ("failed to wait mined transaction: %w" , err )
126
126
}
127
127
128
- abi , err := accountFactory .AbstractionAccountFactoryMetaData .GetAbi ()
128
+ abi , err := accountFactory .ExtendedAccountFactoryMetaData .GetAbi ()
129
129
if err != nil {
130
130
return common.Address {}, fmt .Errorf ("failed to get contract abi: %w" , err )
131
131
}
132
132
133
- abstractionAccountDeployedTopic := abi .Events ["AbstractionAccountDeployed " ].ID
133
+ abstractionAccountDeployedTopic := abi .Events ["AbstractAccountDeployed " ].ID
134
134
135
- var event * accountFactory.AbstractionAccountFactoryAbstractionAccountDeployed
135
+ var event * accountFactory.ExtendedAccountFactoryAbstractAccountDeployed
136
136
for _ , log := range rec .Logs {
137
137
if ! bytes .Equal (log .Topics [0 ][:], abstractionAccountDeployedTopic [:]) {
138
138
continue
139
139
}
140
140
141
- event , err = accountFactoryInstance .ParseAbstractionAccountDeployed (* log )
141
+ event , err = accountFactoryInstance .ParseAbstractAccountDeployed (* log )
142
142
if err != nil {
143
143
return common.Address {}, fmt .Errorf ("failed to unpack log: %w" , err )
144
144
}
@@ -149,12 +149,12 @@ func (r *AbstractionConfig) CreateAccount(ctx context.Context, nullifier [32]byt
149
149
}
150
150
151
151
func (r * AbstractionConfig ) GetAccount (nullifier [32 ]byte ) (common.Address , error ) {
152
- accountFactoryInstance , err := accountFactory .NewAbstractionAccountFactory (r .AccountFactory , r .RPC )
152
+ accountFactoryInstance , err := accountFactory .NewExtendedAccountFactory (r .AccountFactory , r .RPC )
153
153
if err != nil {
154
154
return common.Address {}, fmt .Errorf ("failed to get account factory: %w" , err )
155
155
}
156
156
157
- accountAddress , err := accountFactoryInstance .GetAbstractionAccount (nil , nullifier )
157
+ accountAddress , err := accountFactoryInstance .GetAbstractAccount (nil , nullifier )
158
158
if err != nil {
159
159
return common.Address {}, fmt .Errorf ("failed to get abstraction account: %w" , err )
160
160
}
0 commit comments