Skip to content

Commit 602cc4b

Browse files
committed
V2
1 parent 6b9d1a6 commit 602cc4b

File tree

28 files changed

+450
-557
lines changed

28 files changed

+450
-557
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
- tests/voter-stake-registry.ts
150150
- tests/fanout.ts
151151
- tests/sus.ts
152-
- tests/dc-conversion-escrow.ts
152+
- tests/conversion-escrow.ts
153153
steps:
154154
- uses: actions/checkout@v3
155155
- uses: ./.github/actions/build-anchor/

Anchor.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fanout = "fanqeMu3fw8R4LwKNbahPtYXJsyLL6NXyfe2BqzhfB6"
1717
mobile_entity_manager = "memMa1HG4odAFmUbGWfPwS1WWfK95k99F2YTkGvyxZr"
1818
hexboosting = "hexbnKYoA2GercNNhHUCCfrTRWrHjT6ujKPXTa5NPqJ"
1919
no_emit = "noEmmgLmQdk6DLiPV8CSwQv3qQDyGEhz9m5A4zhtByv"
20-
dc_conversion_escrow = "dce4jeLBpfaFsNAKMAmVt5Py4E1R4mZcrVvMB5ejvGu"
20+
conversion_escrow = "dce4jeLBpfaFsNAKMAmVt5Py4E1R4mZcrVvMB5ejvGu"
2121

2222
[workspace]
2323
members = [
@@ -35,7 +35,7 @@ members = [
3535
"programs/mobile-entity-manager",
3636
"programs/hexboosting",
3737
"programs/no-emit",
38-
"programs/dc-conversion-escrow",
38+
"programs/conversion-escrow",
3939
]
4040

4141
[registry]

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dc-conversion-escrow-sdk/package.json renamed to packages/conversion-escrow-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@helium/dc-conversion-escrow-sdk",
2+
"name": "@helium/conversion-escrow-sdk",
33
"publishConfig": {
44
"access": "public",
55
"registry": "https://registry.npmjs.org/"
66
},
77
"license": "Apache-2.0",
88
"version": "0.6.41",
9-
"description": "Interface to the dc-conversion-escrow smart contract",
9+
"description": "Interface to the conversion-escrow smart contract",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/helium/helium-program-libary"
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { DcConversionEscrow } from "@helium/idls/lib/types/dc_conversion_escrow";
1+
import { ConversionEscrow } from "@helium/idls/lib/types/conversion_escrow";
22
import { AnchorProvider, Idl, Program } from "@coral-xyz/anchor";
33
import { PublicKey } from "@solana/web3.js";
44
import { PROGRAM_ID } from "./constants";
5-
import { dcConversionEscrowResolvers } from "./resolvers";
5+
import { conversionEscrowResolvers } from "./resolvers";
66

77

88
export * from "./constants";
@@ -12,18 +12,18 @@ export async function init(
1212
provider: AnchorProvider,
1313
programId: PublicKey = PROGRAM_ID,
1414
idl?: Idl | null
15-
): Promise<Program<DcConversionEscrow>> {
15+
): Promise<Program<ConversionEscrow>> {
1616
if (!idl) {
1717
idl = await Program.fetchIdl(programId, provider);
1818
}
1919

20-
const dcConversionEscrow = new Program<DcConversionEscrow>(
21-
idl as DcConversionEscrow,
20+
const conversionEscrow = new Program<ConversionEscrow>(
21+
idl as ConversionEscrow,
2222
programId,
2323
provider,
2424
undefined,
25-
() => dcConversionEscrowResolvers
26-
) as Program<DcConversionEscrow>;
25+
() => conversionEscrowResolvers
26+
) as Program<ConversionEscrow>;
2727

28-
return dcConversionEscrow;
28+
return conversionEscrow;
2929
}

packages/dc-conversion-escrow-sdk/src/resolvers.ts renamed to packages/conversion-escrow-sdk/src/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
heliumCommonResolver
55
} from "@helium/anchor-resolvers";
66

7-
export const dcConversionEscrowResolvers = combineResolvers(
7+
export const conversionEscrowResolvers = combineResolvers(
88
heliumCommonResolver,
99
ataResolver({
1010
instruction: "initializeEscrowV0",

0 commit comments

Comments
 (0)