@xyo-network/xl1-protocol-sdk 1.22.13 → 1.22.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js';
|
|
2
|
-
import type { BlockViewer,
|
|
3
|
-
export declare function chainStepRewardAddress(context:
|
|
2
|
+
import type { BlockViewer, CachingContext, StepIdentity } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare function chainStepRewardAddress(context: CachingContext, blockViewer: BlockViewer, { block, step }: StepIdentity): Promise<Address>;
|
|
4
4
|
//# sourceMappingURL=chainStepRewardAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainStepRewardAddress.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/chain/step/chainStepRewardAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAK,EACV,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"chainStepRewardAddress.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/chain/step/chainStepRewardAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAK,EACV,WAAW,EAAE,cAAc,EAAE,YAAY,EAC1C,MAAM,2BAA2B,CAAA;AASlC,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAa/I"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-protocol-sdk",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.15",
|
|
5
5
|
"description": "XYO Layer One SDK Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@xyo-network/payload-builder": "~5.3.2",
|
|
50
50
|
"@xyo-network/payload-model": "~5.3.2",
|
|
51
51
|
"@xyo-network/wallet": "~5.3.2",
|
|
52
|
-
"@xyo-network/xl1-protocol": "~1.22.
|
|
52
|
+
"@xyo-network/xl1-protocol": "~1.22.15",
|
|
53
53
|
"async-mutex": "~0.5.0",
|
|
54
54
|
"ethers": "^6.16.0",
|
|
55
55
|
"lru-cache": "^11.2.5"
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertEx, exists, toAddress,
|
|
4
4
|
} from '@xylabs/sdk-js'
|
|
5
5
|
import type {
|
|
6
|
-
BlockViewer,
|
|
6
|
+
BlockViewer, CachingContext, StepIdentity,
|
|
7
7
|
} from '@xyo-network/xl1-protocol'
|
|
8
8
|
import {
|
|
9
9
|
asTransfer, isTransfer, XYO_STEP_REWARD_ADDRESS,
|
|
@@ -13,7 +13,7 @@ import { mergeTransfers } from '../../payload/index.ts'
|
|
|
13
13
|
import { stepTransferIndex } from '../../step/index.ts'
|
|
14
14
|
import { stepRewardBlock } from './stepRewardBlock.ts'
|
|
15
15
|
|
|
16
|
-
export async function chainStepRewardAddress(context:
|
|
16
|
+
export async function chainStepRewardAddress(context: CachingContext, blockViewer: BlockViewer, { block, step }: StepIdentity): Promise<Address> {
|
|
17
17
|
const hydratedBlock = await stepRewardBlock(context, blockViewer, { block, step })
|
|
18
18
|
const [transferIndex, transferCount] = stepTransferIndex(block, step)
|
|
19
19
|
const [blockBw, payloads] = hydratedBlock
|