Skip to content

Commit

Permalink
feat: bump version and add dinero distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
piesrtasty committed Oct 27, 2024
1 parent ffa192b commit 1083e6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hai-on-op/sdk",
"version": "1.2.17",
"version": "1.2.18",
"description": "Javascript client for HAI",
"license": "MIT",
"main": "lib",
Expand Down
2 changes: 2 additions & 0 deletions src/api/contract-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class ContractApis {

public merkleDistributorFactoryKite: types.MerkleDistributorFactory
public merkleDistributorFactoryOp: types.MerkleDistributorFactory
public merkleDistributorFactoryDinero: types.MerkleDistributorFactory

public oracleJob: types.IOracleJob
public accountingJob: types.IAccountingJob
Expand Down Expand Up @@ -65,6 +66,7 @@ export class ContractApis {

this.merkleDistributorFactoryKite = types.MerkleDistributorFactory__factory.connect(addressList.MERKLE_DISTRIBUTOR_FACTORY_KITE, signerOrProvider)
this.merkleDistributorFactoryOp = types.MerkleDistributorFactory__factory.connect(addressList.MERKLE_DISTRIBUTOR_FACTORY_OP, signerOrProvider)
this.merkleDistributorFactoryDinero = types.MerkleDistributorFactory__factory.connect(addressList.MERKLE_DISTRIBUTOR_FACTORY_DINERO, signerOrProvider)

this.oracleJob = types.IOracleJob__factory.connect(addressList.JOB_ORACLES, signerOrProvider)
this.accountingJob = types.IAccountingJob__factory.connect(addressList.JOB_ACCOUNTING, signerOrProvider)
Expand Down
4 changes: 4 additions & 0 deletions src/contracts/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export type ContractKey =
| 'JOB_ORACLES'
| 'MERKLE_DISTRIBUTOR_FACTORY_KITE'
| 'MERKLE_DISTRIBUTOR_FACTORY_OP'
| 'MERKLE_DISTRIBUTOR_FACTORY_DINERO'

export type ContractList = {
[key in ContractKey]: string
Expand Down Expand Up @@ -100,6 +101,7 @@ const addresses: Record<GebDeployment, ContractList> = {
JOB_ORACLES: '0xF4F18205D8D46638489865e42c0a71a3d4F9FC22',
MERKLE_DISTRIBUTOR_FACTORY_KITE: '0x3975Ff822aF38552fAC62A975D4D4e0Ea5Ac5980',
MERKLE_DISTRIBUTOR_FACTORY_OP: '0x524fE171e80173C15381bB50034033dA282abCc6',
MERKLE_DISTRIBUTOR_FACTORY_DINERO: '0xFC4fD07b8CbA6b008952656a3d16A25da012EA56',
},
'optimism-goerli': {
MULTICALL: '0xcA11bde05977b3631167028862bE2a173976CA11',
Expand Down Expand Up @@ -136,6 +138,7 @@ const addresses: Record<GebDeployment, ContractList> = {
JOB_ORACLES: '0x1F517889F899A3792c4ED0D6Ae8f1A69e89E3d40',
MERKLE_DISTRIBUTOR_FACTORY_KITE: '0x3975Ff822aF38552fAC62A975D4D4e0Ea5Ac5980',
MERKLE_DISTRIBUTOR_FACTORY_OP: '0x524fE171e80173C15381bB50034033dA282abCc6',
MERKLE_DISTRIBUTOR_FACTORY_DINERO: '0xFC4fD07b8CbA6b008952656a3d16A25da012EA56',
},
'optimism-sepolia': {
MULTICALL: '0xcA11bde05977b3631167028862bE2a173976CA11',
Expand Down Expand Up @@ -172,6 +175,7 @@ const addresses: Record<GebDeployment, ContractList> = {
JOB_ORACLES: '0xaacc036c505370918e4a89567a636d561833bd21',
MERKLE_DISTRIBUTOR_FACTORY_KITE: '0x3975Ff822aF38552fAC62A975D4D4e0Ea5Ac5980',
MERKLE_DISTRIBUTOR_FACTORY_OP: '0x524fE171e80173C15381bB50034033dA282abCc6',
MERKLE_DISTRIBUTOR_FACTORY_DINERO: '0xFC4fD07b8CbA6b008952656a3d16A25da012EA56',
},
}

Expand Down

0 comments on commit 1083e6e

Please sign in to comment.