Skip to content

Commit

Permalink
move lib_functional to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 2, 2023
1 parent 5807044 commit f7ee9c3
Show file tree
Hide file tree
Showing 40 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion canisters/icrc/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { nat, Record, text } from '../../src/lib_functional';
import { nat, Record, text } from '../../src/lib';

export const BadFee = Record({
expected_fee: nat
Expand Down
2 changes: 1 addition & 1 deletion canisters/icrc/icrc_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Record,
text,
Variant
} from '../../src/lib_functional';
} from '../../src/lib';
import {
BadBurn,
BadFee,
Expand Down
11 changes: 1 addition & 10 deletions canisters/icrc/icrc_2.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import {
blob,
nat,
nat64,
Null,
Opt,
Principal,
Record,
Variant
} from '../../src/lib_functional';
import { blob, nat, nat64, Null, Opt, Record, Variant } from '../../src/lib';

import {
BadFee,
Expand Down
2 changes: 1 addition & 1 deletion canisters/icrc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
text,
Tuple,
Vec
} from '../../src/lib_functional';
} from '../../src/lib';
import { Account, TransferArgs, TransferResult, Value } from './icrc_1';
import {
AllowanceArgs,
Expand Down
2 changes: 1 addition & 1 deletion canisters/ledger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
Vec,
Principal,
Func
} from '../../src/lib_functional';
} from '../../src/lib';
import * as icrc from '../icrc';

// Amount of tokens, measured in 10^-8 of a token.
Expand Down
2 changes: 1 addition & 1 deletion canisters/management/bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
text,
Variant,
Vec
} from '../../src/lib_functional';
} from '../../src/lib';

export type BitcoinAddress = text;
export const BitcoinAddress = text;
Expand Down
2 changes: 1 addition & 1 deletion canisters/management/canister_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Variant,
Null,
blob
} from '../../src/lib_functional';
} from '../../src/lib';

export const CanisterId = Principal;
export const UserId = Principal;
Expand Down
2 changes: 1 addition & 1 deletion canisters/management/http_request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
nat64,
nat,
Func
} from '../../src/lib_functional';
} from '../../src/lib';

export const HttpHeader = Record({
name: text,
Expand Down
9 changes: 1 addition & 8 deletions canisters/management/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
blob,
Canister,
Principal,
update,
Vec,
Void
} from '../../src/lib_functional';
import { blob, Canister, Principal, update, Vec, Void } from '../../src/lib';
import {
GetBalanceArgs,
GetCurrentFeePercentilesArgs,
Expand Down
2 changes: 1 addition & 1 deletion canisters/management/t_ecdsa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
text,
Variant,
Vec
} from '../../src/lib_functional';
} from '../../src/lib';

export const EcdsaCurve = Variant({
secp256k1: Null
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"bin": {
"azle": "./bin.js"
},
"main": "./src/lib_functional/index.ts",
"main": "./src/lib/index.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/demergent-labs/azle.git"
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/generate_candid_and_canister_methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DEFAULT_VISITOR_DATA,
DidResultToCandidString,
DidVisitor
} from '../lib_functional/visitors/did_visitor';
} from '../lib/visitors/did_visitor';

export function generateCandidAndCanisterMethods(mainJs: string): {
candid: string;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Callback, CanisterMethodInfo, createParents, executeMethod } from '.';
import { CandidType, TypeMapping } from '../candid';
import { Void } from '../../lib_functional';
import { Void } from '../';
import { toParamIDLTypes, toReturnIDLType } from '../utils';

export function init<
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f7ee9c3

Please sign in to comment.