File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import { encodeLegacyAllocationProof , randomAllocationMetadata } from '@graphprotocol/toolshed'
1
+ import { generateLegacyAllocationProof , randomAllocationMetadata } from '@graphprotocol/toolshed'
2
2
import { requireLocalNetwork , setGRTBalance } from '@graphprotocol/toolshed/hardhat'
3
3
import { delegators } from './fixtures/delegators'
4
4
import { indexers } from './fixtures/indexers'
@@ -73,7 +73,7 @@ task('test:seed', 'Sets up some protocol state for testing')
73
73
allocation . tokens ,
74
74
allocation . allocationID ,
75
75
randomAllocationMetadata ( ) ,
76
- await encodeLegacyAllocationProof ( indexer . address , allocation . allocationPrivateKey ) ,
76
+ await generateLegacyAllocationProof ( indexer . address , allocation . allocationPrivateKey ) ,
77
77
)
78
78
}
79
79
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The package is organized into several modules that can be imported separately:
21
21
22
22
``` typescript
23
23
// Import core functionality
24
- import { encodeAllocationProof } from ' @graphprotocol/toolshed' ;
24
+ import { generateAllocationProof } from ' @graphprotocol/toolshed' ;
25
25
26
26
// Import deployment
27
27
import { loadGraphHorizon } from ' @graphprotocol/toolshed/deployments/horizon' ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { ethers, id } from 'ethers'
2
2
import { randomHexBytes } from '../lib/bytes'
3
3
4
4
// For legacy allocations in the staking contract
5
- export async function encodeLegacyAllocationProof ( indexerAddress : string , allocationPrivateKey : string ) {
5
+ export async function generateLegacyAllocationProof ( indexerAddress : string , allocationPrivateKey : string ) {
6
6
const wallet = new ethers . Wallet ( allocationPrivateKey )
7
7
const messageHash = ethers . solidityPackedKeccak256 (
8
8
[ 'address' , 'address' ] ,
@@ -22,7 +22,7 @@ export const EIP712_ALLOCATION_ID_PROOF_TYPES = {
22
22
}
23
23
24
24
// For new allocations in the subgraph service
25
- export async function encodeAllocationProof (
25
+ export async function generateAllocationProof (
26
26
indexerAddress : string ,
27
27
allocationPrivateKey : string ,
28
28
subgraphServiceAddress : string ,
You can’t perform that action at this time.
0 commit comments